diff options
author | Sergey Kozlov <skozlovf@gmail.com> | 2018-10-08 13:43:18 (GMT) |
---|---|---|
committer | Sergey Kozlov <skozlovf@gmail.com> | 2018-10-08 13:43:18 (GMT) |
commit | ec98b6f662024fc3d5bf47e33630fc8d06bde6c6 (patch) | |
tree | ba6b6ef637dd2280e34d643efa67dc994b96c80c /src/pyscanner.l | |
parent | 03894677569451502c4bbc0b5f656244357dd907 (diff) | |
download | Doxygen-ec98b6f662024fc3d5bf47e33630fc8d06bde6c6.zip Doxygen-ec98b6f662024fc3d5bf47e33630fc8d06bde6c6.tar.gz Doxygen-ec98b6f662024fc3d5bf47e33630fc8d06bde6c6.tar.bz2 |
Add support of dict/set in annotations and default values
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; |