mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
mark arguments of case-lambda as variable, mark case-lambda as keyword (#14386)
This commit is contained in:
@@ -48,6 +48,15 @@
|
||||
(symbol) @variable)
|
||||
(#any-of? @_f "lambda" "λ"))
|
||||
|
||||
(list
|
||||
.
|
||||
(symbol) @_f
|
||||
(list
|
||||
.
|
||||
(list
|
||||
(symbol) @variable))
|
||||
(#eq? @_f "case-lambda"))
|
||||
|
||||
(list
|
||||
.
|
||||
(symbol) @_f
|
||||
@@ -92,7 +101,7 @@
|
||||
.
|
||||
(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)$"
|
||||
"^(define-syntax|let\\*|lambda|λ|case-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)$"
|
||||
))
|
||||
|
||||
(list
|
||||
|
Reference in New Issue
Block a user