aboutsummaryrefslogtreecommitdiffstats
path: root/queries/haskell_persistent
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2024-01-06 15:05:50 +0900
committerChristian Clason <c.clason@uni-graz.at>2024-01-19 16:58:37 +0100
commit57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch)
tree70bf645539882b88e6fa129cefd30986b89bbac3 /queries/haskell_persistent
parentci: add query lint job (diff)
downloadnvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip
chore: query formatting
Diffstat (limited to 'queries/haskell_persistent')
-rw-r--r--queries/haskell_persistent/folds.scm4
-rw-r--r--queries/haskell_persistent/highlights.scm28
2 files changed, 15 insertions, 17 deletions
diff --git a/queries/haskell_persistent/folds.scm b/queries/haskell_persistent/folds.scm
index 2bdffd177..dd34d9f15 100644
--- a/queries/haskell_persistent/folds.scm
+++ b/queries/haskell_persistent/folds.scm
@@ -1,3 +1 @@
-[
- (entity_definition)
-] @fold
+(entity_definition) @fold
diff --git a/queries/haskell_persistent/highlights.scm b/queries/haskell_persistent/highlights.scm
index e806befcf..22cbf5cb3 100644
--- a/queries/haskell_persistent/highlights.scm
+++ b/queries/haskell_persistent/highlights.scm
@@ -1,20 +1,23 @@
-;; ----------------------------------------------------------------------------
-;; Literals and comments
-
+; ----------------------------------------------------------------------------
+; Literals and comments
(integer) @number
+
(float) @number.float
+
(char) @character
+
(string) @string
+
(attribute_name) @attribute
+
(attribute_exclamation_mark) @attribute
-(con_unit) @string.special.symbol ; unit, as in ()
+(con_unit) @string.special.symbol ; unit, as in ()
(comment) @comment @spell
-;; ----------------------------------------------------------------------------
-;; Keywords, operators, includes
-
+; ----------------------------------------------------------------------------
+; Keywords, operators, includes
[
"Id"
"Primary"
@@ -24,15 +27,12 @@
"=" @operator
-
-;; ----------------------------------------------------------------------------
-;; Functions and variables
-
+; ----------------------------------------------------------------------------
+; Functions and variables
(variable) @variable
-;; ----------------------------------------------------------------------------
-;; Types
-
+; ----------------------------------------------------------------------------
+; Types
(type) @type
(constructor) @constructor