diff options
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index 1ede3b4..6de1627 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -377,6 +377,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3} %x St_IntRef %x St_Text %x St_SkipTitle +%x St_Anchor %x St_Sections %s St_SecLabel1 @@ -724,6 +725,14 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3} return 0; } +<St_Anchor>{LABELID}{WS}? { // anchor + g_token->name = QCString(yytext).stripWhiteSpace(); + return TK_WORD; + } +<St_Anchor>. { + unput(*yytext); + return 0; + } <St_Ref>{REFWORD} { // label to refer to g_token->name=yytext; return TK_WORD; @@ -1090,6 +1099,11 @@ void doctokenizerYYsetStateSkipTitle() BEGIN(St_SkipTitle); } +void doctokenizerYYsetStateAnchor() +{ + BEGIN(St_Anchor); +} + void doctokenizerYYcleanup() { yy_delete_buffer( YY_CURRENT_BUFFER ); |