From 27f9f0ba171444f48021744af2792bbfa290407b Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Thu, 18 Jul 2024 21:05:33 +0200 Subject: [PATCH] fix OLS #431, #393 --- core/odin/parser/parser.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index e164c778b..4d045f785 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -2261,18 +2261,18 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr { hp.type = type 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.tok = tok bd.name = name.text 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.tok = tok bd.name = name.text return parse_call_expr(p, bd) - case "soa": bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name)) bd.tok = tok