Skip to content

Commit 09f6bfb

Browse files
committed
Add rainbows.scm for Koto
1 parent 5791881 commit 09f6bfb

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

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

0 commit comments

Comments
 (0)