Skip to content

Commit

Permalink
fix OLS #431, #393
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Jul 18, 2024
1 parent 2b6a926 commit 27f9f0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/odin/parser/parser.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27f9f0b

Please sign in to comment.