mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
f05b440572
Closes #18722 - Replace the `@escape` capture name with `@string.escape` for escape sequences in Go, Python, Regex, Racket, Ruby, and Scheme. - Rust - Add syntax highlighting for escape sequences. Close #18722 - Fix the issue where `@punctuation.delimiter` is being overwritten by `@operator`. - Add the period (".") to `@punctuation.delimiter`. Release Notes: - N/A
28 lines
727 B
Scheme
28 lines
727 B
Scheme
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|
|
|
|
(number) @number
|
|
(character) @constant.builtin
|
|
(boolean) @constant.builtin
|
|
|
|
(symbol) @variable
|
|
(string) @string
|
|
|
|
(escape_sequence) @string.escape
|
|
|
|
[(comment)
|
|
(block_comment)
|
|
(directive)] @comment
|
|
|
|
((symbol) @operator
|
|
(#match? @operator "^(\\+|-|\\*|/|=|>|<|>=|<=)$"))
|
|
|
|
(list
|
|
.
|
|
(symbol) @function)
|
|
|
|
(list
|
|
.
|
|
(symbol) @keyword
|
|
(#match? @keyword
|
|
"^(define-syntax|let\\*|lambda|λ|case|=>|quote-splicing|unquote-splicing|set!|let|letrec|letrec-syntax|let-values|let\\*-values|do|else|define|cond|syntax-rules|unquote|begin|quote|let-syntax|and|if|quasiquote|letrec|delay|or|when|unless|identifier-syntax|assert|library|export|import|rename|only|except|prefix)$"
|
|
))
|