Skip to content

Commit 4f44a5c

Browse files
authored
Merge pull request #331 from tmillr/fix-329
fix(syntax): incorrect highlight for `Delimiter`
2 parents d832925 + eecaa82 commit 4f44a5c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

lua/github-theme/group/syntax.lua

+14-12
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,16 @@ function M.get(spec, config)
5959
PreCondit = { link = 'PreProc' }, -- preprocessor #if, #else, #endif, etc.
6060

6161
Type = { fg = syn.type, style = stl.types }, -- (preferred) int, long, char, etc.
62-
-- StorageClass = { link = 'Type' }, -- static, register, volatile, etc.
63-
-- Structure = { link = 'Type' }, -- struct, union, enum, etc.
64-
-- Typedef = { link = 'Type' }, -- A typedef
62+
StorageClass = { link = 'Type' }, -- static, register, volatile, etc.
63+
Structure = { link = 'Type' }, -- struct, union, enum, etc.
64+
Typedef = { link = 'Type' }, -- A typedef
6565

6666
Special = { fg = spec.fg1 }, -- (preferred) any special symbol
67-
-- Special = { fg = syn.ident }, -- (preferred) any special symbol
68-
-- SpecialChar = { link = 'Special' }, -- special character in a constant
69-
-- Tag = { link = 'Special' }, -- you can use CTRL-] on this
70-
-- Delimiter = { link = 'Special' }, -- character that needs attention
71-
-- SpecialComment = { link = 'Special' }, -- special things inside a comment
72-
-- Debug = { link = 'Special' }, -- debugging statements
67+
SpecialChar = { link = 'Special' }, -- special character in a constant
68+
Tag = { link = 'Special' }, -- you can use CTRL-] on this
69+
Delimiter = { link = 'Special' }, -- character that needs attention
70+
SpecialComment = { link = 'Special' }, -- special things inside a comment
71+
Debug = { link = 'Special' }, -- debugging statements
7372

7473
Underlined = { style = 'underline' }, -- (preferred) text that stands out, HTML links
7574
Bold = { style = 'bold' },
@@ -118,9 +117,12 @@ function M.get(spec, config)
118117
-- markdownLinkText = {},
119118

120119
-- Diff filetype (runtime/syntax/diff.vim)
121-
diffAdded = { fg = spec.git.add, bg = spec.diff.add }, -- Added lines ('^+.*' | '^>.*')
122-
diffRemoved = { fg = spec.git.removed, bg = spec.diff.delete },-- Removed lines ('^-.*' | '^<.*')
123-
diffChanged = { fg = spec.git.changed, bg = spec.diff.change }, -- Changed lines ('^! .*')
120+
Added = { fg = spec.git.add, bg = spec.diff.add }, -- added line in a diff
121+
Changed = { fg = spec.git.changed, bg = spec.diff.change }, -- changed line in a diff
122+
Removed = { fg = spec.git.removed, bg = spec.diff.delete },-- removed line in a diff
123+
diffAdded = { link = 'Added' }, -- Added lines ('^+.*' | '^>.*')
124+
diffChanged = { link = 'Changed' }, -- Changed lines ('^! .*')
125+
diffRemoved = { link = 'Removed' },-- Removed lines ('^-.*' | '^<.*')
124126
diffOldFile = { fg = spec.diag.warn }, -- Old file that is being diff against
125127
diffNewFile = { fg = spec.diag.hint }, -- New file that is being compared to the old file
126128
diffFile = { fg = spec.diag.info }, -- The filename of the diff ('diff --git a/readme.md b/readme.md')

0 commit comments

Comments
 (0)