summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d19123e)
* src/scan-gram.l: Catch incorrect ids after hexadecimal numbers.
+2009-05-05 Akim Demaille <demaille@gostai.com>
+
+ fix hexadecimal token number support.
+ * src/scan-gram.l: Catch incorrect ids after hexadecimal numbers.
+
2009-05-05 Akim Demaille <demaille@gostai.com>
tests: check token numbers.
2009-05-05 Akim Demaille <demaille@gostai.com>
tests: check token numbers.
complain_at (*loc, _("invalid directive: %s"), quote (yytext));
}
complain_at (*loc, _("invalid directive: %s"), quote (yytext));
}
- /* Identifiers may not start with a digit. Yet, don't silently
- accept "1FOO" as "1 FOO". */
- {int}{id} {
- complain_at (*loc, _("invalid identifier: %s"), quote (yytext));
- }
-
"=" return EQUAL;
"|" return PIPE;
";" return SEMICOLON;
"=" return EQUAL;
"|" return PIPE;
";" return SEMICOLON;
+ /* Identifiers may not start with a digit. Yet, don't silently
+ accept "1FOO" as "1 FOO". */
+ {int}{id} {
+ complain_at (*loc, _("invalid identifier: %s"), quote (yytext));
+ }
+
/* Characters. We don't check there is only one. */
"'" STRING_GROW; token_start = loc->start; BEGIN SC_ESCAPED_CHARACTER;
/* Characters. We don't check there is only one. */
"'" STRING_GROW; token_start = loc->start; BEGIN SC_ESCAPED_CHARACTER;