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

pull/14020/head^2
Yorick Peterse 2025-07-21 19:51:50 +02:00 committed by GitHub
parent 22b184b570
commit 715d4ae2d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 3 deletions

View File

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

View File

@ -3068,7 +3068,7 @@ formatter = { command = "inko", args = ["fmt", "-"] }
[[grammar]] [[grammar]]
name = "inko" 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]] [[language]]
name = "bicep" name = "bicep"

View File

@ -78,7 +78,7 @@
] @keyword.operator ] @keyword.operator
[ [
"class" "type"
"trait" "trait"
] @keyword.storage.type ] @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)