From 6f2e468771c527bfd1148283a23d8d2144b530fc Mon Sep 17 00:00:00 2001 From: collin Date: Thu, 16 Jul 2020 01:06:29 -0700 Subject: [PATCH] update protected names --- ast/src/leo.pest | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ast/src/leo.pest b/ast/src/leo.pest index 6a6713bc33..d77d271753 100644 --- a/ast/src/leo.pest +++ b/ast/src/leo.pest @@ -11,17 +11,23 @@ identifier = @{ ((!protected_name ~ ASCII_ALPHA) | (protected_name ~ (ASCII_ALPH protected_name = { "address" | "as" + | "circuit" | "const" | "else" | "false" - | "function" + | "field" | "for" + | "function" + | "group" | "if" + | "import" | "in" | "let" | "mut" | "return" | "static" + | "string" + | "test" | "true" }