aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r--crates/ra_parser/src/parser.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/ra_parser/src/parser.rs b/crates/ra_parser/src/parser.rs
index 99b976c4f..8eff930db 100644
--- a/crates/ra_parser/src/parser.rs
+++ b/crates/ra_parser/src/parser.rs
@@ -129,7 +129,15 @@ impl<'t> Parser<'t> {
129 /// Advances the parser by one token unconditionally 129 /// Advances the parser by one token unconditionally
130 /// Mainly use in `token_tree` parsing 130 /// Mainly use in `token_tree` parsing
131 pub(crate) fn bump_raw(&mut self) { 131 pub(crate) fn bump_raw(&mut self) {
132 let kind = self.token_source.token_kind(self.token_pos); 132 let mut kind = self.token_source.token_kind(self.token_pos);
133
134 // Skip dollars, do_bump will eat these later
135 let mut i = 0;
136 while kind == SyntaxKind::L_DOLLAR || kind == SyntaxKind::R_DOLLAR {
137 kind = self.token_source.token_kind(self.token_pos + i);
138 i += 1;
139 }
140
133 if kind == EOF { 141 if kind == EOF {
134 return; 142 return;
135 } 143 }