diff options
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r-- | src/pyscanner.l | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index 6df4ba9..aed1ede 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -1007,11 +1007,13 @@ STARTDOCSYMS "##" } <FunctionTypeAnnotation>{ + "{" | "[" | "(" { ++g_braceCount; g_defVal+=*yytext; } + "}" | "]" | ")" { --g_braceCount; @@ -1049,11 +1051,13 @@ STARTDOCSYMS "##" } <FunctionAnnotation>{ + "{" | "[" | "(" { ++g_braceCount; g_defVal+=*yytext; } + "}" | "]" { --g_braceCount; g_defVal+=*yytext; @@ -1098,11 +1102,13 @@ STARTDOCSYMS "##" } <FunctionParamDefVal>{ + "{" | "[" | "(" { // internal opening brace, assumption is that we have correct code so braces do match ++g_braceCount; g_defVal+=*yytext; } + "}" | "]" { --g_braceCount; g_defVal+=*yytext; |