diff options
Diffstat (limited to 'util/cbfstool/fmd_scanner.l')
-rw-r--r-- | util/cbfstool/fmd_scanner.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/cbfstool/fmd_scanner.l b/util/cbfstool/fmd_scanner.l index 82969594a7..3e0f3133b1 100644 --- a/util/cbfstool/fmd_scanner.l +++ b/util/cbfstool/fmd_scanner.l @@ -24,13 +24,16 @@ int copy_string(const char *src); %} %option noyywrap +%s FLAGS MULTIPLIER [KMG] %% - [[:space:]]+ /* Eat whitespace. */ #.*$ /* Eat comments. */ +\( BEGIN(FLAGS); return *yytext; +<FLAGS>\) BEGIN(INITIAL); return *yytext; +<FLAGS>CBFS return FLAG_CBFS; 0{MULTIPLIER}? | [1-9][0-9]*{MULTIPLIER}? return parse_integer(yytext, 10); 0[0-9]+{MULTIPLIER}? return OCTAL; |