diff options
| author | Jonas Maier <> | 2026-05-23 16:31:38 +0200 |
|---|---|---|
| committer | Jonas Maier <> | 2026-05-23 16:31:38 +0200 |
| commit | 0c4445a732926a83338cd8f5bd2b13fcbd3cac1f (patch) | |
| tree | 74760c1bf5172f5e28c2f86d3bf07a75754cf0cd | |
| parent | a22ed24eb0b20f05ab60a877511e37bd8c4f03a4 (diff) | |
| download | pish-0c4445a732926a83338cd8f5bd2b13fcbd3cac1f.tar.gz | |
partial strings now get syntax highlighting too
| -rw-r--r-- | src/parse/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 8970fc3..5059311 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -924,6 +924,10 @@ impl Parse for ExpString { while !delim.try_end(b) { if !b.has() { if b.is_completion() { + b.highlights.push(Highlight { + span: begin.to(b.loc_u32()), + kind: HighlightKind::Other(OtherHighlights::String), + }); break 'outer; } else { return Err(ParseError::Eof); |
