summaryrefslogtreecommitdiff
path: root/runtime/syntax/javacc.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/javacc.vim
parent4792255eff03760dca0fd014616532e6d47db364 (diff)
downloadvim-89bcfda6834aba724d12554a34b9ed49f5789fd5.zip
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/javacc.vim')
-rw-r--r--runtime/syntax/javacc.vim37
1 files changed, 11 insertions, 26 deletions
diff --git a/runtime/syntax/javacc.vim b/runtime/syntax/javacc.vim
index 5458de754..93d174097 100644
--- a/runtime/syntax/javacc.vim
+++ b/runtime/syntax/javacc.vim
@@ -7,11 +7,8 @@
" Uses java.vim, and adds a few special things for JavaCC Parser files.
" Those files usually have the extension *.jj
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
finish
endif
@@ -19,11 +16,7 @@ let s:cpo_save = &cpo
set cpo&vim
" source the java.vim file
-if version < 600
- source <sfile>:p:h/java.vim
-else
- runtime! syntax/java.vim
-endif
+runtime! syntax/java.vim
unlet b:current_syntax
"remove catching errors caused by wrong parenthesis (does not work in javacc
@@ -58,22 +51,14 @@ syn keyword javaccActionToken TOKEN SKIP MORE SPECIAL_TOKEN
syn keyword javaccError DEBUG IGNORE_IN_BNF
" Define the default highlighting.
-" For version 5.7 and earlier: only when not done already
-" For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_css_syn_inits")
- if version < 508
- let did_css_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
- HiLink javaccSpecToken Statement
- HiLink javaccActionToken Type
- HiLink javaccPackages javaScopeDecl
- HiLink javaccToken String
- HiLink javaccError Error
- delcommand HiLink
-endif
+" Only when an item doesn't have highlighting yet
+command -nargs=+ HiLink hi def link <args>
+HiLink javaccSpecToken Statement
+HiLink javaccActionToken Type
+HiLink javaccPackages javaScopeDecl
+HiLink javaccToken String
+HiLink javaccError Error
+delcommand HiLink
let b:current_syntax = "javacc"
let &cpo = s:cpo_save