Update ungrammar

This commit is contained in:
Jonas Schievink
2021-06-11 18:12:51 +02:00
parent 80b3b74018
commit 1d6eef1350
43 changed files with 801 additions and 676 deletions

View File

@@ -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) {

View File

@@ -220,7 +220,7 @@ pub enum SyntaxKind {
ITEM_LIST,
ASSOC_ITEM_LIST,
ATTR,
META_ITEM,
META,
USE_TREE,
USE_TREE_LIST,
PATH,