forked from westes/flex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scanner: Fix scan.l xgettext warnings.
xgettext was not very clever at interpreting lex patterns and can get confused when seeing unquoted quotation marks, and emit warnings for them. Now fix the warnings by properly quoting the quotation marks in lex regex patterns. Example Original: \"[^"\n]*\" -> "warning: unterminated string literal" Fixed: "\""[^""\n]*"\"" -> OK My basic build test shows that the generated stage1scan.c is bit-identical to the original. Signed-off-by: Kang-Che Sung <[email protected]>
- Loading branch information
1 parent
e104f55
commit d5023f5
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters