comparison runtime/syntax/kwt.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 91e53bcb7946
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: kimwitu++ 2 " Language: kimwitu++
3 " Maintainer: Michael Piefel <entwurf@piefel.de> 3 " Maintainer: Michael Piefel <entwurf@piefel.de>
4 " Last Change: 2 May 2001 4 " Last Change: 2 May 2001
5 5
6 " For version 5.x: Clear all syntax items 6 " quit when a syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 " Read the C++ syntax to start with 11 " Read the C++ syntax to start with
15 if version < 600 12 runtime! syntax/cpp.vim
16 source <sfile>:p:h/cpp.vim 13 unlet b:current_syntax
17 else
18 runtime! syntax/cpp.vim
19 unlet b:current_syntax
20 endif
21 14
22 " kimwitu++ extentions 15 " kimwitu++ extentions
23 16
24 " Don't stop at eol, messes around with CPP mode, but gives line spanning 17 " Don't stop at eol, messes around with CPP mode, but gives line spanning
25 " strings in unparse rules 18 " strings in unparse rules
56 " match rule bodies 49 " match rule bodies
57 syn region kwtUnpBody transparent keepend extend fold start="->\s*\[" start="^\s*\[" skip="\$\@<!{\_.\{-}\$\@<!}" end="\s]\s\=;\=$" end="^]\s\=;\=$" end="}]\s\=;\=$" 50 syn region kwtUnpBody transparent keepend extend fold start="->\s*\[" start="^\s*\[" skip="\$\@<!{\_.\{-}\$\@<!}" end="\s]\s\=;\=$" end="^]\s\=;\=$" end="}]\s\=;\=$"
58 syn region kwtRewBody transparent keepend extend fold start="->\s*<" start="^\s*<" end="\s>\s\=;\=$" end="^>\s\=;\=$" 51 syn region kwtRewBody transparent keepend extend fold start="->\s*<" start="^\s*<" end="\s>\s\=;\=$" end="^>\s\=;\=$"
59 52
60 " Define the default highlighting. 53 " Define the default highlighting.
61 " For version 5.7 and earlier: only when not done already 54 " Only when an item doesn't have highlighting yet
62 " For version 5.8 and later: only when an item doesn't have highlighting yet 55 command -nargs=+ HiLink hi def link <args>
63 if version >= 508 || !exists("did_kwt_syn_inits")
64 if version < 508
65 let did_kwt_syn_inits = 1
66 command -nargs=+ HiLink hi link <args>
67 else
68 command -nargs=+ HiLink hi def link <args>
69 endif
70 56
71 HiLink kwtStatement cppStatement 57 HiLink kwtStatement cppStatement
72 HiLink kwtDecl cppStatement 58 HiLink kwtDecl cppStatement
73 HiLink kwtCast cppStatement 59 HiLink kwtCast cppStatement
74 HiLink kwtSep Delimiter 60 HiLink kwtSep Delimiter
75 HiLink kwtViews Label 61 HiLink kwtViews Label
76 HiLink kwtPhylum Type 62 HiLink kwtPhylum Type
77 HiLink kwtOption PreProc 63 HiLink kwtOption PreProc
78 "HiLink cText Comment 64 "HiLink cText Comment
79 65
80 delcommand HiLink 66 delcommand HiLink
81 endif
82 67
83 syn sync lines=300 68 syn sync lines=300
84 69
85 let b:current_syntax = "kwt" 70 let b:current_syntax = "kwt"
86 71