Unnamed repository; edit this file 'description' to name the repository.
Add rainbows for Koto (#14469)
| -rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
| -rw-r--r-- | languages.toml | 2 | ||||
| -rw-r--r-- | runtime/queries/koto/highlights.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/koto/rainbows.scm | 11 |
4 files changed, 14 insertions, 3 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 63bc55f6..068507fc 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -144,7 +144,7 @@ | kdl | ✓ | ✓ | ✓ | ✓ | | | | koka | ✓ | | ✓ | | | `koka` | | kotlin | ✓ | ✓ | ✓ | ✓ | | `kotlin-language-server` | -| koto | ✓ | ✓ | ✓ | | | `koto-ls` | +| koto | ✓ | ✓ | ✓ | | ✓ | `koto-ls` | | latex | ✓ | ✓ | | | | `texlab` | | ld | ✓ | | ✓ | | | | | ldif | ✓ | | | | | | diff --git a/languages.toml b/languages.toml index a6197f57..6094faa7 100644 --- a/languages.toml +++ b/languages.toml @@ -4370,7 +4370,7 @@ formatter = {command = "koto", args = ["--format"]} [[grammar]] name = "koto" -source = { git = "https://github.com/koto-lang/tree-sitter-koto", rev = "2ffc77c14f0ac1674384ff629bfc207b9c57ed89" } +source = { git = "https://github.com/koto-lang/tree-sitter-koto", rev = "633744bca404ae4edb961a3c2d7bc947a987afa4" } [[language]] name = "gpr" diff --git a/runtime/queries/koto/highlights.scm b/runtime/queries/koto/highlights.scm index b1dd990e..bdc01440 100644 --- a/runtime/queries/koto/highlights.scm +++ b/runtime/queries/koto/highlights.scm @@ -105,7 +105,7 @@ start: (identifier) @function) (chain - lookup: (identifier) @variable.other.member) + (lookup (identifier)) @variable.other.member) (call function: (identifier)) @function diff --git a/runtime/queries/koto/rainbows.scm b/runtime/queries/koto/rainbows.scm new file mode 100644 index 00000000..2e2dab5e --- /dev/null +++ b/runtime/queries/koto/rainbows.scm @@ -0,0 +1,11 @@ +[ + (args) + (call_args) + (index) + (list) + (map) + (parenthesized) + (tuple) +] @rainbow.scope + +["(" ")" "[" "]" "{" "}"] @rainbow.bracket |