mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30: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
73
runtime/queries/unison/highlights.scm
Normal file
73
runtime/queries/unison/highlights.scm
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
;; Primitives
|
||||
(comment) @comment @spell
|
||||
(nat) @number
|
||||
(unit) @constant.builtin
|
||||
(literal_char) @character
|
||||
(literal_text) @string
|
||||
(literal_boolean) @boolean
|
||||
|
||||
;; Keywords
|
||||
[
|
||||
(kw_forall)
|
||||
(unique_kw)
|
||||
(type_kw)
|
||||
(do)
|
||||
(kw_let)
|
||||
] @keyword
|
||||
|
||||
(kw_equals) @keyword.operator
|
||||
(structural_kw) @type.qualifier
|
||||
(unique) @type.qualifier
|
||||
|
||||
(type_constructor) @constructor
|
||||
|
||||
(doc_block) @comment.documentation
|
||||
|
||||
|
||||
[
|
||||
(operator)
|
||||
(pipe)
|
||||
(arrow_symbol)
|
||||
">"
|
||||
(or)
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"if"
|
||||
"else"
|
||||
"then"
|
||||
(match)
|
||||
(with)
|
||||
(cases)
|
||||
] @conditional
|
||||
|
||||
(blank_pattern) @variable.builtin
|
||||
|
||||
(pattern) @variable (constructor_or_variable_pattern) @type
|
||||
|
||||
(use_clause) @include
|
||||
|
||||
;; Types
|
||||
(record_field name: (wordy_id) @variable type: (wordy_id) @type)
|
||||
[
|
||||
(type_name)
|
||||
(type_signature)
|
||||
(effect)
|
||||
] @type
|
||||
|
||||
(term_definition) @variable
|
||||
|
||||
;; Punctuation
|
||||
[
|
||||
(type_signature_colon)
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
2
runtime/queries/unison/injections.scm
Normal file
2
runtime/queries/unison/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue