Skip to content

Commit

Permalink
Merge remote-tracking branch 'davegraziosi/master'
Browse files Browse the repository at this point in the history
Fix #6 "Unexpected 'MATH'" error
  • Loading branch information
mistic100 committed Aug 18, 2018
2 parents 14671c0 + e317e02 commit cce2e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lexer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ class Lexer
@sortOrderToken() or
@seperatorToken() or
@operatorToken() or
@numberToken() or
@mathToken() or
@dotToken() or
@conditionalToken() or
@betweenToken() or
@subSelectOpToken() or
@subSelectUnaryOpToken() or
@numberToken() or
@stringToken() or
@parameterToken() or
@parensToken() or
Expand Down Expand Up @@ -170,7 +170,7 @@ class Lexer
WHITESPACE = /^[ \n\r]+/
LITERAL = /^`?([a-z_][a-z0-9_]{0,}(\:(number|float|string|date|boolean))?)`?/i
PARAMETER = /^\$([a-z0-9_]+(\:(number|float|string|date|boolean))?)/
NUMBER = /^[0-9]+(\.[0-9]+)?/
NUMBER = /^\s*[+-]?[0-9]+(\.[0-9]+)?/
STRING = /^'((?:[^\\']+?|\\.|'')*)'(?!')/
DBLSTRING = /^"([^\\"]*(?:\\.[^\\"]*)*)"/

Expand Down

0 comments on commit cce2e5e

Please sign in to comment.