Fix to bl.tok = path

This commit is contained in:
gingerBill
2024-06-03 22:55:24 +01:00
parent dc6a8e5ffb
commit 0ef0894213

View File

@@ -1204,7 +1204,7 @@ parse_foreign_decl :: proc(p: ^Parser) -> ^ast.Decl {
path := expect_token(p, .String)
reserve(&fullpaths, 1)
bl := ast.new(ast.Basic_Lit, path.pos, end_pos(path))
bl.tok = tok
bl.tok = path
append(&fullpaths, bl)
}