diff options
author | Jaskaran Singh <jaskaransingh7654321@gmail.com> | 2019-09-14 03:16:19 +0530 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-13 14:46:19 -0700 |
commit | 3afb397407af3c94fc82d694186e8d451e625237 (patch) | |
tree | 6178036f4d81fd706eff8926f96876eb195faeb4 /test/functional/terminal/highlight_spec.lua | |
parent | 35341b34b835eeb184ac9f0e2078ce31f6612fd7 (diff) | |
download | rneovim-3afb397407af3c94fc82d694186e8d451e625237.tar.gz rneovim-3afb397407af3c94fc82d694186e8d451e625237.tar.bz2 rneovim-3afb397407af3c94fc82d694186e8d451e625237.zip |
syntax, TUI: support "strikethrough"
fix #3436
Includes:
vim-patch:8.0.1038: strike-through text not supported
Diffstat (limited to 'test/functional/terminal/highlight_spec.lua')
-rw-r--r-- | test/functional/terminal/highlight_spec.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/functional/terminal/highlight_spec.lua b/test/functional/terminal/highlight_spec.lua index 48fedd5927..06a6fd6f2b 100644 --- a/test/functional/terminal/highlight_spec.lua +++ b/test/functional/terminal/highlight_spec.lua @@ -18,7 +18,7 @@ describe(':terminal highlight', function() [1] = {foreground = 45}, [2] = {background = 46}, [3] = {foreground = 45, background = 46}, - [4] = {bold = true, italic = true, underline = true}, + [4] = {bold = true, italic = true, underline = true, strikethrough = true}, [5] = {bold = true}, [6] = {foreground = 12}, [7] = {bold = true, reverse = true}, @@ -108,10 +108,11 @@ describe(':terminal highlight', function() thelpers.set_fg(45) thelpers.set_bg(46) end) - descr('bold, italics and underline', 4, function() + descr('bold, italics, underline and strikethrough', 4, function() thelpers.set_bold() thelpers.set_italic() thelpers.set_underline() + thelpers.set_strikethrough() end) end) @@ -215,7 +216,7 @@ describe('synIDattr()', function() screen = Screen.new(50, 7) command('highlight Normal ctermfg=252 guifg=#ff0000 guibg=Black') -- Salmon #fa8072 Maroon #800000 - command('highlight Keyword ctermfg=79 guifg=Salmon guisp=Maroon') + command('highlight Keyword ctermfg=79 guifg=Salmon guisp=Maroon cterm=strikethrough gui=strikethrough') end) it('returns cterm-color if RGB-capable UI is _not_ attached', function() @@ -255,6 +256,12 @@ describe('synIDattr()', function() eq('252', eval('synIDattr(hlID("Normal"), "fg")')) eq('79', eval('synIDattr(hlID("Keyword"), "fg")')) end) + + it('returns "1" if group has "strikethrough" attribute', function() + eq('', eval('synIDattr(hlID("Normal"), "strikethrough")')) + eq('1', eval('synIDattr(hlID("Keyword"), "strikethrough")')) + eq('1', eval('synIDattr(hlID("Keyword"), "strikethrough", "gui")')) + end) end) describe('fg/bg special colors', function() |