summaryrefslogtreecommitdiff
path: root/Source/Dafny/Parser.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-08-11 19:26:35 -0700
committerGravatar leino <unknown>2015-08-11 19:26:35 -0700
commit4325b50ed7732bdd2b7b7455bd290f385d0f5383 (patch)
tree28c8dc232826b6ba3a4e8851ab34a0f61253e91d /Source/Dafny/Parser.cs
parent34cb773ec61c32479c8d189b23e000af956cc28e (diff)
Disallow user-defined attributes that begin with an underscore
Diffstat (limited to 'Source/Dafny/Parser.cs')
-rw-r--r--Source/Dafny/Parser.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Dafny/Parser.cs b/Source/Dafny/Parser.cs
index fd6fb026..7e4b2339 100644
--- a/Source/Dafny/Parser.cs
+++ b/Source/Dafny/Parser.cs
@@ -1033,13 +1033,13 @@ bool IsType(ref IToken pt) {
}
void Attribute(ref Attributes attrs) {
- string name;
+ IToken x; string name;
var args = new List<Expression>();
Expect(45);
Expect(21);
- Expect(1);
- name = t.val;
+ NoUSIdent(out x);
+ name = x.val;
if (StartOf(7)) {
Expressions(args);
}