@@ -99,6 +99,7 @@ catch (RecognitionException re) {
9999// --------------------------------------------------------
100100literal
101101 : STRING_LITERAL { helper.emit($STRING_LITERAL, DroolsEditorType.STRING_CONST); }
102+ | DRL_STRING_LITERAL { helper.emit($DRL_STRING_LITERAL, DroolsEditorType.STRING_CONST); }
102103 | DECIMAL_LITERAL { helper.emit($DECIMAL_LITERAL, DroolsEditorType.NUMERIC_CONST); }
103104 | HEX_LITERAL { helper.emit($HEX_LITERAL, DroolsEditorType.NUMERIC_CONST); }
104105 | FLOAT_LITERAL { helper.emit($FLOAT_LITERAL, DroolsEditorType.NUMERIC_CONST); }
@@ -731,9 +732,6 @@ selector
731732
732733superSuffix
733734 : arguments
734- // TODO syntactic predicates in the form of `(x) => x` can be safely removed but
735- // there was originally `DOT ID ((LEFT_PAREN) => arguments)?`.
736- // Not sure if removing `(LEFT_PAREN) =>` is correct.
737735 | DOT IDENTIFIER (arguments)?
738736 ;
739737
@@ -832,15 +830,16 @@ new_key
832830 ;
833831
834832not_key
835- : {(helper.validateIdentifierKey(DroolsSoftKeywords.NOT))} ? id=IDENTIFIER { helper.emit($id, DroolsEditorType.KEYWORD); }
833+ : {(helper.validateIdentifierKey(DroolsSoftKeywords.NOT))} ? id=DRL_NOT { helper.emit($id, DroolsEditorType.KEYWORD); }
836834 ;
837835
838836in_key
839- : {(helper.validateIdentifierKey(DroolsSoftKeywords.IN))} ? id=IDENTIFIER { helper.emit($id, DroolsEditorType.KEYWORD); }
837+ : {(helper.validateIdentifierKey(DroolsSoftKeywords.IN))} ? id=DRL_IN { helper.emit($id, DroolsEditorType.KEYWORD); }
840838 ;
841839
842840operator_key
843- : {(helper.isPluggableEvaluator(false ))} ? id=IDENTIFIER { helper.emit($id, DroolsEditorType.KEYWORD); }
841+ // TODO get rid of the DRL_MATCHES token or introduce DRL_CONTAINS etc. for consistency.
842+ : {(helper.isPluggableEvaluator(false ))} ? id=(IDENTIFIER |DRL_MATCHES ) { helper.emit($id, DroolsEditorType.KEYWORD); }
844843 ;
845844
846845neg_operator_key
0 commit comments