feat(spell): support lisp like languages

Add spell to commonlisp, scheme, racket, clojure and fennel.
This commit is contained in:
kawas44 2023-03-28 23:17:43 +02:00 committed by Amaan Qureshi
parent 9850baa958
commit c07c1c5b98
5 changed files with 13 additions and 9 deletions

View file

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

View file

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

View file

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

View file

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

View file

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