From 47f3e5208bafcd86f2832fdf022e265c7c6cd22f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sun, 4 Nov 2018 15:33:34 -0800 Subject: [PATCH] Fix brace-nesting logic in regex scanning Refs #38 --- src/scanner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.cc b/src/scanner.cc index 1e310eb..b79c02c 100644 --- a/src/scanner.cc +++ b/src/scanner.cc @@ -318,7 +318,7 @@ struct Scanner { state.bracket_depth++; break; case '{': - state.bracket_depth++; + state.brace_depth++; break; case ')': if (state.paren_depth == 0) state.done = true;