From 92ab75408df8bff49bb29e113b3cc159d1ac3105 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 18 Jul 2015 23:05:45 +0200 Subject: Allow for disabling individual languages, closes #66 --- syntax/arduino.vim | 4 ++++ syntax/blade.vim | 4 ++++ syntax/c.vim | 4 ++++ syntax/cabal.vim | 4 ++++ syntax/clojure.vim | 4 ++++ syntax/coffee.vim | 4 ++++ syntax/cpp.vim | 4 ++++ syntax/css.vim | 4 ++++ syntax/cucumber.vim | 4 ++++ syntax/dockerfile.vim | 4 ++++ syntax/eelixir.vim | 4 ++++ syntax/elixir.vim | 4 ++++ syntax/ember-script.vim | 4 ++++ syntax/emblem.vim | 4 ++++ syntax/erlang.vim | 4 ++++ syntax/eruby.vim | 4 ++++ syntax/git.vim | 4 ++++ syntax/gitcommit.vim | 4 ++++ syntax/gitconfig.vim | 4 ++++ syntax/gitrebase.vim | 4 ++++ syntax/gitsendemail.vim | 4 ++++ syntax/go.vim | 4 ++++ syntax/godoc.vim | 4 ++++ syntax/gohtmltmpl.vim | 4 ++++ syntax/gotexttmpl.vim | 4 ++++ syntax/haml.vim | 4 ++++ syntax/haskell.vim | 4 ++++ syntax/haxe.vim | 4 ++++ syntax/html.vim | 4 ++++ syntax/html/aria.vim | 4 ++++ syntax/html/rdfa.vim | 4 ++++ syntax/jade.vim | 4 ++++ syntax/jasmine.vim | 4 ++++ syntax/javascript.vim | 4 ++++ syntax/javascript/html5.vim | 4 ++++ syntax/json.vim | 4 ++++ syntax/jst.vim | 4 ++++ syntax/julia.vim | 4 ++++ syntax/latextoc.vim | 4 ++++ syntax/less.vim | 4 ++++ syntax/liquid.vim | 4 ++++ syntax/markdown.vim | 4 ++++ syntax/mason.vim | 4 ++++ syntax/mustache.vim | 4 ++++ syntax/nginx.vim | 4 ++++ syntax/ocaml.vim | 4 ++++ syntax/octave.vim | 4 ++++ syntax/opencl.vim | 4 ++++ syntax/perl.vim | 4 ++++ syntax/perl6.vim | 4 ++++ syntax/php.vim | 4 ++++ syntax/pod.vim | 4 ++++ syntax/proto.vim | 4 ++++ syntax/ps1.vim | 4 ++++ syntax/ps1xml.vim | 4 ++++ syntax/puppet.vim | 4 ++++ syntax/python.vim | 4 ++++ syntax/ragel.vim | 4 ++++ syntax/rhelp.vim | 4 ++++ syntax/rnoweb.vim | 4 ++++ syntax/ruby.vim | 4 ++++ syntax/rust.vim | 4 ++++ syntax/sass.vim | 4 ++++ syntax/sbt.vim | 4 ++++ syntax/scala.vim | 4 ++++ syntax/scss.vim | 4 ++++ syntax/slim.vim | 4 ++++ syntax/solidity.vim | 4 ++++ syntax/stylus.vim | 4 ++++ syntax/swift.vim | 4 ++++ syntax/systemd.vim | 4 ++++ syntax/tap.vim | 4 ++++ syntax/textile.vim | 4 ++++ syntax/thrift.vim | 4 ++++ syntax/tmux.vim | 4 ++++ syntax/tomdoc.vim | 4 ++++ syntax/toml.vim | 4 ++++ syntax/tt2.vim | 4 ++++ syntax/tt2html.vim | 4 ++++ syntax/tt2js.vim | 4 ++++ syntax/twig.vim | 4 ++++ syntax/typescript.vim | 4 ++++ syntax/vala.vim | 4 ++++ syntax/vbnet.vim | 4 ++++ syntax/velocity.vim | 4 ++++ syntax/vimgo.vim | 4 ++++ syntax/xs.vim | 4 ++++ syntax/xsl.vim | 4 ++++ 88 files changed, 352 insertions(+) (limited to 'syntax') 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 @@ -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 " 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 @@ -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 @@ -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 " 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 @@ -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 " 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 @@ -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 " 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 " 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -60,3 +62,5 @@ syn match htmlArg contained "\" syn match htmlArg contained "\" syn match htmlArg contained "\" + +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 @@ -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 @@ -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 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 @@ -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 @@ -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 @@ -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 @@ -87,3 +89,5 @@ syn region mustacheScriptTemplate start=+