diff options
author | leino <unknown> | 2015-08-11 19:26:35 -0700 |
---|---|---|
committer | leino <unknown> | 2015-08-11 19:26:35 -0700 |
commit | 4325b50ed7732bdd2b7b7455bd290f385d0f5383 (patch) | |
tree | 28c8dc232826b6ba3a4e8851ab34a0f61253e91d /Source/Dafny/Parser.cs | |
parent | 34cb773ec61c32479c8d189b23e000af956cc28e (diff) |
Disallow user-defined attributes that begin with an underscore
Diffstat (limited to 'Source/Dafny/Parser.cs')
-rw-r--r-- | Source/Dafny/Parser.cs | 6 |
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);
}
|