Skip to content

Commit 0ae37dc

Browse files
authored
Add rainbows for Koto (#14469)
1 parent dbb472d commit 0ae37dc

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

book/src/generated/lang-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
| kdl ||||| | |
145145
| koka || || | | `koka` |
146146
| kotlin ||||| | `kotlin-language-server` |
147-
| koto |||| | | `koto-ls` |
147+
| koto |||| | | `koto-ls` |
148148
| latex ||| | | | `texlab` |
149149
| ld || || | | |
150150
| ldif || | | | | |

languages.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4370,7 +4370,7 @@ formatter = {command = "koto", args = ["--format"]}
43704370

43714371
[[grammar]]
43724372
name = "koto"
4373-
source = { git = "https://github.com/koto-lang/tree-sitter-koto", rev = "2ffc77c14f0ac1674384ff629bfc207b9c57ed89" }
4373+
source = { git = "https://github.com/koto-lang/tree-sitter-koto", rev = "633744bca404ae4edb961a3c2d7bc947a987afa4" }
43744374

43754375
[[language]]
43764376
name = "gpr"

runtime/queries/koto/highlights.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
start: (identifier) @function)
106106

107107
(chain
108-
lookup: (identifier) @variable.other.member)
108+
(lookup (identifier)) @variable.other.member)
109109

110110
(call
111111
function: (identifier)) @function

runtime/queries/koto/rainbows.scm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
(args)
3+
(call_args)
4+
(index)
5+
(list)
6+
(map)
7+
(parenthesized)
8+
(tuple)
9+
] @rainbow.scope
10+
11+
["(" ")" "[" "]" "{" "}"] @rainbow.bracket

0 commit comments

Comments
 (0)