tree-sitter: update Inko grammar and queries (#14022)

This commit is contained in:
Yorick Peterse
2025-07-21 19:51:50 +02:00
committed by GitHub
parent 22b184b570
commit 715d4ae2d5
4 changed files with 17 additions and 3 deletions

View File

@@ -112,7 +112,7 @@
| iex | ✓ | | | | |
| ini | ✓ | | | | |
| ink | ✓ | | | | |
| inko | ✓ | ✓ | ✓ | | |
| inko | ✓ | ✓ | ✓ | | |
| janet | ✓ | | | | |
| java | ✓ | ✓ | ✓ | | `jdtls` |
| javascript | ✓ | ✓ | ✓ | ✓ | `typescript-language-server` |

View File

@@ -3068,7 +3068,7 @@ formatter = { command = "inko", args = ["fmt", "-"] }
[[grammar]]
name = "inko"
source = { git = "https://github.com/inko-lang/tree-sitter-inko", rev = "7860637ce1b43f5f79cfb7cc3311bf3234e9479f" }
source = { git = "https://github.com/inko-lang/tree-sitter-inko", rev = "f58a87ac4dc6a7955c64c9e4408fbd693e804686" }
[[language]]
name = "bicep"

View File

@@ -78,7 +78,7 @@
] @keyword.operator
[
"class"
"type"
"trait"
] @keyword.storage.type

View File

@@ -0,0 +1,14 @@
(class
name: _ @definition.struct)
(trait
name: _ @definition.interface)
(external_function
name: _ @definition.function)
(method
name: _ @definition.function)
(define_constant
name: _ @definition.constant)