From 517ec716de0f3a08fcd3bed2626b776a36c663f5 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Wed, 29 Jul 2020 16:02:34 +0200 Subject: And one more fix for \ilinebr handling --- src/doctokenizer.l | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/doctokenizer.l b/src/doctokenizer.l index c0c6789..f232c3a 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -974,6 +974,10 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV} } {HTMLTAG} { } +(\n|"\\ilinebr") { /* new line => end of title */ + for (int i=yyleng-1;i>=0;i--) unput(yytext[i]); + return 0; + } {SPCMD1} | {SPCMD2} { /* special command */ g_token->name = yytext+1; @@ -1000,10 +1004,6 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV} g_token->chars=yytext; return TK_WHITESPACE; } -(\n|"\\ilinebr") { /* new line => end of title */ - for (int i=yyleng-1;i>=0;i--) unput(yytext[i]); - return 0; - } "&"{ID}";" { /* symbol */ g_token->name = yytext; return TK_SYMBOL; -- cgit v0.12