mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[
|
||||
(record)
|
||||
(module)
|
||||
(record)
|
||||
(module)
|
||||
] @fold
|
||||
|
|
|
|||
|
|
@ -1,43 +1,52 @@
|
|||
|
||||
;; Constants
|
||||
; Constants
|
||||
(integer) @number
|
||||
|
||||
;; Variables and Symbols
|
||||
; Variables and Symbols
|
||||
(typed_binding
|
||||
(atom
|
||||
(qid) @variable))
|
||||
|
||||
(typed_binding (atom (qid) @variable))
|
||||
(untyped_binding) @variable
|
||||
(typed_binding (expr) @type)
|
||||
|
||||
(typed_binding
|
||||
(expr) @type)
|
||||
|
||||
(id) @function
|
||||
|
||||
(bid) @function
|
||||
|
||||
(function_name (atom (qid) @function))
|
||||
(function_name
|
||||
(atom
|
||||
(qid) @function))
|
||||
|
||||
(field_name) @function
|
||||
|
||||
|
||||
[(data_name) (record_name)] @constructor
|
||||
[
|
||||
(data_name)
|
||||
(record_name)
|
||||
] @constructor
|
||||
|
||||
; Set
|
||||
(SetN) @type.builtin
|
||||
|
||||
(expr . (atom) @function)
|
||||
(expr
|
||||
.
|
||||
(atom) @function)
|
||||
|
||||
((atom) @boolean
|
||||
(#any-of? @boolean "true" "false" "True" "False"))
|
||||
|
||||
;; Imports and Module Declarations
|
||||
|
||||
"import" @keyword.import
|
||||
; Imports and Module Declarations
|
||||
"import" @keyword.import
|
||||
|
||||
(module_name) @module
|
||||
|
||||
;; Pragmas and comments
|
||||
|
||||
; Pragmas and comments
|
||||
(pragma) @keyword.directive
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
;; Keywords
|
||||
; Keywords
|
||||
[
|
||||
"where"
|
||||
"data"
|
||||
|
|
@ -62,20 +71,16 @@
|
|||
"infixl"
|
||||
"infixr"
|
||||
"record"
|
||||
]
|
||||
@keyword
|
||||
|
||||
;;;(expr
|
||||
;;; f_name: (atom) @function)
|
||||
;; Brackets
|
||||
] @keyword
|
||||
|
||||
;(expr
|
||||
; f_name: (atom) @function)
|
||||
; Brackets
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"]
|
||||
@punctuation.bracket
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"="
|
||||
] @operator
|
||||
"=" @operator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue