diff --git a/lua/github-theme/group/modules/treesitter.lua b/lua/github-theme/group/modules/treesitter.lua index 65e46382..d63228c4 100644 --- a/lua/github-theme/group/modules/treesitter.lua +++ b/lua/github-theme/group/modules/treesitter.lua @@ -151,6 +151,15 @@ If you want to stay on nvim 0.7, disable the module, or track on 'v0.0.x' branch -- Language specific ------------------------------------------------------- + -- Bash + ['@operator.bash'] = { fg = syn.keyword, style = stl.operators }, + ['@function.builtin.bash'] = { fg = syn.keyword }, -- Invocations of builtin commands/functions + ['@function.call.bash'] = { fg = syn.const }, + ['@number.bash'] = FALLBACK_OR_NONE, + -- ['@punctuation.bracket.bash'] = { fg = syn.string }, -- $(, (, ), [, ], ((, )) + ['@punctuation.delimiter.bash'] = { fg = syn.keyword }, -- ; and ;; + ['@punctuation.special.bash'] = { link = "@punctuation.bash" }, -- $ + -- C ['@type.c'] = { fg = spec.variable }, ['@label.c'] = { fg = spec.variable }, diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm new file mode 100644 index 00000000..5ab2ab17 --- /dev/null +++ b/queries/bash/highlights.scm @@ -0,0 +1,20 @@ +;; extends + +; This should probably have its own unique/custom capture, but this works for +; now. +(command_substitution + [ "$(" ")" ] @string) + +; This should probably have its own unique/custom capture, but this works for +; now. +(process_substitution + [ "<(" ")" ] @string) + +(expansion + "#" @operator) + +(simple_expansion + "$" @variable) + +(subscript + index: (word) @punctuation.special (#any-of? @punctuation.special "@" "*"))