summaryrefslogtreecommitdiff
path: root/runtime/syntax/smarty.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-30 23:26:57 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-30 23:26:57 +0200
commit89bcfda6834aba724d12554a34b9ed49f5789fd5 (patch)
tree2ffddcadaae9d061e38e17a09b2635ec199eb1dd /runtime/syntax/smarty.vim
parent4792255eff03760dca0fd014616532e6d47db364 (diff)
downloadvim-git-89bcfda6834aba724d12554a34b9ed49f5789fd5.tar.gz
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/smarty.vim')
-rw-r--r--runtime/syntax/smarty.vim38
1 files changed, 15 insertions, 23 deletions
diff --git a/runtime/syntax/smarty.vim b/runtime/syntax/smarty.vim
index 6dda366ba..ab8e85dce 100644
--- a/runtime/syntax/smarty.vim
+++ b/runtime/syntax/smarty.vim
@@ -8,11 +8,10 @@
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if !exists("main_syntax")
- if version < 600
- syntax clear
- elseif exists("b:current_syntax")
- finish
-endif
+ " quit when a syntax file was already loaded
+ if exists("b:current_syntax")
+ finish
+ endif
let main_syntax = 'smarty'
endif
@@ -57,25 +56,18 @@ syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,ja
syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc,smartyZone
-if version >= 508 || !exists("did_smarty_syn_inits")
- if version < 508
- let did_smarty_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
+command -nargs=+ HiLink hi def link <args>
- HiLink smartyTagName Identifier
- HiLink smartyProperty Constant
- " if you want the text inside the braces to be colored, then
- " remove the comment in from of the next statement
- "HiLink smartyZone Include
- HiLink smartyInFunc Function
- HiLink smartyBlock Constant
- HiLink smartyDot SpecialChar
- HiLink smartyModifier Function
- delcommand HiLink
-endif
+HiLink smartyTagName Identifier
+HiLink smartyProperty Constant
+" if you want the text inside the braces to be colored, then
+" remove the comment in from of the next statement
+"HiLink smartyZone Include
+HiLink smartyInFunc Function
+HiLink smartyBlock Constant
+HiLink smartyDot SpecialChar
+HiLink smartyModifier Function
+delcommand HiLink
let b:current_syntax = "smarty"