From 42b8681cf66879a37f62cbe51a4a46e5afb94f69 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 4 Jul 2025 14:49:00 -0400 Subject: [PATCH] updated kakoune pygments post --- content/blog/implementing-kakoune-syntax-highlighting.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/blog/implementing-kakoune-syntax-highlighting.md b/content/blog/implementing-kakoune-syntax-highlighting.md index 656869b..546d11f 100644 --- a/content/blog/implementing-kakoune-syntax-highlighting.md +++ b/content/blog/implementing-kakoune-syntax-highlighting.md @@ -87,6 +87,12 @@ evaluate-commands %sh{ } ``` +By contrast, here's how the `%sh` string _should_ look: + +```sh +echo define-command is-kak %< info -title is-kak 'Not Kak!' > +``` + Properly detecting these strings isn't currently possible with Pygments' `RegexLexer`. I'd need to subclass the base lexer and implement my own token scanning. Is it possible? Absolutely. Do I want to do it? **Absolutely not**.