Add tag queries for java, kotlin, protobuf and bash (#14349)

This commit is contained in:
Kalpaj Chaudhari
2025-08-31 18:17:58 +05:30
committed by GitHub
parent 7c37e8acea
commit d546a799e5
5 changed files with 55 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
| amber | ✓ | | | | | `amber-lsp` |
| astro | ✓ | | | | | `astro-ls` |
| awk | ✓ | ✓ | | | | `awk-language-server` |
| bash | ✓ | ✓ | ✓ | | ✓ | `bash-language-server` |
| bash | ✓ | ✓ | ✓ | | ✓ | `bash-language-server` |
| bass | ✓ | | | | | `bass` |
| beancount | ✓ | | | | | `beancount-language-server` |
| bibtex | ✓ | | | | | `texlab` |
@@ -121,7 +121,7 @@
| ink | ✓ | | | | | |
| inko | ✓ | ✓ | ✓ | ✓ | | |
| janet | ✓ | | ✓ | | ✓ | |
| java | ✓ | ✓ | ✓ | | ✓ | `jdtls` |
| java | ✓ | ✓ | ✓ | | ✓ | `jdtls` |
| javascript | ✓ | ✓ | ✓ | ✓ | ✓ | `typescript-language-server` |
| jinja | ✓ | | | | | |
| jjconfig | ✓ | ✓ | ✓ | | | `taplo`, `tombi` |
@@ -141,7 +141,7 @@
| kconfig | ✓ | | ✓ | | | |
| kdl | ✓ | ✓ | ✓ | | | |
| koka | ✓ | | ✓ | | | `koka` |
| kotlin | ✓ | ✓ | ✓ | | | `kotlin-language-server` |
| kotlin | ✓ | ✓ | ✓ | | | `kotlin-language-server` |
| koto | ✓ | ✓ | ✓ | | | `koto-ls` |
| latex | ✓ | ✓ | | | | `texlab` |
| ld | ✓ | | ✓ | | | |
@@ -201,7 +201,7 @@
| prisma | ✓ | ✓ | | | | `prisma-language-server` |
| prolog | ✓ | | ✓ | | | `swipl` |
| properties | ✓ | ✓ | | | | |
| protobuf | ✓ | ✓ | ✓ | | | `buf`, `pb`, `protols` |
| protobuf | ✓ | ✓ | ✓ | | | `buf`, `pb`, `protols` |
| prql | ✓ | | | | | |
| pug | ✓ | | | | | |
| purescript | ✓ | ✓ | | | | `purescript-language-server` |

View File

@@ -0,0 +1 @@
(function_definition name: (word) @definition.function)

View File

@@ -0,0 +1,27 @@
(class_declaration
name: (identifier) @definition.class)
(interface_declaration
name: (identifier) @definition.interface)
(record_declaration
name: (identifier) @definition.class)
(enum_declaration
name: (identifier) @defintion.class)
(method_declaration
name: (identifier) @definition.function)
(constructor_declaration
name: (identifier) @definition.function)
(compact_constructor_declaration
name: (identifier) @definition.function)
(field_declaration
declarator: (variable_declarator
name: (identifier) @definition.constant))
(enum_constant
name: (identifier) @definition.constant)

View File

@@ -0,0 +1,12 @@
(class_declaration
(type_identifier) @definition.class)
(object_declaration
"object" (type_identifier) @definition.class)
(function_declaration
(simple_identifier) @definition.function)
(property_declaration
(variable_declaration
(simple_identifier) @definition.constant))

View File

@@ -0,0 +1,11 @@
(message_name (identifier) @definition.class)
(enum_name (identifier) @definition.class)
(service_name (identifier) @definition.class)
(rpc_name (identifier) @definition.function)
(enum_variant_name (identifier) @definition.constant)
(field_name (identifier) @definition.constant)