diff options
author | Rustan Leino <unknown> | 2013-08-02 21:44:37 -0700 |
---|---|---|
committer | Rustan Leino <unknown> | 2013-08-02 21:44:37 -0700 |
commit | 8af0f2d97ab5ca1a212c7f4901c43059ccb08e36 (patch) | |
tree | f412217ac7bb4e348669f9b34d121349c187e294 /Source/DafnyExtension | |
parent | 0487bbe1d95c08a458e496240547127f03a7be3b (diff) |
Introduced keywords "lemma" (like a "ghost method", but not allowed to have a "modifies" clause) and "colemma" (synonymous with "comethod"; perhaps "comethod" will go away at some point)
Diffstat (limited to 'Source/DafnyExtension')
-rw-r--r-- | Source/DafnyExtension/OutliningTagger.cs | 1 | ||||
-rw-r--r-- | Source/DafnyExtension/TokenTagger.cs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Source/DafnyExtension/OutliningTagger.cs b/Source/DafnyExtension/OutliningTagger.cs index 3bbd0b64..d643da5d 100644 --- a/Source/DafnyExtension/OutliningTagger.cs +++ b/Source/DafnyExtension/OutliningTagger.cs @@ -172,6 +172,7 @@ namespace DafnyLanguage var nm =
m is Dafny.Constructor ? "constructor" :
m is Dafny.CoMethod ? "comethod" :
+ m is Dafny.Lemma ? "lemma" :
// m is Dafny.PrefixMethod ? "prefix method" : // this won't ever occur here
"method";
if (m.IsGhost && !(m is Dafny.CoMethod)) {
diff --git a/Source/DafnyExtension/TokenTagger.cs b/Source/DafnyExtension/TokenTagger.cs index 625973ad..4a610c73 100644 --- a/Source/DafnyExtension/TokenTagger.cs +++ b/Source/DafnyExtension/TokenTagger.cs @@ -264,6 +264,7 @@ namespace DafnyLanguage case "choose":
case "class":
case "codatatype":
+ case "colemma":
case "comethod":
case "constructor":
case "copredicate":
@@ -286,6 +287,7 @@ namespace DafnyLanguage case "invariant":
case "iterator":
case "label":
+ case "lemma":
case "map":
case "match":
case "method":
|