JSON5 in dbStatic: Add lexer support for hex integers
dbLex.l accepts hex notation in JSON numbers. Tested in dbStaticTest.db as before.
This commit is contained in:
1 parent
fa4af8b27d
commit
fe177e40fd
2 files changed
+32
-1
No files matched your search
@@ -33,7 +33,10 @@ exp ([eE]{sign}[0-9]+)
|
||||
jsonnum ({int}{frac}?{exp}?)
|
||||
intexp ({int}"."{exp}?)
|
||||
fracexp ({sign}{frac}{exp}?)
|
||||
number ({jsonnum}|{intexp}|{fracexp})
|
||||
|
||||
zerox ("0x"|"0X")
|
||||
hexint ({sign}{zerox}{hexdigit}+)
|
||||
number ({jsonnum}|{intexp}|{fracexp}|{hexint})
|
||||
|
||||
%{
|
||||
#undef YY_INPUT
|
||||
|
||||
Reference in new issue
Block a user