fix rex specification and add tests for keyword detection

This commit is contained in:
Bilal Catic
2020-02-10 14:32:37 +01:00
parent b9bfa004c6
commit 66c01702c8
3 changed files with 739 additions and 7 deletions

View File

@@ -3,9 +3,9 @@ macro
L_BRACKET \(
R_BRACKET \)
SPACE \ + # Space char
OPERATOR_OR (?i)or
OPERATOR_AND (?i)and
OPERATOR_NOT (?i)not
OPERATOR_OR (?i)\bor\b
OPERATOR_AND (?i)\band\b
OPERATOR_NOT (?i)\bnot\b
TERM_WITH_QUOTES "([^"]*)"
TERM_WITHOUT_QUOTES [a-zA-Z0-9\-_]+
COLON \: