Skip to content

Commit

Permalink
Tightened capture scope of BARE_HEX_LITERAL, added comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
mansellan committed Jun 23, 2018
1 parent 2a8e2bb commit b2cb701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rubberduck.Parsing/Grammar/VBALexer.g4
Expand Up @@ -302,7 +302,8 @@ WS : [ \t];
GUIDLITERAL : '{' [0-9A-F]+ '-' [0-9A-F]+ '-' [0-9A-F]+ '-' [0-9A-F]+ '-' [0-9A-F]+ '}';
IDENTIFIER : ~[[\](){}\r\n\t.,'"|!@#$%^&*\-+:=; 0-9-/\\-] ~[[\](){}\r\n\t.,'"|!@#$%^&*\-+:=; -]*;
LINE_CONTINUATION : [ \t]* UNDERSCORE [ \t]* '\r'? '\n';
BARE_HEX_LITERAL : [0-9a-fA-F]+;
// The following rule is needed in order to capture hex literals without format prefixes which start with a digit. Needed for VBForm resources.
BARE_HEX_LITERAL : [0-9] [0-9a-fA-F]*;
fragment LETTER : [a-zA-Z_äöüÄÖÜ];
fragment DIGIT : [0-9];
fragment LETTERORDIGIT : [a-zA-Z0-9_äöüÄÖÜ];
Expand Down

0 comments on commit b2cb701

Please sign in to comment.