Skip to content

Commit

Permalink
Added '+' to lexer to fix issue found when + is inside a string
Browse files Browse the repository at this point in the history
Signed-off-by: Maurice Garcia <[email protected]>
  • Loading branch information
Maurice Garcia committed Jul 24, 2015
1 parent 0c749a2 commit c1d8c2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ANTLR/grammar/tlv.g4
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ DOUBLE_QUOTE : '"';
LBRACKET : '\[';
RBRACKET : '\]';
TICK : '`';
PLUS : '+';

/* ************************************************************************************************
* Number Parsers
Expand Down Expand Up @@ -67,7 +68,8 @@ HEX_BYTE_LOWER_CASE : HEX_NIBBLE_LOWERCASE HEX_NIBBLE_LOWERCASE;
ALPHA_NUMERIC : ([a-zA-Z0-9]);

//mgarcia - 150416 - Added $
IDENTIFIER : ([a-zA-Z0-9]|'-'|'_'|'\''|'$'|'.')+;
//mgarcia - 150724 - Added +
IDENTIFIER : ([a-zA-Z0-9]|'-'|'_'|'\''|'$'|'.'|'+')+;

SINGLE_QUOTE_STRING : SINGLE_QUOTE IDENTIFIER SINGLE_QUOTE;

Expand Down

0 comments on commit c1d8c2b

Please sign in to comment.