diff options
Diffstat (limited to 'crates/parser/src/grammar/attributes.rs')
-rw-r--r-- | crates/parser/src/grammar/attributes.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/parser/src/grammar/attributes.rs b/crates/parser/src/grammar/attributes.rs index f3158ade3..dab0f62c3 100644 --- a/crates/parser/src/grammar/attributes.rs +++ b/crates/parser/src/grammar/attributes.rs | |||
@@ -2,19 +2,19 @@ | |||
2 | 2 | ||
3 | use super::*; | 3 | use super::*; |
4 | 4 | ||
5 | pub(super) fn inner_attributes(p: &mut Parser) { | 5 | pub(super) fn inner_attrs(p: &mut Parser) { |
6 | while p.at(T![#]) && p.nth(1) == T![!] { | 6 | while p.at(T![#]) && p.nth(1) == T![!] { |
7 | attribute(p, true) | 7 | attr(p, true) |
8 | } | 8 | } |
9 | } | 9 | } |
10 | 10 | ||
11 | pub(super) fn outer_attributes(p: &mut Parser) { | 11 | pub(super) fn outer_attrs(p: &mut Parser) { |
12 | while p.at(T![#]) { | 12 | while p.at(T![#]) { |
13 | attribute(p, false) | 13 | attr(p, false) |
14 | } | 14 | } |
15 | } | 15 | } |
16 | 16 | ||
17 | fn attribute(p: &mut Parser, inner: bool) { | 17 | fn attr(p: &mut Parser, inner: bool) { |
18 | let attr = p.start(); | 18 | let attr = p.start(); |
19 | assert!(p.at(T![#])); | 19 | assert!(p.at(T![#])); |
20 | p.bump(T![#]); | 20 | p.bump(T![#]); |