Laytan Laats 1 year ago
parent
commit
27f9f0ba17
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/odin/parser/parser.odin

+ 3 - 3
core/odin/parser/parser.odin

@@ -2261,18 +2261,18 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr {
 			hp.type = type
 			hp.type = type
 			return hp
 			return hp
 
 
-		case "file", "line", "procedure", "caller_location":
+		case "file", "directory", "line", "procedure", "caller_location":
 			bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name))
 			bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name))
 			bd.tok  = tok
 			bd.tok  = tok
 			bd.name = name.text
 			bd.name = name.text
 			return bd
 			return bd
-		case "location", "load", "assert", "defined", "config":
+
+		case "location", "exists", "load", "load_directory", "load_hash", "hash", "assert", "panic", "defined", "config":
 			bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name))
 			bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name))
 			bd.tok  = tok
 			bd.tok  = tok
 			bd.name = name.text
 			bd.name = name.text
 			return parse_call_expr(p, bd)
 			return parse_call_expr(p, bd)
 
 
-
 		case "soa":
 		case "soa":
 			bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name))
 			bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name))
 			bd.tok  = tok
 			bd.tok  = tok