A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/cb18545253259af339957316ab8361fb0cca48e5 below:

add strikethrough, nocombine to set_hl · neovim/neovim@cb18545 · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+13

-1

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+13

-1

lines changed Original file line number Diff line number Diff line change

@@ -81,10 +81,12 @@ return {

81 81

highlight = {

82 82

"bold";

83 83

"standout";

84 +

"strikethrough";

84 85

"underline";

85 86

"undercurl";

86 87

"italic";

87 88

"reverse";

89 +

"nocombine";

88 90

"default";

89 91

"global";

90 92

"cterm";

@@ -100,10 +102,12 @@ return {

100 102

highlight_cterm = {

101 103

"bold";

102 104

"standout";

105 +

"strikethrough";

103 106

"underline";

104 107

"undercurl";

105 108

"italic";

106 109

"reverse";

110 +

"nocombine";

107 111

};

108 112

}

109 113 Original file line number Diff line number Diff line change

@@ -815,6 +815,8 @@ HlAttrs dict2hlattrs(Dict(highlight) *dict, bool use_rgb, int *link_id, Error *e

815 815

CHECK_FLAG(dict, mask, undercurl, , HL_UNDERCURL);

816 816

CHECK_FLAG(dict, mask, italic, , HL_ITALIC);

817 817

CHECK_FLAG(dict, mask, reverse, , HL_INVERSE);

818 +

CHECK_FLAG(dict, mask, strikethrough, , HL_STRIKETHROUGH);

819 +

CHECK_FLAG(dict, mask, nocombine, , HL_NOCOMBINE);

818 820

CHECK_FLAG(dict, mask, default, _, HL_DEFAULT);

819 821

CHECK_FLAG(dict, mask, global, , HL_GLOBAL);

820 822

@@ -871,6 +873,8 @@ HlAttrs dict2hlattrs(Dict(highlight) *dict, bool use_rgb, int *link_id, Error *e

871 873

CHECK_FLAG(cterm, cterm_mask, undercurl, , HL_UNDERCURL);

872 874

CHECK_FLAG(cterm, cterm_mask, italic, , HL_ITALIC);

873 875

CHECK_FLAG(cterm, cterm_mask, reverse, , HL_INVERSE);

876 +

CHECK_FLAG(cterm, cterm_mask, strikethrough, , HL_STRIKETHROUGH);

877 +

CHECK_FLAG(cterm, cterm_mask, nocombine, , HL_NOCOMBINE);

874 878 875 879

} else if (HAS_KEY(dict->cterm)) {

876 880

api_set_error(err, kErrorTypeValidation, "'cterm' must be a Dictionary.");

Original file line number Diff line number Diff line change

@@ -195,10 +195,12 @@ describe("API: set highlight", function()

195 195

reverse = true,

196 196

undercurl = true,

197 197

underline = true,

198 +

strikethrough = true,

198 199

cterm = {

199 200

italic = true,

200 201

reverse = true,

201 202

undercurl = true,

203 +

strikethrough = true,

202 204

}

203 205

}

204 206

local highlight3_result_gui = {

@@ -209,13 +211,15 @@ describe("API: set highlight", function()

209 211

reverse = true,

210 212

undercurl = true,

211 213

underline = true,

214 +

strikethrough = true,

212 215

}

213 216

local highlight3_result_cterm = {

214 217

background = highlight_color.ctermbg,

215 218

foreground = highlight_color.ctermfg,

216 219

italic = true,

217 220

reverse = true,

218 221

undercurl = true,

222 +

strikethrough = true,

219 223

}

220 224 221 225

local function get_ns()

@@ -264,7 +268,7 @@ describe("API: set highlight", function()

264 268

exec_capture('highlight Test_hl'))

265 269 266 270

meths.set_hl(0, 'Test_hl2', highlight3_config)

267 -

eq('Test_hl2 xxx cterm=undercurl,italic,reverse ctermfg=8 ctermbg=15 gui=bold,underline,undercurl,italic,reverse guifg=#ff0000 guibg=#0032aa',

271 +

eq('Test_hl2 xxx cterm=undercurl,italic,reverse,strikethrough ctermfg=8 ctermbg=15 gui=bold,underline,undercurl,italic,reverse,strikethrough guifg=#ff0000 guibg=#0032aa',

268 272

exec_capture('highlight Test_hl2'))

269 273 270 274

-- Colors are stored exactly as they are defined.

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4