Skip to content

Commit b9a0566

Browse files
committed
solve parsing conflict
1 parent 7813944 commit b9a0566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

titan-compiler/parser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ local grammar = re.compile([[
249249
LPAREN^LParPList paramlist RPAREN^RParPList
250250
rettypeopt block END^EndFunc) -> TopLevelFunc
251251
252-
toplevelforeign <- (P FOREIGN FUNCTION^ForeignFunc NAME^NameFunc
252+
toplevelforeign <- (P FOREIGN !IMPORT FUNCTION^ForeignFunc NAME^NameFunc
253253
LPAREN^LParPList paramlist RPAREN^RParPList
254254
rettypeopt) -> TopLevelForeignFunc
255255

0 commit comments

Comments
 (0)