Finalize const&static grammar

This commit is contained in:
Aleksey Kladov 2020-07-30 18:02:20 +02:00
parent 6b25f640a6
commit 3cd4112bdc
39 changed files with 138 additions and 137 deletions

View file

@ -3,11 +3,11 @@
use super::*;
pub(super) fn static_def(p: &mut Parser, m: Marker) {
const_or_static(p, m, T![static], STATIC_DEF)
const_or_static(p, m, T![static], STATIC)
}
pub(super) fn const_def(p: &mut Parser, m: Marker) {
const_or_static(p, m, T![const], CONST_DEF)
const_or_static(p, m, T![const], CONST)
}
fn const_or_static(p: &mut Parser, m: Marker, kw: SyntaxKind, def: SyntaxKind) {

View file

@ -131,8 +131,8 @@ pub enum SyntaxKind {
EXTERN_CRATE,
MODULE,
USE,
STATIC_DEF,
CONST_DEF,
STATIC,
CONST,
TRAIT_DEF,
IMPL_DEF,
TYPE_ALIAS,