diff --git a/runtime/Cpp/demo/TLexer.g4 b/runtime/Cpp/demo/TLexer.g4 index 526356c65..b044f3368 100644 --- a/runtime/Cpp/demo/TLexer.g4 +++ b/runtime/Cpp/demo/TLexer.g4 @@ -66,8 +66,9 @@ OpenCurly: '{' -> pushMode(Mode1); CloseCurly: '}' -> popMode; QuestionMark: '?'; Comma: ',' -> skip; -Dollar: '$' -> more, mode(Mode1), type(DUMMY); - +Dollar: '$' -> more, mode(Mode1); +Ampersand: '&' -> type(DUMMY); + String: '"' .*? '"'; Foo: {canTestFoo()}? 'foo' {isItFoo()}? { myFooLexerAction(); }; Bar: 'bar' {isItBar()}? { myBarLexerAction(); };