diff options
-rw-r--r-- | Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs index 0a45490f..ba4fdcc0 100644 --- a/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs +++ b/Util/VS2010/Dafny/DafnyLanguageService/Grammar.cs @@ -13,7 +13,7 @@ namespace Demo NumberLiteral n = TerminalFactory.CreateCSharpNumber("number");
IdentifierTerminal ident = new IdentifierTerminal("Identifier");
- this.MarkReservedWords(
+ this.MarkReservedWords( // NOTE: these keywords must also appear once more below
"class", "ghost", "static", "var", "method", "datatype",
"assert", "assume", "new", "this", "object", "refines", "replaces", "by",
"unlimited", "module", "imports",
@@ -290,6 +290,12 @@ namespace Demo | "new"
| "this"
| "object"
+ | "refines"
+ | "replaces"
+ | "by"
+ | "unlimited"
+ | "module"
+ | "imports"
| "call"
| "if"
| "then"
@@ -297,10 +303,12 @@ namespace Demo | "while"
| "invariant"
| "break"
+ | "label"
| "return"
| "foreach"
- | "match"
- | "case"
+ | "havoc"
+ | "print"
+ | "use"
| "returns"
| "requires"
| "ensures"
|