comparison runtime/syntax/dtrace.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 82b5078be2dd
children
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
8 8
9 " dtrace lexer and parser are at 9 " dtrace lexer and parser are at
10 " http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdtrace/common/dt_lex.l 10 " http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdtrace/common/dt_lex.l
11 " http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdtrace/common/dt_grammar.y 11 " http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdtrace/common/dt_grammar.y
12 12
13 if version < 600 13 " quit when a syntax file was already loaded
14 syntax clear 14 if exists("b:current_syntax")
15 elseif exists("b:current_syntax")
16 finish 15 finish
17 endif 16 endif
18 17
19 " Read the C syntax to start with 18 " Read the C syntax to start with
20 if version < 600 19 runtime! syntax/c.vim
21 so <sfile>:p:h/c.vim 20 unlet b:current_syntax
22 else
23 runtime! syntax/c.vim
24 unlet b:current_syntax
25 endif
26 21
27 syn clear cCommentL " dtrace doesn't support // style comments 22 syn clear cCommentL " dtrace doesn't support // style comments
28 23
29 " First line may start with #!, also make sure a '-s' flag is somewhere in 24 " First line may start with #!, also make sure a '-s' flag is somewhere in
30 " that line. 25 " that line.