mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-16 08:04:07 +00:00
add #config to odin parser
Update the `core:odin` parser for the new `#config` idiom.
This commit is contained in:
@@ -1914,7 +1914,7 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr {
|
||||
bd.tok = tok;
|
||||
bd.name = name.text;
|
||||
return bd;
|
||||
case "location", "load", "assert", "defined":
|
||||
case "location", "load", "assert", "defined", "config":
|
||||
bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(name));
|
||||
bd.tok = tok;
|
||||
bd.name = name.text;
|
||||
|
||||
Reference in New Issue
Block a user