aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkawas44 <kawas44@gmail.com>2023-03-28 23:17:43 +0200
committerAmaan Qureshi <amaanq12@gmail.com>2023-03-29 17:48:30 -0400
commitc07c1c5b98a459e16e8098ae915fffc665e95e61 (patch)
tree829928477fe25432272a10bc56cf2af823ce6b4c
parentUpdate parsers: help, tlaplus, v, vhs (diff)
downloadnvim-treesitter-c07c1c5b98a459e16e8098ae915fffc665e95e61.tar
nvim-treesitter-c07c1c5b98a459e16e8098ae915fffc665e95e61.tar.gz
nvim-treesitter-c07c1c5b98a459e16e8098ae915fffc665e95e61.tar.bz2
nvim-treesitter-c07c1c5b98a459e16e8098ae915fffc665e95e61.tar.lz
nvim-treesitter-c07c1c5b98a459e16e8098ae915fffc665e95e61.tar.xz
nvim-treesitter-c07c1c5b98a459e16e8098ae915fffc665e95e61.tar.zst
nvim-treesitter-c07c1c5b98a459e16e8098ae915fffc665e95e61.zip
feat(spell): support lisp like languages
Add spell to commonlisp, scheme, racket, clojure and fennel.
-rw-r--r--queries/clojure/highlights.scm4
-rw-r--r--queries/commonlisp/highlights.scm6
-rw-r--r--queries/fennel/highlights.scm4
-rw-r--r--queries/racket/highlights.scm4
-rw-r--r--queries/scheme/highlights.scm4
5 files changed, 13 insertions, 9 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm
index e5609b25b..a070b7ffd 100644
--- a/queries/clojure/highlights.scm
+++ b/queries/clojure/highlights.scm
@@ -18,12 +18,12 @@
(#set! "priority" 105) ; Higher priority to mark the whole sexpr as a comment
)
(kwd_lit) @symbol
-(str_lit) @string
+(str_lit) @string @spell
(num_lit) @number
(char_lit) @character
(bool_lit) @boolean
(nil_lit) @constant.builtin
-(comment) @comment
+(comment) @comment @spell
(regex_lit) @string.regex
["'" "`"] @string.escape
diff --git a/queries/commonlisp/highlights.scm b/queries/commonlisp/highlights.scm
index 5cf7c1eb0..536b19c81 100644
--- a/queries/commonlisp/highlights.scm
+++ b/queries/commonlisp/highlights.scm
@@ -60,7 +60,7 @@
package: (_) @namespace)
"cl" @namespace
-(str_lit) @string
+(str_lit) @string @spell
(num_lit) @number
@@ -68,7 +68,7 @@
(nil_lit) @constant.builtin
-(comment) @comment
+(comment) @comment @spell
;; dynamic variables
((sym_lit) @variable.builtin
@@ -90,7 +90,7 @@
["(" ")"] @punctuation.bracket
-(block_comment) @comment
+(block_comment) @comment @spell
(with_clause
diff --git a/queries/fennel/highlights.scm b/queries/fennel/highlights.scm
index 7322e55c3..fcb7e8b5e 100644
--- a/queries/fennel/highlights.scm
+++ b/queries/fennel/highlights.scm
@@ -1,4 +1,4 @@
-(comment) @comment
+(comment) @comment @spell
[
"("
@@ -23,7 +23,7 @@
(boolean) @boolean
(number) @number
-(string) @string
+(string) @string @spell
(escape_sequence) @string.escape
(symbol) @variable
diff --git a/queries/racket/highlights.scm b/queries/racket/highlights.scm
index ebf9a0f5c..91aa77d9f 100644
--- a/queries/racket/highlights.scm
+++ b/queries/racket/highlights.scm
@@ -20,6 +20,7 @@
[(string)
(here_string)
(byte_string)] @string
+(string) @spell
(escape_sequence) @string.escape
@@ -31,6 +32,9 @@
(block_comment)
(sexp_comment)] @comment
+[(comment)
+ (block_comment)] @spell
+
;; symbol ;;
(symbol) @variable
diff --git a/queries/scheme/highlights.scm b/queries/scheme/highlights.scm
index 497512b87..4854a4c85 100644
--- a/queries/scheme/highlights.scm
+++ b/queries/scheme/highlights.scm
@@ -5,9 +5,9 @@
(number) @number
(character) @character
(boolean) @boolean
-(string) @string
+(string) @string @spell
[(comment)
- (block_comment)] @comment
+ (block_comment)] @comment @spell
;; highlight for datum comment
;; copied from ../clojure/highlights.scm