diff runtime/syntax/xpm.vim @ 10895:c391bfbdb452

Updated runtime files. commit https://github.com/vim/vim/commit/3df0173fa6d0418e89ef4e9c1d04a97c92eec27c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 17 22:47:16 2017 +0100 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Feb 2017 23:00:06 +0100
parents 46763b01cd9a
children 9c221ad9634a
line wrap: on
line diff
--- a/runtime/syntax/xpm.vim
+++ b/runtime/syntax/xpm.vim
@@ -1,8 +1,9 @@
 " Vim syntax file
 " Language:	X Pixmap
 " Maintainer:	Ronald Schild <rs@scutum.de>
-" Last Change:	2008 May 28
+" Last Change:	2017 Feb 01
 " Version:	5.4n.1
+"               Jemma Nelson added termguicolors support
 
 " quit when a syntax file was already loaded
 if exists("b:current_syntax")
@@ -15,7 +16,7 @@ syn keyword xpmTodo		TODO FIXME XXX  con
 syn region  xpmComment		start="/\*"  end="\*/"  contains=xpmTodo
 syn region  xpmPixelString	start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=@xpmColors
 
-if has("gui_running")
+if has("gui_running") || has("termguicolors") && &termguicolors
 
 let color  = ""
 let chars  = ""
@@ -120,7 +121,7 @@ endwhile
 
 unlet color chars colors cpp n i s
 
-endif		" has("gui_running")
+endif          " has("gui_running") || has("termguicolors") && &termguicolors
 
 " Define the default highlighting.
 " Only when an item doesn't have highlighting yet