Mercurial > vim
comparison runtime/syntax/lex.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | c53344bacabf |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax | 6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax |
7 " | 7 " |
8 " Option: | 8 " Option: |
9 " lex_uses_cpp : if this variable exists, then C++ is loaded rather than C | 9 " lex_uses_cpp : if this variable exists, then C++ is loaded rather than C |
10 | 10 |
11 " For version 5.x: Clear all syntax items | 11 " quit when a syntax file was already loaded |
12 " For version 6.x: Quit when a syntax file was already loaded | 12 if exists("b:current_syntax") |
13 if version < 600 | |
14 syntax clear | |
15 elseif exists("b:current_syntax") | |
16 finish | 13 finish |
17 endif | 14 endif |
18 | 15 |
19 " Read the C/C++ syntax to start with | 16 " Read the C/C++ syntax to start with |
20 let s:Cpath= fnameescape(expand("<sfile>:p:h").(exists("g:lex_uses_cpp")? "/cpp.vim" : "/c.vim")) | 17 let s:Cpath= fnameescape(expand("<sfile>:p:h").(exists("g:lex_uses_cpp")? "/cpp.vim" : "/c.vim")) |