diff vendor/vim-packs/srcery-vim/after/syntax/html.vim @ 704:1e0f578f6752

Update vendor and add support for vim packs
author nanaya <me@nanaya.net>
date Sun, 18 Dec 2022 20:06:46 +0900
parents
children 78469331407e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/vim-packs/srcery-vim/after/syntax/html.vim	Sun Dec 18 20:06:46 2022 +0900
@@ -0,0 +1,47 @@
+if srcery#helper#ShouldAbort('html')
+  finish
+endif
+
+let s:none = g:srcery#palette.none
+let s:black = g:srcery#palette.black
+let s:bright_white = g:srcery#palette.bright_white
+
+let s:bold = g:srcery#palette.bold
+let s:italic = g:srcery#palette.italic
+let s:underline = g:srcery#palette.underline
+
+" HTML: {{{
+
+
+hi! link htmlTagName SrceryBlue
+hi! link htmlTag SrceryBrightBlack
+hi! link htmlEndTag SrceryBrightBlack
+hi! link htmlArg SrceryYellow
+
+hi! link htmlScriptTag SrceryRed
+hi! link htmlTagN SrceryBlue
+hi! link htmlSpecialTagName SrceryBlue
+
+call srcery#helper#Highlight('htmlLink', s:bright_white, s:none, s:underline)
+
+hi! link htmlSpecialChar SrceryYellow
+
+if g:srcery_bg_passthrough == 1 && !has('gui_running')
+  call srcery#helper#Highlight('htmlBold', s:bright_white, s:none, s:bold)
+  call srcery#helper#Highlight('htmlBoldUnderline', s:bright_white, s:none, s:bold . s:underline)
+  call srcery#helper#Highlight('htmlBoldItalic', s:bright_white, s:none, s:bold . s:italic)
+  call srcery#helper#Highlight('htmlBoldUnderlineItalic', s:bright_white, s:none, s:bold . s:underline . s:italic)
+  call srcery#helper#Highlight('htmlUnderline', s:bright_white, s:none, s:underline)
+  call srcery#helper#Highlight('htmlUnderlineItalic', s:bright_white, s:none, s:underline . s:italic)
+  call srcery#helper#Highlight('htmlItalic', s:bright_white, s:none, s:italic)
+else
+  call srcery#helper#Highlight('htmlBold', s:bright_white, s:black, s:bold)
+  call srcery#helper#Highlight('htmlBoldUnderline', s:bright_white, s:black, s:bold . s:underline)
+  call srcery#helper#Highlight('htmlBoldItalic', s:bright_white, s:black, s:bold . s:italic)
+  call srcery#helper#Highlight('htmlBoldUnderlineItalic', s:bright_white, s:black, s:bold . s:underline . s:italic)
+  call srcery#helper#Highlight('htmlUnderline', s:bright_white, s:black, s:underline)
+  call srcery#helper#Highlight('htmlUnderlineItalic', s:bright_white, s:black, s:underline . s:italic)
+  call srcery#helper#Highlight('htmlItalic', s:bright_white, s:black, s:italic)
+endif
+
+" }}}