Mercurial > vim
view runtime/syntax/whitespace.vim @ 16312:46e8430738fa v8.1.1161
patch 8.1.1161: unreachable code
commit https://github.com/vim/vim/commit/1d79ce81e7be20405f0fa9687b37c86a2215e326
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 12 22:27:39 2019 +0200
patch 8.1.1161: unreachable code
Problem: Unreachable code.
Solution: Remove condition that will never be true. Add tests for all ANSI
colors.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Apr 2019 22:30:08 +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