Browse Source

Fix to `bl.tok = path`

gingerBill 1 year ago
parent
commit
0ef0894213
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/odin/parser/parser.odin

+ 1 - 1
core/odin/parser/parser.odin

@@ -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)
 		}