syntax, TUI: support "strikethrough"

fix #3436

Includes:
vim-patch:8.0.1038: strike-through text not supported
This commit is contained in:
Jaskaran Singh
2019-09-14 03:16:19 +05:30
committed by Justin M. Keyes
parent 35341b34b8
commit 3afb397407
14 changed files with 81 additions and 18 deletions

View File

@@ -115,11 +115,11 @@ static int include_link = 0; /* when 2 include "nvim/link" and "clear" */
/// The "term", "cterm" and "gui" arguments can be any combination of the
/// following names, separated by commas (but no spaces!).
static char *(hl_name_table[]) =
{"bold", "standout", "underline", "undercurl",
"italic", "reverse", "inverse", "NONE"};
{ "bold", "standout", "underline", "undercurl",
"italic", "reverse", "inverse", "strikethrough", "NONE" };
static int hl_attr_table[] =
{HL_BOLD, HL_STANDOUT, HL_UNDERLINE, HL_UNDERCURL, HL_ITALIC, HL_INVERSE,
HL_INVERSE, 0};
{ HL_BOLD, HL_STANDOUT, HL_UNDERLINE, HL_UNDERCURL, HL_ITALIC, HL_INVERSE,
HL_INVERSE, HL_STRIKETHROUGH, 0 };
// The patterns that are being searched for are stored in a syn_pattern.
// A match item consists of one pattern.