Skip to content

Commit

Permalink
fix incorrect handling of ".include" in identifiers (#2498)
Browse files Browse the repository at this point in the history
Co-authored-by: Mingtao <mingtaoh@qq.com>

fix #2497
  • Loading branch information
Mingtao521 committed Jul 3, 2024
1 parent b82ae20 commit e6cc668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/scanner.ll
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ WS [ \t\r\v\f]
".pragma"/{WS} { return yy::parser::make_PRAGMA(yylloc); }
".plan"/{WS} { return yy::parser::make_PLAN(yylloc); }
".lattice"/{WS} { return yy::parser::make_LATTICE(yylloc); }
".include" {
".include"/{WS} {
yyinfo.LastIncludeDirectiveLoc = yylloc;
BEGIN(INCLUDE);
}
Expand Down

0 comments on commit e6cc668

Please sign in to comment.