projects
/
oweals
/
jsonpath.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lexer, parser, matcher: extend grammar to allow comma separated keys/indexes as more...
[oweals/jsonpath.git]
/
lexer.l
diff --git
a/lexer.l
b/lexer.l
index 18937e888355774c04e7d7883d8a017b19ad08a5..d1844a296e46978681845cb1658e12e4c0a01183 100644
(file)
--- a/
lexer.l
+++ b/
lexer.l
@@
-77,6
+77,7
@@
BROPEN "["
BRCLOSE "]"
POPEN "("
PCLOSE ")"
+COMMA ","
ROOT "$"
THIS "@"
@@
-160,6
+161,7
@@
WS [ \t\n]*
{BRCLOSE} { return T_BRCLOSE; }
{POPEN} { return T_POPEN; }
{PCLOSE} { return T_PCLOSE; }
+{COMMA} { return T_UNION; }
{ROOT} { return T_ROOT; }
{THIS} { return T_THIS; }