diff options
Diffstat (limited to 'crates/ide/src/syntax_highlighting/injection.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/injection.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/injection.rs b/crates/ide/src/syntax_highlighting/injection.rs index de2180b04..008d5ce24 100644 --- a/crates/ide/src/syntax_highlighting/injection.rs +++ b/crates/ide/src/syntax_highlighting/injection.rs | |||
@@ -42,6 +42,10 @@ pub(super) fn highlight_injection( | |||
42 | offset += TextSize::of(chunk); | 42 | offset += TextSize::of(chunk); |
43 | 43 | ||
44 | if let Some(next) = text.strip_prefix(marker) { | 44 | if let Some(next) = text.strip_prefix(marker) { |
45 | if let Some(range) = literal.map_range_up(TextRange::at(offset, TextSize::of(marker))) { | ||
46 | hl.add(HlRange { range, highlight: HlTag::Keyword.into(), binding_hash: None }); | ||
47 | } | ||
48 | |||
45 | text = next; | 49 | text = next; |
46 | 50 | ||
47 | let marker_len = TextSize::of(marker); | 51 | let marker_len = TextSize::of(marker); |