Recognize numbers before barewords
This commit is contained in:
@@ -103,16 +103,16 @@ static int yyreset(void)
|
||||
return jsonSTRING;
|
||||
}
|
||||
|
||||
<JSON>{barechar}+ {
|
||||
yylval.Str = dbmfStrdup((char *) yytext);
|
||||
return jsonBARE;
|
||||
}
|
||||
|
||||
<JSON>{number} {
|
||||
yylval.Str = dbmfStrdup((char *) yytext);
|
||||
return jsonNUMBER;
|
||||
}
|
||||
|
||||
<JSON>{barechar}+ {
|
||||
yylval.Str = dbmfStrdup((char *) yytext);
|
||||
return jsonBARE;
|
||||
}
|
||||
|
||||
<INITIAL,JSON>{whitespace} ;
|
||||
|
||||
<INITIAL,JSON>. {
|
||||
|
||||
Reference in New Issue
Block a user