diff options
author | Lukas Wirth <[email protected]> | 2021-01-10 15:40:52 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-01-10 16:14:01 +0000 |
commit | e618d129030b10ddd55d76c3e451799c7dba3f8d (patch) | |
tree | 5c421defb6843fd005ad24488f7d040aa704e6f6 /crates/syntax | |
parent | e1430d822e20635170c8da92b928d4d89dd1f680 (diff) |
Replace SyntaxKind usage with T! macro where applicable
Diffstat (limited to 'crates/syntax')
-rw-r--r-- | crates/syntax/src/ast/node_ext.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs index 2aa472fb4..27381ba80 100644 --- a/crates/syntax/src/ast/node_ext.rs +++ b/crates/syntax/src/ast/node_ext.rs | |||
@@ -133,7 +133,7 @@ impl ast::Attr { | |||
133 | first_token.and_then(|token| token.next_token()).as_ref().map(SyntaxToken::kind); | 133 | first_token.and_then(|token| token.next_token()).as_ref().map(SyntaxToken::kind); |
134 | 134 | ||
135 | match (first_token_kind, second_token_kind) { | 135 | match (first_token_kind, second_token_kind) { |
136 | (Some(SyntaxKind::POUND), Some(T![!])) => AttrKind::Inner, | 136 | (Some(T![#]), Some(T![!])) => AttrKind::Inner, |
137 | _ => AttrKind::Outer, | 137 | _ => AttrKind::Outer, |
138 | } | 138 | } |
139 | } | 139 | } |