summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-08-19 14:10:55 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-08-19 14:10:55 (GMT)
commit0b4b3698b29436b299d4e4a315d610bc1ab98acb (patch)
tree1babc69fbeab1211926ed7462a9db6ec50809d89 /src/doctokenizer.l
parent9ba8bd85999fa7423eb5b44c680e72ad2e9c31bf (diff)
downloadDoxygen-0b4b3698b29436b299d4e4a315d610bc1ab98acb.zip
Doxygen-0b4b3698b29436b299d4e4a315d610bc1ab98acb.tar.gz
Doxygen-0b4b3698b29436b299d4e4a315d610bc1ab98acb.tar.bz2
Bug 691689 - Line numbers for examples
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index e6b8865..a162fb3 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -447,6 +447,7 @@ REFWORD_NOCV {LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
%x St_Snippet
%x St_SetScope
%x St_SetScopeEnd
+%x St_Options
%x St_Sections
%s St_SecLabel1
@@ -1147,6 +1148,16 @@ REFWORD_NOCV {LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->chars=yytext;
return TK_WHITESPACE;
}
+<St_Options>{ID} {
+ g_token->name+=yytext;
+ }
+<St_Options>{WS}*","{WS}*
+<St_Options>{WS} { /* option separator */
+ g_token->name+=",";
+ }
+<St_Options>"}" {
+ return TK_WORD;
+ }
<St_File>{FILEMASK} {
g_token->name = yytext;
return TK_WORD;
@@ -1509,6 +1520,12 @@ void doctokenizerYYsetStateSetScope()
BEGIN(St_SetScope);
}
+void doctokenizerYYsetStateOptions()
+{
+ g_token->name="";
+ BEGIN(St_Options);
+}
+
void doctokenizerYYcleanup()
{
yy_delete_buffer( YY_CURRENT_BUFFER );