mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 16:00:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
6
runtime/queries/facility/folds.scm
Normal file
6
runtime/queries/facility/folds.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
(service)
|
||||
(method)
|
||||
(dto)
|
||||
(enum)
|
||||
] @fold
|
||||
90
runtime/queries/facility/highlights.scm
Normal file
90
runtime/queries/facility/highlights.scm
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
[
|
||||
";"
|
||||
"."
|
||||
","
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(doc_comment) @comment.documentation @spell
|
||||
|
||||
[
|
||||
"service"
|
||||
"errors"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"method"
|
||||
"event"
|
||||
] @keyword.function
|
||||
|
||||
[
|
||||
"enum"
|
||||
"data"
|
||||
] @keyword.type
|
||||
|
||||
"extern" @keyword.modifier
|
||||
|
||||
(type) @type.builtin
|
||||
|
||||
(service
|
||||
service_name: (identifier) @type)
|
||||
|
||||
(error_set
|
||||
(identifier) @variable.member)
|
||||
|
||||
(error_set
|
||||
name: (identifier) @type)
|
||||
|
||||
(dto
|
||||
name: (identifier) @type)
|
||||
|
||||
(external_dto
|
||||
name: (identifier) @type)
|
||||
|
||||
(enum
|
||||
(values_block
|
||||
(identifier) @constant))
|
||||
|
||||
(enum
|
||||
name: (identifier) @type)
|
||||
|
||||
(external_enum
|
||||
name: (identifier) @type)
|
||||
|
||||
(type
|
||||
name: (identifier) @type)
|
||||
|
||||
[
|
||||
"map"
|
||||
"nullable"
|
||||
"result"
|
||||
"required"
|
||||
"http"
|
||||
"csharp"
|
||||
"js"
|
||||
"info"
|
||||
"obsolete"
|
||||
] @attribute.builtin
|
||||
|
||||
(parameter
|
||||
name: (identifier) @variable.parameter)
|
||||
|
||||
(field
|
||||
name: (identifier) @variable.member)
|
||||
|
||||
(method
|
||||
name: (identifier) @function.method)
|
||||
|
||||
(number_literal) @number
|
||||
|
||||
(string_literal) @string
|
||||
7
runtime/queries/facility/indents.scm
Normal file
7
runtime/queries/facility/indents.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
(service_block)
|
||||
(values_block)
|
||||
(field_list)
|
||||
] @indent.begin
|
||||
|
||||
"}" @indent.branch
|
||||
8
runtime/queries/facility/injections.scm
Normal file
8
runtime/queries/facility/injections.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
((remarks) @injection.content
|
||||
(#set! injection.language "markdown"))
|
||||
|
||||
([
|
||||
(comment)
|
||||
(doc_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue