1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-07 20:46:21 +01:00
helix/runtime/queries/shellcheckrc/highlights.scm
Kristoffer Plagborg Bak Sørensen 6b73c3c550
feat: add shellcheckrc language (#14202)
2025-08-31 08:53:42 -04:00

56 lines
1020 B
Scheme

(comment) @comment
(string) @string
(boolean) @constant.builtin.boolean
(integer) @constant.numeric.integer
[
"disable"
"enable"
"extended-analysis"
"external-sources"
"source"
"source-path"
"shell"
] @keyword
"=" @operator
[
","
"-"
] @punctuation.delimiter
"SC" @special
(shell) @type.enum.variant
(all) @variable.builtin
(identifier) @label
(source_directive
(identifier) @string.special.path)
(source_path_directive
(identifier) @string.special.path)
(source_directive
(identifier) @variable.builtin (#eq? @variable.builtin "SCRIPTDIR"))
(source_path_directive
(identifier) @variable.builtin (#eq? @variable.builtin "SCRIPTDIR"))
(enable_directive
(identifier) @diagnostic.error
(#not-any-of? @diagnostic.error
"add-default-case"
"avoid-nullary-conditions"
"check-extra-masked-returns"
"check-set-e-suppressed"
"check-unassigned-uppercase"
"deprecate-which"
"quote-safe-variables"
"require-double-brackets"
"require-variable-braces"
))