add #config to odin parser
Update the `core:odin` parser for the new `#config` idiom.
This commit is contained in:
1 parent
15c4077806
commit
0b67de47d6
1 file changed
+1
-1
@@ -1914,7 +1914,7 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr {
|
|||||||
bd.tok = tok;
|
bd.tok = tok;
|
||||||
bd.name = name.text;
|
bd.name = name.text;
|
||||||
return bd;
|
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 := ast.new(ast.Basic_Directive, tok.pos, end_pos(name));
|
||||||
bd.tok = tok;
|
bd.tok = tok;
|
||||||
bd.name = name.text;
|
bd.name = name.text;
|
||||||
|
|||||||
Reference in new issue
Block a user