aboutsummaryrefslogtreecommitdiff
path: root/crates/mbe
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-01-20 11:04:53 +0000
committerAleksey Kladov <[email protected]>2021-01-20 11:04:53 +0000
commit3429b32ad119756985e1a7bfa5e9e53042671f8b (patch)
treec73e213a5a1a2b7a344d7f5860edfd9531dfb65d /crates/mbe
parent46b4f89c920c314caf1a8af2abdb09732d100d67 (diff)
:arrow_up: rowan
It now stores text inline with tokens
Diffstat (limited to 'crates/mbe')
-rw-r--r--crates/mbe/src/syntax_bridge.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/mbe/src/syntax_bridge.rs b/crates/mbe/src/syntax_bridge.rs
index 1e1123889..0cdc175be 100644
--- a/crates/mbe/src/syntax_bridge.rs
+++ b/crates/mbe/src/syntax_bridge.rs
@@ -682,10 +682,8 @@ impl<'a> TreeSink for TtTreeSink<'a> {
682 self.text_pos += TextSize::of(text); 682 self.text_pos += TextSize::of(text);
683 } 683 }
684 684
685 let text = SmolStr::new(self.buf.as_str()); 685 self.inner.token(kind, self.buf.as_str());
686 self.buf.clear(); 686 self.buf.clear();
687 self.inner.token(kind, text);
688
689 // Add whitespace between adjoint puncts 687 // Add whitespace between adjoint puncts
690 let next = last.bump(); 688 let next = last.bump();
691 if let ( 689 if let (