summaryrefslogtreecommitdiffstats
path: root/syntax
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-07-18 23:05:45 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2015-07-18 23:05:45 +0200
commit92ab75408df8bff49bb29e113b3cc159d1ac3105 (patch)
tree77cd9b27eb0b1e43f8c456520748e6715bc7a250 /syntax
parentf977779693518c748d87fb5babd98f6ef411837c (diff)
downloadvim-polyglot-92ab75408df8bff49bb29e113b3cc159d1ac3105.tar.gz
vim-polyglot-92ab75408df8bff49bb29e113b3cc159d1ac3105.zip
Allow for disabling individual languages, closes #66
Diffstat (limited to '')
-rw-r--r--syntax/arduino.vim4
-rw-r--r--syntax/blade.vim4
-rw-r--r--syntax/c.vim4
-rw-r--r--syntax/cabal.vim4
-rw-r--r--syntax/clojure.vim4
-rw-r--r--syntax/coffee.vim4
-rw-r--r--syntax/cpp.vim4
-rw-r--r--syntax/css.vim4
-rw-r--r--syntax/cucumber.vim4
-rw-r--r--syntax/dockerfile.vim4
-rw-r--r--syntax/eelixir.vim4
-rw-r--r--syntax/elixir.vim4
-rw-r--r--syntax/ember-script.vim4
-rw-r--r--syntax/emblem.vim4
-rw-r--r--syntax/erlang.vim4
-rw-r--r--syntax/eruby.vim4
-rw-r--r--syntax/git.vim4
-rw-r--r--syntax/gitcommit.vim4
-rw-r--r--syntax/gitconfig.vim4
-rw-r--r--syntax/gitrebase.vim4
-rw-r--r--syntax/gitsendemail.vim4
-rw-r--r--syntax/go.vim4
-rw-r--r--syntax/godoc.vim4
-rw-r--r--syntax/gohtmltmpl.vim4
-rw-r--r--syntax/gotexttmpl.vim4
-rw-r--r--syntax/haml.vim4
-rw-r--r--syntax/haskell.vim4
-rw-r--r--syntax/haxe.vim4
-rw-r--r--syntax/html.vim4
-rw-r--r--syntax/html/aria.vim4
-rw-r--r--syntax/html/rdfa.vim4
-rw-r--r--syntax/jade.vim4
-rw-r--r--syntax/jasmine.vim4
-rw-r--r--syntax/javascript.vim4
-rw-r--r--syntax/javascript/html5.vim4
-rw-r--r--syntax/json.vim4
-rw-r--r--syntax/jst.vim4
-rw-r--r--syntax/julia.vim4
-rw-r--r--syntax/latextoc.vim4
-rw-r--r--syntax/less.vim4
-rw-r--r--syntax/liquid.vim4
-rw-r--r--syntax/markdown.vim4
-rw-r--r--syntax/mason.vim4
-rw-r--r--syntax/mustache.vim4
-rw-r--r--syntax/nginx.vim4
-rw-r--r--syntax/ocaml.vim4
-rw-r--r--syntax/octave.vim4
-rw-r--r--syntax/opencl.vim4
-rw-r--r--syntax/perl.vim4
-rw-r--r--syntax/perl6.vim4
-rw-r--r--syntax/php.vim4
-rw-r--r--syntax/pod.vim4
-rw-r--r--syntax/proto.vim4
-rw-r--r--syntax/ps1.vim4
-rw-r--r--syntax/ps1xml.vim4
-rw-r--r--syntax/puppet.vim4
-rw-r--r--syntax/python.vim4
-rw-r--r--syntax/ragel.vim4
-rw-r--r--syntax/rhelp.vim4
-rw-r--r--syntax/rnoweb.vim4
-rw-r--r--syntax/ruby.vim4
-rw-r--r--syntax/rust.vim4
-rw-r--r--syntax/sass.vim4
-rw-r--r--syntax/sbt.vim4
-rw-r--r--syntax/scala.vim4
-rw-r--r--syntax/scss.vim4
-rw-r--r--syntax/slim.vim4
-rw-r--r--syntax/solidity.vim4
-rw-r--r--syntax/stylus.vim4
-rw-r--r--syntax/swift.vim4
-rw-r--r--syntax/systemd.vim4
-rw-r--r--syntax/tap.vim4
-rw-r--r--syntax/textile.vim4
-rw-r--r--syntax/thrift.vim4
-rw-r--r--syntax/tmux.vim4
-rw-r--r--syntax/tomdoc.vim4
-rw-r--r--syntax/toml.vim4
-rw-r--r--syntax/tt2.vim4
-rw-r--r--syntax/tt2html.vim4
-rw-r--r--syntax/tt2js.vim4
-rw-r--r--syntax/twig.vim4
-rw-r--r--syntax/typescript.vim4
-rw-r--r--syntax/vala.vim4
-rw-r--r--syntax/vbnet.vim4
-rw-r--r--syntax/velocity.vim4
-rw-r--r--syntax/vimgo.vim4
-rw-r--r--syntax/xs.vim4
-rw-r--r--syntax/xsl.vim4
88 files changed, 352 insertions, 0 deletions
diff --git a/syntax/arduino.vim b/syntax/arduino.vim
index 1a2cd41b..4065608a 100644
--- a/syntax/arduino.vim
+++ b/syntax/arduino.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1
+
" Vim syntax file
" Language: Arduino
" Maintainer: Sudar <sudar@sudarmuthu.com>
@@ -164,3 +166,5 @@ hi def link arduinoType Type
hi def link arduinoConstant Constant
hi def link arduinoFunc Function
hi def link arduinoIdentifier Identifier
+
+endif
diff --git a/syntax/blade.vim b/syntax/blade.vim
index 3f512163..0a1f7607 100644
--- a/syntax/blade.vim
+++ b/syntax/blade.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
+
" Language: Blade
" Maintainer: Jason Walton <jwalton512@gmail.com>
" URL: https://github.com/xsbeats/vim-blade
@@ -39,3 +41,5 @@ hi def link bladeStructure Keyword
if !exists('b:current_syntax')
let b:current_syntax = 'blade'
endif
+
+endif
diff --git a/syntax/c.vim b/syntax/c.vim
index ac4909ed..81fce556 100644
--- a/syntax/c.vim
+++ b/syntax/c.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c/c++') == -1
+
" Vim syntax file
" Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org>
@@ -483,3 +485,5 @@ unlet s:ft
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/cabal.vim b/syntax/cabal.vim
index abe561a0..f0ede997 100644
--- a/syntax/cabal.vim
+++ b/syntax/cabal.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
" Vim syntax file
" Language: Cabal
" Author: Tristan Ravitch
@@ -145,3 +147,5 @@ if version >= 508 || !exists('did_cabal_syntax_inits')
endif
let b:current_syntax = 'cabal'
+
+endif
diff --git a/syntax/clojure.vim b/syntax/clojure.vim
index e4348557..163e599d 100644
--- a/syntax/clojure.vim
+++ b/syntax/clojure.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
+
" Vim syntax file
" Language: Clojure
" Authors: Toralf Wittner <toralf.wittner@gmail.com>
@@ -214,3 +216,5 @@ highlight default link clojureParen Delimiter
let b:current_syntax = "clojure"
" vim:sts=8:sw=8:ts=8:noet
+
+endif
diff --git a/syntax/coffee.vim b/syntax/coffee.vim
index bfb252f5..8688a859 100644
--- a/syntax/coffee.vim
+++ b/syntax/coffee.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -219,3 +221,5 @@ syn cluster coffeeAll contains=coffeeStatement,coffeeRepeat,coffeeConditional,
if !exists('b:current_syntax')
let b:current_syntax = 'coffee'
endif
+
+endif
diff --git a/syntax/cpp.vim b/syntax/cpp.vim
index 9ef2be4b..c1c6d442 100644
--- a/syntax/cpp.vim
+++ b/syntax/cpp.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c/c++') == -1
+
" Vim syntax file
" Language: C++
" Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp)
@@ -78,3 +80,5 @@ endif
let b:current_syntax = "cpp"
" vim: ts=8
+
+endif
diff --git a/syntax/css.vim b/syntax/css.vim
index 8212455b..b74cfc6f 100644
--- a/syntax/css.vim
+++ b/syntax/css.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css') == -1
+
" Vim syntax file
" Language: Cascading Style Sheets
" Previous Contributor List:
@@ -669,3 +671,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/cucumber.vim b/syntax/cucumber.vim
index f1ef2992..328d3912 100644
--- a/syntax/cucumber.vim
+++ b/syntax/cucumber.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
+
" Vim syntax file
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -140,3 +142,5 @@ let &cpo = s:keepcpo
unlet s:keepcpo
" vim:set sts=2 sw=2:
+
+endif
diff --git a/syntax/dockerfile.vim b/syntax/dockerfile.vim
index 60b395ea..b3a669cc 100644
--- a/syntax/dockerfile.vim
+++ b/syntax/dockerfile.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
+
" dockerfile.vim - Syntax highlighting for Dockerfiles
" Maintainer: Honza Pokorny <http://honza.ca>
" Version: 0.5
@@ -29,3 +31,5 @@ syntax region dockerShSnip matchgroup=DockerShGroup start="^\s*\%(RUN\|CMD\)\s\+
highlight link DockerShGroup dockerfileKeyword
let b:current_syntax = "dockerfile"
+
+endif
diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim
index f3ea65d4..6d940cb9 100644
--- a/syntax/eelixir.vim
+++ b/syntax/eelixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim syntax file
" Language: Embedded Elixir
" URL: https://github.com/elixir-lang/vim-elixir
@@ -64,3 +66,5 @@ if main_syntax == 'eelixir'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/elixir.vim b/syntax/elixir.vim
index b481db9f..26374cf3 100644
--- a/syntax/elixir.vim
+++ b/syntax/elixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim syntax file
" Language: Elixir
" Maintainer: Carlos Galdino <carloshsgaldino@gmail.com>
@@ -188,3 +190,5 @@ hi def link elixirStringDelimiter Delimiter
hi def link elixirRegexDelimiter Delimiter
hi def link elixirInterpolationDelimiter Delimiter
hi def link elixirSigilDelimiter Delimiter
+
+endif
diff --git a/syntax/ember-script.vim b/syntax/ember-script.vim
index 1ede9d8e..87d6d05d 100644
--- a/syntax/ember-script.vim
+++ b/syntax/ember-script.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
+
" Language: ember-script
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-ember-script
@@ -29,3 +31,5 @@ syn match emEach /\v\@each/ display
hi def link emEach Special
let b:current_syntax = 'ember-script'
+
+endif
diff --git a/syntax/emblem.vim b/syntax/emblem.vim
index b5807c7e..584d72d9 100644
--- a/syntax/emblem.vim
+++ b/syntax/emblem.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
+
" Language: emblem
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-emblem
@@ -154,3 +156,5 @@ hi def link eblId Constant
hi def link eblClass Identifier
let b:current_syntax = 'emblem'
+
+endif
diff --git a/syntax/erlang.vim b/syntax/erlang.vim
index 7f883559..fc24aab3 100644
--- a/syntax/erlang.vim
+++ b/syntax/erlang.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'erlang') == -1
+
" Vim syntax file
" Language: Erlang (http://www.erlang.org)
" Maintainer: Csaba Hoch <csaba.hoch@gmail.com>
@@ -269,3 +271,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 et
+
+endif
diff --git a/syntax/eruby.vim b/syntax/eruby.vim
index 4e175bcc..e152e071 100644
--- a/syntax/eruby.vim
+++ b/syntax/eruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim syntax file
" Language: eRuby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -72,3 +74,5 @@ if main_syntax == 'eruby'
endif
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/syntax/git.vim b/syntax/git.vim
index 48264c7b..964b0b8f 100644
--- a/syntax/git.vim
+++ b/syntax/git.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: generic git output
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -76,3 +78,5 @@ hi def link gitDiffAdded diffAdded
hi def link gitDiffRemoved diffRemoved
let b:current_syntax = "git"
+
+endif
diff --git a/syntax/gitcommit.vim b/syntax/gitcommit.vim
index 5fc541e6..88dc19ea 100644
--- a/syntax/gitcommit.vim
+++ b/syntax/gitcommit.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git commit file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -82,3 +84,5 @@ hi def link gitcommitArrow gitcommitComment
hi def link gitcommitBlank Error
let b:current_syntax = "gitcommit"
+
+endif
diff --git a/syntax/gitconfig.vim b/syntax/gitconfig.vim
index c6c56f77..49b992b0 100644
--- a/syntax/gitconfig.vim
+++ b/syntax/gitconfig.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git config file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -36,3 +38,5 @@ hi def link gitconfigEscape Delimiter
hi def link gitconfigError Error
let b:current_syntax = "gitconfig"
+
+endif
diff --git a/syntax/gitrebase.vim b/syntax/gitrebase.vim
index 08464563..4fe38e88 100644
--- a/syntax/gitrebase.vim
+++ b/syntax/gitrebase.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git rebase --interactive
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -36,3 +38,5 @@ hi def link gitrebaseComment Comment
hi def link gitrebaseSquashError Error
let b:current_syntax = "gitrebase"
+
+endif
diff --git a/syntax/gitsendemail.vim b/syntax/gitsendemail.vim
index 3d7f1065..756f5da2 100644
--- a/syntax/gitsendemail.vim
+++ b/syntax/gitsendemail.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git send-email message
" Maintainer: Tim Pope
@@ -21,3 +23,5 @@ syn match gitsendemailComment "^GIT:.*"
hi def link gitsendemailComment Comment
let b:current_syntax = "gitsendemail"
+
+endif
diff --git a/syntax/go.vim b/syntax/go.vim
index 0c606ecc..fc0e7a8c 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
" Copyright 2009 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -295,3 +297,5 @@ hi def link goBuildDirective PreProc
syn sync minlines=500
let b:current_syntax = "go"
+
+endif
diff --git a/syntax/godoc.vim b/syntax/godoc.vim
index 0fba2080..7fdd8337 100644
--- a/syntax/godoc.vim
+++ b/syntax/godoc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
" Copyright 2011 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -45,3 +47,5 @@ syn sync minlines=500
let b:current_syntax = "godoc"
" vim:ts=4 sts=2 sw=2:
+
+endif
diff --git a/syntax/gohtmltmpl.vim b/syntax/gohtmltmpl.vim
index 5aa6c98d..b5e3ff76 100644
--- a/syntax/gohtmltmpl.vim
+++ b/syntax/gohtmltmpl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -13,3 +15,5 @@ unlet b:current_syntax
let b:current_syntax = "gohtmltmpl"
" vim:ts=4:sw=4:et
+
+endif
diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim
index 50b4653d..23cc8d0b 100644
--- a/syntax/gotexttmpl.vim
+++ b/syntax/gotexttmpl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
" Copyright 2011 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -83,3 +85,5 @@ hi def link goTplComment Comment
let b:current_syntax = "gotexttmpl"
" vim:ts=4:sw=4:et
+
+endif
diff --git a/syntax/haml.vim b/syntax/haml.vim
index 4cc54caa..c1c407f0 100644
--- a/syntax/haml.vim
+++ b/syntax/haml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim syntax file
" Language: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -107,3 +109,5 @@ if main_syntax == "haml"
endif
" vim:set sw=2:
+
+endif
diff --git a/syntax/haskell.vim b/syntax/haskell.vim
index 8c890ee5..b8d91371 100644
--- a/syntax/haskell.vim
+++ b/syntax/haskell.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
" Vim syntax file
" Language: Haskell
" Author: Tristan Ravitch
@@ -158,3 +160,5 @@ if version >= 508 || !exists('did_hs_syntax_inits')
endif
let b:current_syntax = "haskell"
+
+endif
diff --git a/syntax/haxe.vim b/syntax/haxe.vim
index ec950b94..c28e892d 100644
--- a/syntax/haxe.vim
+++ b/syntax/haxe.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haxe') == -1
+
" Vim syntax file
" Language: haxe
" Derived from:
@@ -425,3 +427,5 @@ if main_syntax == 'haxe'
unlet main_syntax
endif
let b:spell_options="contained"
+
+endif
diff --git a/syntax/html.vim b/syntax/html.vim
index 95aeb39e..abeb1490 100644
--- a/syntax/html.vim
+++ b/syntax/html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
@@ -117,3 +119,5 @@ syn keyword htmlArg contained x x-height x1 x2 xChannelSelector xlink:actuate xl
syn keyword htmlArg contained y y1 y2 yChannelSelector
syn keyword htmlArg contained z zoomAndPan
syn keyword htmlArg contained alignment-baseline baseline-shift clip-path clip-rule clip color-interpolation-filters color-interpolation color-profile color-rendering color cursor direction display dominant-baseline enable-background fill-opacity fill-rule fill filter flood-color flood-opacity font-family font-size-adjust font-size font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width stroke text-anchor text-decoration text-rendering unicode-bidi visibility word-spacing writing-mode
+
+endif
diff --git a/syntax/html/aria.vim b/syntax/html/aria.vim
index 8fb67394..28cf34c0 100644
--- a/syntax/html/aria.vim
+++ b/syntax/html/aria.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: WAI-ARIA
" Maintainer: othree <othree@gmail.com>
@@ -60,3 +62,5 @@ syn match htmlArg contained "\<aria-\%(\|dropeffect\|grabbed\)\>"
syn match htmlArg contained "\<aria-\%(\|activedescendant\|controls\|describedby\|flowto\)\>"
syn match htmlArg contained "\<aria-\%(\|labelledby\|owns\|posinset\|setsize\)\>"
+
+endif
diff --git a/syntax/html/rdfa.vim b/syntax/html/rdfa.vim
index ca529d32..3326a5df 100644
--- a/syntax/html/rdfa.vim
+++ b/syntax/html/rdfa.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: RDFa
" Maintainer: othree <othree@gmail.com>
@@ -9,3 +11,5 @@
" RDFa
" http://www.w3.org/TR/rdfa-syntax/#s_syntax
syn keyword htmlArg contained about content datatype href inlist prefix property rel resource rev src typeof vocab
+
+endif
diff --git a/syntax/jade.vim b/syntax/jade.vim
index 6de6f112..c14ee69a 100644
--- a/syntax/jade.vim
+++ b/syntax/jade.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jade') == -1
+
" Vim syntax file
" Language: Jade
" Maintainer: Joshua Borton
@@ -100,3 +102,5 @@ let b:current_syntax = "jade"
if main_syntax == "jade"
unlet main_syntax
endif
+
+endif
diff --git a/syntax/jasmine.vim b/syntax/jasmine.vim
index 3a46a392..134b890b 100644
--- a/syntax/jasmine.vim
+++ b/syntax/jasmine.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jasmine') == -1
+
" Syntax highlighting for jasmine specs (used by http://github.com/thomd/vim-jasmine).
" if b:current_syntax is defined, some other syntax files, earlier in 'runtimepath' was already loaded
@@ -32,3 +34,5 @@ hi def link jasmineNot Special
hi def link jasmineMatcher Statement
hi def link jasmineSpy Special
hi def link jasmineSpyMatcher Statement
+
+endif
diff --git a/syntax/javascript.vim b/syntax/javascript.vim
index 1efe8c68..2d43c616 100644
--- a/syntax/javascript.vim
+++ b/syntax/javascript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
+
" Vim syntax file
" Language: JavaScript
" Maintainer: vim-javascript community
@@ -329,3 +331,5 @@ let b:current_syntax = "javascript"
if main_syntax == 'javascript'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/javascript/html5.vim b/syntax/javascript/html5.vim
index eaf84298..f9462dee 100644
--- a/syntax/javascript/html5.vim
+++ b/syntax/javascript/html5.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: HTML5 New Stuff
" Maintainer: othree <othree@gmail.com>
@@ -41,3 +43,5 @@ syn keyword javascriptDomElemAttrs videoWidth videoHeight poster
" drag and drop
syn keyword javascriptDomElemAttrs onDragStart onDragEnd onDragEnter onDragLeave onDragOver onDrag onDrop draggable dropzone
+
+endif
diff --git a/syntax/json.vim b/syntax/json.vim
index fbfbff4d..25989ead 100644
--- a/syntax/json.vim
+++ b/syntax/json.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
+
" Vim syntax file
" Language: JSON
" Maintainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json
@@ -117,3 +119,5 @@ endif
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
"THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"See https://twitter.com/elzr/status/294964017926119424
+
+endif
diff --git a/syntax/jst.vim b/syntax/jst.vim
index 8c43c525..be4b0c0c 100644
--- a/syntax/jst.vim
+++ b/syntax/jst.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -85,3 +87,5 @@ if exists("loaded_matchit")
endif
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/syntax/julia.vim b/syntax/julia.vim
index 9dab3c86..1424b0cc 100644
--- a/syntax/julia.vim
+++ b/syntax/julia.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
+
if exists("b:current_syntax")
finish
@@ -147,3 +149,5 @@ syn region ragelLine start="%%" end="$" contains=@ragel
let b:current_syntax = "julia"
+
+endif
diff --git a/syntax/latextoc.vim b/syntax/latextoc.vim
index 5709ed63..0faca708 100644
--- a/syntax/latextoc.vim
+++ b/syntax/latextoc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
syntax match helpText /^.*: .*/
syntax match secNum /^\S\+\(\.\S\+\)\?\s*/ contained conceal
syntax match secLine /^\S\+\t.\+/ contains=secNum
@@ -7,3 +9,5 @@ highlight link helpText PreProc
highlight link secNum Number
highlight link mainSecLine Title
highlight link ssubSecLine Comment
+
+endif
diff --git a/syntax/less.vim b/syntax/less.vim
index 44bf470e..c856e6af 100644
--- a/syntax/less.vim
+++ b/syntax/less.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -62,3 +64,5 @@ hi def link lessNestedProperty Type
hi def link lessClass PreProc
let b:current_syntax = "less"
+
+endif
diff --git a/syntax/liquid.vim b/syntax/liquid.vim
index a52c780d..fd09c7ce 100644
--- a/syntax/liquid.vim
+++ b/syntax/liquid.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'liquid') == -1
+
" Vim syntax file
" Language: Liquid
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -136,3 +138,5 @@ let b:current_syntax = 'liquid'
if exists('main_syntax') && main_syntax == 'liquid'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/markdown.vim b/syntax/markdown.vim
index 49dbe3a7..b22bbf1b 100644
--- a/syntax/markdown.vim
+++ b/syntax/markdown.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
+
" Vim syntax file
" Language: Markdown
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -143,3 +145,5 @@ if main_syntax ==# 'markdown'
endif
" vim:set sw=2:
+
+endif
diff --git a/syntax/mason.vim b/syntax/mason.vim
index b4c03ae2..a7b2119a 100644
--- a/syntax/mason.vim
+++ b/syntax/mason.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Mason (Perl embedded in HTML)
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -107,3 +109,5 @@ let b:current_syntax = "mason"
if main_syntax == 'mason'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/mustache.vim b/syntax/mustache.vim
index ec7d4fe5..ebedaee9 100644
--- a/syntax/mustache.vim
+++ b/syntax/mustache.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
+
" Mustache & Handlebars syntax
" Language: Mustache, Handlebars
" Maintainer: Juvenn Woo <machese@gmail.com>
@@ -87,3 +89,5 @@ syn region mustacheScriptTemplate start=+<script [^>]*type *=[^>]*text/\(mustach
let b:current_syntax = "mustache"
delcommand HtmlHiLink
+
+endif
diff --git a/syntax/nginx.vim b/syntax/nginx.vim
index ccd47680..c9e01c11 100644
--- a/syntax/nginx.vim
+++ b/syntax/nginx.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
+
" Vim syntax file
" Language: nginx.conf
@@ -662,3 +664,5 @@ hi link ngxDirective Identifier
hi link ngxDirectiveThirdParty Special
let b:current_syntax = "nginx"
+
+endif
diff --git a/syntax/ocaml.vim b/syntax/ocaml.vim
index e2abc552..a337f547 100644
--- a/syntax/ocaml.vim
+++ b/syntax/ocaml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
" Vim syntax file
" Language: OCaml
" Filenames: *.ml *.mli *.mll *.mly
@@ -329,3 +331,5 @@ endif
let b:current_syntax = "ocaml"
" vim: ts=8
+
+endif
diff --git a/syntax/octave.vim b/syntax/octave.vim
index 6a9c4744..3470afd1 100644
--- a/syntax/octave.vim
+++ b/syntax/octave.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'octave') == -1
+
" Vim syntax file
" Language: Octave
" Maintainer: Rik <rik@nomad.inbox5.com>
@@ -612,3 +614,5 @@ endif
let b:current_syntax = "octave"
"EOF vim: ts=8 noet tw=100 sw=8 sts=0
+
+endif
diff --git a/syntax/opencl.vim b/syntax/opencl.vim
index d5e0d5ac..b86e8eca 100644
--- a/syntax/opencl.vim
+++ b/syntax/opencl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
+
" Vim syntax file
" Language: OpenCL (Open Computing Language)
" Maintainer: Terence Ou (rivan_@msn.com)
@@ -155,3 +157,5 @@ hi def link clStatement Statement
let b:current_syntax = "opencl"
" vim: ts=8
+
+endif
diff --git a/syntax/perl.vim b/syntax/perl.vim
index cffca6d6..e272d978 100644
--- a/syntax/perl.vim
+++ b/syntax/perl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Perl 5
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -584,3 +586,5 @@ unlet s:cpo_save
" XXX Change to sts=4:sw=4
" vim:ts=8:sts=2:sw=2:expandtab:ft=vim
+
+endif
diff --git a/syntax/perl6.vim b/syntax/perl6.vim
index e5dda200..e77c7c3a 100644
--- a/syntax/perl6.vim
+++ b/syntax/perl6.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Perl 6
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -1959,3 +1961,5 @@ let &cpo = s:keepcpo
unlet s:keepcpo
" vim:ts=8:sts=4:sw=4:expandtab:ft=vim
+
+endif
diff --git a/syntax/php.vim b/syntax/php.vim
index fb1baf6a..fa9cad9f 100644
--- a/syntax/php.vim
+++ b/syntax/php.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'php') == -1
+
" Vim syntax file
" Language: PHP 5.3 & up
"
@@ -844,3 +846,5 @@ endif
" }}}
" vim: ts=8 sts=2 sw=2 fdm=marker expandtab
+
+endif
diff --git a/syntax/pod.vim b/syntax/pod.vim
index 094eff7d..c337de8f 100644
--- a/syntax/pod.vim
+++ b/syntax/pod.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Perl POD format
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -187,3 +189,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/proto.vim b/syntax/proto.vim
index 23085a28..d53a9d4e 100644
--- a/syntax/proto.vim
+++ b/syntax/proto.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1
+
" Protocol Buffers - Google's data interchange format
" Copyright 2008 Google Inc. All rights reserved.
" https://developers.google.com/protocol-buffers/
@@ -103,3 +105,5 @@ if version >= 508 || !exists("did_proto_syn_inits")
endif
let b:current_syntax = "proto"
+
+endif
diff --git a/syntax/ps1.vim b/syntax/ps1.vim
index 5d0a3f57..e935d581 100644
--- a/syntax/ps1.vim
+++ b/syntax/ps1.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim syntax file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -160,3 +162,5 @@ endif
let b:current_syntax = "ps1"
+
+endif
diff --git a/syntax/ps1xml.vim b/syntax/ps1xml.vim
index 02407f55..55c52d20 100644
--- a/syntax/ps1xml.vim
+++ b/syntax/ps1xml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim syntax file
" Language: Windows PowerShell XML
" Maintainer: Peter Provost <peter@provost.org>
@@ -54,3 +56,5 @@ let b:current_syntax = "ps1xml"
let &cpo = s:ps1xml_cpo_save
unlet s:ps1xml_cpo_save
+
+endif
diff --git a/syntax/puppet.vim b/syntax/puppet.vim
index a979acae..d38e297e 100644
--- a/syntax/puppet.vim
+++ b/syntax/puppet.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
" puppet syntax file
" Filename: puppet.vim
" Language: puppet configuration file
@@ -164,3 +166,5 @@ if version >= 508 || !exists("did_puppet_syn_inits")
endif
let b:current_syntax = "puppet"
+
+endif
diff --git a/syntax/python.vim b/syntax/python.vim
index 7482d076..09912922 100644
--- a/syntax/python.vim
+++ b/syntax/python.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python') == -1
+
" Vim syntax file
"
" Based on python.vim (from Vim 6.1 distribution)
@@ -319,3 +321,5 @@ if version >= 508 || !exists("did_python_syn_inits")
endif
let b:current_syntax = "python"
+
+endif
diff --git a/syntax/ragel.vim b/syntax/ragel.vim
index 67ade168..6f6ddf50 100644
--- a/syntax/ragel.vim
+++ b/syntax/ragel.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ragel') == -1
+
" Vim syntax file
"
" Language: Ragel
@@ -162,3 +164,5 @@ hi link caseLabelKeyword Keyword
hi link beginRL Type
let b:current_syntax = "ragel"
+
+endif
diff --git a/syntax/rhelp.vim b/syntax/rhelp.vim
index 80d243b2..ea4fca0d 100644
--- a/syntax/rhelp.vim
+++ b/syntax/rhelp.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
+
" Vim syntax file
" Language: R Help File
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
@@ -153,3 +155,5 @@ endif
let b:current_syntax = "rhelp"
" vim: foldmethod=marker:
+
+endif
diff --git a/syntax/rnoweb.vim b/syntax/rnoweb.vim
index 201a7792..437c31cc 100644
--- a/syntax/rnoweb.vim
+++ b/syntax/rnoweb.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
+
" Vim syntax file
" Language: R noweb Files
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
@@ -54,3 +56,5 @@ hi def link rnowebChunkReference Delimiter
let b:current_syntax = "rnoweb"
" vim: foldmethod=marker:
+
+endif
diff --git a/syntax/ruby.vim b/syntax/ruby.vim
index 5fd39aa3..3b141432 100644
--- a/syntax/ruby.vim
+++ b/syntax/ruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim syntax file
" Language: Ruby
" Maintainer: Doug Kearns <dougkearns@gmail.com>
@@ -390,3 +392,5 @@ hi def link rubySpaceError rubyError
let b:current_syntax = "ruby"
" vim: nowrap sw=2 sts=2 ts=8 noet:
+
+endif
diff --git a/syntax/rust.vim b/syntax/rust.vim
index a37b7b6d..47cb0154 100644
--- a/syntax/rust.vim
+++ b/syntax/rust.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Vim syntax file
" Language: Rust
" Maintainer: Patrick Walton <pcwalton@mozilla.com>
@@ -260,3 +262,5 @@ syn sync minlines=200
syn sync maxlines=500
let b:current_syntax = "rust"
+
+endif
diff --git a/syntax/sass.vim b/syntax/sass.vim
index 8fec5d03..b4df8a84 100644
--- a/syntax/sass.vim
+++ b/syntax/sass.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim syntax file
" Language: Sass
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -104,3 +106,5 @@ hi def link sassClass Type
let b:current_syntax = "sass"
" vim:set sw=2:
+
+endif
diff --git a/syntax/sbt.vim b/syntax/sbt.vim
index 68dcd954..e82e64d4 100644
--- a/syntax/sbt.vim
+++ b/syntax/sbt.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sbt') == -1
+
" Vim syntax file
" Language: sbt
" Maintainer: Derek Wyatt <derek@{myfirstname}{mylastname}.org>
@@ -31,3 +33,5 @@ hi link sbtSpecial Special
hi link sbtComment Comment
hi link sbtLineComment Comment
hi link sbtDocComment Comment
+
+endif
diff --git a/syntax/scala.vim b/syntax/scala.vim
index 2d727d08..674c57c4 100644
--- a/syntax/scala.vim
+++ b/syntax/scala.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
" Vim syntax file
" Language: Scala
" Maintainer: Derek Wyatt
@@ -221,3 +223,5 @@ if main_syntax ==# 'scala'
endif
" vim:set sw=2 sts=2 ts=8 et:
+
+endif
diff --git a/syntax/scss.vim b/syntax/scss.vim
index 6fb96915..cb3e0fe9 100644
--- a/syntax/scss.vim
+++ b/syntax/scss.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim syntax file
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -18,3 +20,5 @@ hi def link scssComment sassComment
let b:current_syntax = "scss"
" vim:set sw=2:
+
+endif
diff --git a/syntax/slim.vim b/syntax/slim.vim
index b8d7b6a8..995186c5 100644
--- a/syntax/slim.vim
+++ b/syntax/slim.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
+
" Vim syntax file
" Language: Slim
" Maintainer: Andrew Stone <andy@stonean.com>
@@ -100,3 +102,5 @@ hi def link slimWrappedAttrsDelimiter Delimiter
hi def link slimInlineTagChar Delimiter
let b:current_syntax = "slim"
+
+endif
diff --git a/syntax/solidity.vim b/syntax/solidity.vim
index 91a57e26..120db192 100644
--- a/syntax/solidity.vim
+++ b/syntax/solidity.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1
+
" Vim syntax file
" Language: Solidity
" Maintainer: Tomlion (qycpublic@gmail.com)
@@ -75,3 +77,5 @@ syn region solComment start="/\*" end="\*/" contains=solCommentTodo,
hi def link solCommentTodo Comment
hi def link solLineComment Comment
hi def link solComment Comment
+
+endif
diff --git a/syntax/stylus.vim b/syntax/stylus.vim
index f3edaf28..6928c552 100644
--- a/syntax/stylus.vim
+++ b/syntax/stylus.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
+
" Vim syntax file
" Language: CSS3
" Maintainer: Hsiaoming Yang <lepture@me.com>
@@ -374,3 +376,5 @@ hi def link stylusIdChar Special
let b:current_syntax = "stylus"
" vim:set sw=2:
+
+endif
diff --git a/syntax/swift.vim b/syntax/swift.vim
index e3c3dd07..cbe46d35 100644
--- a/syntax/swift.vim
+++ b/syntax/swift.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
+
" Language: Swift<https://developer.apple.com/swift/>
" Maintainer: toyama satoshi <toyamarinyon@gmail.com>
" URL: http://github.com/toyamarinyon/vim-swift
@@ -62,3 +64,5 @@ highlight default link swiftTypeIdentifier Type
if !exists('b:current_syntax')
let b:current_syntax = 'swift'
endif
+
+endif
diff --git a/syntax/systemd.vim b/syntax/systemd.vim
index d00cf7e2..a656e054 100644
--- a/syntax/systemd.vim
+++ b/syntax/systemd.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'systemd') == -1
+
" Filename: systemd.vim
" Purpose: Vim syntax file
" Language: systemd unit files
@@ -275,3 +277,5 @@ hi def link sdCapFlags Identifier
let b:current_syntax = "systemd"
" vim: fdm=marker
+
+endif
diff --git a/syntax/tap.vim b/syntax/tap.vim
index 51a56476..ab42a324 100644
--- a/syntax/tap.vim
+++ b/syntax/tap.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Verbose TAP Output
" Maintainer: Rufus Cable <rufus@threebytesfull.com>
@@ -95,3 +97,5 @@ if !exists("did_tapverboseoutput_syntax_inits")
endif
let b:current_syntax="tapVerboseOutput"
+
+endif
diff --git a/syntax/textile.vim b/syntax/textile.vim
index e9534e9b..d38cebf5 100644
--- a/syntax/textile.vim
+++ b/syntax/textile.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'textile') == -1
+
"
" You will have to restart vim for this to take effect. In any case
" it is a good idea to read ":he new-filetype" so that you know what
@@ -89,3 +91,5 @@ if version >= 508 || !exists("did_txt_syn_inits")
endif
" vim: set ai et sw=4 :
+
+endif
diff --git a/syntax/thrift.vim b/syntax/thrift.vim
index da8ebe2e..eb00f184 100644
--- a/syntax/thrift.vim
+++ b/syntax/thrift.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'thrift') == -1
+
" Vim syntax file
" Language: Thrift
" Maintainer: Martin Smith <martin@facebook.com>
@@ -96,3 +98,5 @@ endif
let b:current_syntax = "thrift"
+
+endif
diff --git a/syntax/tmux.vim b/syntax/tmux.vim
index a6bf74e2..0ceffd21 100644
--- a/syntax/tmux.vim
+++ b/syntax/tmux.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1
+
" Vim syntax file
" Language: tmux(1) configuration file
" Maintainer: Tiago Cunha <tcunha@users.sourceforge.net>
@@ -287,3 +289,5 @@ hi def link tmuxVariable Constant
hi def link tmuxVariableExpansion Constant
let b:current_syntax = "tmux"
+
+endif
diff --git a/syntax/tomdoc.vim b/syntax/tomdoc.vim
index ad607cd1..a2b2e6e0 100644
--- a/syntax/tomdoc.vim
+++ b/syntax/tomdoc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tomdoc') == -1
+
syn keyword tomdocKeywords
\ Returns Yields Raises Examples Signature
\ containedin=.*Comment
@@ -16,3 +18,5 @@ syn match tomdocArguments
hi default link tomdocDescriptions String
hi default link tomdocKeywords String
hi default link tomdocArguments HELP
+
+endif
diff --git a/syntax/toml.vim b/syntax/toml.vim
index 1a1a2086..f5545803 100644
--- a/syntax/toml.vim
+++ b/syntax/toml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
+
" Language: TOML
" Maintainer: Caleb Spare <cespare@gmail.com>
" URL: http://github.com/cespare/vim-toml
@@ -51,3 +53,5 @@ syn match tomlComment /#.*/ contains=@Spell,tomlTodo
hi def link tomlComment Comment
let b:current_syntax = "toml"
+
+endif
diff --git a/syntax/tt2.vim b/syntax/tt2.vim
index 4f9f51c9..4f94834e 100644
--- a/syntax/tt2.vim
+++ b/syntax/tt2.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 (Perl Template Toolkit)
" Maintainer: vim-perl <vim-perl@googlegroups.com>
" Author: Moriki, Atsushi <4woods+vim@gmail.com>
@@ -208,3 +210,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:ts=4:sw=4
+
+endif
diff --git a/syntax/tt2html.vim b/syntax/tt2html.vim
index ff1f0dcf..9d14c66d 100644
--- a/syntax/tt2html.vim
+++ b/syntax/tt2html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 embedded with HTML
" Maintainer: vim-perl <vim-perl@googlegroups.com>
" Author: Moriki, Atsushi <4woods+vim@gmail.com>
@@ -18,3 +20,5 @@ unlet b:current_syntax
syn cluster htmlPreProc add=@tt2_top_cluster
let b:current_syntax = "tt2html"
+
+endif
diff --git a/syntax/tt2js.vim b/syntax/tt2js.vim
index 5c76ccce..06086280 100644
--- a/syntax/tt2js.vim
+++ b/syntax/tt2js.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 embedded with Javascript
" Maintainer: Andy Lester <andy@petdance.com>
" Author: Yates, Peter <pd.yates@gmail.com>
@@ -18,3 +20,5 @@ unlet b:current_syntax
syn cluster javascriptPreProc add=@tt2_top_cluster
let b:current_syntax = "tt2js"
+
+endif
diff --git a/syntax/twig.vim b/syntax/twig.vim
index af3c2659..1e4bc8fd 100644
--- a/syntax/twig.vim
+++ b/syntax/twig.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
+
" Vim syntax file
" Language: Twig template
" Maintainer: Gabriel Gosselin <gabrielNOSPAM@evidens.ca>
@@ -107,3 +109,5 @@ endif
let b:current_syntax = "twig"
+
+endif
diff --git a/syntax/typescript.vim b/syntax/typescript.vim
index 5f249578..80757b4a 100644
--- a/syntax/typescript.vim
+++ b/syntax/typescript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
" Vim syntax file
" Language: typescript
" Author: MicroSoft Open Technologies Inc.
@@ -326,3 +328,5 @@ if main_syntax == 'typescript'
endif
" vim: ts=4
+
+endif
diff --git a/syntax/vala.vim b/syntax/vala.vim
index 3700fb63..95836482 100644
--- a/syntax/vala.vim
+++ b/syntax/vala.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vala') == -1
+
" Vim syntax file
" Language: Vala
" Maintainers: Emmanuele Bassi <ebassi@gnome.org>
@@ -198,3 +200,5 @@ let &cpo = s:vala_cpo_save
unlet s:vala_cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/vbnet.vim b/syntax/vbnet.vim
index c78f5ca8..c60772dc 100644
--- a/syntax/vbnet.vim
+++ b/syntax/vbnet.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vbnet') == -1
+
" Vim syntax file
" Language: VB.NET
" Maintainer: Tim Pope <vim@rebelongto.us>
@@ -429,3 +431,5 @@ endif
let b:current_syntax = "vbnet"
" vim:set ft=vim sts=4 sw=4:
+
+endif
diff --git a/syntax/velocity.vim b/syntax/velocity.vim
index 9090b40a..01fff656 100644
--- a/syntax/velocity.vim
+++ b/syntax/velocity.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1
+
" Vim syntax file
" Language: Velocity HTML template
" Maintainer: Hsiaoming Young <http://lepture.com>
@@ -65,3 +67,5 @@ if version >= 508 || !exists("did_velocity_syn_inits")
endif
let b:current_syntax = "velocity"
+
+endif
diff --git a/syntax/vimgo.vim b/syntax/vimgo.vim
index d62791d3..4dec0b43 100644
--- a/syntax/vimgo.vim
+++ b/syntax/vimgo.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -9,3 +11,5 @@ syn region goTitle start="\%1l" end=":"
hi def link goInterface Type
hi def link goTitle Label
+
+endif
diff --git a/syntax/xs.vim b/syntax/xs.vim
index 6fd0a468..fccb405f 100644
--- a/syntax/xs.vim
+++ b/syntax/xs.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: XS (Perl extension interface language)
" Author: Autogenerated from perl headers, on an original basis of Michael W. Dodge <sarge@pobox.com>
@@ -3276,3 +3278,5 @@ endif
let b:current_syntax = "xs"
" vim: ts=8
+
+endif
diff --git a/syntax/xsl.vim b/syntax/xsl.vim
index 73359e51..0725324c 100644
--- a/syntax/xsl.vim
+++ b/syntax/xsl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xls') == -1
+
" Vim syntax file
" Language: XSLT 1.0
" with HTML, CSS, JavaScript, PerlScript, VBScript and MSXSL extention
@@ -535,3 +537,5 @@ let b:current_syntax = "xsl"
"unlet s:xml_cpo_save
" vim: ts=4:sw=4
+
+endif