highlights(scheme): some fix (#2932)

* Add block comment
* Add λ highlight
This commit is contained in:
6cdh 2022-05-14 15:25:45 +08:00 committed by GitHub
parent f1373051e5
commit b30a830c88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,8 @@
(character) @character
(boolean) @boolean
(string) @string
(comment) @comment
[(comment)
(block_comment)] @comment
;; highlight for datum comment
;; copied from ../clojure/highlights.scm
@ -42,7 +43,7 @@
.
(list
(symbol) @variable)
(#eq? @_f "lambda"))
(#any-of? @_f "lambda" "))
(list
.
@ -64,7 +65,7 @@
((symbol) @keyword
(#any-of? @keyword
"define" "lambda" "begin" "do" "define-syntax"
"define" "lambda" "λ" "begin" "do" "define-syntax"
"and" "or"
"if" "cond" "case" "when" "unless" "else" "=>"
"let" "let*" "let-syntax" "let-values" "let*-values" "letrec" "letrec*" "letrec-syntax"