From 564fc95078ee8b7cf650deacc6d2fb88f45305b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ganslandt?= Date: Sun, 18 Jan 2026 19:27:18 +0100 Subject: [PATCH] Add klog language (#15093) --- book/src/generated/lang-support.md | 1 + languages.toml | 15 +++++++++++++++ runtime/queries/klog/highlights.scm | 6 ++++++ 3 files changed, 22 insertions(+) create mode 100644 runtime/queries/klog/highlights.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index db011c4b..9f1ae209 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -152,6 +152,7 @@ | kcl | ✓ | | | | | `kcl-language-server` | | kconfig | ✓ | | ✓ | | | | | kdl | ✓ | ✓ | ✓ | ✓ | | | +| klog | ✓ | | | | | | | koka | ✓ | | ✓ | | | `koka` | | kotlin | ✓ | ✓ | ✓ | ✓ | | `kotlin-language-server` | | koto | ✓ | ✓ | ✓ | | ✓ | `koto-ls` | diff --git a/languages.toml b/languages.toml index b9651c01..43d2408c 100644 --- a/languages.toml +++ b/languages.toml @@ -5178,3 +5178,18 @@ scope = "source.qmv" file-types = [ { glob = "/tmp/qmv*" } ] indent = { tab-width = 8, unit = " " } soft-wrap = { enable = false } + +[[language]] +name = "klog" +scope = "source.klg" +file-types = [ "klg" ] +injection-regex = "klg" +indent = { tab-width = 4, unit=" "} +[language.auto-pairs] +'(' = ')' +'"' = '"' +"'" = "'" + +[[grammar]] +name = "klog" +source = { git = "https://github.com/Ansimorph/tree-sitter-klog/", rev = "0b215fe75bdeb8368546e3cee36aca8c19212d06" } diff --git a/runtime/queries/klog/highlights.scm b/runtime/queries/klog/highlights.scm new file mode 100644 index 00000000..7331383f --- /dev/null +++ b/runtime/queries/klog/highlights.scm @@ -0,0 +1,6 @@ +(date) @markup.heading +(summary) @comment +(negative_duration) @diff.minus +(positive_duration) @diff.plus +(range) @diff.delta +(tag) @constant -- 2.51.2