Skip to content

Commit

Permalink
fix #157 parsing error with null/true/false, jison 0.4.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas TRIAU committed Oct 6, 2016
1 parent c8f65c0 commit 7639d0c
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 93 deletions.
4 changes: 2 additions & 2 deletions lib/parser/constraint/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ var grammar = {
["\\s+(notLike|NOT_LIKE)\\b", "return '!=~';"],
["\\s+(and|AND)\\b", "return '&&';"],
["\\s+(or|OR)\\b", "return '||';"],
["\\s+null\\b", "return 'NULL';"],
["\\s+(true|false)\\b", "return 'BOOLEAN';"],
["\\s*(null)\\b", "return 'NULL';"],
["\\s*(true|false)\\b", "return 'BOOLEAN';"],
["\\s+", "/* skip whitespace */"],
["-?[0-9]+(?:\\.[0-9]+)?\\b", "return 'NUMBER';"],
["\'[^\']*\'", "return 'STRING';"],
Expand Down
Loading

0 comments on commit 7639d0c

Please sign in to comment.