From e584ea9876b53304880733ca3928dbad334c0c0d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 26 Sep 2016 14:12:01 +0800 Subject: Parse - Handle attributes directly on items (for :item capture) --- src/macro_rules/mod.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/macro_rules/mod.cpp') diff --git a/src/macro_rules/mod.cpp b/src/macro_rules/mod.cpp index 3d1f04c5..effa03cb 100644 --- a/src/macro_rules/mod.cpp +++ b/src/macro_rules/mod.cpp @@ -111,6 +111,8 @@ bool is_token_stmt(eTokenType tt) { bool is_token_item(eTokenType tt) { switch( tt ) { + case TOK_ATTR_OPEN: + case TOK_RWORD_PUB: case TOK_RWORD_UNSAFE: case TOK_RWORD_TYPE: -- cgit v1.2.3