mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Finalize const&static grammar
This commit is contained in:
parent
6b25f640a6
commit
3cd4112bdc
39 changed files with 138 additions and 137 deletions
|
@ -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) {
|
||||
|
|
|
@ -131,8 +131,8 @@ pub enum SyntaxKind {
|
|||
EXTERN_CRATE,
|
||||
MODULE,
|
||||
USE,
|
||||
STATIC_DEF,
|
||||
CONST_DEF,
|
||||
STATIC,
|
||||
CONST,
|
||||
TRAIT_DEF,
|
||||
IMPL_DEF,
|
||||
TYPE_ALIAS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue