diff options
author | Aleksey Kladov <[email protected]> | 2020-08-13 16:58:35 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-13 16:59:27 +0100 |
commit | 6bc2633c90cedad057c5201d1ab7f67b57247004 (patch) | |
tree | 4293492e643f9a604c5f30e051289bcea182694c /crates/parser/src/grammar/attributes.rs | |
parent | 1b0c7701cc97cd7bef8bb9729011d4cf291a60c5 (diff) |
Align parser names with grammar
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![#]); |