X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=lexer.l;h=046de730ce2c1b8a80bd3e9416f1f8f907733618;hb=960dafd0b61eb14032d13c1562566618be55133f;hp=18937e888355774c04e7d7883d8a017b19ad08a5;hpb=baeded13085b9cd2f5d866fbcfaee63a52144f07;p=project%2Fjsonpath.git diff --git a/lexer.l b/lexer.l index 18937e8..046de73 100644 --- a/lexer.l +++ b/lexer.l @@ -1,6 +1,6 @@ %{ /* - * Copyright (C) 2013 Jo-Philipp Wich + * Copyright (C) 2013-2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -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; }