Skip to content

Commit

Permalink
chore: add support to query hypphen
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Sep 25, 2023
1 parent 6dcd3c2 commit d8217bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions antlr4/org/eclipse/jnosql/query/grammar/Query.g4
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
grammar Query;

select: 'select' fields 'from' entity where? skip? limit? order? EOF;
delete: 'delete' deleteFields? 'from' entity where? EOF;
insert: 'insert' entity (conditions | json) ttl? EOF;
Expand Down Expand Up @@ -55,8 +56,8 @@ parameter: PARAMETER;
STRING : '\'' ( ESC | ~('\\'|'\'') )* '\'' |'"' ( ESC | ~('\\'|'"') )* '"';
INT: [0-9]+;
NUMBER: INT [.]? INT?;
ANY_NAME: [a-zA-Z_.-] [a-zA-Z_.0-9-]*;
PARAMETER:'@'[a-zA-Z._0-9]*;
ANY_NAME: [a-zA-Z_.][a-zA-Z_.0-9-]*;
PARAMETER: '@' ANY_NAME;
WS: [ \t\r\n]+ -> skip ;
SL_COMMENT: '//' .*? '\n' -> skip;
fragment ESC : '\\' (["\\/bfnrt] | UNICODE) ;
Expand Down

0 comments on commit d8217bb

Please sign in to comment.