view vendor/vim-packs/srcery-vim/after/syntax/html.vim @ 725:0a896ffe3029

Switch to tgz bsdunzip doesn't seem to unzip from stdin.
author nanaya <me@nanaya.net>
date Mon, 19 Aug 2024 17:03:52 +0900
parents 1e0f578f6752
children 78469331407e
line wrap: on
line source

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

" }}}