mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
)
|
||||
(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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue