mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Recover better for more delimited sequences
This commit is contained in:
parent
244a48d13d
commit
4f6b5f41d4
20 changed files with 153 additions and 124 deletions
|
@ -1,5 +1,7 @@
|
|||
use super::*;
|
||||
|
||||
pub(super) const ATTRIBUTE_FIRST: TokenSet = TokenSet::new(&[T![#]]);
|
||||
|
||||
pub(super) fn inner_attrs(p: &mut Parser<'_>) {
|
||||
while p.at(T![#]) && p.nth(1) == T![!] {
|
||||
attr(p, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue