Skip to content

Commit a49f845

Browse files
committed
fixes #1059 (also fixes broken GetDefaultTodoMarkersTest)
1 parent c29f99e commit a49f845

File tree

4 files changed

+1148
-1147
lines changed

4 files changed

+1148
-1147
lines changed

Rubberduck.Parsing/Grammar/VBA.g4

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -908,14 +908,15 @@ COLORLITERAL : '&H' [0-9A-F]+ '&'?;
908908
INTEGERLITERAL : (PLUS|MINUS)? ('0'..'9')+ ( ('e' | 'E') INTEGERLITERAL)* ('#' | '&')?;
909909
DOUBLELITERAL : (PLUS|MINUS)? ('0'..'9')* '.' ('0'..'9')+ ( ('e' | 'E') (PLUS|MINUS)? ('0'..'9')+)* ('#' | '&')?;
910910
BYTELITERAL : ('0'..'9')+;
911-
// identifier
912-
IDENTIFIER : (~[!\]\(\)\r\n\t ])+ | L_SQUARE_BRACKET (~[!\]\r\n])+ R_SQUARE_BRACKET;
913911
// whitespace, line breaks, comments, ...
914912
LINE_CONTINUATION : [ \t]+ '_' '\r'? '\n' -> skip;
915-
NEWLINE : (':' WS?) | (WS? ('\r'? '\n') WS?);
913+
NEWLINE : (':' WS?) | (WS? ('\r'? '\n') WS?);
916914
COMMENT : WS? ('\'' | ':'? REM WS) (LINE_CONTINUATION | ~('\n' | '\r'))* -> skip;
917915
WS : ([ \t] | LINE_CONTINUATION)+;
918916

917+
// identifier
918+
IDENTIFIER : (~[\[\]\(\)\r\n\t.,'"|!@#$%^&*-+:=; ])+ | L_SQUARE_BRACKET (~[!\]\r\n])+ R_SQUARE_BRACKET;
919+
919920
920921
// letters
921922
fragment LETTER : [a-zA-Z_äöüÄÖÜ];

0 commit comments

Comments
 (0)