From: Bram Moolenaar Date: Fri, 28 Nov 2008 10:16:05 +0000 (+0000) Subject: updated for version 7.2-052 X-Git-Tag: v7.2.052 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f507d6a12099cf527ae4c32b8040ef3b003ccb6;p=vim updated for version 7.2-052 --- diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 3ea7d7f4d..92d7a0f05 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5348,10 +5348,12 @@ synIDattr({synID}, {what} [, {mode}]) *synIDattr()* "fg" foreground color (GUI: color name used to set the color, cterm: color number as a string, term: empty string) - "bg" background color (like "fg") + "bg" background color (as with "fg") + "sp" special color (as with "fg") |highlight-guisp| "fg#" like "fg", but for the GUI and the GUI is running the name in "#RRGGBB" form "bg#" like "fg#" for "bg" + "sp#" like "fg#" for "sp" "bold" "1" if bold "italic" "1" if italic "reverse" "1" if reverse diff --git a/src/eval.c b/src/eval.c index e118f042e..739415049 100644 --- a/src/eval.c +++ b/src/eval.c @@ -16648,8 +16648,11 @@ f_synIDattr(argvars, rettv) p = highlight_has_attr(id, HL_INVERSE, modec); break; - case 's': /* standout */ - p = highlight_has_attr(id, HL_STANDOUT, modec); + case 's': + if (TOLOWER_ASC(what[1]) == 'p') /* sp[#] */ + p = highlight_color(id, what, modec); + else /* standout */ + p = highlight_has_attr(id, HL_STANDOUT, modec); break; case 'u': diff --git a/src/version.c b/src/version.c index e45bd1203..6940c821b 100644 --- a/src/version.c +++ b/src/version.c @@ -676,6 +676,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 52, /**/ 51, /**/