From ea71b4225d0140103d99748ca4a33ecf22c03f62 Mon Sep 17 00:00:00 2001 From: postfen <26173007+postfen@users.noreply.github.com> Date: Tue, 15 Nov 2022 19:56:12 -0700 Subject: [PATCH] Added support for @storageclass.lifetime @storageclass.lifetime / TSStorageClassLifetime Added in highlight groups for Rust lifetime syntax. --- lua/gruvbox-baby/theme.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/gruvbox-baby/theme.lua b/lua/gruvbox-baby/theme.lua index 46b66d2..6213b12 100644 --- a/lua/gruvbox-baby/theme.lua +++ b/lua/gruvbox-baby/theme.lua @@ -45,6 +45,7 @@ function M.link_new_highlights() highlight! link @punctuation.special TSPunctSpecial highlight! link @repeat TSRepeat highlight! link @storageclass TSStorageClass + highlight! link @storageclass.lifetime TSStorageClassLifetime highlight! link @string TSString highlight! link @string.escape TSStringEscape highlight! link @string.regex TSStringRegex @@ -187,7 +188,8 @@ function M.setup(config) TSException = { fg = c.red }, TSType = { fg = c.clean_green }, TSTypeBuiltin = { fg = c.blue_gray }, - TSTypeQualifier = { fg = c.orange}, + TSTypeQualifier = { fg = c.orange }, + TSStorageClassLifetime = {fg = c.orange}, TSStructure = { fg = c.blue_gray }, TSVariable = { fg = c.light_blue, style = config.variable_style }, TSVariableBuiltin = { fg = c.blue_gray },