Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/shellcheckrc/highlights.scm')
| -rw-r--r-- | runtime/queries/shellcheckrc/highlights.scm | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/runtime/queries/shellcheckrc/highlights.scm b/runtime/queries/shellcheckrc/highlights.scm new file mode 100644 index 00000000..b7b0a748 --- /dev/null +++ b/runtime/queries/shellcheckrc/highlights.scm @@ -0,0 +1,55 @@ +(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" + )) |