Recognize numbers before barewords
This commit is contained in:
1 parent
f6c4099634
commit
08b7802009
1 file changed
+5
-5
@@ -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