diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-26 14:12:01 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-26 14:12:01 +0800 |
commit | e584ea9876b53304880733ca3928dbad334c0c0d (patch) | |
tree | afde5da8f015aefd9569ebd6b63a6233c4167837 /src/macro_rules/mod.cpp | |
parent | fbba1b4d8412e70e7114326d0517a13b1d4bc7a2 (diff) | |
download | mrust-e584ea9876b53304880733ca3928dbad334c0c0d.tar.gz |
Parse - Handle attributes directly on items (for :item capture)
Diffstat (limited to 'src/macro_rules/mod.cpp')
-rw-r--r-- | src/macro_rules/mod.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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:
|