summaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
Diffstat (limited to 'indent')
-rw-r--r--indent/Dockerfile.vim8
-rw-r--r--indent/Jenkinsfile.vim8
-rw-r--r--indent/ansible.vim8
-rw-r--r--indent/applescript.vim8
-rw-r--r--indent/arduino.vim8
-rw-r--r--indent/autohotkey.vim8
-rw-r--r--indent/blade.vim8
-rw-r--r--indent/cabal.vim8
-rw-r--r--indent/caddyfile.vim8
-rw-r--r--indent/clojure.vim8
-rw-r--r--indent/cmake.vim8
-rw-r--r--indent/coffee.vim8
-rw-r--r--indent/crystal.vim8
-rw-r--r--indent/cucumber.vim8
-rw-r--r--indent/cython.vim8
-rw-r--r--indent/dart.vim8
-rw-r--r--indent/eelixir.vim8
-rw-r--r--indent/elixir.vim8
-rw-r--r--indent/elm.vim8
-rw-r--r--indent/ember-script.vim8
-rw-r--r--indent/emblem.vim8
-rw-r--r--indent/erlang.vim8
-rw-r--r--indent/eruby.vim8
-rw-r--r--indent/fish.vim8
-rw-r--r--indent/fsharp.vim8
-rw-r--r--indent/gitconfig.vim8
-rw-r--r--indent/glsl.vim8
-rw-r--r--indent/go.vim8
-rw-r--r--indent/gohtmltmpl.vim8
-rw-r--r--indent/graphql.vim8
-rw-r--r--indent/haml.vim8
-rw-r--r--indent/handlebars.vim8
-rw-r--r--indent/haskell.vim8
-rw-r--r--indent/html.vim8
-rw-r--r--indent/javascript.vim8
-rw-r--r--indent/json.vim8
-rw-r--r--indent/jst.vim8
-rw-r--r--indent/julia.vim8
-rw-r--r--indent/kotlin.vim8
-rw-r--r--indent/less.vim9
-rw-r--r--indent/liquid.vim8
-rw-r--r--indent/litcoffee.vim8
-rw-r--r--indent/ls.vim8
-rw-r--r--indent/lua.vim8
-rw-r--r--indent/mako.vim8
-rw-r--r--indent/markdown.vim8
-rw-r--r--indent/moon.vim8
-rw-r--r--indent/nginx.vim8
-rw-r--r--indent/nim.vim8
-rw-r--r--indent/nix.vim8
-rw-r--r--indent/ocaml.vim8
-rw-r--r--indent/opencl.vim8
-rw-r--r--indent/org.vim8
-rw-r--r--indent/perl.vim8
-rw-r--r--indent/plantuml.vim8
-rw-r--r--indent/pony.vim8
-rw-r--r--indent/proto.vim8
-rw-r--r--indent/ps1.vim8
-rw-r--r--indent/pug.vim8
-rw-r--r--indent/puppet.vim8
-rw-r--r--indent/purescript.vim8
-rw-r--r--indent/python.vim8
-rw-r--r--indent/qml.vim8
-rw-r--r--indent/racket.vim8
-rw-r--r--indent/ruby.vim8
-rw-r--r--indent/rust.vim8
-rw-r--r--indent/scala.vim8
-rw-r--r--indent/slim.vim8
-rw-r--r--indent/slime.vim8
-rw-r--r--indent/solidity.vim8
-rw-r--r--indent/stylus.vim8
-rw-r--r--indent/swift.vim8
-rw-r--r--indent/terraform.vim8
-rw-r--r--indent/tex.vim8
-rw-r--r--indent/twig.vim8
-rw-r--r--indent/typescript.vim8
-rw-r--r--indent/vala.vim8
-rw-r--r--indent/velocity.vim8
-rw-r--r--indent/vue.vim8
79 files changed, 317 insertions, 316 deletions
diff --git a/indent/Dockerfile.vim b/indent/Dockerfile.vim
index a4ba894c..1eefd26a 100644
--- a/indent/Dockerfile.vim
+++ b/indent/Dockerfile.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dockerfile') != -1
+ finish
+endif
+
if exists('b:did_indent') | finish | endif
let b:did_indent = 1
@@ -23,5 +25,3 @@ endfunction
set indentexpr=DockerfileIndent(v:lnum)
-
-endif
diff --git a/indent/Jenkinsfile.vim b/indent/Jenkinsfile.vim
index 07fdbf3b..79d09bb8 100644
--- a/indent/Jenkinsfile.vim
+++ b/indent/Jenkinsfile.vim
@@ -1,5 +1,5 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jenkins') == -1
-
-runtime indent/groovy.vim
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jenkins') != -1
+ finish
endif
+
+runtime indent/groovy.vim
diff --git a/indent/ansible.vim b/indent/ansible.vim
index 29fc8e75..e8ad6a73 100644
--- a/indent/ansible.vim
+++ b/indent/ansible.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1
+ finish
+endif
+
let s:save_cpo = &cpo
set cpo&vim
@@ -59,5 +61,3 @@ function GetAnsibleIndent(lnum)
endfunction
let &cpo = s:save_cpo
-
-endif
diff --git a/indent/applescript.vim b/indent/applescript.vim
index 67c51b35..41b9884b 100644
--- a/indent/applescript.vim
+++ b/indent/applescript.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'applescript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'applescript') != -1
+ finish
+endif
+
"Plugin Name: applescript indent file.
"Author: mityu
"Last Change: 02-May-2017.
@@ -77,5 +79,3 @@ let &cpo=s:cpo_save
unlet s:cpo_save
" vim: foldmethod=marker
-
-endif
diff --git a/indent/arduino.vim b/indent/arduino.vim
index 21ba1964..d29cbba7 100644
--- a/indent/arduino.vim
+++ b/indent/arduino.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'arduino') != -1
+ finish
+endif
+
" Vim indent file
" Language: Arduino
" Maintainer: Kevin Sjöberg <kev.sjoberg@gmail.com>
@@ -15,5 +17,3 @@ let b:did_indent = 1
setlocal cindent
let b:undo_indent = "setl cin<"
-
-endif
diff --git a/indent/autohotkey.vim b/indent/autohotkey.vim
index 2a9e7a2d..c04d94dd 100644
--- a/indent/autohotkey.vim
+++ b/indent/autohotkey.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'autohotkey') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'autohotkey') != -1
+ finish
+endif
+
" Vim indent file
" Language: AutoHotkey
" Maintainer: Hirotoshi Namikawa <hnamikaw1@gmail.com>
@@ -219,5 +221,3 @@ function! GetAutoHotkeyIndent()
endfunction
let b:did_indent = 1
-
-endif
diff --git a/indent/blade.vim b/indent/blade.vim
index 9fe95742..cd865cd9 100644
--- a/indent/blade.vim
+++ b/indent/blade.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'blade') != -1
+ finish
+endif
+
" Vim indent file
" Language: Blade (Laravel)
" Maintainer: Jason Walton <jwalton512@gmail.com>
@@ -95,5 +97,3 @@ function! GetBladeIndent()
return indent
endfunction
-
-endif
diff --git a/indent/cabal.vim b/indent/cabal.vim
index b2089a5e..e4d80e82 100644
--- a/indent/cabal.vim
+++ b/indent/cabal.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1
+ finish
+endif
+
" indentation for cabal
"
" author: raichoo (raichoo@googlemail.com)
@@ -31,5 +33,3 @@ function! GetCabalIndent()
return match(l:prevline, '\S')
endif
endfunction
-
-endif
diff --git a/indent/caddyfile.vim b/indent/caddyfile.vim
index 3a4ff73d..885a9495 100644
--- a/indent/caddyfile.vim
+++ b/indent/caddyfile.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'caddyfile') != -1
+ finish
+endif
+
if exists('b:did_indent')
finish
endif
@@ -41,5 +43,3 @@ function! GetCaddyfileIndent(lnum)
return ind
endfunction
-
-endif
diff --git a/indent/clojure.vim b/indent/clojure.vim
index 6d21c3d1..4ad30821 100644
--- a/indent/clojure.vim
+++ b/indent/clojure.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'clojure') != -1
+ finish
+endif
+
" Vim indent file
" Language: Clojure
" Author: Meikel Brandmeyer <mb@kotka.de>
@@ -403,5 +405,3 @@ let &cpo = s:save_cpo
unlet! s:save_cpo
" vim:sts=8:sw=8:ts=8:noet
-
-endif
diff --git a/indent/cmake.vim b/indent/cmake.vim
index 05eeba31..2ab2dc34 100644
--- a/indent/cmake.vim
+++ b/indent/cmake.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cmake') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cmake') != -1
+ finish
+endif
+
" Vim indent file
" Language: CMake (ft=cmake)
" Author: Andy Cedilnik <andy.cedilnik@kitware.com>
@@ -89,5 +91,3 @@ endfun
let &cpo = s:keepcpo
unlet s:keepcpo
-
-endif
diff --git a/indent/coffee.vim b/indent/coffee.vim
index fc9b58f7..bf39c733 100644
--- a/indent/coffee.vim
+++ b/indent/coffee.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1
+ finish
+endif
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -428,5 +430,3 @@ function! GetCoffeeIndent(curlnum)
" No special rules applied, so use the default policy.
exec 'return' s:GetDefaultPolicy(a:curlnum)
endfunction
-
-endif
diff --git a/indent/crystal.vim b/indent/crystal.vim
index ae900b62..836a9369 100644
--- a/indent/crystal.vim
+++ b/indent/crystal.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1
+ finish
+endif
+
" Only load this indent file when no other was loaded.
if exists('b:did_indent')
finish
@@ -635,5 +637,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 et:
-
-endif
diff --git a/indent/cucumber.vim b/indent/cucumber.vim
index 03f11dc8..e4ad953e 100644
--- a/indent/cucumber.vim
+++ b/indent/cucumber.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cucumber') != -1
+ finish
+endif
+
" Vim indent file
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -75,5 +77,3 @@ function! GetCucumberIndent()
endfunction
" vim:set sts=2 sw=2:
-
-endif
diff --git a/indent/cython.vim b/indent/cython.vim
index 2f590edd..68afa793 100644
--- a/indent/cython.vim
+++ b/indent/cython.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-ident') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'python-ident') != -1
+ finish
+endif
+
" PEP8 compatible Python indent file
" Language: Python
" Maintainer: Daniel Hahler <https://daniel.hahler.de/>
@@ -437,5 +439,3 @@ function! GetPythonPEPIndent(lnum)
return s:indent_like_previous_line(a:lnum)
endfunction
-
-endif
diff --git a/indent/dart.vim b/indent/dart.vim
index 8d685df9..1900e99c 100644
--- a/indent/dart.vim
+++ b/indent/dart.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dart') != -1
+ finish
+endif
+
if exists('b:did_indent')
finish
endif
@@ -35,5 +37,3 @@ function! DartIndent()
return indentTo
endfunction
-
-endif
diff --git a/indent/eelixir.vim b/indent/eelixir.vim
index b80edc98..0c98c162 100644
--- a/indent/eelixir.vim
+++ b/indent/eelixir.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1
+ finish
+endif
+
if exists("b:did_indent")
finish
endif
@@ -72,5 +74,3 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
-
-endif
diff --git a/indent/elixir.vim b/indent/elixir.vim
index 5882565f..b2aa7ea7 100644
--- a/indent/elixir.vim
+++ b/indent/elixir.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1
+ finish
+endif
+
if exists("b:did_indent")
finish
end
@@ -15,5 +17,3 @@ setlocal indentkeys+=*<Return>,=->,=\|>,=<>,0},0],0)
function! elixir#indent(lnum)
return elixir#indent#indent(a:lnum)
endfunction
-
-endif
diff --git a/indent/elm.vim b/indent/elm.vim
index b8635314..db86e289 100644
--- a/indent/elm.vim
+++ b/indent/elm.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1
+ finish
+endif
+
" indentation for Elm (http://elm-lang.org/)
" Only load this indent file when no other was loaded.
@@ -111,5 +113,3 @@ function! GetElmIndent()
return l:ind
endfunc
-
-endif
diff --git a/indent/ember-script.vim b/indent/ember-script.vim
index 8d76823d..8a28d875 100644
--- a/indent/ember-script.vim
+++ b/indent/ember-script.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'emberscript') != -1
+ finish
+endif
+
" Language: ember-script
" Maintainer: Yulij Andreevich Lesov <yalesov@gmail.com>>
" URL: http://github.com/yalesov/vim-ember-script
@@ -14,5 +16,3 @@ endif
runtime! indent/coffee.vim
unlet! b:did_indent
let b:did_indent = 1
-
-endif
diff --git a/indent/emblem.vim b/indent/emblem.vim
index 6538baca..67132c0c 100644
--- a/indent/emblem.vim
+++ b/indent/emblem.vim
@@ -1,10 +1,10 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'emblem') != -1
+ finish
+endif
+
" Language: emblem
" Maintainer: Yulij Andreevich Lesov <yalesov@gmail.com>
" URL: http://github.com/yalesov/vim-emblem
" Version: 2.0.1
" Last Change: 2016 Jul 6
" License: ISC
-
-endif
diff --git a/indent/erlang.vim b/indent/erlang.vim
index 64525bbd..04eb2d44 100644
--- a/indent/erlang.vim
+++ b/indent/erlang.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'erlang') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'erlang') != -1
+ finish
+endif
+
" Vim indent file
" Language: Erlang (http://www.erlang.org)
" Author: Csaba Hoch <csaba.hoch@gmail.com>
@@ -1483,5 +1485,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 et fdm=marker
-
-endif
diff --git a/indent/eruby.vim b/indent/eruby.vim
index 6fd76600..7d3966cb 100644
--- a/indent/eruby.vim
+++ b/indent/eruby.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1
+ finish
+endif
+
" Vim indent file
" Language: eRuby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -110,5 +112,3 @@ let &cpo = s:cpo_sav
unlet! s:cpo_sav
" vim:set sw=2 sts=2 ts=8 noet:
-
-endif
diff --git a/indent/fish.vim b/indent/fish.vim
index c5f8e50e..dfdd5bca 100644
--- a/indent/fish.vim
+++ b/indent/fish.vim
@@ -1,6 +1,6 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1
+ finish
+endif
+
setlocal indentexpr=fish#Indent()
setlocal indentkeys+==end,=else,=case
-
-endif
diff --git a/indent/fsharp.vim b/indent/fsharp.vim
index bdc3e3f9..b227cec0 100644
--- a/indent/fsharp.vim
+++ b/indent/fsharp.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fsharp') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fsharp') != -1
+ finish
+endif
+
" Vim indent file
" Language: FSharp
" Maintainers: Jean-Francois Yuen <jfyuen@happycoders.org>
@@ -249,5 +251,3 @@ function! GetFsharpIndent()
endfunction
" vim: sw=4 et sts=4
-
-endif
diff --git a/indent/gitconfig.vim b/indent/gitconfig.vim
index e0e4a456..fd2ed5a9 100644
--- a/indent/gitconfig.vim
+++ b/indent/gitconfig.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1
+ finish
+endif
+
" Vim indent file
" Language: git config file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -38,5 +40,3 @@ function! GetGitconfigIndent()
return -1
endif
endfunction
-
-endif
diff --git a/indent/glsl.vim b/indent/glsl.vim
index 64f3a6fa..7690e654 100644
--- a/indent/glsl.vim
+++ b/indent/glsl.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'glsl') != -1
+ finish
+endif
+
" Language: OpenGL Shading Language
" Maintainer: Sergey Tikhomirov <sergey@tikhomirov.io>
@@ -11,5 +13,3 @@ setlocal autoindent cindent
setlocal formatoptions+=roq
" vim:set sts=2 sw=2 :
-
-endif
diff --git a/indent/go.vim b/indent/go.vim
index d31a6a1d..8847a118 100644
--- a/indent/go.vim
+++ b/indent/go.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1
+ finish
+endif
+
" 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.
@@ -86,5 +88,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 ts=2 et
-
-endif
diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim
index 93a4969b..60c38fe0 100644
--- a/indent/gohtmltmpl.vim
+++ b/indent/gohtmltmpl.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1
+ finish
+endif
+
if exists("b:did_indent")
finish
endif
@@ -54,5 +56,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 ts=2 et
-
-endif
diff --git a/indent/graphql.vim b/indent/graphql.vim
index 9d175777..1bf93abb 100644
--- a/indent/graphql.vim
+++ b/indent/graphql.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1
+ finish
+endif
+
" Vim indent file
" Language: GraphQL
" Maintainer: Jon Parise <jon@indelible.org>
@@ -77,5 +79,3 @@ endfunction
let &cpoptions = s:cpo_save
unlet s:cpo_save
-
-endif
diff --git a/indent/haml.vim b/indent/haml.vim
index 2ddd3da5..c5c73c88 100644
--- a/indent/haml.vim
+++ b/indent/haml.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haml') != -1
+ finish
+endif
+
" Vim indent file
" Language: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -74,5 +76,3 @@ function! GetHamlIndent()
endfunction
" vim:set sw=2:
-
-endif
diff --git a/indent/handlebars.vim b/indent/handlebars.vim
index e91dbd0b..3fbace93 100644
--- a/indent/handlebars.vim
+++ b/indent/handlebars.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'handlebars') != -1
+ finish
+endif
+
" Mustache & Handlebars syntax
" Language: Mustache, Handlebars
" Maintainer: Juvenn Woo <machese@gmail.com>
@@ -125,5 +127,3 @@ function! GetHandlebarsIndent(...)
return ind
endfunction
-
-endif
diff --git a/indent/haskell.vim b/indent/haskell.vim
index df74f334..a3f1be3e 100644
--- a/indent/haskell.vim
+++ b/indent/haskell.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1
+ finish
+endif
+
" indentation for haskell
"
" author: raichoo (raichoo@googlemail.com)
@@ -509,5 +511,3 @@ function! GetHaskellIndent()
return -1
endfunction
-
-endif
diff --git a/indent/html.vim b/indent/html.vim
index defaca2a..25389520 100644
--- a/indent/html.vim
+++ b/indent/html.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1
+ finish
+endif
+
" Vim indent script for HTML
" Header: "{{{
" Maintainer: Bram Moolenaar
@@ -1061,5 +1063,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: fdm=marker ts=8 sw=2 tw=78
-
-endif
diff --git a/indent/javascript.vim b/indent/javascript.vim
index f50fbc82..176a45b9 100644
--- a/indent/javascript.vim
+++ b/indent/javascript.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1
+ finish
+endif
+
" Vim indent file
" Language: Javascript
" Maintainer: Chris Paul ( https://github.com/bounceme )
@@ -475,5 +477,3 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
-
-endif
diff --git a/indent/json.vim b/indent/json.vim
index 7db3586e..9a4f8bde 100644
--- a/indent/json.vim
+++ b/indent/json.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'json') != -1
+ finish
+endif
+
" Vim indent file
" Language: JSON
" Mantainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json
@@ -177,5 +179,3 @@ unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 noet:
-
-endif
diff --git a/indent/jst.vim b/indent/jst.vim
index 773500dc..493bbdae 100644
--- a/indent/jst.vim
+++ b/indent/jst.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jst') != -1
+ finish
+endif
+
if exists("b:did_indent")
finish
endif
@@ -75,5 +77,3 @@ endfunction
" vim:set sw=2 sts=2 ts=8 noet:
-
-endif
diff --git a/indent/julia.vim b/indent/julia.vim
index fd5557cd..b8453f73 100644
--- a/indent/julia.vim
+++ b/indent/julia.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
+ finish
+endif
+
" Vim indent file
" Language: Julia
" Maintainer: Carlo Baldassi <carlobaldassi@gmail.com>
@@ -385,5 +387,3 @@ function GetJuliaIndent()
return ind
endfunction
-
-endif
diff --git a/indent/kotlin.vim b/indent/kotlin.vim
index aacf3edb..a9a1ae20 100644
--- a/indent/kotlin.vim
+++ b/indent/kotlin.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'kotlin') != -1
+ finish
+endif
+
" Vim indent file
" Language: Kotlin
" Maintainer: Alexander Udalov
@@ -66,5 +68,3 @@ function! GetKotlinIndent()
return prev_indent
endfunction
-
-endif
diff --git a/indent/less.vim b/indent/less.vim
index 700a19fb..afb048b4 100644
--- a/indent/less.vim
+++ b/indent/less.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'less') != -1
+ finish
+endif
+
" Vim indent file
" Language: LessCSS
" Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de>
@@ -9,5 +11,4 @@ if exists("b:did_indent")
finish
endif
-runtime! indent/css.vim
-endif
+runtime! indent/css.vim \ No newline at end of file
diff --git a/indent/liquid.vim b/indent/liquid.vim
index 1f12eec5..a8988b5a 100644
--- a/indent/liquid.vim
+++ b/indent/liquid.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'liquid') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'liquid') != -1
+ finish
+endif
+
" Vim indent file
" Language: Liquid
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -63,5 +65,3 @@ function! GetLiquidIndent(...)
let ind -= sw * s:count(cline,'{%\s*end\w*$')
return ind
endfunction
-
-endif
diff --git a/indent/litcoffee.vim b/indent/litcoffee.vim
index 55398462..ca747ea0 100644
--- a/indent/litcoffee.vim
+++ b/indent/litcoffee.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1
+ finish
+endif
+
if exists('b:did_indent')
finish
endif
@@ -22,5 +24,3 @@ function GetLitCoffeeIndent()
endif
endfunc
-
-endif
diff --git a/indent/ls.vim b/indent/ls.vim
index 240eab07..975c5dab 100644
--- a/indent/ls.vim
+++ b/indent/ls.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'livescript') != -1
+ finish
+endif
+
" Language: LiveScript
" Maintainer: George Zahariev
" URL: http://github.com/gkz/vim-ls
@@ -264,5 +266,3 @@ function! GetLiveScriptIndent(curlinenum)
return indent
endfunction
-
-endif
diff --git a/indent/lua.vim b/indent/lua.vim
index 6d102d89..5f37ae03 100644
--- a/indent/lua.vim
+++ b/indent/lua.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lua') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'lua') != -1
+ finish
+endif
+
" Vim indent file
" Language: Lua
" URL: https://github.com/tbastos/vim-lua
@@ -116,5 +118,3 @@ function GetLuaIndent()
return indent(prev_line) + (shiftwidth() * i)
endfunction
-
-endif
diff --git a/indent/mako.vim b/indent/mako.vim
index e3971197..06f83d16 100644
--- a/indent/mako.vim
+++ b/indent/mako.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mako') != -1
+ finish
+endif
+
" Vim indent file
" Language: Mako
" Author: Scott Torborg <storborg@mit.edu>
@@ -355,5 +357,3 @@ fun! <SID>HtmlIndentSum(lnum, style)
endfun
" vim: set ts=4 sw=4:
-
-endif
diff --git a/indent/markdown.vim b/indent/markdown.vim
index 7ae42024..3bba57ac 100644
--- a/indent/markdown.vim
+++ b/indent/markdown.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'markdown') != -1
+ finish
+endif
+
if exists("b:did_indent") | finish | endif
let b:did_indent = 1
@@ -75,5 +77,3 @@ function GetMarkdownIndent()
return ind
endif
endfunction
-
-endif
diff --git a/indent/moon.vim b/indent/moon.vim
index 85d5ce3f..b758b0e8 100644
--- a/indent/moon.vim
+++ b/indent/moon.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'moonscript') != -1
+ finish
+endif
+
" Language: MoonScript
" Maintainer: leafo <leafot@gmail.com>
" Based On: CoffeeScript by Mick Koch <kchmck@gmail.com>
@@ -323,5 +325,3 @@ function! GetMoonIndent(curlinenum)
return indent
endfunction
-
-endif
diff --git a/indent/nginx.vim b/indent/nginx.vim
index 27607da6..df8ccaef 100644
--- a/indent/nginx.vim
+++ b/indent/nginx.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nginx') != -1
+ finish
+endif
+
if exists("b:did_indent")
finish
endif
@@ -11,5 +13,3 @@ setlocal indentexpr=
setlocal cindent
" Just make sure that the comments are not reset as defs would be.
setlocal cinkeys-=0#
-
-endif
diff --git a/indent/nim.vim b/indent/nim.vim
index 6b4ead6e..a6057962 100644
--- a/indent/nim.vim
+++ b/indent/nim.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nim') != -1
+ finish
+endif
+
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
@@ -142,5 +144,3 @@ endfunction
" vim:sw=2
-
-endif
diff --git a/indent/nix.vim b/indent/nix.vim
index b31ae42e..54abd430 100644
--- a/indent/nix.vim
+++ b/indent/nix.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nix') != -1
+ finish
+endif
+
" Vim indent file
" Language: Nix
" Maintainer: Daiderd Jordan <daiderd@gmail.com>
@@ -103,5 +105,3 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
-
-endif
diff --git a/indent/ocaml.vim b/indent/ocaml.vim
index dac76ab8..73ab127a 100644
--- a/indent/ocaml.vim
+++ b/indent/ocaml.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1
+ finish
+endif
+
" Vim indent file
" Language: OCaml
" Maintainers: Jean-Francois Yuen <jfyuen@happycoders.org>
@@ -267,5 +269,3 @@ function! GetOCamlIndent()
endfunction
" vim:sw=2
-
-endif
diff --git a/indent/opencl.vim b/indent/opencl.vim
index 53df06d0..6bd47ddc 100644
--- a/indent/opencl.vim
+++ b/indent/opencl.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'opencl') != -1
+ finish
+endif
+
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
@@ -10,5 +12,3 @@ if version > 600
endif
let b:did_indent = 1
-
-endif
diff --git a/indent/org.vim b/indent/org.vim
index 9eacb3a2..d9e363dc 100644
--- a/indent/org.vim
+++ b/indent/org.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'org') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'org') != -1
+ finish
+endif
+
" Delete the next line to avoid the special indention of items
if !exists("g:org_indent")
let g:org_indent = 0
@@ -133,5 +135,3 @@ EOF
return l:tmp
endif
endfunction
-
-endif
diff --git a/indent/perl.vim b/indent/perl.vim
index 8551e111..9733f52a 100644
--- a/indent/perl.vim
+++ b/indent/perl.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'perl') != -1
+ finish
+endif
+
" Vim indent file
" Language: Perl 5
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -180,5 +182,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:ts=8:sts=4:sw=4:expandtab:ft=vim
-
-endif
diff --git a/indent/plantuml.vim b/indent/plantuml.vim
index 1cfc91b7..383a6b41 100644
--- a/indent/plantuml.vim
+++ b/indent/plantuml.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'plantuml') != -1
+ finish
+endif
+
if exists('b:did_indent')
finish
endif
@@ -55,5 +57,3 @@ function! s:insidePlantUMLTags(lnum) abort
call cursor(a:lnum, 1)
return search('@startuml', 'Wbn') && search('@enduml', 'Wn')
endfunction
-
-endif
diff --git a/indent/pony.vim b/indent/pony.vim
index 613dae6e..5db42cae 100644
--- a/indent/pony.vim
+++ b/indent/pony.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'pony') != -1
+ finish
+endif
+
" Vim indent file
" Language: Pony
" Maintainer: Jak Wings
@@ -37,5 +39,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
let b:did_indent = 1
-
-endif
diff --git a/indent/proto.vim b/indent/proto.vim
index bf558e76..4520d170 100644
--- a/indent/proto.vim
+++ b/indent/proto.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'protobuf') != -1
+ finish
+endif
+
" Vim indent file
" Language: Protobuf
" Maintainer: Johannes Zellner <johannes@zellner.org>
@@ -17,5 +19,3 @@ setlocal expandtab
setlocal shiftwidth=2
let b:undo_indent = "setl cin<"
-
-endif
diff --git a/indent/ps1.vim b/indent/ps1.vim
index f2ba5e8b..e0b01e0d 100644
--- a/indent/ps1.vim
+++ b/indent/ps1.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'powershell') != -1
+ finish
+endif
+
" Vim indent file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -20,5 +22,3 @@ inoremap <buffer> # X#
let b:undo_indent = "setl si<"
-
-endif
diff --git a/indent/pug.vim b/indent/pug.vim
index 0f0a4388..c4f71cde 100644
--- a/indent/pug.vim
+++ b/indent/pug.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pug') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'pug') != -1
+ finish
+endif
+
" Vim indent file
" Language: Pug
" Maintainer: Joshua Borton
@@ -70,5 +72,3 @@ function! GetPugIndent()
endfunction
" vim:set sw=2:
-
-endif
diff --git a/indent/puppet.vim b/indent/puppet.vim
index d947b7f6..31a4a505 100644
--- a/indent/puppet.vim
+++ b/indent/puppet.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1
+ finish
+endif
+
" Vim indent file
" Language: Puppet
" Maintainer: Todd Zullinger <tmz@pobox.com>
@@ -90,5 +92,3 @@ function! GetPuppetIndent()
return ind
endfunction
-
-endif
diff --git a/indent/purescript.vim b/indent/purescript.vim
index 515f88e2..0d152b57 100644
--- a/indent/purescript.vim
+++ b/indent/purescript.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'purescript') != -1
+ finish
+endif
+
" indentation for purescript
"
" Based on idris indentation
@@ -276,5 +278,3 @@ function! GetPurescriptIndent()
return match(prevline, '\S')
endfunction
-
-endif
diff --git a/indent/python.vim b/indent/python.vim
index 2f590edd..68afa793 100644
--- a/indent/python.vim
+++ b/indent/python.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-ident') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'python-ident') != -1
+ finish
+endif
+
" PEP8 compatible Python indent file
" Language: Python
" Maintainer: Daniel Hahler <https://daniel.hahler.de/>
@@ -437,5 +439,3 @@ function! GetPythonPEPIndent(lnum)
return s:indent_like_previous_line(a:lnum)
endfunction
-
-endif
diff --git a/indent/qml.vim b/indent/qml.vim
index 18807a7a..7e1c2019 100644
--- a/indent/qml.vim
+++ b/indent/qml.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'qml') != -1
+ finish
+endif
+
" Vim indent file
" Language: QML
" Author: Robert Kieffer
@@ -59,5 +61,3 @@ function! GetJsIndent()
return ind
endfunction
-
-endif
diff --git a/indent/racket.vim b/indent/racket.vim
index fb1d563b..2bbbb6c3 100644
--- a/indent/racket.vim
+++ b/indent/racket.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'racket') != -1
+ finish
+endif
+
" Language: Racket
" Maintainer: Will Langstroth <will@langstroth.com>
" URL: http://github.com/wlangstroth/vim-racket
@@ -12,5 +14,3 @@ let b:did_indent = 1
setlocal ai nosi
let b:undo_indent = "setl ai< si<"
-
-endif
diff --git a/indent/ruby.vim b/indent/ruby.vim
index a3141ed4..56c1aa12 100644
--- a/indent/ruby.vim
+++ b/indent/ruby.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1
+ finish
+endif
+
" Vim indent file
" Language: Ruby
" Maintainer: Andrew Radev <andrey.radev@gmail.com>
@@ -952,5 +954,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 et:
-
-endif
diff --git a/indent/rust.vim b/indent/rust.vim
index abf8087f..5c43d2e2 100644
--- a/indent/rust.vim
+++ b/indent/rust.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1
+ finish
+endif
+
" Vim indent file
" Language: Rust
" Author: Chris Morgan <me@chrismorgan.info>
@@ -219,5 +221,3 @@ unlet s:save_cpo
" vint: +ProhibitAbbreviationOption
" vim: set et sw=4 sts=4 ts=8:
-
-endif
diff --git a/indent/scala.vim b/indent/scala.vim
index da6c2f5c..db52cf90 100644
--- a/indent/scala.vim
+++ b/indent/scala.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1
+ finish
+endif
+
" Vim indent file
" Language : Scala (http://scala-lang.org/)
" Original Author : Stefan Matthias Aust
@@ -603,5 +605,3 @@ endfunction
" vim:set sw=2 sts=2 ts=8 et:
" vim600:fdm=marker fdl=1 fdc=0:
-
-endif
diff --git a/indent/slim.vim b/indent/slim.vim
index adf4274f..75220e2b 100644
--- a/indent/slim.vim
+++ b/indent/slim.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'slim') != -1
+ finish
+endif
+
" Vim indent file
" Language: Slim
@@ -75,5 +77,3 @@ function! GetSlimIndent()
endfunction
" vim:set sw=2:
-
-endif
diff --git a/indent/slime.vim b/indent/slime.vim
index 59eea509..e986847c 100644
--- a/indent/slime.vim
+++ b/indent/slime.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slime') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'slime') != -1
+ finish
+endif
+
" Vim indent file
" Language: Slime
@@ -75,5 +77,3 @@ function! GetSlimeIndent()
endfunction
" vim:set sw=2:
-
-endif
diff --git a/indent/solidity.vim b/indent/solidity.vim
index 23c55061..32917b43 100644
--- a/indent/solidity.vim
+++ b/indent/solidity.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'solidity') != -1
+ finish
+endif
+
" Vim indent file
" Language: Solidity
" Acknowledgement: Based off of vim-javascript
@@ -439,5 +441,3 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
-
-endif
diff --git a/indent/stylus.vim b/indent/stylus.vim
index 7e089605..16fb86e6 100644
--- a/indent/stylus.vim
+++ b/indent/stylus.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'stylus') != -1
+ finish
+endif
+
" Vim indent file
" Language: Stylus
" Maintainer: Marc Harter
@@ -129,5 +131,3 @@ function! GetStylusIndent()
endfunction
" vim:set sw=2;
-
-endif
diff --git a/indent/swift.vim b/indent/swift.vim
index 14e851ee..f4448806 100644
--- a/indent/swift.vim
+++ b/indent/swift.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'swift') != -1
+ finish
+endif
+
" File: swift.vim
" Author: Keith Smiley
" Description: The indent file for Swift
@@ -294,5 +296,3 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
-
-endif
diff --git a/indent/terraform.vim b/indent/terraform.vim
index 9a081ff8..888e5149 100644
--- a/indent/terraform.vim
+++ b/indent/terraform.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'terraform') != -1
+ finish
+endif
+
" Only load this file if no other indent file was loaded
if exists("b:did_indent")
finish
@@ -45,5 +47,3 @@ function! TerraformIndent(lnum)
return thisindent
endfunction
-
-endif
diff --git a/indent/tex.vim b/indent/tex.vim
index 14af7b28..31abcd57 100644
--- a/indent/tex.vim
+++ b/indent/tex.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
" LaTeX indent file (part of LaTeX Box)
" Maintainer: David Munger (mungerd@gmail.com)
@@ -136,5 +138,3 @@ if v:version > 703 || (v:version == 703 && has('patch598'))
endif
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
-
-endif
diff --git a/indent/twig.vim b/indent/twig.vim
index 421f7201..69d60524 100644
--- a/indent/twig.vim
+++ b/indent/twig.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'twig') != -1
+ finish
+endif
+
if exists("b:ran_once")
finish
endif
@@ -76,5 +78,3 @@ fun! s:BuildStructures()
endfun
call s:BuildStructures()
-
-endif
diff --git a/indent/typescript.vim b/indent/typescript.vim
index 6dead67a..04f7e876 100644
--- a/indent/typescript.vim
+++ b/indent/typescript.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
+ finish
+endif
+
" Vim indent file
" Language: Typescript
" Acknowledgement: Almost direct copy from https://github.com/pangloss/vim-javascript
@@ -359,5 +361,3 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
-
-endif
diff --git a/indent/vala.vim b/indent/vala.vim
index c24adf03..fa3aac3d 100644
--- a/indent/vala.vim
+++ b/indent/vala.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vala') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vala') != -1
+ finish
+endif
+
" Vim indent file
" Language: Vala
" Author: Adrià Arrufat <adria.arrufat@protonmail.ch>
@@ -83,5 +85,3 @@ function GetValaIndent(lnum)
" Fall back on cindent, which does it mostly right
return cindent(a:lnum)
endfunction
-
-endif
diff --git a/indent/velocity.vim b/indent/velocity.vim
index 297fffff..6ac23863 100644
--- a/indent/velocity.vim
+++ b/indent/velocity.vim
@@ -1,9 +1,9 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vm') != -1
+ finish
+endif
+
if exists("b:did_indent")
finish
endif
runtime! indent/html.vim
-
-endif
diff --git a/indent/vue.vim b/indent/vue.vim
index 226c6522..2acc65ac 100644
--- a/indent/vue.vim
+++ b/indent/vue.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vue') != -1
+ finish
+endif
+
" Vim indent file
" Language: Vue.js
" Maintainer: Eduardo San Martin Morote
@@ -64,5 +66,3 @@ function! GetVueIndent()
return indent
endfunction
-
-endif