Don't return negative numbers from the flex tokenizer

Fixes #1374.
Closes #2129.
This commit is contained in:
Eelco Dolstra 2018-05-11 12:02:19 +02:00
parent f3c85f9eb3
commit 1ad19232c4
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
2 changed files with 6 additions and 1 deletions

View File

@ -209,7 +209,11 @@ or { return OR_KW; }
\#[^\r\n]* /* single-line comments */
\/\*([^*]|\*+[^*/])*\*+\/ /* long comments */
{ANY} return yytext[0];
{ANY} {
/* Don't return a negative number, as this will cause
Bison to stop parsing without an error. */
return (unsigned char) yytext[0];
}
}

View File

@ -0,0 +1 @@
123 é 4