diff options
Diffstat (limited to 'crates/parser')
-rw-r--r-- | crates/parser/src/grammar.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs index 6913e9ec2..6c0e22722 100644 --- a/crates/parser/src/grammar.rs +++ b/crates/parser/src/grammar.rs | |||
@@ -18,7 +18,7 @@ | |||
18 | //! // fn foo() {} | 18 | //! // fn foo() {} |
19 | //! ``` | 19 | //! ``` |
20 | //! | 20 | //! |
21 | //! After adding a new inline-test, run `cargo xtask codegen` to | 21 | //! After adding a new inline-test, run `cargo test -p xtask` to |
22 | //! extract it as a standalone text-fixture into | 22 | //! extract it as a standalone text-fixture into |
23 | //! `crates/syntax/test_data/parser/`, and run `cargo test` once to | 23 | //! `crates/syntax/test_data/parser/`, and run `cargo test` once to |
24 | //! create the "gold" value. | 24 | //! create the "gold" value. |
@@ -95,7 +95,7 @@ pub(crate) mod fragments { | |||
95 | // https://doc.rust-lang.org/reference/paths.html#simple-paths | 95 | // https://doc.rust-lang.org/reference/paths.html#simple-paths |
96 | // The start of an meta must be a simple path | 96 | // The start of an meta must be a simple path |
97 | match p.current() { | 97 | match p.current() { |
98 | IDENT | T![::] | T![super] | T![self] | T![crate] => p.bump_any(), | 98 | IDENT | T![super] | T![self] | T![crate] => p.bump_any(), |
99 | T![=] => { | 99 | T![=] => { |
100 | p.bump_any(); | 100 | p.bump_any(); |
101 | match p.current() { | 101 | match p.current() { |
@@ -105,6 +105,7 @@ pub(crate) mod fragments { | |||
105 | } | 105 | } |
106 | break; | 106 | break; |
107 | } | 107 | } |
108 | _ if p.at(T![::]) => p.bump(T![::]), | ||
108 | _ => break, | 109 | _ => break, |
109 | } | 110 | } |
110 | } | 111 | } |