Constant is different from TSConstant
This commit is contained in:
@@ -16,7 +16,7 @@ elseif lightness ~= nil then
|
||||
vim.api.nvim_echo({ { error_msg, "WarningMsg" } }, true, {})
|
||||
end
|
||||
|
||||
local italic_comments = vim.g.zenbones_italic_comments ~= false and "italic" or nil
|
||||
local italic_comments = vim.g.zenbones_italic_comments ~= false and "italic" or "NONE"
|
||||
|
||||
-- stylua: ignore start
|
||||
local theme = lush(function()
|
||||
@@ -117,10 +117,10 @@ local theme = lush(function()
|
||||
-- default,
|
||||
-- Uncomment and edit if you want more specific syntax highlighting.
|
||||
|
||||
Constant { fg = p.fg.li(25), gui = "italic" }, -- (preferred) any constant
|
||||
Constant { fg = p.fg.li(24), gui = "italic" }, -- (preferred) any constant
|
||||
-- String { }, -- a string constant: "this is a string"
|
||||
-- Character { }, -- a character constant: 'c', '\n'
|
||||
Number { gui = "italic" }, -- a number constant: 234, 0xff
|
||||
Number { fg = p.fg, gui = "italic" }, -- a number constant: 234, 0xff
|
||||
Boolean { Number }, -- a boolean constant: TRUE, false
|
||||
-- Float { }, -- a floating point constant: 2.3e10
|
||||
|
||||
@@ -141,12 +141,12 @@ local theme = lush(function()
|
||||
-- Macro { }, -- same as Define
|
||||
-- PreCondit { }, -- preprocessor #if, #else, #endif, etp.
|
||||
|
||||
Type { fg = p.bg.da(62) }, -- (preferred) int, long, char, etp.
|
||||
Type { fg = p.bg.sa(20).da(60) }, -- (preferred) int, long, char, etp.
|
||||
-- StorageClass { }, -- static, register, volatile, etc.
|
||||
-- Structure { }, -- struct, union, enum, etc.
|
||||
-- Typedef { }, -- A typedef
|
||||
|
||||
Special { fg = p.fg.li(21), gui = "bold" }, -- (preferred) any special symbol
|
||||
Special { fg = p.fg.li(23), gui = "bold" }, -- (preferred) any special symbol
|
||||
-- SpecialChar { }, -- special character in a constant
|
||||
-- Tag { }, -- you can use CTRL-] on this
|
||||
Delimiter { fg = p.bg.da(42) }, -- character that needs attention
|
||||
@@ -219,7 +219,7 @@ local theme = lush(function()
|
||||
-- TSComment { }; -- For comment blocks.
|
||||
-- TSConstructor { }; -- For constructor calls and definitions: ` { }` in Lua, and Java constructors.
|
||||
-- TSConditional { }; -- For keywords related to conditionnals.
|
||||
-- TSConstant { }; -- For constants
|
||||
TSConstant { Identifier, gui = "bold,italic" }; -- For constants
|
||||
TSConstBuiltin { Number }; -- For constant that are built in the language: `nil` in Lua.
|
||||
TSConstMacro { Number }; -- For constants that are defined by macros: `NULL` in C.
|
||||
-- TSError { }; -- For syntax/parser errors.
|
||||
|
||||
Reference in New Issue
Block a user