Skip to content

Commit e6cc668

Browse files
authored
fix incorrect handling of ".include" in identifiers (#2498)
Co-authored-by: Mingtao <[email protected]> fix #2497
1 parent b82ae20 commit e6cc668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/scanner.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ WS [ \t\r\v\f]
153153
".pragma"/{WS} { return yy::parser::make_PRAGMA(yylloc); }
154154
".plan"/{WS} { return yy::parser::make_PLAN(yylloc); }
155155
".lattice"/{WS} { return yy::parser::make_LATTICE(yylloc); }
156-
".include" {
156+
".include"/{WS} {
157157
yyinfo.LastIncludeDirectiveLoc = yylloc;
158158
BEGIN(INCLUDE);
159159
}

0 commit comments

Comments
 (0)