mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Update grammar
This commit is contained in:
parent
5af32aeb2b
commit
bff8dd0949
37 changed files with 150 additions and 151 deletions
|
@ -117,7 +117,7 @@ fn pointer_type(p: &mut Parser) {
|
|||
};
|
||||
|
||||
type_no_bounds(p);
|
||||
m.complete(p, POINTER_TYPE);
|
||||
m.complete(p, PTR_TYPE);
|
||||
}
|
||||
|
||||
fn array_or_slice_type(p: &mut Parser) {
|
||||
|
@ -163,7 +163,7 @@ fn reference_type(p: &mut Parser) {
|
|||
p.eat(LIFETIME);
|
||||
p.eat(T![mut]);
|
||||
type_no_bounds(p);
|
||||
m.complete(p, REFERENCE_TYPE);
|
||||
m.complete(p, REF_TYPE);
|
||||
}
|
||||
|
||||
// test placeholder_type
|
||||
|
@ -201,7 +201,7 @@ fn fn_pointer_type(p: &mut Parser) {
|
|||
// test fn_pointer_type_with_ret
|
||||
// type F = fn() -> ();
|
||||
opt_fn_ret_type(p);
|
||||
m.complete(p, FN_POINTER_TYPE);
|
||||
m.complete(p, FN_PTR_TYPE);
|
||||
}
|
||||
|
||||
pub(super) fn for_binder(p: &mut Parser) {
|
||||
|
|
|
@ -143,12 +143,12 @@ pub enum SyntaxKind {
|
|||
TUPLE_TYPE,
|
||||
NEVER_TYPE,
|
||||
PATH_TYPE,
|
||||
POINTER_TYPE,
|
||||
PTR_TYPE,
|
||||
ARRAY_TYPE,
|
||||
SLICE_TYPE,
|
||||
REFERENCE_TYPE,
|
||||
REF_TYPE,
|
||||
INFER_TYPE,
|
||||
FN_POINTER_TYPE,
|
||||
FN_PTR_TYPE,
|
||||
FOR_TYPE,
|
||||
IMPL_TRAIT_TYPE,
|
||||
DYN_TRAIT_TYPE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue