From a783d85f0a2aabe141d2472134911ddf1cf5bd42 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Sun, 9 Feb 2020 22:29:35 +0100 Subject: [PATCH] fix lexer specification - skip keywords if they are part of the search term --- specification.rex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification.rex b/specification.rex index 4ac4649..c48b945 100644 --- a/specification.rex +++ b/specification.rex @@ -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 \: