mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 02:33:03 +00:00
scanner: use explicit "ignore" statements
* src/scan-gram.l: here.
This commit is contained in:
@@ -148,7 +148,7 @@ splice (\\[ \f\t\v]*\n)*
|
|||||||
/* Comments and white space. */
|
/* Comments and white space. */
|
||||||
"," warn_at (*loc, _("stray ',' treated as white space"));
|
"," warn_at (*loc, _("stray ',' treated as white space"));
|
||||||
[ \f\n\t\v] |
|
[ \f\n\t\v] |
|
||||||
"//".* ;
|
"//".* continue;
|
||||||
"/*" {
|
"/*" {
|
||||||
token_start = loc->start;
|
token_start = loc->start;
|
||||||
context_state = YY_START;
|
context_state = YY_START;
|
||||||
@@ -403,7 +403,7 @@ splice (\\[ \f\t\v]*\n)*
|
|||||||
<SC_YACC_COMMENT>
|
<SC_YACC_COMMENT>
|
||||||
{
|
{
|
||||||
"*/" BEGIN context_state;
|
"*/" BEGIN context_state;
|
||||||
.|\n ;
|
.|\n continue;
|
||||||
<<EOF>> unexpected_eof (token_start, "*/"); BEGIN context_state;
|
<<EOF>> unexpected_eof (token_start, "*/"); BEGIN context_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user