We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43470a0 commit 07c978cCopy full SHA for 07c978c
2 files changed
crates/plotnik-lib/src/parser/grammar.rs
@@ -706,6 +706,7 @@ impl Parser<'_> {
706
fn try_parse_capture(&mut self, checkpoint: Checkpoint) {
707
if self.peek() == SyntaxKind::At {
708
self.start_node_at(checkpoint, SyntaxKind::Capture);
709
+ self.drain_trivia();
710
self.parse_capture_suffix();
711
self.finish_node();
712
}
crates/plotnik-lib/src/parser/tests/grammar/trivia_tests.rs
@@ -17,9 +17,9 @@ fn whitespace_preserved() {
17
ParenOpen "("
18
Id "identifier"
19
ParenClose ")"
20
+ Whitespace " "
21
At "@"
22
Id "name"
- Whitespace " "
23
Newline "\n"
24
"#);
25
0 commit comments