diff --git a/lua/github-theme/group/modules/treesitter.lua b/lua/github-theme/group/modules/treesitter.lua index 5e4a0c64..4e24b033 100644 --- a/lua/github-theme/group/modules/treesitter.lua +++ b/lua/github-theme/group/modules/treesitter.lua @@ -242,6 +242,8 @@ If you want to stay on nvim 0.7, disable the module, or track on 'v0.0.x' branch ['@constant.builtin.rust'] = { fg = pl.syntax.variable }, ['@namespace.rust'] = FALLBACK_OR_NONE, ['@preproc.rust'] = { fg = syn.const }, + ['@storageclass.lifetime.rust'] = { link = '@tag.rust' }, + ['@storageclass.lifetime.punctuation.rust'] = { link = '@punctuation.special.rust' }, -- SCSS ['@property.scss'] = { link = '@constant' }, diff --git a/lua/github-theme/group/syntax.lua b/lua/github-theme/group/syntax.lua index 89a96f39..e3033fa3 100644 --- a/lua/github-theme/group/syntax.lua +++ b/lua/github-theme/group/syntax.lua @@ -126,6 +126,20 @@ function M.get(spec, config) diffFile = { fg = spec.diag.info }, -- The filename of the diff ('diff --git a/readme.md b/readme.md') diffLine = { fg = syn.builtin2 }, -- Line information ('@@ -169,6 +169,9 @@') diffIndexLine = { fg = syn.preproc }, -- Index line of diff ('index bf3763d..94f0f62 100644') + + -- Language specific ------------------------------------------------------- + + -- Json + jsonKeyword = { fg = syn.tag }, -- Json keys (e.g. `"key": "value"`) + jsonNull = { link = 'Constant' }, + + -- Lua + luaFunction = { link = 'Keyword' }, -- Function keywords (`function`, `end`) (corrects upstream inaccuracy/bug) + luaTable = FALLBACK_OR_NONE, -- Table brackets (`{}`) + + -- Yaml + yamlBlockMappingKey = { fg = syn.tag }, + yamlFlowMappingKey = { fg = syn.tag }, } end diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index cf3afecf..8e84f14c 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -21,3 +21,7 @@ ; Make crate/self/super the @keyword color [(crate) (self) (super)] @keyword + +; Capture the ' in lifetimes separately +; TODO: upstream this capture +(lifetime "'" @storageclass.lifetime.punctuation)