update lexer

This commit is contained in:
Bilal Catic
2020-02-10 14:32:54 +01:00
parent 66c01702c8
commit b2cdcfbd61

View File

@@ -66,13 +66,13 @@ class Query < Racc::Parser
when (text = @ss.scan(/\)/))
action { return [:R_BRACKET, text] }
when (text = @ss.scan(/(?i)or/))
when (text = @ss.scan(/(?i)\bor\b/))
action { return [:OPERATOR_OR, text] }
when (text = @ss.scan(/(?i)and/))
when (text = @ss.scan(/(?i)\band\b/))
action { return [:OPERATOR_AND, text] }
when (text = @ss.scan(/(?i)not/))
when (text = @ss.scan(/(?i)\bnot\b/))
action { return [:OPERATOR_NOT, text] }
when (text = @ss.scan(/"([^"]*)"/))