chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -1,4 +1,4 @@
[
(record)
(module)
(record)
(module)
] @fold

View file

@ -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