aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-10 11:08:46 +0000
committerAleksey Kladov <[email protected]>2018-02-10 11:08:46 +0000
commitf746fb6a93a4f0493fc8f5602372c267befe4e48 (patch)
tree1128cfedacaaa867a9a42f5a1de931fe09ad40e7 /src/parser
parent1401f5af4a3f13984da1237b3ad896eb50eada73 (diff)
G: use names in consts
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/grammar/items/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/grammar/items/consts.rs b/src/parser/grammar/items/consts.rs
index c9881d681..8117af706 100644
--- a/src/parser/grammar/items/consts.rs
+++ b/src/parser/grammar/items/consts.rs
@@ -12,7 +12,7 @@ fn const_or_static(p: &mut Parser, kw: SyntaxKind) {
12 assert!(p.at(kw)); 12 assert!(p.at(kw));
13 p.bump(); 13 p.bump();
14 p.eat(MUT_KW); // TODO: validator to forbid const mut 14 p.eat(MUT_KW); // TODO: validator to forbid const mut
15 p.expect(IDENT); 15 name(p);
16 p.expect(COLON); 16 p.expect(COLON);
17 types::type_ref(p); 17 types::type_ref(p);
18 p.expect(EQ); 18 p.expect(EQ);