view runtime/syntax/whitespace.vim @ 22105:bae2a3fa141f v8.2.1602

patch 8.2.1602: Vim9: cannot use 'true" with getbufinfo() Commit: https://github.com/vim/vim/commit/036c2cf719e3de445779a275514030be66e26883 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 5 17:37:07 2020 +0200 patch 8.2.1602: Vim9: cannot use 'true" with getbufinfo() Problem: Vim9: cannot use 'true" with getbufinfo(). Solution: Use dict_get_bool(). (closes https://github.com/vim/vim/issues/6873)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Sep 2020 17:45:04 +0200
parents 3fc0f57ecb91
children
line wrap: on
line source

" Simplistic way to make spaces and Tabs visible

" This can be added to an already active syntax.

syn match Space " "
syn match Tab "\t"
if &background == "dark"
  hi def Space ctermbg=darkred guibg=#500000
  hi def Tab ctermbg=darkgreen guibg=#003000
else
  hi def Space ctermbg=lightred guibg=#ffd0d0
  hi def Tab ctermbg=lightgreen guibg=#d0ffd0
endif