From 1d6eef1350ee0793fcd2a0eb191cdb127b76a49d Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 11 Jun 2021 18:12:51 +0200 Subject: Update ungrammar --- crates/parser/src/grammar/attributes.rs | 3 +++ crates/parser/src/syntax_kind/generated.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/parser') diff --git a/crates/parser/src/grammar/attributes.rs b/crates/parser/src/grammar/attributes.rs index b8242cd2f..a44c5e484 100644 --- a/crates/parser/src/grammar/attributes.rs +++ b/crates/parser/src/grammar/attributes.rs @@ -13,6 +13,7 @@ pub(super) fn outer_attrs(p: &mut Parser) { } pub(super) fn meta(p: &mut Parser) { + let meta = p.start(); paths::use_path(p); match p.current() { @@ -25,6 +26,8 @@ pub(super) fn meta(p: &mut Parser) { T!['('] | T!['['] | T!['{'] => items::token_tree(p), _ => {} } + + meta.complete(p, META); } fn attr(p: &mut Parser, inner: bool) { diff --git a/crates/parser/src/syntax_kind/generated.rs b/crates/parser/src/syntax_kind/generated.rs index bcefd183a..5f10b82de 100644 --- a/crates/parser/src/syntax_kind/generated.rs +++ b/crates/parser/src/syntax_kind/generated.rs @@ -220,7 +220,7 @@ pub enum SyntaxKind { ITEM_LIST, ASSOC_ITEM_LIST, ATTR, - META_ITEM, + META, USE_TREE, USE_TREE_LIST, PATH, -- cgit v1.2.3