diff options
author | Aman Verma <amanraoverma@gmail.com> | 2020-11-02 16:38:13 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-03 21:06:22 +0200 |
commit | 388fa6e7761712a7b1d3422a879fa9e90b6fa606 (patch) | |
tree | c8a977224a17f45ded086117fd6b1c3bd1fd52ee /data | |
parent | 9d1e747d17c75a288d0b58a8ac973dab1712afbf (diff) | |
download | meson-388fa6e7761712a7b1d3422a879fa9e90b6fa606.zip meson-388fa6e7761712a7b1d3422a879fa9e90b6fa606.tar.gz meson-388fa6e7761712a7b1d3422a879fa9e90b6fa606.tar.bz2 |
vim: Drop backwards compatibility with Vim 5.
Diffstat (limited to 'data')
-rw-r--r-- | data/syntax-highlighting/vim/syntax/meson.vim | 45 |
1 files changed, 15 insertions, 30 deletions
diff --git a/data/syntax-highlighting/vim/syntax/meson.vim b/data/syntax-highlighting/vim/syntax/meson.vim index 1100113..161bcf1 100644 --- a/data/syntax-highlighting/vim/syntax/meson.vim +++ b/data/syntax-highlighting/vim/syntax/meson.vim @@ -17,11 +17,7 @@ " let meson_space_error_highlight = 1 " -" For version 5.x: Clear all syntax items. -" For version 6.x: Quit when a syntax file was already loaded. -if version < 600 - syntax clear -elseif exists("b:current_syntax") +if exists("b:current_syntax") finish endif @@ -132,31 +128,20 @@ if exists("meson_space_error_highlight") syn match mesonSpaceError display "\t\+ " endif -if version >= 508 || !exists("did_meson_syn_inits") - if version <= 508 - let did_meson_syn_inits = 1 - command -nargs=+ HiLink hi link <args> - else - command -nargs=+ HiLink hi def link <args> - endif - - " The default highlight links. Can be overridden later. - HiLink mesonStatement Statement - HiLink mesonConditional Conditional - HiLink mesonRepeat Repeat - HiLink mesonOperator Operator - HiLink mesonComment Comment - HiLink mesonTodo Todo - HiLink mesonString String - HiLink mesonEscape Special - HiLink mesonNumber Number - HiLink mesonBuiltin Function - HiLink mesonConstant Number - if exists("meson_space_error_highlight") - HiLink mesonSpaceError Error - endif - - delcommand HiLink +" The default highlight links. Can be overridden later. +hi def link mesonStatement Statement +hi def link mesonConditional Conditional +hi def link mesonRepeat Repeat +hi def link mesonOperator Operator +hi def link mesonComment Comment +hi def link mesonTodo Todo +hi def link mesonString String +hi def link mesonEscape Special +hi def link mesonNumber Number +hi def link mesonBuiltin Function +hi def link mesonConstant Number +if exists("meson_space_error_higlight") + hi def link mesonSpaceError Error endif let b:current_syntax = "meson" |