add #config to odin parser

Update the `core:odin` parser for the new `#config` idiom.
This commit is contained in:
Kevin Watters
2020-06-04 10:48:13 -04:00
committed by GitHub
parent 15c4077806
commit 0b67de47d6

View File

@@ -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;