From 10e8c99e1c4ce73256c5d35ce69d11fa2736450f Mon Sep 17 00:00:00 2001 From: Christoph Schueler Date: Thu, 17 Jan 2019 12:16:14 +0100 Subject: [PATCH] STRINGs without escape sequences --- pydbc/dbc.g4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pydbc/dbc.g4 b/pydbc/dbc.g4 index 3806f8f..84d55fb 100644 --- a/pydbc/dbc.g4 +++ b/pydbc/dbc.g4 @@ -375,14 +375,18 @@ WS: (' ' | '\t' | '\r' | '\n') -> channel(HIDDEN) ; +/* STRING: '"' ( ESC_SEQ | ~('\\'|'"') )* '"' ; +*/ + +STRING: + '"' ( ~('"') )* '"' + ; SIGN: '+' | '-' ; - -