update lexer
This commit is contained in:
@@ -66,13 +66,13 @@ class Query < Racc::Parser
|
|||||||
when (text = @ss.scan(/\)/))
|
when (text = @ss.scan(/\)/))
|
||||||
action { return [:R_BRACKET, text] }
|
action { return [:R_BRACKET, text] }
|
||||||
|
|
||||||
when (text = @ss.scan(/(?i)or/))
|
when (text = @ss.scan(/(?i)\bor\b/))
|
||||||
action { return [:OPERATOR_OR, text] }
|
action { return [:OPERATOR_OR, text] }
|
||||||
|
|
||||||
when (text = @ss.scan(/(?i)and/))
|
when (text = @ss.scan(/(?i)\band\b/))
|
||||||
action { return [:OPERATOR_AND, text] }
|
action { return [:OPERATOR_AND, text] }
|
||||||
|
|
||||||
when (text = @ss.scan(/(?i)not/))
|
when (text = @ss.scan(/(?i)\bnot\b/))
|
||||||
action { return [:OPERATOR_NOT, text] }
|
action { return [:OPERATOR_NOT, text] }
|
||||||
|
|
||||||
when (text = @ss.scan(/"([^"]*)"/))
|
when (text = @ss.scan(/"([^"]*)"/))
|
||||||
|
|||||||
Reference in New Issue
Block a user