aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r--crates/ra_ide_api/src/syntax_tree.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/syntax_tree.rs b/crates/ra_ide_api/src/syntax_tree.rs
index cdee63d59..bbe9222b4 100644
--- a/crates/ra_ide_api/src/syntax_tree.rs
+++ b/crates/ra_ide_api/src/syntax_tree.rs
@@ -71,7 +71,9 @@ fn syntax_tree_for_token<T: AstToken>(node: &T, text_range: TextRange) -> Option
71 .trim_start_matches('"') 71 .trim_start_matches('"')
72 .trim_end_matches('#') 72 .trim_end_matches('#')
73 .trim_end_matches('"') 73 .trim_end_matches('"')
74 .trim(); 74 .trim()
75 // Remove custom markers
76 .replace("<|>", "");
75 77
76 let parsed = SourceFile::parse(&text); 78 let parsed = SourceFile::parse(&text);
77 79