diff options
author | rustanleino <unknown> | 2010-08-06 21:37:02 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2010-08-06 21:37:02 +0000 |
commit | 1a482506146a5b48ba38f774534cefbf14571cd4 (patch) | |
tree | 582631ae5349382d8fd8ede65627987fb8e7bda2 /Util | |
parent | 31596ea32f6fd2e646e1d477f35369ffebf1f3d8 (diff) |
Dafny: Fixed VS 2010 mode to really include all Dafny keywords
Diffstat (limited to 'Util')
-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"
|