From 48e07bc5014fecfdff24f75124a65634c216c9e2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 15:54:31 +0200 Subject: Improve guard to support concatenated files --- syntax/Dockerfile.vim | 6 ++---- syntax/Jenkinsfile.vim | 6 ++---- syntax/ansible.vim | 6 ++---- syntax/ansible_hosts.vim | 6 ++---- syntax/apiblueprint.vim | 6 ++---- syntax/applescript.vim | 6 ++---- syntax/arduino.vim | 6 ++---- syntax/asciidoc.vim | 6 ++---- syntax/asl.vim | 6 ++---- syntax/basic/class.vim | 6 ++---- syntax/basic/cluster.vim | 6 ++---- syntax/basic/decorator.vim | 6 ++---- syntax/basic/doc.vim | 6 ++---- syntax/basic/function.vim | 6 ++---- syntax/basic/identifiers.vim | 6 ++---- syntax/basic/keyword.vim | 6 ++---- syntax/basic/literal.vim | 6 ++---- syntax/basic/members.vim | 6 ++---- syntax/basic/object.vim | 6 ++---- syntax/basic/patch.vim | 6 ++---- syntax/basic/reserved.vim | 6 ++---- syntax/basic/symbols.vim | 6 ++---- syntax/basic/type.vim | 6 ++---- syntax/blade.vim | 6 ++---- syntax/c.vim | 6 ++---- syntax/cabal.vim | 6 ++---- syntax/caddyfile.vim | 6 ++---- syntax/carp.vim | 6 ++---- syntax/clojure.vim | 6 ++---- syntax/cmake.vim | 6 ++---- syntax/coffee.vim | 6 ++---- syntax/common.vim | 6 ++---- syntax/cpp.vim | 6 ++---- syntax/cql.vim | 6 ++---- syntax/cryptol.vim | 6 ++---- syntax/crystal.vim | 6 ++---- syntax/csv.vim | 6 ++---- syntax/cucumber.vim | 6 ++---- syntax/cuesheet.vim | 6 ++---- syntax/d.vim | 6 ++---- syntax/dart.vim | 6 ++---- syntax/dcov.vim | 6 ++---- syntax/dd.vim | 6 ++---- syntax/ddoc.vim | 6 ++---- syntax/dhall.vim | 6 ++---- syntax/docker-compose.vim | 6 ++---- syntax/dsdl.vim | 6 ++---- syntax/dune.vim | 6 ++---- syntax/eelixir.vim | 6 ++---- syntax/elixir.vim | 6 ++---- syntax/elm.vim | 6 ++---- syntax/ember-script.vim | 6 ++---- syntax/emblem.vim | 6 ++---- syntax/erlang.vim | 6 ++---- syntax/eruby.vim | 6 ++---- syntax/fbs.vim | 6 ++---- syntax/ferm.vim | 6 ++---- syntax/fish.vim | 6 ++---- syntax/fsharp.vim | 6 ++---- syntax/git.vim | 6 ++---- syntax/gitcommit.vim | 6 ++---- syntax/gitconfig.vim | 6 ++---- syntax/gitrebase.vim | 6 ++---- syntax/gitsendemail.vim | 6 ++---- syntax/glsl.vim | 6 ++---- syntax/gmpl.vim | 6 ++---- syntax/gnuplot.vim | 6 ++---- syntax/go.vim | 6 ++---- syntax/godebugoutput.vim | 6 ++---- syntax/godebugstacktrace.vim | 6 ++---- syntax/godebugvariables.vim | 6 ++---- syntax/godefstack.vim | 6 ++---- syntax/gohtmltmpl.vim | 6 ++---- syntax/gomod.vim | 6 ++---- syntax/gotexttmpl.vim | 6 ++---- syntax/graphql.vim | 6 ++---- syntax/groovy.vim | 6 ++---- syntax/haml.vim | 6 ++---- syntax/haproxy.vim | 6 ++---- syntax/haskell.vim | 6 ++---- syntax/haxe.vim | 6 ++---- syntax/hcl.vim | 6 ++---- syntax/helm.vim | 6 ++---- syntax/hive.vim | 6 ++---- syntax/html.vim | 10 +++------- syntax/html/aria.vim | 6 ++---- syntax/html/electron.vim | 6 ++---- syntax/html/rdfa.vim | 6 ++---- syntax/i3config.vim | 6 ++---- syntax/idris.vim | 6 ++---- syntax/ion.vim | 6 ++---- syntax/jasmine.vim | 6 ++---- syntax/javascript.vim | 6 ++---- syntax/javascript/html5.vim | 6 ++---- syntax/jinja.vim | 6 ++---- syntax/jinja2.vim | 6 ++---- syntax/json.vim | 6 ++---- syntax/json5.vim | 6 ++---- syntax/jst.vim | 6 ++---- syntax/julia.vim | 6 ++---- syntax/juliadoc.vim | 6 ++---- syntax/kotlin.vim | 6 ++---- syntax/latextoc.vim | 6 ++---- syntax/less.vim | 6 ++---- syntax/lidris.vim | 6 ++---- syntax/lilypond-words.vim | 6 ++---- syntax/lilypond.vim | 6 ++---- syntax/litcoffee.vim | 6 ++---- syntax/llvm.vim | 6 ++---- syntax/log.vim | 6 ++---- syntax/ls.vim | 6 ++---- syntax/lua.vim | 6 ++---- syntax/mako.vim | 6 ++---- syntax/markdown.vim | 6 ++---- syntax/mason.vim | 6 ++---- syntax/merlin.vim | 6 ++---- syntax/meson.vim | 6 ++---- syntax/mma.vim | 6 ++---- syntax/moon.vim | 6 ++---- syntax/mustache.vim | 6 ++---- syntax/nginx.vim | 6 ++---- syntax/nim.vim | 6 ++---- syntax/nix.vim | 6 ++---- syntax/oasis.vim | 6 ++---- syntax/ocaml.vim | 6 ++---- syntax/ocamlbuild_tags.vim | 6 ++---- syntax/octave.vim | 6 ++---- syntax/omake.vim | 6 ++---- syntax/opam.vim | 6 ++---- syntax/opencl.vim | 6 ++---- syntax/perl.vim | 6 ++---- syntax/pgsql.vim | 6 ++---- syntax/php.vim | 6 ++---- syntax/plantuml.vim | 6 ++---- syntax/pod.vim | 6 ++---- syntax/pony.vim | 6 ++---- syntax/proto.vim | 6 ++---- syntax/ps1.vim | 6 ++---- syntax/ps1xml.vim | 6 ++---- syntax/pug.vim | 6 ++---- syntax/puppet.vim | 6 ++---- syntax/purescript.vim | 6 ++---- syntax/python.vim | 6 ++---- syntax/qmake.vim | 6 ++---- syntax/qml.vim | 6 ++---- syntax/racket.vim | 6 ++---- syntax/ragel.vim | 6 ++---- syntax/raml.vim | 6 ++---- syntax/reason.vim | 6 ++---- syntax/rhelp.vim | 6 ++---- syntax/rnoweb.vim | 6 ++---- syntax/rst.vim | 6 ++---- syntax/ruby.vim | 6 ++---- syntax/rust.vim | 6 ++---- syntax/sbt.vim | 6 ++---- syntax/scala.vim | 6 ++---- syntax/scss.vim | 6 ++---- syntax/sexplib.vim | 6 ++---- syntax/slim.vim | 6 ++---- syntax/slime.vim | 6 ++---- syntax/smhl.vim | 6 ++---- syntax/smt2.vim | 6 ++---- syntax/solidity.vim | 6 ++---- syntax/stylus.vim | 6 ++---- syntax/svelte.vim | 6 ++---- syntax/svg.vim | 6 ++---- syntax/swift.vim | 6 ++---- syntax/sxhkdrc.vim | 6 ++---- syntax/systemd.vim | 6 ++---- syntax/tablegen.vim | 6 ++---- syntax/tap.vim | 6 ++---- syntax/terraform.vim | 6 ++---- syntax/textile.vim | 6 ++---- syntax/thrift.vim | 6 ++---- syntax/tmux.vim | 6 ++---- syntax/tomdoc.vim | 6 ++---- syntax/toml.vim | 6 ++---- syntax/tptp.vim | 6 ++---- syntax/tsx.vim | 6 ++---- syntax/tt2.vim | 6 ++---- syntax/tt2html.vim | 6 ++---- syntax/tt2js.vim | 6 ++---- syntax/twig.vim | 6 ++---- syntax/typescript.vim | 6 ++---- syntax/vala.vim | 6 ++---- syntax/vbnet.vim | 6 ++---- syntax/vcl.vim | 6 ++---- syntax/velocity.vim | 6 ++---- syntax/vifm.vim | 6 ++---- syntax/vimgo.vim | 6 ++---- syntax/vue.vim | 6 ++---- syntax/xdc.vim | 6 ++---- syntax/xml.vim | 6 ++---- syntax/xs.vim | 6 ++---- syntax/xsl.vim | 6 ++---- syntax/yats.vim | 6 ++---- syntax/yats/css.vim | 6 ++---- syntax/yats/dom-document.vim | 6 ++---- syntax/yats/dom-elem.vim | 6 ++---- syntax/yats/dom-event.vim | 6 ++---- syntax/yats/dom-form.vim | 6 ++---- syntax/yats/dom-node.vim | 6 ++---- syntax/yats/dom-storage.vim | 6 ++---- syntax/yats/ecma-402.vim | 6 ++---- syntax/yats/es6-array.vim | 6 ++---- syntax/yats/es6-date.vim | 6 ++---- syntax/yats/es6-function.vim | 6 ++---- syntax/yats/es6-json.vim | 6 ++---- syntax/yats/es6-map.vim | 6 ++---- syntax/yats/es6-math.vim | 6 ++---- syntax/yats/es6-number.vim | 6 ++---- syntax/yats/es6-object.vim | 6 ++---- syntax/yats/es6-promise.vim | 6 ++---- syntax/yats/es6-proxy.vim | 6 ++---- syntax/yats/es6-reflect.vim | 6 ++---- syntax/yats/es6-regexp.vim | 6 ++---- syntax/yats/es6-set.vim | 6 ++---- syntax/yats/es6-string.vim | 6 ++---- syntax/yats/es6-symbol.vim | 6 ++---- syntax/yats/event.vim | 6 ++---- syntax/yats/node.vim | 6 ++---- syntax/yats/test.vim | 6 ++---- syntax/yats/typescript.vim | 6 ++---- syntax/yats/web-blob.vim | 6 ++---- syntax/yats/web-console.vim | 6 ++---- syntax/yats/web-crypto.vim | 6 ++---- syntax/yats/web-encoding.vim | 6 ++---- syntax/yats/web-fetch.vim | 6 ++---- syntax/yats/web-geo.vim | 6 ++---- syntax/yats/web-history.vim | 6 ++---- syntax/yats/web-location.vim | 6 ++---- syntax/yats/web-navigator.vim | 6 ++---- syntax/yats/web-network.vim | 6 ++---- syntax/yats/web-payment.vim | 6 ++---- syntax/yats/web-service-worker.vim | 6 ++---- syntax/yats/web-window.vim | 6 ++---- syntax/yats/web-xhr.vim | 6 ++---- syntax/yats/web.vim | 6 ++---- syntax/zephir.vim | 6 ++---- syntax/zig.vim | 6 ++---- 240 files changed, 481 insertions(+), 963 deletions(-) (limited to 'syntax') diff --git a/syntax/Dockerfile.vim b/syntax/Dockerfile.vim index d9e26353..bc620057 100644 --- a/syntax/Dockerfile.vim +++ b/syntax/Dockerfile.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dockerfile') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 " Vim syntax file " Language: Dockerfile " Maintainer: Eugene Kalinin @@ -61,3 +58,4 @@ hi link dockerfileTodo Todo hi link bashStatement Function let b:current_syntax = "dockerfile" +endif diff --git a/syntax/Jenkinsfile.vim b/syntax/Jenkinsfile.vim index 84ab11d0..3c0bc4b0 100644 --- a/syntax/Jenkinsfile.vim +++ b/syntax/Jenkinsfile.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jenkins') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jenkins') == -1 runtime syntax/groovy.vim syn keyword jenkinsfileBuiltInVariable currentBuild @@ -128,3 +125,4 @@ hi link jenkinsFileDockerKeyword jenkinsfilePipelineStep let b:current_syntax = 'Jenkinsfile' " vim:set et sw=0 ts=2 ft=vim tw=78: +endif diff --git a/syntax/ansible.vim b/syntax/ansible.vim index e6cb1565..a8032ff1 100644 --- a/syntax/ansible.vim +++ b/syntax/ansible.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1 " Vim syntax file " Language: Ansible YAML/Jinja templates " Maintainer: Dave Honneffer @@ -106,3 +103,4 @@ else endif let b:current_syntax = "ansible" +endif diff --git a/syntax/ansible_hosts.vim b/syntax/ansible_hosts.vim index 22791bda..cad58884 100644 --- a/syntax/ansible_hosts.vim +++ b/syntax/ansible_hosts.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1 " Vim syntax file " Language: Ansible hosts files " Maintainer: Dave Honneffer @@ -33,3 +30,4 @@ if exists("g:ansible_attribute_highlight") endif let b:current_syntax = "ansible_hosts" +endif diff --git a/syntax/apiblueprint.vim b/syntax/apiblueprint.vim index 282fa0fa..a2b21b35 100644 --- a/syntax/apiblueprint.vim +++ b/syntax/apiblueprint.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'apiblueprint') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'apiblueprint') == -1 runtime! syntax/markdown.vim unlet! b:current_syntax @@ -36,3 +33,4 @@ highlight default link apibActionRelationKey Identifier let b:current_syntax = 'apiblueprint' +endif diff --git a/syntax/applescript.vim b/syntax/applescript.vim index 91597b61..8a083c48 100644 --- a/syntax/applescript.vim +++ b/syntax/applescript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'applescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'applescript') == -1 " Vim syntax file " Language: AppleScript " Maintainer: Jim Eberle @@ -247,3 +244,4 @@ hi def link scptTodo Todo let b:current_syntax = "applescript" +endif diff --git a/syntax/arduino.vim b/syntax/arduino.vim index 177b36db..3b3ed772 100644 --- a/syntax/arduino.vim +++ b/syntax/arduino.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'arduino') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1 " Vim syntax file " Language: Arduino " Maintainer: Sudar @@ -168,3 +165,4 @@ 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/asciidoc.vim b/syntax/asciidoc.vim index fcfda6b0..eb0d9f02 100644 --- a/syntax/asciidoc.vim +++ b/syntax/asciidoc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'asciidoc') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'asciidoc') == -1 " Vim syntax file " Language: AsciiDoc " Author: Stuart Rackham (inspired by Felix @@ -185,3 +182,4 @@ hi def link asciidocURL Macro let b:current_syntax = "asciidoc" " vim: wrap et sw=2 sts=2: +endif diff --git a/syntax/asl.vim b/syntax/asl.vim index 67f3237f..3e89f444 100644 --- a/syntax/asl.vim +++ b/syntax/asl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'acpiasl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'acpiasl') == -1 " Vim syntax file " Language: ACPI ASL files " Maintainer: Martin L Roth @@ -110,3 +107,4 @@ hi def link aslNumber Number let b:current_syntax = "asl" syn sync minlines=200 +endif diff --git a/syntax/basic/class.vim b/syntax/basic/class.vim index ab834390..2cefe76d 100644 --- a/syntax/basic/class.vim +++ b/syntax/basic/class.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 "don't add typescriptMembers to nextgroup, let outer scope match it " so we won't match abstract method outside abstract class syntax keyword typescriptAbstract abstract @@ -67,3 +64,4 @@ syntax region typescriptInterfaceTypeArguments matchgroup=typescriptTypeBrackets \ contained skipwhite syntax match typescriptInterfaceComma /,/ contained nextgroup=typescriptInterfaceHeritage skipwhite skipnl +endif diff --git a/syntax/basic/cluster.vim b/syntax/basic/cluster.vim index 0188aa98..07775a18 100644 --- a/syntax/basic/cluster.vim +++ b/syntax/basic/cluster.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 "Block VariableStatement EmptyStatement ExpressionStatement IfStatement IterationStatement ContinueStatement BreakStatement ReturnStatement WithStatement LabelledStatement SwitchStatement ThrowStatement TryStatement DebuggerStatement syntax cluster typescriptStatement \ contains=typescriptBlock,typescriptVariable, @@ -40,3 +37,4 @@ syntax cluster typescriptValue \ contains=@typescriptExpression,typescriptObjectLiteral syntax cluster typescriptEventExpression contains=typescriptArrowFuncDef,typescriptParenExp,@typescriptValue,typescriptRegexpString,@typescriptEventTypes,typescriptOperator,typescriptGlobal,jsxRegion +endif diff --git a/syntax/basic/decorator.vim b/syntax/basic/decorator.vim index c27b9b7e..c61ca643 100644 --- a/syntax/basic/decorator.vim +++ b/syntax/basic/decorator.vim @@ -1,7 +1,5 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 syntax match typescriptDecorator /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/ \ nextgroup=typescriptArgumentList,typescriptTypeArguments \ contains=@_semantic,typescriptDotNotation +endif diff --git a/syntax/basic/doc.vim b/syntax/basic/doc.vim index d5e43e34..88a2c08d 100644 --- a/syntax/basic/doc.vim +++ b/syntax/basic/doc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 "Syntax coloring for Node.js shebang line syntax match shellbang "^#!.*node\>" syntax match shellbang "^#!.*iojs\>" @@ -85,3 +82,4 @@ if main_syntax == "typescript" endif syntax case match +endif diff --git a/syntax/basic/function.vim b/syntax/basic/function.vim index db93b368..782a58aa 100644 --- a/syntax/basic/function.vim +++ b/syntax/basic/function.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 syntax keyword typescriptAsyncFuncKeyword async \ nextgroup=typescriptFuncKeyword,typescriptArrowFuncDef \ skipwhite @@ -69,3 +66,4 @@ syntax region typescriptParamImpl matchgroup=typescriptParens \ contains=typescriptDecorator,@typescriptParameterList,@typescriptComments \ nextgroup=typescriptReturnAnnotation,typescriptBlock \ contained skipwhite skipnl +endif diff --git a/syntax/basic/identifiers.vim b/syntax/basic/identifiers.vim index 2a88102c..6a774f1b 100644 --- a/syntax/basic/identifiers.vim +++ b/syntax/basic/identifiers.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 syntax cluster afterIdentifier contains= \ typescriptDotNotation, \ typescriptFuncCallArg, @@ -31,3 +28,4 @@ syntax region typescriptParenExp matchgroup=typescriptParens start syntax region typescriptFuncCallArg contained matchgroup=typescriptParens start=/(/ end=/)/ contains=@typescriptValue,@typescriptComments nextgroup=@typescriptSymbols,typescriptDotNotation skipwhite skipempty skipnl syntax region typescriptEventFuncCallArg contained matchgroup=typescriptParens start=/(/ end=/)/ contains=@typescriptEventExpression syntax region typescriptEventString contained start=/\z(["']\)/ skip=/\\\\\|\\\z1\|\\\n/ end=/\z1\|$/ contains=typescriptASCII,@events +endif diff --git a/syntax/basic/keyword.vim b/syntax/basic/keyword.vim index 999dca07..b658b334 100644 --- a/syntax/basic/keyword.vim +++ b/syntax/basic/keyword.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 "Import syntax keyword typescriptImport from as import syntax keyword typescriptExport export @@ -93,3 +90,4 @@ syntax cluster typescriptAmbients contains= \ typescriptAbstract, \ typescriptEnumKeyword,typescriptEnum, \ typescriptModule +endif diff --git a/syntax/basic/literal.vim b/syntax/basic/literal.vim index 315d6123..fca1b54f 100644 --- a/syntax/basic/literal.vim +++ b/syntax/basic/literal.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 "Syntax in the JavaScript code " String @@ -45,3 +42,4 @@ syntax match typescriptNumber /\d[0-9_]*\.\d[0-9_]*\|\d[0-9_]*\|\.\d[0-9]*/ \ nextgroup=typescriptExponent,@typescriptSymbols skipwhite skipempty syntax match typescriptExponent /[eE][+-]\=\d[0-9]*\>/ \ nextgroup=@typescriptSymbols skipwhite skipempty contained +endif diff --git a/syntax/basic/members.vim b/syntax/basic/members.vim index 45fafbcc..17465093 100644 --- a/syntax/basic/members.vim +++ b/syntax/basic/members.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 syntax keyword typescriptConstructor contained constructor \ nextgroup=@typescriptCallSignature \ skipwhite skipempty @@ -48,3 +45,4 @@ syntax region typescriptComputedMember contained matchgroup=typescriptPropert \ contains=@typescriptValue,typescriptMember,typescriptMappedIn \ nextgroup=@memberNextGroup \ skipwhite skipempty +endif diff --git a/syntax/basic/object.vim b/syntax/basic/object.vim index 533201c3..eadaba0a 100644 --- a/syntax/basic/object.vim +++ b/syntax/basic/object.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 syntax region typescriptObjectLiteral matchgroup=typescriptBraces \ start=/{/ end=/}/ \ contains=@typescriptComments,typescriptObjectLabel,typescriptStringProperty,typescriptComputedPropertyName @@ -30,3 +27,4 @@ syntax match typescriptRestOrSpread /\.\.\./ contained syntax match typescriptObjectSpread /\.\.\./ contained containedin=typescriptObjectLiteral,typescriptArray nextgroup=@typescriptValue syntax match typescriptObjectColon contained /:/ nextgroup=@typescriptValue skipwhite skipempty +endif diff --git a/syntax/basic/patch.vim b/syntax/basic/patch.vim index ea4adfa2..127059d5 100644 --- a/syntax/basic/patch.vim +++ b/syntax/basic/patch.vim @@ -1,9 +1,7 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 " patch for generated code syntax keyword typescriptGlobal Promise \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline syntax keyword typescriptGlobal Map WeakMap \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline +endif diff --git a/syntax/basic/reserved.vim b/syntax/basic/reserved.vim index cf6467c2..b5940510 100644 --- a/syntax/basic/reserved.vim +++ b/syntax/basic/reserved.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 syntax cluster typescriptStrings contains=typescriptProp,typescriptString,typescriptTemplate,@typescriptComments,typescriptDocComment,typescriptRegexpString,typescriptPropertyName syntax cluster typescriptNoReserved contains= @@ -33,3 +30,4 @@ syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved volat syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved class syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved var syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved function +endif diff --git a/syntax/basic/symbols.vim b/syntax/basic/symbols.vim index 978694e1..93adb687 100644 --- a/syntax/basic/symbols.vim +++ b/syntax/basic/symbols.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 " + - ^ ~ syntax match typescriptUnaryOp /[+\-~!]/ \ nextgroup=@typescriptValue @@ -40,3 +37,4 @@ syntax match typescriptBinaryOp contained /-\(-\|=\)\?/ nextgroup=@typescriptV syntax match typescriptBinaryOp contained /\*\*=\?/ nextgroup=@typescriptValue syntax cluster typescriptSymbols contains=typescriptBinaryOp,typescriptKeywordOp,typescriptTernary,typescriptAssign,typescriptCastKeyword +endif diff --git a/syntax/basic/type.vim b/syntax/basic/type.vim index 6f9097b0..b2f849fc 100644 --- a/syntax/basic/type.vim +++ b/syntax/basic/type.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 " Types syntax match typescriptOptionalMark /?/ contained @@ -189,3 +186,4 @@ syntax region typescriptAliasDeclaration matchgroup=typescriptUnion syntax keyword typescriptReadonlyArrayKeyword readonly \ nextgroup=@typescriptPrimaryType \ skipwhite +endif diff --git a/syntax/blade.vim b/syntax/blade.vim index 21b41b58..7d622d63 100644 --- a/syntax/blade.vim +++ b/syntax/blade.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'blade') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1 " Vim syntax file " Language: Blade (Laravel) " Maintainer: Jason Walton @@ -75,3 +72,4 @@ let b:current_syntax = 'blade' if exists('main_syntax') && main_syntax == 'blade' unlet main_syntax endif +endif diff --git a/syntax/c.vim b/syntax/c.vim index 58a66daa..701a52c6 100644 --- a/syntax/c.vim +++ b/syntax/c.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c/c++') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c/c++') == -1 " Vim syntax file " Language: C " Maintainer: Bram Moolenaar @@ -491,3 +488,4 @@ 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 f1571f4a..25e262a7 100644 --- a/syntax/cabal.vim +++ b/syntax/cabal.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 " syntax highlighting for cabal " " author: raichoo (raichoo@googlemail.com) @@ -53,3 +50,4 @@ highlight def link cabalDocNewline Operator highlight def link cabalDocCode Macro let b:current_syntax = "cabal" +endif diff --git a/syntax/caddyfile.vim b/syntax/caddyfile.vim index aeec90b6..79ecc36f 100644 --- a/syntax/caddyfile.vim +++ b/syntax/caddyfile.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'caddyfile') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1 " Language: Caddyfile " Author: Josh Glendenning @@ -31,3 +28,4 @@ hi link caddyString String hi link caddyComment Comment let b:current_syntax = "caddyfile" +endif diff --git a/syntax/carp.vim b/syntax/carp.vim index 093bbbd3..e6503621 100644 --- a/syntax/carp.vim +++ b/syntax/carp.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'carp') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'carp') == -1 " Vim syntax file " Language: Carp " Maintainer: Veit Heller @@ -167,3 +164,4 @@ if version >= 508 || !exists("carp_syntax_init") endif let b:current_syntax = "carp" +endif diff --git a/syntax/clojure.vim b/syntax/clojure.vim index 12b526a3..2d444294 100644 --- a/syntax/clojure.vim +++ b/syntax/clojure.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'clojure') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 " Vim syntax file " Language: Clojure " Authors: Toralf Wittner @@ -225,3 +222,4 @@ let &cpo = s:cpo_sav unlet! s:cpo_sav " vim:sts=8:sw=8:ts=8:noet +endif diff --git a/syntax/cmake.vim b/syntax/cmake.vim index 9c6c1917..a67a3754 100644 --- a/syntax/cmake.vim +++ b/syntax/cmake.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cmake') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cmake') == -1 " Vim syntax file " Program: CMake - Cross-Platform Makefile Generator " Version: cmake version 3.14.20190529-g067a4f @@ -3354,3 +3351,4 @@ let &cpo = s:keepcpo unlet s:keepcpo " vim: set nowrap: +endif diff --git a/syntax/coffee.vim b/syntax/coffee.vim index 39b42058..b61d006e 100644 --- a/syntax/coffee.vim +++ b/syntax/coffee.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - +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 @@ -223,3 +220,4 @@ syn cluster coffeeAll contains=coffeeStatement,coffeeRepeat,coffeeConditional, if !exists('b:current_syntax') let b:current_syntax = 'coffee' endif +endif diff --git a/syntax/common.vim b/syntax/common.vim index b639206b..27e4480d 100644 --- a/syntax/common.vim +++ b/syntax/common.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 " Define the default highlighting. " For version 5.8 and later: only when an item doesn't have highlighting yet let did_typescript_hilink = 1 @@ -163,3 +160,4 @@ if exists("did_typescript_hilink") delcommand HiLink unlet did_typescript_hilink endif +endif diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 092c21e2..587eef28 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c/c++') != -1 - finish -endif - +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 +75,4 @@ hi def link cppNumber Number let b:current_syntax = "cpp" " vim: ts=8 +endif diff --git a/syntax/cql.vim b/syntax/cql.vim index df9a1c35..acdd5030 100644 --- a/syntax/cql.vim +++ b/syntax/cql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cql') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cql') == -1 " Vim syntax file " Language: cql " Maintainer: Eric Lubow @@ -144,3 +141,4 @@ let &cpo = s:keepcpo unlet s:keepcpo " vim:set sts=2 sw=2: +endif diff --git a/syntax/cuesheet.vim b/syntax/cuesheet.vim index 6c615eb3..8bd089f6 100644 --- a/syntax/cuesheet.vim +++ b/syntax/cuesheet.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cue') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cue') == -1 " Language: Cue sheet " Maintainer: Matěj Grabovský " URL: http://github.com/mgrabovsky @@ -28,3 +25,4 @@ syn match Number /\<\d\+\%(:\d\{2}\)\{2}\>/ let b:current_syntax='cuesheet' " vim: nowrap sw=2 sts=2 ts=8: +endif diff --git a/syntax/d.vim b/syntax/d.vim index 8550c256..4e14cefa 100644 --- a/syntax/d.vim +++ b/syntax/d.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dlang') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 " Vim syntax file for the D programming language (version 1.076 and 2.069). " " Language: D @@ -575,3 +572,4 @@ syn keyword dAsmOpCode contained adc let &cpo = s:cpo_save unlet s:cpo_save +endif diff --git a/syntax/dart.vim b/syntax/dart.vim index 49e41193..996659b6 100644 --- a/syntax/dart.vim +++ b/syntax/dart.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dart') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 " Vim syntax file " Language: Dart " Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file " for details. All rights reserved. Use of this source code is governed by a @@ -137,3 +134,4 @@ let b:spell_options = "contained" if g:main_syntax is# 'dart' unlet g:main_syntax endif +endif diff --git a/syntax/dcov.vim b/syntax/dcov.vim index e241fb3d..83315eda 100644 --- a/syntax/dcov.vim +++ b/syntax/dcov.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dlang') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 " Vim syntax file for coverage information for the reference compiler (DMD) of " the D programming language. " @@ -53,3 +50,4 @@ hi def link dcovLow Operator hi def link dcovPartial Structure let b:current_syntax = "dcov" +endif diff --git a/syntax/dd.vim b/syntax/dd.vim index ae682f50..cc943713 100644 --- a/syntax/dd.vim +++ b/syntax/dd.vim @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dlang') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 runtime! /syntax/ddoc.vim +endif diff --git a/syntax/ddoc.vim b/syntax/ddoc.vim index 3c2860d8..80a2a1cb 100644 --- a/syntax/ddoc.vim +++ b/syntax/ddoc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dlang') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 if &filetype == "ddoc" "ddoc file type " Quit when a syntax file was already loaded @@ -84,3 +81,4 @@ elseif &filetype == "d" hi! def link ddocIdentifierNestedDecl Macro hi! def link ddocKeyword Macro endif +endif diff --git a/syntax/dhall.vim b/syntax/dhall.vim index 8c79b9f0..01124586 100644 --- a/syntax/dhall.vim +++ b/syntax/dhall.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dhall') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1 scriptencoding utf-8 if exists('b:current_syntax') @@ -64,3 +61,4 @@ highlight link dhallComment Comment highlight link dhallMultilineComment Comment let b:current_syntax = 'dhall' +endif diff --git a/syntax/docker-compose.vim b/syntax/docker-compose.vim index 0fadc6f1..573d45e6 100644 --- a/syntax/docker-compose.vim +++ b/syntax/docker-compose.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dockerfile') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 " Vim syntax file " Language: Dockerfile " Maintainer: Eugene Kalinin @@ -82,3 +79,4 @@ hi link dockercomposeTodo Todo hi link bashStatement Function let b:current_syntax = "dockercompose" +endif diff --git a/syntax/dsdl.vim b/syntax/dsdl.vim index f9ffc877..3300ca70 100644 --- a/syntax/dsdl.vim +++ b/syntax/dsdl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dlang') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 " Vim syntax file for DUB configurations." " " Language: SDLang (dub config) @@ -92,3 +89,4 @@ hi def link dsdlStatement Statement hi def link dsdlAttribute Tag let b:current_syntax = "dsdl" +endif diff --git a/syntax/dune.vim b/syntax/dune.vim index 4e2c2afe..900c08b7 100644 --- a/syntax/dune.vim +++ b/syntax/dune.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 if exists("b:current_syntax") finish endif @@ -38,3 +35,4 @@ syn match duneVar '\${\k\+\(:\k\+\)\?}' containedin=lispSymbol hi def link duneVar Identifier let b:current_syntax = "dune" +endif diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim index 398becc5..0e499af6 100644 --- a/syntax/eelixir.vim +++ b/syntax/eelixir.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if exists("b:current_syntax") finish endif @@ -72,3 +69,4 @@ endif let &cpo = s:cpo_save unlet s:cpo_save +endif diff --git a/syntax/elixir.vim b/syntax/elixir.vim index ad245ca6..35490fd9 100644 --- a/syntax/elixir.vim +++ b/syntax/elixir.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if !exists("main_syntax") if exists("b:current_syntax") finish @@ -245,3 +242,4 @@ endif let &cpo = s:cpo_save unlet s:cpo_save +endif diff --git a/syntax/elm.vim b/syntax/elm.vim index 3e643065..2f0b2876 100644 --- a/syntax/elm.vim +++ b/syntax/elm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 " syntax highlighting for Elm (http://elm-lang.org/) if exists('b:current_syntax') @@ -83,3 +80,4 @@ hi def link elmNumberType Identifier syn sync minlines=500 let b:current_syntax = 'elm' +endif diff --git a/syntax/ember-script.vim b/syntax/ember-script.vim index 8869d757..eaaf8bc3 100644 --- a/syntax/ember-script.vim +++ b/syntax/ember-script.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'emberscript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1 " Language: ember-script " Maintainer: Yulij Andreevich Lesov > " URL: http://github.com/yalesov/vim-ember-script @@ -33,3 +30,4 @@ 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 649e0208..980d21d2 100644 --- a/syntax/emblem.vim +++ b/syntax/emblem.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'emblem') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1 " Language: emblem " Maintainer: Yulij Andreevich Lesov " URL: http://github.com/yalesov/vim-emblem @@ -173,3 +170,4 @@ 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 391ad1b3..d3b547c6 100644 --- a/syntax/erlang.vim +++ b/syntax/erlang.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'erlang') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'erlang') == -1 " Vim syntax file " Language: Erlang (http://www.erlang.org) " Maintainer: Csaba Hoch @@ -263,3 +260,4 @@ 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 91246d0f..d0627bc6 100644 --- a/syntax/eruby.vim +++ b/syntax/eruby.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim syntax file " Language: eRuby " Maintainer: Tim Pope @@ -82,3 +79,4 @@ if main_syntax == 'eruby' endif " vim: nowrap sw=2 sts=2 ts=8: +endif diff --git a/syntax/fbs.vim b/syntax/fbs.vim index 90ee9409..340d3064 100644 --- a/syntax/fbs.vim +++ b/syntax/fbs.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'flatbuffers') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'flatbuffers') == -1 if exists("b:current_syntax") finish endif @@ -54,3 +51,4 @@ if version >= 508 || !exists("did_proto_syn_inits") endif let b:current_syntax = "fbs" +endif diff --git a/syntax/ferm.vim b/syntax/ferm.vim index ff87082c..f372a1e5 100644 --- a/syntax/ferm.vim +++ b/syntax/ferm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ferm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ferm') == -1 "============================================================================ " ferm syntax highlighter " @@ -205,3 +202,4 @@ endif " Autoconfigure vim indentation settings " vim:ts=4:sw=4:sts=4:fdm=marker:iskeyword+=- +endif diff --git a/syntax/fish.vim b/syntax/fish.vim index 8ba62e14..0fe60454 100644 --- a/syntax/fish.vim +++ b/syntax/fish.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 if exists('b:current_syntax') finish endif @@ -39,3 +36,4 @@ highlight default link fishStatement Statement highlight default link fishCommandSub fishStatement let b:current_syntax = 'fish' +endif diff --git a/syntax/fsharp.vim b/syntax/fsharp.vim index 16802018..999d4fd4 100644 --- a/syntax/fsharp.vim +++ b/syntax/fsharp.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fsharp') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fsharp') == -1 " Vim syntax file " Language: F# " Last Change: Sun 19 Oct 2014 11:11:44 PM CEST @@ -267,3 +264,4 @@ endif let b:current_syntax = 'fsharp' " vim: sw=4 et sts=4 +endif diff --git a/syntax/git.vim b/syntax/git.vim index 686dcf80..768e1ffc 100644 --- a/syntax/git.vim +++ b/syntax/git.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim syntax file " Language: generic git output " Maintainer: Tim Pope @@ -82,3 +79,4 @@ 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 10aa7a1f..554bef68 100644 --- a/syntax/gitcommit.vim +++ b/syntax/gitcommit.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim syntax file " Language: git commit file " Maintainer: Tim Pope @@ -93,3 +90,4 @@ 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 80ee7971..5c5055e2 100644 --- a/syntax/gitconfig.vim +++ b/syntax/gitconfig.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim syntax file " Language: git config file " Maintainer: Tim Pope @@ -38,3 +35,4 @@ hi def link gitconfigEscape Special hi def link gitconfigError Error let b:current_syntax = "gitconfig" +endif diff --git a/syntax/gitrebase.vim b/syntax/gitrebase.vim index 01b4cc0f..0313e8f3 100644 --- a/syntax/gitrebase.vim +++ b/syntax/gitrebase.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim syntax file " Language: git rebase --interactive " Maintainer: Tim Pope @@ -46,3 +43,4 @@ 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 1d0b4c9b..b491379b 100644 --- a/syntax/gitsendemail.vim +++ b/syntax/gitsendemail.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim syntax file " Language: git send-email message " Maintainer: Tim Pope @@ -25,3 +22,4 @@ syn match gitsendemailComment "^GIT:.*" hi def link gitsendemailComment Comment let b:current_syntax = "gitsendemail" +endif diff --git a/syntax/glsl.vim b/syntax/glsl.vim index 2c9b08c5..7ef4e636 100644 --- a/syntax/glsl.vim +++ b/syntax/glsl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'glsl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1 " Language: OpenGL Shading Language " Maintainer: Sergey Tikhomirov @@ -677,3 +674,4 @@ if !exists("b:current_syntax") endif " vim:set sts=2 sw=2 : +endif diff --git a/syntax/gmpl.vim b/syntax/gmpl.vim index 9eb26f8f..326b62d1 100644 --- a/syntax/gmpl.vim +++ b/syntax/gmpl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'gmpl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gmpl') == -1 " Vim syntax file " Language: GMPL " Maintainer: Mark Mba Wright @@ -120,3 +117,4 @@ hi def link gmplType Type hi def link gmplLabel Keyword hi def link gmplString String hi def link gmplStringToken Special +endif diff --git a/syntax/gnuplot.vim b/syntax/gnuplot.vim index 632719fd..fd7b559c 100644 --- a/syntax/gnuplot.vim +++ b/syntax/gnuplot.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'gnuplot') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gnuplot') == -1 " Vim syntax file " Language: gnuplot 4.7.0 " Maintainer: Andrew Rasmussen andyras@users.sourceforge.net @@ -556,3 +553,4 @@ endif let b:current_syntax = "gnuplot" " vim: ts=8 +endif diff --git a/syntax/go.vim b/syntax/go.vim index 86c09b68..5f098aaa 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +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. @@ -414,3 +411,4 @@ syn sync minlines=500 let b:current_syntax = "go" " vim: sw=2 ts=2 et +endif diff --git a/syntax/godebugoutput.vim b/syntax/godebugoutput.vim index c7fbd005..3d05e3e2 100644 --- a/syntax/godebugoutput.vim +++ b/syntax/godebugoutput.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 if exists("b:current_syntax") finish endif @@ -15,3 +12,4 @@ hi def link godebugOutputErr Comment hi def link godebugOutputOut Normal " vim: sw=2 ts=2 et +endif diff --git a/syntax/godebugstacktrace.vim b/syntax/godebugstacktrace.vim index dfc741dc..e803fcf3 100644 --- a/syntax/godebugstacktrace.vim +++ b/syntax/godebugstacktrace.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 if exists("b:current_syntax") finish endif @@ -13,3 +10,4 @@ let b:current_syntax = "godebugoutput" hi def link godebugStacktrace SpecialKey " vim: sw=2 ts=2 et +endif diff --git a/syntax/godebugvariables.vim b/syntax/godebugvariables.vim index 853a4917..b057b067 100644 --- a/syntax/godebugvariables.vim +++ b/syntax/godebugvariables.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 if exists("b:current_syntax") finish endif @@ -25,3 +22,4 @@ hi def link goType Type hi def link goBoolean Boolean " vim: sw=2 ts=2 et +endif diff --git a/syntax/godefstack.vim b/syntax/godefstack.vim index 69e10a3e..d9bad004 100644 --- a/syntax/godefstack.vim +++ b/syntax/godefstack.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 if exists("b:current_syntax") finish endif @@ -22,3 +19,4 @@ hi def link godefStackFilename Directory hi def link godefStackEntryLocationNumber LineNr " vim: sw=2 ts=2 et +endif diff --git a/syntax/gohtmltmpl.vim b/syntax/gohtmltmpl.vim index 565d9e02..95953d61 100644 --- a/syntax/gohtmltmpl.vim +++ b/syntax/gohtmltmpl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 if exists("b:current_syntax") finish endif @@ -19,3 +16,4 @@ syn cluster htmlPreproc add=gotplAction,goTplComment let b:current_syntax = "gohtmltmpl" " vim: sw=2 ts=2 et +endif diff --git a/syntax/gomod.vim b/syntax/gomod.vim index 74b430cc..238d9065 100644 --- a/syntax/gomod.vim +++ b/syntax/gomod.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 " gomod.vim: Vim syntax file for go.mod file " " Quit when a (custom) syntax file was already loaded @@ -87,3 +84,4 @@ syntax match gomodVersion "v[2-9]\{1}\d*\.\d\+\.\d\+\%(+\%([0-9A-Za-z-]\+\)\%(\. highlight default link gomodVersion Identifier let b:current_syntax = "gomod" +endif diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim index 7730af9c..6f5bc7d0 100644 --- a/syntax/gotexttmpl.vim +++ b/syntax/gotexttmpl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +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. @@ -87,3 +84,4 @@ hi def link goTplComment Comment let b:current_syntax = "gotexttmpl" " vim: sw=2 ts=2 et +endif diff --git a/syntax/graphql.vim b/syntax/graphql.vim index 06223576..b30b2228 100644 --- a/syntax/graphql.vim +++ b/syntax/graphql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 " Vim syntax file " Language: GraphQL " Maintainer: Jon Parise @@ -66,3 +63,4 @@ hi def link graphqlVariable Identifier syn sync minlines=500 let b:current_syntax = 'graphql' +endif diff --git a/syntax/groovy.vim b/syntax/groovy.vim index 25dcf68a..2182bd3e 100644 --- a/syntax/groovy.vim +++ b/syntax/groovy.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'groovy') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'groovy') == -1 " Vim syntax file " Language: Groovy " Maintainer: Alessio Pace @@ -452,3 +449,4 @@ endif let b:spell_options="contained" " vim: ts=8 +endif diff --git a/syntax/haml.vim b/syntax/haml.vim index cd584cf9..880ebbf0 100644 --- a/syntax/haml.vim +++ b/syntax/haml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 " Vim syntax file " Language: Haml " Maintainer: Tim Pope @@ -111,3 +108,4 @@ if main_syntax == "haml" endif " vim:set sw=2: +endif diff --git a/syntax/haproxy.vim b/syntax/haproxy.vim index 786c2fb8..8352a013 100644 --- a/syntax/haproxy.vim +++ b/syntax/haproxy.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haproxy') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haproxy') == -1 " Vim syntax file " Language: HAproxy " Maintainer: Dan Reif @@ -358,3 +355,4 @@ delcommand HiLink let b:current_syntax = "haproxy" " vim: ts=8 +endif diff --git a/syntax/haskell.vim b/syntax/haskell.vim index e86aa7c3..ead2d541 100644 --- a/syntax/haskell.vim +++ b/syntax/haskell.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 " syntax highlighting for haskell " " Heavily modified version of the haskell syntax @@ -210,3 +207,4 @@ if get(g:, 'haskell_backpack', 0) highlight def link haskellBackpackDependency Include endif let b:current_syntax = "haskell" +endif diff --git a/syntax/haxe.vim b/syntax/haxe.vim index b2c1606d..89329caa 100644 --- a/syntax/haxe.vim +++ b/syntax/haxe.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haxe') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haxe') == -1 " Vim syntax file " Language: haxe " Derived from: @@ -429,3 +426,4 @@ if main_syntax == 'haxe' unlet main_syntax endif let b:spell_options="contained" +endif diff --git a/syntax/hcl.vim b/syntax/hcl.vim index 30e83544..8937cabe 100644 --- a/syntax/hcl.vim +++ b/syntax/hcl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'hcl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hcl') == -1 if exists("b:current_syntax") finish @@ -46,3 +43,4 @@ hi def link hclInterpolation String hi def link hclSimpleString PreProc let b:current_syntax = "hcl" +endif diff --git a/syntax/helm.vim b/syntax/helm.vim index aa75c006..1a0d5c13 100644 --- a/syntax/helm.vim +++ b/syntax/helm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'helm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'helm') == -1 if exists("b:current_syntax") finish endif @@ -93,3 +90,4 @@ hi def link goTplComment Comment let b:current_syntax = "helm" " vim: sw=2 ts=2 et +endif diff --git a/syntax/hive.vim b/syntax/hive.vim index e858f9fd..bc0b7fd4 100644 --- a/syntax/hive.vim +++ b/syntax/hive.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'hive') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hive') == -1 " Vim syntax file " Language: HIVE Query Language " Maintainer: German Lashevich @@ -137,3 +134,4 @@ hi link hiveVar Special let b:current_syntax = "hive" " vim: ts=4 +endif diff --git a/syntax/html.vim b/syntax/html.vim index a529b56b..61dacaa5 100644 --- a/syntax/html.vim +++ b/syntax/html.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file " Language: HTML (version 5.1) " SVG (SVG 1.1 Second Edition) @@ -192,10 +189,8 @@ syn keyword htmlArg contained scriptlevel scriptminsize scriptsize scriptsizemul syn keyword htmlArg contained stretchy subscriptshift superscriptshift symmetric thickmathspace thinmathspace type valign verythickmathspace verythinmathspace syn keyword htmlArg contained veryverythickmathspace veryverythinmathspace voffset width xref -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jinja') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jinja') == -1 " Vim syntax file " Language: HTML (version 5) " Maintainer: Rodrigo Machado @@ -286,3 +281,4 @@ syn match htmlArg contained "\" " Relationship Attributes syn match htmlArg contained "\" syn match htmlArg contained "\" +endif diff --git a/syntax/html/aria.vim b/syntax/html/aria.vim index 78106c17..a22c013b 100644 --- a/syntax/html/aria.vim +++ b/syntax/html/aria.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file " Language: WAI-ARIA " Maintainer: othree @@ -77,3 +74,4 @@ syn match htmlArg contained "\" syn match htmlArg contained "\" +endif diff --git a/syntax/html/electron.vim b/syntax/html/electron.vim index 64ed9e9b..090c0648 100644 --- a/syntax/html/electron.vim +++ b/syntax/html/electron.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file " Language: Electron " Maintainer: othree @@ -17,3 +14,4 @@ syn keyword htmlArg contained useragent disablewebsecurity partition allowpopups syn keyword htmlArg contained webpreferences blinkfeatures disableblinkfeatures syn keyword htmlArg contained guestinstance disableguestresize +endif diff --git a/syntax/html/rdfa.vim b/syntax/html/rdfa.vim index 4f32e783..dfe9f9b6 100644 --- a/syntax/html/rdfa.vim +++ b/syntax/html/rdfa.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file " Language: RDFa " Maintainer: othree @@ -13,3 +10,4 @@ endif " 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/i3config.vim b/syntax/i3config.vim index 6448379b..0f0a73fb 100644 --- a/syntax/i3config.vim +++ b/syntax/i3config.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'i3') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'i3') == -1 " Vim syntax file " Language: i3 config file " Maintainer: Mohamed Boughaba @@ -252,3 +249,4 @@ hi! def link i3ConfigVariable Statement hi! def link i3ConfigArbitraryCommand Type let b:current_syntax = "i3config" +endif diff --git a/syntax/idris.vim b/syntax/idris.vim index 6a86f386..05566fa4 100644 --- a/syntax/idris.vim +++ b/syntax/idris.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 " syntax highlighting for idris (idris-lang.org) " " Heavily modified version of the haskell syntax @@ -91,3 +88,4 @@ highlight def link idrisChar String highlight def link idrisBacktick Operator let b:current_syntax = "idris" +endif diff --git a/syntax/ion.vim b/syntax/ion.vim index 1a55663a..0e5455fc 100644 --- a/syntax/ion.vim +++ b/syntax/ion.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ion') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ion') == -1 if v:version < 600 syntax clear elseif exists('b:current_syntax') @@ -85,3 +82,4 @@ hi def link ionProcess PreProc hi def link ionComment Comment hi def link ionOperator Operator hi def link ionFlag Boolean +endif diff --git a/syntax/jasmine.vim b/syntax/jasmine.vim index ea9aa976..87b3de15 100644 --- a/syntax/jasmine.vim +++ b/syntax/jasmine.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jasmine') != -1 - finish -endif - +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 @@ -86,3 +83,4 @@ hi def link jasmineSpecial Special hi def link jasmineSpy Special hi def link jasmineSpyMatcher Statement hi def link jasmineSuite Statement +endif diff --git a/syntax/javascript.vim b/syntax/javascript.vim index 0c917b68..a7dbb98e 100644 --- a/syntax/javascript.vim +++ b/syntax/javascript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 " Vim syntax file " Language: JavaScript " Maintainer: vim-javascript community @@ -395,3 +392,4 @@ 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 d8fb1ded..1d4abb0c 100644 --- a/syntax/javascript/html5.vim +++ b/syntax/javascript/html5.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file " Language: HTML5 New Stuff " Maintainer: othree @@ -51,3 +48,4 @@ syn keyword javascriptDomElemAttrs indeterminate " select https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers syn keyword javascriptDomElemAttrs onselectstart onselectchange +endif diff --git a/syntax/jinja.vim b/syntax/jinja.vim index 177619c1..439741fa 100644 --- a/syntax/jinja.vim +++ b/syntax/jinja.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jinja') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jinja') == -1 " jinja syntax file " Language: Jinja HTML template " Maintainer: Hsiaoming Yang @@ -88,3 +85,4 @@ hi def link jinjaComBlock Comment hi def link jinjaTodo Todo let b:current_syntax = "jinja" +endif diff --git a/syntax/jinja2.vim b/syntax/jinja2.vim index bcdeacb1..749ab66f 100644 --- a/syntax/jinja2.vim +++ b/syntax/jinja2.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1 " Vim syntax file " Language: Jinja2 - with special modifications for compound-filetype " compatibility @@ -99,3 +96,4 @@ if !exists("did_jinja_syn_inits") endif let b:current_syntax = "jinja2" +endif diff --git a/syntax/json.vim b/syntax/json.vim index 49a8df7b..fb279a3f 100644 --- a/syntax/json.vim +++ b/syntax/json.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'json') != -1 - finish -endif - +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 @@ -141,3 +138,4 @@ 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/json5.vim b/syntax/json5.vim index fae65c66..f5383374 100644 --- a/syntax/json5.vim +++ b/syntax/json5.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'json5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json5') == -1 " Modified from the original taken from https://github.com/gutenye/json5.vim " Syntax setup @@ -69,3 +66,4 @@ if !exists('b:current_syntax') let b:current_syntax = 'json5' endif +endif diff --git a/syntax/jst.vim b/syntax/jst.vim index 0059716a..4174b44c 100644 --- a/syntax/jst.vim +++ b/syntax/jst.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jst') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1 if exists("b:current_syntax") finish endif @@ -89,3 +86,4 @@ 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 8baed244..cb6c8e80 100644 --- a/syntax/julia.vim +++ b/syntax/julia.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 " Vim syntax file " Language: julia " Maintainer: Carlo Baldassi @@ -561,3 +558,4 @@ end syntax sync fromstart let b:current_syntax = "julia" +endif diff --git a/syntax/juliadoc.vim b/syntax/juliadoc.vim index 91f930df..871a2ab5 100644 --- a/syntax/juliadoc.vim +++ b/syntax/juliadoc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 " Vim syntax file for julia document view scriptencoding utf-8 @@ -67,3 +64,4 @@ highlight default link juliadocAdmonitionsType Todo highlight default link juliadocAdmonitionsTitle Title let b:current_syntax = "juliadoc" +endif diff --git a/syntax/kotlin.vim b/syntax/kotlin.vim index 8febe4d3..04eab3d7 100644 --- a/syntax/kotlin.vim +++ b/syntax/kotlin.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'kotlin') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1 " Vim syntax file " Language: Kotlin " Maintainer: Alexander Udalov @@ -114,3 +111,4 @@ hi def link ktExclExcl Special hi def link ktArrow Structure let b:current_syntax = 'kotlin' +endif diff --git a/syntax/latextoc.vim b/syntax/latextoc.vim index fbcbc01e..c5713eb6 100644 --- a/syntax/latextoc.vim +++ b/syntax/latextoc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +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 @@ -11,3 +8,4 @@ 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 b66f6421..74d249a6 100644 --- a/syntax/less.vim +++ b/syntax/less.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'less') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 if exists("b:current_syntax") finish endif @@ -66,3 +63,4 @@ hi def link lessNestedProperty Type hi def link lessClass PreProc let b:current_syntax = "less" +endif diff --git a/syntax/lidris.vim b/syntax/lidris.vim index d4e55efb..883a237d 100644 --- a/syntax/lidris.vim +++ b/syntax/lidris.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 " Vim syntax file " Language: Literate Idris " Maintainer: Idris Hackers (https://github.com/idris-hackers/idris-vim) @@ -24,3 +21,4 @@ syntax match lidrisBirdTrack "^>" contained hi def link lidrisBirdTrack Comment let b:current_syntax = "lidris" +endif diff --git a/syntax/lilypond-words.vim b/syntax/lilypond-words.vim index 6fafeae9..032c4732 100644 --- a/syntax/lilypond-words.vim +++ b/syntax/lilypond-words.vim @@ -1,7 +1,5 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'lilypond') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 syn match lilyKeyword "[-_^]\?\\\(xNotesOn\|xNotesOff\|xNote\|wordwrap-string-internal\|wordwrap-string\|wordwrap-lines\|wordwrap-internal\|wordwrap-field\|wordwrap\|withMusicProperty\|with-url\|with-link\|with-dimensions\|with-color\|with\|whiteout\|whiteTriangleMarkup\|walkerHeadsMinor\|walkerHeads\|vspace\|void\|voiceTwoStyle\|voiceTwo\|voiceThreeStyle\|voiceThree\|voiceOneStyle\|voiceOne\|voiceNeutralStyle\|voiceFourStyle\|voiceFour\|vocalName\|virgula\|virga\|verylongfermata\|versus\|version\|verbatim-file\|vcenter\|varcoda\|upright\|upprall\|upmordent\|upbow\|up\|unset\|unit\|unfoldRepeats\|undo\|underline\|unaCorda\|unHideNotes\|typewriter\|type\|tweak\|turn\|tupletUp\|tupletSpan\|tupletNeutral\|tupletDown\|tuplet\|trill\|triangle\|treCorde\|transposition\|transposedCueDuring\|transpose\|transparent\|translate-scaled\|translate\|topLevelAlignment\|tocTitleMarkup\|tocItemWithDotsMarkup\|tocItemMarkup\|tocItem\|tiny\|timing\|times\|timeSignatureSettings\|timeSignatureFraction\|time\|tied-lyric\|tieWaitForNote\|tieUp\|tieSolid\|tieNeutral\|tieHalfSolid\|tieHalfDashed\|tieDown\|tieDotted\|tieDashed\|tieDashPattern\|thumb\|textSpannerUp\|textSpannerNeutral\|textSpannerDown\|textLengthOn\|textLengthOff\|text\|tenuto\|temporary\|tempoWholesPerMinute\|tempo\|teeny\|tag\|table-of-contents\|tablatureFormat\|tabStaffLineLayoutFunction\|tabFullNotation\|systemStartDelimiter\|sustainOn\|sustainOff\|super\|subdivideBeams\|sub\|styledNoteHeads\|strut\|stropha\|strokeFingerOrientations\|stringTunings\|stringOneTopmost\|stringNumberOrientations\|stopped\|stopTrillSpan\|stopTextSpan\|stopStaff\|stopSlashedGraceMusic\|stopMeasureCount\|stopGroup\|stopGraceSlur\|stopGraceMusic\|stopAppoggiaturaMusic\|stopAcciaccaturaMusic\|stop\|stencil\|stemUp\|stemNeutral\|stemDown\|startTrillSpan\|startTextSpan\|startStaff\|startSlashedGraceMusic\|startRepeatType\|startMeasureCount\|startGroup\|startGraceSlur\|startGraceMusic\|startAppoggiaturaMusic\|startAcciaccaturaMusic\|start\|staccato\|staccatissimo\|squashedPosition\|spp\|spacingTweaks\|sp\|southernHarmonyHeadsMinor\|southernHarmonyHeads\|sostenutoOn\|sostenutoOff\|soloText\|soloIIText\|snappizzicato\|smaller\|smallCaps\|small\|slurUp\|slurSolid\|slurNeutral\|slurHalfSolid\|slurHalfDashed\|slurDown\|slurDotted\|slurDashed\|slurDashPattern\|slashedGrace\|slashed-digit\|slashChordSeparator\|skipTypesetting\|skip\|single\|simultaneous\|simple\|signumcongruentiae\|showStaffSwitch\|showSplitTiedTabNotes\|shortfermata\|shortVocalName\|shortInstrumentName\|shiftOnnn\|shiftOnn\|shiftOn\|shiftOff\|shiftDurations\|sharp\|shape\|sfz\|sfp\|sff\|sf\|settingsFrom\|setDefaultDurationToQuarter\|set\|sesquisharp\|sesquiflat\|sequential\|semisharp\|semiflat\|semicirculus\|semiGermanChords\|segno\|searchForVoice\|scriptDefinitions\|score\|scaleDurations\|scale\|sans\|sacredHarpHeadsMinor\|sacredHarpHeads\|rtoe\|rounded-box\|rotate\|roman\|rightHandFinger\|right-column\|right-brace\|right-align\|right\|rheel\|rfz\|revertTimeSignatureSettings\|revert\|reverseturn\|retrograde\|restrainOpenStrings\|rest-by-number\|rest\|responsum\|resetRelativeOctave\|replace\|repeatTie\|repeatCountVisibility\|repeat\|removeWithTag\|remove\|relative\|rehearsalMark\|raise\|quotedEventTypes\|quotedCueEventTypes\|quoteDuring\|quilisma\|put-adjacent\|pushToTag\|pt\|property-recursive\|printPartCombineTexts\|printKeyCancellation\|predefinedFretboardsOn\|predefinedFretboardsOff\|predefinedDiagramTable\|prallup\|prallprall\|prallmordent\|pralldown\|prall\|ppppp\|pppp\|ppp\|pp\|powerChords\|powerChordSymbol\|powerChordExceptions\|postscript\|portato\|pointAndClickTypes\|pointAndClickOn\|pointAndClickOff\|pitchedTrill\|phrygian\|phrasingSlurUp\|phrasingSlurSolid\|phrasingSlurNeutral\|phrasingSlurHalfSolid\|phrasingSlurHalfDashed\|phrasingSlurDown\|phrasingSlurDotted\|phrasingSlurDashed\|phrasingSlurDashPattern\|pes\|pedalUnaCordaStyle\|pedalUnaCordaStrings\|pedalSustainStyle\|pedalSustainStrings\|pedalSostenutoStyle\|pedalSostenutoStrings\|pattern\|path\|partialJazzMusic\|partialJazzExceptions\|partial\|partcombineUp\|partcombineUnisonoOnce\|partcombineUnisono\|partcombineSoloIOnce\|partcombineSoloIIOnce\|partcombineSoloII\|partcombineSoloI\|partcombineForce\|partcombineDown\|partcombineChordsOnce\|partcombineChords\|partcombineAutomaticOnce\|partcombineAutomatic\|partcombineApartOnce\|partcombineApart\|partcombine\|partCombineTextsOnNote\|partCombineListener\|parenthesize\|parallelMusic\|paper\|palmMuteOn\|palmMuteOff\|palmMute\|pageTurn\|pageBreak\|page-ref\|page-link\|pad-x\|pad-to-box\|pad-markup\|pad-around\|p\|overrideTimeSignatureSettings\|overrideProperty\|override-lines\|override\|oval\|ottava\|oriscus\|open\|oneVoice\|once\|on-the-fly\|omit\|offset\|octaveCheck\|numericTimeSignature\|number\|null\|notemode\|noteToFretFunction\|note-by-number\|note\|normalsize\|normal-text\|normal-size-super\|normal-size-sub\|noPageTurn\|noPageBreak\|noChordSymbol\|noBreak\|noBeam\|newSpacingSection\|new\|neumeDemoLayout\|natural\|name\|musicglyph\|musicMap\|mp\|mordent\|modalTranspose\|modalInversion\|mm\|mixolydian\|minorChordModifier\|minor\|midiInstrument\|midiChannelMapping\|midi\|middleCPosition\|middleCClefPosition\|mf\|metronomeMarkFormatter\|mergeDifferentlyHeadedOn\|mergeDifferentlyHeadedOff\|mergeDifferentlyDottedOn\|mergeDifferentlyDottedOff\|melismaEnd\|melismaBusyProperties\|melisma\|medium\|maxima\|markuplist\|markup\|markletter\|markalphabet\|markLengthOn\|markLengthOff\|markFormatter\|mark\|marcato\|map-markup-commands\|makeClusters\|majorSevenSymbol\|major\|maininput\|magnify\|lyricsto\|lyrics\|lyricmode\|lyricMelismaAlignment\|lydian\|ltoe\|lower\|lookup\|longfermata\|longa\|locrian\|localKeySignature\|lineprall\|linea\|line\|ligature\|lheel\|left-column\|left-brace\|left-align\|left\|layout\|larger\|large\|languageSaveAndChange\|languageRestore\|language\|laissezVibrer\|label\|killCues\|kievanOn\|kievanOff\|keyAlterationOrder\|key\|keepWithTag\|keepAliveInterfaces\|justify-string\|justify-field\|justify\|justified-lines\|italic\|italianChords\|ionian\|inversion\|interscoreline\|instrumentTransposition\|instrumentSwitch\|instrumentName\|instrumentEqualizer\|indent\|include\|inclinatum\|inStaffSegno\|in\|improvisationOn\|improvisationOff\|implicitTimeSignatureVisibility\|ij\|iij\|ignoreFiguredBassRest\|ignoreBarChecks\|ignatzekExceptions\|ignatzekExceptionMusic\|ictus\|huge\|hspace\|highStringOne\|hideStaffSwitch\|hideSplitTiedTabNotes\|hideNotes\|hide\|header\|hcenter-in\|hbracket\|harp-pedal\|harmonicsOn\|harmonicsOff\|harmonicNote\|harmonicByRatio\|harmonicByFret\|harmonicAccidentals\|harmonic\|handleNegativeFrets\|halign\|halfopen\|grobdescriptions\|graceSettings\|grace\|glissando\|germanChords\|general-align\|fz\|funkHeadsMinor\|funkHeads\|fullJazzExceptions\|fromproperty\|fret-diagram-verbose\|fret-diagram-terse\|fret-diagram\|frenchChords\|fraction\|fp\|footnote\|fontsize\|fontSize\|fontCaps\|flexa\|flat\|flageolet\|firstClef\|fingeringOrientations\|finger\|finalis\|filled-box\|fill-with-pattern\|fill-line\|figures\|figuremode\|figuredBassFormatter\|fffff\|ffff\|fff\|ff\|fermataMarkup\|fermata\|featherDurations\|f\|eyeglasses\|extraNatural\|explicitKeySignatureVisibility\|explicitCueClefVisibility\|explicitClefVisibility\|expandFullBarRests\|eventChords\|espressivo\|epsfile\|episemInitium\|episemFinis\|endincipit\|enddim\|enddecresc\|enddecr\|endcresc\|endcr\|endSpanners\|endRepeatType\|ellipse\|easyHeadsOn\|easyHeadsOff\|dynamicUp\|dynamicNeutral\|dynamicDown\|dynamicAbsoluteVolumeFunction\|dynamic\|drums\|drummode\|drumStyleTable\|drumPitchTable\|draw-line\|draw-hline\|draw-dotted-line\|draw-dashed-line\|draw-circle\|downprall\|downmordent\|downbow\|down\|doublesharp\|doubleflat\|doubleRepeatType\|dotsUp\|dotsNeutral\|dotsDown\|dorian\|divisioMinima\|divisioMaxima\|divisioMaior\|displayScheme\|displayMusic\|displayLilyMusic\|dir-column\|dimTextDim\|dimTextDecresc\|dimTextDecr\|dimHairpin\|dim\|description\|descendens\|deprecatedenddim\|deprecatedendcresc\|deprecateddim\|deprecatedcresc\|denies\|deminutum\|defineBarLine\|defaultchild\|defaultTimeSignature\|defaultNoteHeads\|defaultBarType\|default\|decrescendoSpanner\|decresc\|decr\|deadNotesOn\|deadNotesOff\|deadNote\|dashUnderscore\|dashPlus\|dashLarger\|dashHat\|dashDot\|dashDash\|dashBang\|cueDuringWithClef\|cueDuring\|cueClefUnset\|cueClefTranspositionFormatter\|cueClef\|crossStaff\|crescendoSpanner\|crescTextCresc\|crescHairpin\|cresc\|createSpacing\|cr\|context\|consists\|concat\|compressFullBarRests\|compoundMeter\|command-name\|combine\|column-lines\|column\|coda\|cm\|clefTranspositionFormatter\|clefTransposition\|clefPosition\|clefGlyph\|clef\|circulus\|circle\|chords\|chordmodifiers\|chordmode\|chordRootNamer\|chordPrefixSpacer\|chordNoteNamer\|chordNameSeparator\|chordNameLowercaseMinor\|chordNameFunction\|chordNameExceptionsPartial\|chordNameExceptionsFull\|chordNameExceptions\|char\|change\|center-column\|center-align\|center\|cavum\|caps\|caesura\|cadenzaOn\|cadenzaOff\|breve\|breathe\|breakDynamicSpan\|break\|bracket\|box\|bookpart\|bookOutputSuffix\|bookOutputName\|book\|bold\|blackTriangleMarkup\|bigger\|bendAfter\|beamHalfMeasure\|beam\|bassStaffProperties\|bassFigureStaffAlignmentUp\|bassFigureStaffAlignmentNeutral\|bassFigureStaffAlignmentDown\|bassFigureExtendersOn\|bassFigureExtendersOff\|barNumberVisibility\|barNumberFormatter\|barNumberCheck\|barCheckSynchronize\|barAlways\|bar\|balloonText\|balloonLengthOn\|balloonLengthOff\|balloonGrobText\|backslashed-digit\|automaticBars\|autochange\|autoCautionaries\|autoBeaming\|autoBeamOn\|autoBeamOff\|autoBeamCheck\|autoAccidentals\|auto-footnote\|augmentum\|auctum\|assertBeamSlope\|assertBeamQuant\|ascendens\|arrow-head\|arpeggioParenthesisDashed\|arpeggioParenthesis\|arpeggioNormal\|arpeggioBracket\|arpeggioArrowUp\|arpeggioArrowDown\|arpeggio\|appoggiatura\|applyOutput\|applyMusic\|applyContext\|appendToTag\|alternative\|alterBroken\|allowVoltaHook\|allowPageTurn\|alias\|aikenHeadsMinor\|aikenHeads\|afterGraceFraction\|afterGrace\|aeolian\|addlyrics\|additionalPitchPrefix\|addQuote\|addInstrumentDefinition\|accidentalStyle\|acciaccatura\|accepts\|accentus\|accent\|absolute\|abs-fontsize\|aDueText\|RemoveEmptyTabStaffContext\|RemoveEmptyStaffContext\|RemoveEmptyRhythmicStaffContext\|RemoveEmptyDrumStaffContext\|IJ\|IIJ\|C\|B\|AncientRemoveEmptyStaffContext\|A\|n\)\(\A\|\n\)"me=e-1 syn match lilyReservedWord "\(\A\|\n\)\(warnings\|staff\|spacing\|signature\|shift\|routine\|notes\|handler\|corrected\|beams\|arpeggios\|Volta_engraver\|Voice\|Vertical_align_engraver\|Vaticana_ligature_engraver\|VaticanaVoice\|VaticanaStaff\|Tweak_engraver\|Tuplet_engraver\|Trill_spanner_engraver\|Timing_translator\|Time_signature_performer\|Time_signature_engraver\|Tie_performer\|Tie_engraver\|Text_spanner_engraver\|Text_engraver\|Tempo_performer\|Tab_tie_follow_engraver\|Tab_staff_symbol_engraver\|Tab_note_heads_engraver\|TabVoice\|TabStaff\|System_start_delimiter_engraver\|Stem_engraver\|Stanza_number_engraver\|Stanza_number_align_engraver\|Staff_symbol_engraver\|Staff_performer\|Staff_collecting_engraver\|StaffGroup\|Staff\|Spanner_break_forbid_engraver\|Span_bar_stub_engraver\|Span_bar_engraver\|Span_arpeggio_engraver\|Spacing_engraver\|Slur_performer\|Slur_engraver\|Slash_repeat_engraver\|Separating_line_group_engraver\|Script_row_engraver\|Script_engraver\|Script_column_engraver\|Score\|Rhythmic_column_engraver\|RhythmicStaff\|Rest_engraver\|Rest_collision_engraver\|Repeat_tie_engraver\|Repeat_acknowledge_engraver\|Pure_from_neighbor_engraver\|Pitched_trill_engraver\|Pitch_squash_engraver\|Piano_pedal_performer\|Piano_pedal_engraver\|Piano_pedal_align_engraver\|PianoStaff\|Phrasing_slur_engraver\|PetrucciVoice\|PetrucciStaff\|Percent_repeat_engraver\|Part_combine_engraver\|Parenthesis_engraver\|Paper_column_engraver\|Output_property_engraver\|Ottava_spanner_engraver\|NullVoice\|Note_spacing_engraver\|Note_performer\|Note_name_engraver\|Note_heads_engraver\|Note_head_line_engraver\|NoteNames\|New_fingering_engraver\|Multi_measure_rest_engraver\|Midi_control_function_performer\|Metronome_mark_engraver\|Mensural_ligature_engraver\|MensuralVoice\|MensuralStaff\|Mark_engraver\|Lyrics\|Lyric_performer\|Lyric_engraver\|Ligature_bracket_engraver\|Ledger_line_engraver\|Laissez_vibrer_engraver\|Kievan_ligature_engraver\|KievanVoice\|KievanStaff\|Key_performer\|Key_engraver\|Keep_alive_together_engraver\|Instrument_switch_engraver\|Instrument_name_engraver\|Hyphen_engraver\|Grob_pq_engraver\|GregorianTranscriptionVoice\|GregorianTranscriptionStaff\|GrandStaff\|Grace_spacing_engraver\|Grace_engraver\|Grace_beam_engraver\|Grace_auto_beam_engraver\|Global\|Glissando_engraver\|Fretboard_engraver\|FretBoards\|Forbid_line_break_engraver\|Footnote_engraver\|Font_size_engraver\|Fingering_engraver\|Fingering_column_engraver\|Figured_bass_position_engraver\|Figured_bass_engraver\|FiguredBass\|Extender_engraver\|Episema_engraver\|Dynamics\|Dynamic_performer\|Dynamic_engraver\|Dynamic_align_engraver\|Drum_notes_engraver\|Drum_note_performer\|DrumVoice\|DrumStaff\|Double_percent_repeat_engraver\|Dots_engraver\|Dot_column_engraver\|Devnull\|Default_bar_line_engraver\|Custos_engraver\|Cue_clef_engraver\|CueVoice\|Control_track_performer\|Concurrent_hairpin_engraver\|Collision_engraver\|Cluster_spanner_engraver\|Clef_engraver\|Chord_tremolo_engraver\|Chord_name_engraver\|ChordNames\|ChordNameVoice\|ChoirStaff\|Breathing_sign_engraver\|Break_align_engraver\|Bend_engraver\|Beam_performer\|Beam_engraver\|Beam_collision_engraver\|Bar_number_engraver\|Bar_engraver\|Axis_group_engraver\|Auto_beam_engraver\|Arpeggio_engraver\|Accidental_engraver\|Score\)\(\A\|\n\)"ms=s+1,me=e-1 syn match lilyNote "\<\(\(\(solx\|soltcs\|soltcb\|solstqt\|solss\|solsqt\|solsd\|solsb\|sols\|solkk\|solk\|soldsd\|soldd\|sold\|solcs\|solcb\|solbtqt\|solbsb\|solbqt\|solbb\|solb\|sol\|six\|sitcs\|sitcb\|sistqt\|siss\|sisqt\|sisd\|sisb\|sis\|sikk\|sik\|sidsd\|sidd\|sid\|sics\|sicb\|sibtqt\|sibsb\|sibqt\|sibb\|sib\|si\|rex\|retcs\|retcb\|restqt\|ress\|resqt\|resd\|resb\|res\|rekk\|rek\|redsd\|redd\|red\|recs\|recb\|rebtqt\|rebsb\|rebqt\|rebb\|reb\|re\|mix\|mitcs\|mitcb\|mistqt\|miss\|misqt\|misd\|misb\|mis\|mikk\|mik\|midsd\|midd\|mid\|mics\|micb\|mibtqt\|mibsb\|mibqt\|mibb\|mib\|mi\|lax\|latcs\|latcb\|lastqt\|lass\|lasqt\|lasd\|lasb\|las\|lakk\|lak\|ladsd\|ladd\|lad\|lacs\|lacb\|labtqt\|labsb\|labqt\|labb\|lab\|la\|hississ\|hiss\|hisis\|hisih\|his\|hih\|hessess\|heses\|heseh\|h\|gx\|gtqs\|gtqf\|gss\|gsharpsharp\|gsharp\|gs\|gqs\|gqf\|gississ\|giss\|gisis\|gisih\|gis\|gih\|gflatflat\|gflat\|gff\|gf\|gessess\|gess\|geses\|geseh\|ges\|geh\|g\|fx\|ftqs\|ftqf\|fss\|fsharpsharp\|fsharp\|fs\|fqs\|fqf\|fississ\|fiss\|fisis\|fisih\|fis\|fih\|fflatflat\|fflat\|fff\|ff\|fessess\|fess\|feses\|feseh\|fes\|feh\|fax\|fatcs\|fatcb\|fastqt\|fass\|fasqt\|fasd\|fasb\|fas\|fakk\|fak\|fadsd\|fadd\|fad\|facs\|facb\|fabtqt\|fabsb\|fabqt\|fabb\|fab\|fa\|f\|ex\|etqs\|etqf\|essess\|ess\|esharpsharp\|esharp\|eses\|eseh\|es\|eqs\|eqf\|eississ\|eiss\|eisis\|eisih\|eis\|eih\|eflatflat\|eflat\|eff\|ef\|eessess\|eess\|eeses\|eeseh\|ees\|eeh\|e\|dx\|dtqs\|dtqf\|dss\|dsharpsharp\|dsharp\|ds\|dqs\|dqf\|dox\|dotcs\|dotcb\|dostqt\|doss\|dosqt\|dosd\|dosb\|dos\|dokk\|dok\|dodsd\|dodd\|dod\|docs\|docb\|dobtqt\|dobsb\|dobqt\|dobb\|dob\|do\|dississ\|diss\|disis\|disih\|dis\|dih\|dflatflat\|dflat\|dff\|df\|dessess\|dess\|deses\|deseh\|des\|deh\|d\|cx\|ctqs\|ctqf\|css\|csharpsharp\|csharp\|cs\|cqs\|cqf\|cississ\|ciss\|cisis\|cisih\|cis\|cih\|cflatflat\|cflat\|cff\|cf\|cessess\|cess\|ceses\|ceseh\|ces\|ceh\|c\|bx\|btqs\|btqf\|bss\|bsharpsharp\|bsharp\|bs\|bqs\|bqf\|bisis\|bisih\|bis\|bih\|bflatflat\|bflat\|bff\|bf\|bess\|beses\|beseh\|bes\|beh\|bb\|b\|ax\|atqs\|atqf\|assess\|ass\|asharpsharp\|asharp\|ases\|aseh\|asas\|asah\|as\|aqs\|aqf\|aississ\|aiss\|aisis\|aisih\|ais\|aih\|aflatflat\|aflat\|aff\|af\|aessess\|aess\|aeses\|aeseh\|aes\|aeh\|a\|a\)\([,']\)\{,4}\([?!]\)\?\)\|s\|r\|R\|q\)\(\(128\|64\|32\|16\|8\|4\|2\|1\|\\breve\|\\longa\|\\maxima\)[.]\{,8}\)\?\(\A\|\n\)"me=e-1 +endif diff --git a/syntax/lilypond.vim b/syntax/lilypond.vim index 97f78c89..7e0e8fbb 100644 --- a/syntax/lilypond.vim +++ b/syntax/lilypond.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'lilypond') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 " LilyPond syntax file " Language: LilyPond " Maintainer: Heikki Junes @@ -89,3 +86,4 @@ if version >= 508 || !exists("did_lily_syn_inits") endif let b:current_syntax = "lilypond" +endif diff --git a/syntax/litcoffee.vim b/syntax/litcoffee.vim index 38867403..3957140b 100644 --- a/syntax/litcoffee.vim +++ b/syntax/litcoffee.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 " Language: Literate CoffeeScript " Maintainer: Michael Smith " URL: https://github.com/mintplant/vim-literate-coffeescript @@ -25,3 +22,4 @@ syn region inlineCoffee start='^ \|\t' end='$' contains=@coffee highlight default link notCoffee Comment let b:current_syntax = "litcoffee" +endif diff --git a/syntax/llvm.vim b/syntax/llvm.vim index 87202ede..740b2639 100644 --- a/syntax/llvm.vim +++ b/syntax/llvm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 " Vim syntax file " Language: llvm " Maintainer: The LLVM team, http://llvm.org/ @@ -235,3 +232,4 @@ if version >= 508 || !exists("did_c_syn_inits") endif let b:current_syntax = "llvm" +endif diff --git a/syntax/log.vim b/syntax/log.vim index a27d10c5..f44ae9ff 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'log') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'log') == -1 " Vim syntax file " Language: Generic log file " Maintainer: MTDL9 @@ -161,3 +158,4 @@ let b:current_syntax = 'log' let &cpoptions = s:cpo_save unlet s:cpo_save +endif diff --git a/syntax/ls.vim b/syntax/ls.vim index 64e7905f..4b5feb82 100644 --- a/syntax/ls.vim +++ b/syntax/ls.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'livescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1 " Language: LiveScript " " Maintainer: George Zahariev " URL: http://github.com/gkz/vim-ls @@ -138,3 +135,4 @@ highlight default link lsSpaceError Error if !exists('b:current_syntax') let b:current_syntax = 'livescript' endif +endif diff --git a/syntax/lua.vim b/syntax/lua.vim index 9f026bf3..0daa6477 100644 --- a/syntax/lua.vim +++ b/syntax/lua.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'lua') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lua') == -1 " Vim syntax file " Language: Lua " URL: https://github.com/tbastos/vim-lua @@ -249,3 +246,4 @@ let b:current_syntax = "lua" if main_syntax == 'lua' unlet main_syntax endif +endif diff --git a/syntax/mako.vim b/syntax/mako.vim index 37b2a274..5fa30c24 100644 --- a/syntax/mako.vim +++ b/syntax/mako.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mako') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1 " Vim syntax file " Language: Mako " Maintainer: Armin Ronacher @@ -105,3 +102,4 @@ if version >= 508 || !exists("did_mako_syn_inits") endif let b:current_syntax = b:mako_outer_lang +endif diff --git a/syntax/markdown.vim b/syntax/markdown.vim index d28da0e2..a4207919 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'markdown') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1 " Vim syntax file " Language: Markdown " Maintainer: Ben Williams @@ -186,3 +183,4 @@ let b:current_syntax = "mkd" delcommand HtmlHiLink " vim: ts=8 +endif diff --git a/syntax/mason.vim b/syntax/mason.vim index 45586f31..2915055e 100644 --- a/syntax/mason.vim +++ b/syntax/mason.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'perl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1 " Vim syntax file " Language: Mason (Perl embedded in HTML) " Maintainer: vim-perl @@ -85,3 +82,4 @@ let b:current_syntax = "mason" if main_syntax == 'mason' unlet main_syntax endif +endif diff --git a/syntax/merlin.vim b/syntax/merlin.vim index 9c2d2ee4..97f400d1 100644 --- a/syntax/merlin.vim +++ b/syntax/merlin.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'reason') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1 " Vim syntax file for editing merlin project files if exists("b:current_syntax") finish @@ -15,3 +12,4 @@ hi link merlinComment Comment let b:current_syntax = "merlin" +endif diff --git a/syntax/meson.vim b/syntax/meson.vim index 7bd562c0..025a991b 100644 --- a/syntax/meson.vim +++ b/syntax/meson.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'meson') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1 " Vim syntax file " Language: Meson " Maintainer: Nirbheek Chauhan @@ -166,3 +163,4 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:set sw=2 sts=2 ts=8 noet: +endif diff --git a/syntax/mma.vim b/syntax/mma.vim index 1774c3e5..33925394 100644 --- a/syntax/mma.vim +++ b/syntax/mma.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mathematica') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 " Vim syntax file " Language: Mathematica " Maintainer: Voldikss @@ -1362,3 +1359,4 @@ let b:current_syntax = "mma" let &cpo = s:cpo_save unlet s:cpo_save +endif diff --git a/syntax/moon.vim b/syntax/moon.vim index 70ebeaf9..cc9f6433 100644 --- a/syntax/moon.vim +++ b/syntax/moon.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'moonscript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1 " Language: MoonScript " Maintainer: leafo " Based On: CoffeeScript by Mick Koch @@ -319,3 +316,4 @@ syn cluster moonAll contains=moonStatement,moonRepeat,moonConditional, if !exists('b:current_syntax') let b:current_syntax = 'moon' endif +endif diff --git a/syntax/mustache.vim b/syntax/mustache.vim index 204b4fb9..e37087d6 100644 --- a/syntax/mustache.vim +++ b/syntax/mustache.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'handlebars') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1 " Mustache & Handlebars syntax " Language: Mustache, Handlebars " Maintainer: Juvenn Woo @@ -108,3 +105,4 @@ syn region mustacheScriptTemplate start=+