Skip to content

Commit c29f99e

Browse files
committed
fixes #1044 (relaxed IDENTIFIER lexer rule to allow non-LETTER characters)
1 parent 0be5e8b commit c29f99e

File tree

2 files changed

+799
-798
lines changed

2 files changed

+799
-798
lines changed

Rubberduck.Parsing/Grammar/VBA.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ 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')+;
911911
// identifier
912-
IDENTIFIER : LETTER (LETTERORDIGIT)* | L_SQUARE_BRACKET (~[!\]\r\n])+ R_SQUARE_BRACKET;
912+
IDENTIFIER : (~[!\]\(\)\r\n\t ])+ | L_SQUARE_BRACKET (~[!\]\r\n])+ R_SQUARE_BRACKET;
913913
// whitespace, line breaks, comments, ...
914914
LINE_CONTINUATION : [ \t]+ '_' '\r'? '\n' -> skip;
915915
NEWLINE : (':' WS?) | (WS? ('\r'? '\n') WS?);

0 commit comments

Comments
 (0)