Recognize numbers before barewords

This commit is contained in:
Andrew Johnson
2016-05-24 11:59:08 +02:00
parent f6c4099634
commit 08b7802009

View File

@@ -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>. {