mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat(spell): support lisp like languages
Add spell to commonlisp, scheme, racket, clojure and fennel.
This commit is contained in:
parent
9850baa958
commit
c07c1c5b98
5 changed files with 13 additions and 9 deletions
|
|
@ -18,12 +18,12 @@
|
||||||
(#set! "priority" 105) ; Higher priority to mark the whole sexpr as a comment
|
(#set! "priority" 105) ; Higher priority to mark the whole sexpr as a comment
|
||||||
)
|
)
|
||||||
(kwd_lit) @symbol
|
(kwd_lit) @symbol
|
||||||
(str_lit) @string
|
(str_lit) @string @spell
|
||||||
(num_lit) @number
|
(num_lit) @number
|
||||||
(char_lit) @character
|
(char_lit) @character
|
||||||
(bool_lit) @boolean
|
(bool_lit) @boolean
|
||||||
(nil_lit) @constant.builtin
|
(nil_lit) @constant.builtin
|
||||||
(comment) @comment
|
(comment) @comment @spell
|
||||||
(regex_lit) @string.regex
|
(regex_lit) @string.regex
|
||||||
|
|
||||||
["'" "`"] @string.escape
|
["'" "`"] @string.escape
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
package: (_) @namespace)
|
package: (_) @namespace)
|
||||||
"cl" @namespace
|
"cl" @namespace
|
||||||
|
|
||||||
(str_lit) @string
|
(str_lit) @string @spell
|
||||||
|
|
||||||
(num_lit) @number
|
(num_lit) @number
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
(nil_lit) @constant.builtin
|
(nil_lit) @constant.builtin
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment @spell
|
||||||
|
|
||||||
;; dynamic variables
|
;; dynamic variables
|
||||||
((sym_lit) @variable.builtin
|
((sym_lit) @variable.builtin
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
|
|
||||||
["(" ")"] @punctuation.bracket
|
["(" ")"] @punctuation.bracket
|
||||||
|
|
||||||
(block_comment) @comment
|
(block_comment) @comment @spell
|
||||||
|
|
||||||
|
|
||||||
(with_clause
|
(with_clause
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
(comment) @comment
|
(comment) @comment @spell
|
||||||
|
|
||||||
[
|
[
|
||||||
"("
|
"("
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
(boolean) @boolean
|
(boolean) @boolean
|
||||||
(number) @number
|
(number) @number
|
||||||
|
|
||||||
(string) @string
|
(string) @string @spell
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
(symbol) @variable
|
(symbol) @variable
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
[(string)
|
[(string)
|
||||||
(here_string)
|
(here_string)
|
||||||
(byte_string)] @string
|
(byte_string)] @string
|
||||||
|
(string) @spell
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
|
|
@ -31,6 +32,9 @@
|
||||||
(block_comment)
|
(block_comment)
|
||||||
(sexp_comment)] @comment
|
(sexp_comment)] @comment
|
||||||
|
|
||||||
|
[(comment)
|
||||||
|
(block_comment)] @spell
|
||||||
|
|
||||||
;; symbol ;;
|
;; symbol ;;
|
||||||
|
|
||||||
(symbol) @variable
|
(symbol) @variable
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@
|
||||||
(number) @number
|
(number) @number
|
||||||
(character) @character
|
(character) @character
|
||||||
(boolean) @boolean
|
(boolean) @boolean
|
||||||
(string) @string
|
(string) @string @spell
|
||||||
[(comment)
|
[(comment)
|
||||||
(block_comment)] @comment
|
(block_comment)] @comment @spell
|
||||||
|
|
||||||
;; highlight for datum comment
|
;; highlight for datum comment
|
||||||
;; copied from ../clojure/highlights.scm
|
;; copied from ../clojure/highlights.scm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue