Fix brace-nesting logic in regex scanning

Refs #38
This commit is contained in:
Max Brunsfeld 2018-11-04 15:33:34 -08:00
parent 8426c3fefd
commit 47f3e5208b
1 changed files with 1 additions and 1 deletions

2
src/scanner.cc vendored
View File

@ -318,7 +318,7 @@ struct Scanner {
state.bracket_depth++; state.bracket_depth++;
break; break;
case '{': case '{':
state.bracket_depth++; state.brace_depth++;
break; break;
case ')': case ')':
if (state.paren_depth == 0) state.done = true; if (state.paren_depth == 0) state.done = true;