From 715d4ae2d535b638d0b199b7b75b33f32d696bd9 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Mon, 21 Jul 2025 19:51:50 +0200 Subject: [PATCH] tree-sitter: update Inko grammar and queries (#14022) --- book/src/generated/lang-support.md | 2 +- languages.toml | 2 +- runtime/queries/inko/highlights.scm | 2 +- runtime/queries/inko/tags.scm | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 runtime/queries/inko/tags.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 9e1a9045b..4586971bb 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -112,7 +112,7 @@ | iex | ✓ | | | | | | ini | ✓ | | | | | | ink | ✓ | | | | | -| inko | ✓ | ✓ | ✓ | | | +| inko | ✓ | ✓ | ✓ | ✓ | | | janet | ✓ | | | | | | java | ✓ | ✓ | ✓ | | `jdtls` | | javascript | ✓ | ✓ | ✓ | ✓ | `typescript-language-server` | diff --git a/languages.toml b/languages.toml index fd6636ade..36c28296d 100644 --- a/languages.toml +++ b/languages.toml @@ -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" diff --git a/runtime/queries/inko/highlights.scm b/runtime/queries/inko/highlights.scm index d5730dce2..44138ef41 100644 --- a/runtime/queries/inko/highlights.scm +++ b/runtime/queries/inko/highlights.scm @@ -78,7 +78,7 @@ ] @keyword.operator [ - "class" + "type" "trait" ] @keyword.storage.type diff --git a/runtime/queries/inko/tags.scm b/runtime/queries/inko/tags.scm new file mode 100644 index 000000000..42dbcfc97 --- /dev/null +++ b/runtime/queries/inko/tags.scm @@ -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)