Mercurial > vim
comparison runtime/syntax/smarty.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 | 3fc0f57ecb91 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
6 " URL: http://www.dwerg.net/projects/vim/smarty.vim | 6 " URL: http://www.dwerg.net/projects/vim/smarty.vim |
7 | 7 |
8 " For version 5.x: Clear all syntax items | 8 " For version 5.x: Clear all syntax items |
9 " For version 6.x: Quit when a syntax file was already loaded | 9 " For version 6.x: Quit when a syntax file was already loaded |
10 if !exists("main_syntax") | 10 if !exists("main_syntax") |
11 if version < 600 | 11 " quit when a syntax file was already loaded |
12 syntax clear | 12 if exists("b:current_syntax") |
13 elseif exists("b:current_syntax") | 13 finish |
14 finish | 14 endif |
15 endif | |
16 let main_syntax = 'smarty' | 15 let main_syntax = 'smarty' |
17 endif | 16 endif |
18 | 17 |
19 syn case ignore | 18 syn case ignore |
20 | 19 |
55 syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc,smartyZone | 54 syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc,smartyZone |
56 syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc,smartyZone | 55 syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc,smartyZone |
57 syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc,smartyZone | 56 syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc,smartyZone |
58 | 57 |
59 | 58 |
60 if version >= 508 || !exists("did_smarty_syn_inits") | 59 command -nargs=+ HiLink hi def link <args> |
61 if version < 508 | |
62 let did_smarty_syn_inits = 1 | |
63 command -nargs=+ HiLink hi link <args> | |
64 else | |
65 command -nargs=+ HiLink hi def link <args> | |
66 endif | |
67 | 60 |
68 HiLink smartyTagName Identifier | 61 HiLink smartyTagName Identifier |
69 HiLink smartyProperty Constant | 62 HiLink smartyProperty Constant |
70 " if you want the text inside the braces to be colored, then | 63 " if you want the text inside the braces to be colored, then |
71 " remove the comment in from of the next statement | 64 " remove the comment in from of the next statement |
72 "HiLink smartyZone Include | 65 "HiLink smartyZone Include |
73 HiLink smartyInFunc Function | 66 HiLink smartyInFunc Function |
74 HiLink smartyBlock Constant | 67 HiLink smartyBlock Constant |
75 HiLink smartyDot SpecialChar | 68 HiLink smartyDot SpecialChar |
76 HiLink smartyModifier Function | 69 HiLink smartyModifier Function |
77 delcommand HiLink | 70 delcommand HiLink |
78 endif | |
79 | 71 |
80 let b:current_syntax = "smarty" | 72 let b:current_syntax = "smarty" |
81 | 73 |
82 if main_syntax == 'smarty' | 74 if main_syntax == 'smarty' |
83 unlet main_syntax | 75 unlet main_syntax |