mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
61
runtime/queries/nickel/highlights.scm
Normal file
61
runtime/queries/nickel/highlights.scm
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
"forall"
|
||||
"in"
|
||||
"let"
|
||||
"default"
|
||||
"doc"
|
||||
"rec"
|
||||
] @keyword
|
||||
|
||||
"fun" @keyword.function
|
||||
|
||||
"import" @include
|
||||
|
||||
[ "if" "then" "else" ] @conditional
|
||||
"match" @conditional
|
||||
|
||||
(types) @type
|
||||
"Array" @type.builtin
|
||||
|
||||
; BUILTIN Constants
|
||||
(bool) @boolean
|
||||
"null" @constant.builtin
|
||||
|
||||
(num_literal) @number
|
||||
|
||||
(infix_op) @operator
|
||||
|
||||
(type_atom) @type
|
||||
(enum_tag) @variable
|
||||
|
||||
(chunk_literal_single) @string
|
||||
(chunk_literal_multi) @string
|
||||
|
||||
(str_esc_char) @string.escape
|
||||
|
||||
[
|
||||
"{" "}"
|
||||
"(" ")"
|
||||
"[|" "|]"
|
||||
] @punctuation.bracket
|
||||
|
||||
(multstr_start) @punctuation.bracket
|
||||
(multstr_end) @punctuation.bracket
|
||||
(interpolation_start) @punctuation.bracket
|
||||
(interpolation_end) @punctuation.bracket
|
||||
|
||||
(record_field) @field
|
||||
|
||||
(builtin) @function.builtin
|
||||
|
||||
(fun_expr pats:
|
||||
(pattern id:
|
||||
(ident) @parameter
|
||||
)
|
||||
)
|
||||
|
||||
(applicative t1:
|
||||
(applicative (record_operand) @function)
|
||||
)
|
||||
13
runtime/queries/nickel/indents.scm
Normal file
13
runtime/queries/nickel/indents.scm
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[
|
||||
(atom (uni_record)) ; for {...}
|
||||
(atom terms: (term)) ; for [...]
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"]"
|
||||
"}"
|
||||
] @indent.end @indent.branch
|
||||
|
||||
[
|
||||
(comment)
|
||||
] @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue