diff options
Diffstat (limited to '')
93 files changed, 187 insertions, 1 deletions
diff --git a/indent/Dockerfile.vim b/indent/Dockerfile.vim index c6e62f1b..18db33d1 100644 --- a/indent/Dockerfile.vim +++ b/indent/Dockerfile.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 + if exists('b:did_indent') | finish | endif let b:did_indent = 1 @@ -22,4 +23,5 @@ endfunction set indentexpr=DockerfileIndent(v:lnum) + endif diff --git a/indent/Jenkinsfile.vim b/indent/Jenkinsfile.vim index 150a6604..6fe4fbb4 100644 --- a/indent/Jenkinsfile.vim +++ b/indent/Jenkinsfile.vim @@ -1,3 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jenkins') == -1 + runtime indent/groovy.vim + endif diff --git a/indent/ansible.vim b/indent/ansible.vim index bc224e3a..a68128c4 100644 --- a/indent/ansible.vim +++ b/indent/ansible.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1 + let s:save_cpo = &cpo set cpo&vim @@ -58,4 +59,5 @@ function GetAnsibleIndent(lnum) endfunction let &cpo = s:save_cpo + endif diff --git a/indent/applescript.vim b/indent/applescript.vim index c5435824..cf75187f 100644 --- a/indent/applescript.vim +++ b/indent/applescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'applescript') == -1 + "Plugin Name: applescript indent file. "Author: mityu "Last Change: 02-May-2017. @@ -76,4 +77,5 @@ let &cpo=s:cpo_save unlet s:cpo_save " vim: foldmethod=marker + endif diff --git a/indent/arduino.vim b/indent/arduino.vim index 6432bc4c..d004dcf2 100644 --- a/indent/arduino.vim +++ b/indent/arduino.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1 + " Vim indent file " Language: Arduino " Maintainer: Kevin Sjöberg <kev.sjoberg@gmail.com> @@ -14,4 +15,5 @@ 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 4fb87f0b..fa57c315 100644 --- a/indent/autohotkey.vim +++ b/indent/autohotkey.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'autohotkey') == -1 + " Vim indent file " Language: AutoHotkey " Maintainer: Hirotoshi Namikawa <hnamikaw1@gmail.com> @@ -218,4 +219,5 @@ function! GetAutoHotkeyIndent() endfunction let b:did_indent = 1 + endif diff --git a/indent/blade.vim b/indent/blade.vim index 6e4e631c..6d815b35 100644 --- a/indent/blade.vim +++ b/indent/blade.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1 + " Vim indent file " Language: Blade (Laravel) " Maintainer: Jason Walton <jwalton512@gmail.com> @@ -94,4 +95,5 @@ function! GetBladeIndent() return indent endfunction + endif diff --git a/indent/cabal.vim b/indent/cabal.vim index 2e1619e0..8f8e81b8 100644 --- a/indent/cabal.vim +++ b/indent/cabal.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 + " indentation for cabal " " author: raichoo (raichoo@googlemail.com) @@ -30,4 +31,5 @@ function! GetCabalIndent() return match(l:prevline, '\S') endif endfunction + endif diff --git a/indent/caddyfile.vim b/indent/caddyfile.vim index ca24b9fe..c8636bcb 100644 --- a/indent/caddyfile.vim +++ b/indent/caddyfile.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1 + if exists('b:did_indent') finish endif @@ -40,4 +41,5 @@ function! GetCaddyfileIndent(lnum) return ind endfunction + endif diff --git a/indent/clojure.vim b/indent/clojure.vim index 9aa7fdbc..86eb7839 100644 --- a/indent/clojure.vim +++ b/indent/clojure.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 + " Vim indent file " Language: Clojure " Author: Meikel Brandmeyer <mb@kotka.de> @@ -402,4 +403,5 @@ 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 f84b5cdf..ef0ed813 100644 --- a/indent/cmake.vim +++ b/indent/cmake.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cmake') == -1 + " Vim indent file " Language: CMake (ft=cmake) " Author: Andy Cedilnik <andy.cedilnik@kitware.com> @@ -88,4 +89,5 @@ endfun let &cpo = s:keepcpo unlet s:keepcpo + endif diff --git a/indent/coffee.vim b/indent/coffee.vim index 0d0f1ba6..ee9c8a61 100644 --- a/indent/coffee.vim +++ b/indent/coffee.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 + " Language: CoffeeScript " Maintainer: Mick Koch <mick@kochm.co> " URL: http://github.com/kchmck/vim-coffee-script @@ -427,4 +428,5 @@ 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 177462e5..380b1dbe 100644 --- a/indent/crystal.vim +++ b/indent/crystal.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + " Only load this indent file when no other was loaded. if exists('b:did_indent') finish @@ -634,4 +635,5 @@ 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 ea098447..f6565b8a 100644 --- a/indent/cucumber.vim +++ b/indent/cucumber.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1 + " Vim indent file " Language: Cucumber " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -74,4 +75,5 @@ function! GetCucumberIndent() endfunction " vim:set sts=2 sw=2: + endif diff --git a/indent/cython.vim b/indent/cython.vim index 2bf211d8..475bbf40 100644 --- a/indent/cython.vim +++ b/indent/cython.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-indent') == -1 + " PEP8 compatible Python indent file " Language: Python " Maintainer: Daniel Hahler <https://daniel.hahler.de/> @@ -453,4 +454,5 @@ function! GetPythonPEPIndent(lnum) return s:indent_like_previous_line(a:lnum) endfunction + endif diff --git a/indent/d.vim b/indent/d.vim index 878b4c28..9575f611 100644 --- a/indent/d.vim +++ b/indent/d.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dlang') == -1 + " Vim indent file for the D programming language (version 1.076 and 2.063). " " Language: D @@ -76,4 +77,5 @@ function GetDIndent() return cind endfunction + endif diff --git a/indent/dart.vim b/indent/dart.vim index b7a932f9..ea3bdcc3 100644 --- a/indent/dart.vim +++ b/indent/dart.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 + if exists('b:did_indent') finish endif @@ -34,4 +35,5 @@ function! DartIndent() return indentTo endfunction + endif diff --git a/indent/dune.vim b/indent/dune.vim index 6f3e709b..658cfe04 100644 --- a/indent/dune.vim +++ b/indent/dune.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + " Vim indent file " Language: dune @@ -9,4 +10,5 @@ let b:did_indent = 1 " dune format-dune-file uses 1 space to indent set softtabstop=1 shiftwidth=1 expandtab + endif diff --git a/indent/eelixir.vim b/indent/eelixir.vim index 5ad0fd77..e9ce89f4 100644 --- a/indent/eelixir.vim +++ b/indent/eelixir.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists("b:did_indent") finish endif @@ -71,4 +72,5 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/indent/elixir.vim b/indent/elixir.vim index 212070df..5c7f36fe 100644 --- a/indent/elixir.vim +++ b/indent/elixir.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists("b:did_indent") finish end @@ -14,4 +15,5 @@ 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 d4ebdb60..01767696 100644 --- a/indent/elm.vim +++ b/indent/elm.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 + " indentation for Elm (http://elm-lang.org/) " Only load this indent file when no other was loaded. @@ -110,4 +111,5 @@ function! GetElmIndent() return l:ind endfunc + endif diff --git a/indent/ember-script.vim b/indent/ember-script.vim index 618d4193..f887714b 100644 --- a/indent/ember-script.vim +++ b/indent/ember-script.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1 + " Language: ember-script " Maintainer: Yulij Andreevich Lesov <yalesov@gmail.com>> " URL: http://github.com/yalesov/vim-ember-script @@ -13,4 +14,5 @@ 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 4a1fea00..8400f58c 100644 --- a/indent/emblem.vim +++ b/indent/emblem.vim @@ -1,8 +1,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1 + " 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 7c3f6b5c..165a7d7c 100644 --- a/indent/erlang.vim +++ b/indent/erlang.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'erlang') == -1 + " Vim indent file " Language: Erlang (http://www.erlang.org) " Author: Csaba Hoch <csaba.hoch@gmail.com> @@ -1482,4 +1483,5 @@ 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 c6cbb3d8..2dc00daf 100644 --- a/indent/eruby.vim +++ b/indent/eruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim indent file " Language: eRuby " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -109,4 +110,5 @@ 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 3b0b62b4..260139a6 100644 --- a/indent/fish.vim +++ b/indent/fish.vim @@ -1,4 +1,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 + setlocal indentexpr=fish#Indent() setlocal indentkeys+==end,=else,=case + endif diff --git a/indent/fsharp.vim b/indent/fsharp.vim index 0d320253..6d54ae39 100644 --- a/indent/fsharp.vim +++ b/indent/fsharp.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fsharp') == -1 + " Vim indent file " Language: FSharp " Maintainers: Jean-Francois Yuen <jfyuen@happycoders.org> @@ -248,4 +249,5 @@ function! GetFsharpIndent() endfunction " vim: sw=4 et sts=4 + endif diff --git a/indent/gitconfig.vim b/indent/gitconfig.vim index 0a156511..3e764dee 100644 --- a/indent/gitconfig.vim +++ b/indent/gitconfig.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 + " Vim indent file " Language: git config file " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -37,4 +38,5 @@ function! GetGitconfigIndent() return -1 endif endfunction + endif diff --git a/indent/glsl.vim b/indent/glsl.vim index 657b1275..d998358c 100644 --- a/indent/glsl.vim +++ b/indent/glsl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1 + " Language: OpenGL Shading Language " Maintainer: Sergey Tikhomirov <sergey@tikhomirov.io> @@ -10,4 +11,5 @@ setlocal autoindent cindent setlocal formatoptions+=roq " vim:set sts=2 sw=2 : + endif diff --git a/indent/go.vim b/indent/go.vim index 81d33a08..a231b4b8 100644 --- a/indent/go.vim +++ b/indent/go.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 + " Copyright 2011 The Go Authors. All rights reserved. " Use of this source code is governed by a BSD-style " license that can be found in the LICENSE file. @@ -85,4 +86,5 @@ 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 2988cfc8..9f44597a 100644 --- a/indent/gohtmltmpl.vim +++ b/indent/gohtmltmpl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 + if exists("b:did_indent") finish endif @@ -53,4 +54,5 @@ 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 71076764..94e1726a 100644 --- a/indent/graphql.vim +++ b/indent/graphql.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 + " Vim indent file " Language: GraphQL " Maintainer: Jon Parise <jon@indelible.org> @@ -76,4 +77,5 @@ endfunction let &cpoptions = s:cpo_save unlet s:cpo_save + endif diff --git a/indent/groovy.vim b/indent/groovy.vim index 0f1bafd7..3c3227f1 100644 --- a/indent/groovy.vim +++ b/indent/groovy.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'groovy-indent') == -1 + " Vim indent file " Language: Groovy " Maintainer: Toby Allsopp <toby.allsopp@peace.com> (resigned) @@ -162,4 +163,5 @@ function GetGroovyIndent() endfunction " vi: sw=2 et + endif diff --git a/indent/haml.vim b/indent/haml.vim index 55bd0d2e..00ed7c83 100644 --- a/indent/haml.vim +++ b/indent/haml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 + " Vim indent file " Language: Haml " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -73,4 +74,5 @@ function! GetHamlIndent() endfunction " vim:set sw=2: + endif diff --git a/indent/handlebars.vim b/indent/handlebars.vim index eb7a9b78..fbff2fa0 100644 --- a/indent/handlebars.vim +++ b/indent/handlebars.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1 + " Mustache & Handlebars syntax " Language: Mustache, Handlebars " Maintainer: Juvenn Woo <machese@gmail.com> @@ -124,4 +125,5 @@ function! GetHandlebarsIndent(...) return ind endfunction + endif diff --git a/indent/haskell.vim b/indent/haskell.vim index e752f8d8..baefc7f3 100644 --- a/indent/haskell.vim +++ b/indent/haskell.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 + " indentation for haskell " " author: raichoo (raichoo@googlemail.com) @@ -508,4 +509,5 @@ function! GetHaskellIndent() return -1 endfunction + endif diff --git a/indent/hcl.vim b/indent/hcl.vim index 5b8b8fde..2d7acf4b 100644 --- a/indent/hcl.vim +++ b/indent/hcl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hcl') == -1 + if exists('b:did_indent') finish endif @@ -10,4 +11,5 @@ setlocal cindent " don't de-indent comments (cindent treats them like preprocessor directives) setlocal cinkeys-=0# + endif diff --git a/indent/html.vim b/indent/html.vim index 55c63200..89869f4a 100644 --- a/indent/html.vim +++ b/indent/html.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + " Vim indent script for HTML " Header: "{{{ " Maintainer: Bram Moolenaar @@ -1060,4 +1061,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: fdm=marker ts=8 sw=2 tw=78 + endif diff --git a/indent/idris.vim b/indent/idris.vim index 86aae692..3c415e74 100644 --- a/indent/idris.vim +++ b/indent/idris.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 + " indentation for idris (idris-lang.org) " " Based on haskell indentation by motemen <motemen@gmail.com> @@ -143,4 +144,5 @@ function! GetIdrisIndent() return match(prevline, '\S') endfunction + endif diff --git a/indent/javascript.vim b/indent/javascript.vim index cda92db9..36c3482a 100644 --- a/indent/javascript.vim +++ b/indent/javascript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + " Vim indent file " Language: Javascript " Maintainer: Chris Paul ( https://github.com/bounceme ) @@ -476,4 +477,5 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/indent/jinja.vim b/indent/jinja.vim index 94f70ce5..da7d676f 100644 --- a/indent/jinja.vim +++ b/indent/jinja.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jinja') == -1 + " Vim indent file " Language: Jinja HTML template " Maintainer: Evan Hammer <evan@evanhammer.com> @@ -79,4 +80,5 @@ function! GetDjangoIndent(...) return ind endfunction + endif diff --git a/indent/json.vim b/indent/json.vim index 460cb049..56f5ffa5 100644 --- a/indent/json.vim +++ b/indent/json.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1 + " Vim indent file " Language: JSON " Mantainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json @@ -176,4 +177,5 @@ 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 806033dd..c009eae5 100644 --- a/indent/jst.vim +++ b/indent/jst.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1 + if exists("b:did_indent") finish endif @@ -74,4 +75,5 @@ endfunction " vim:set sw=2 sts=2 ts=8 noet: + endif diff --git a/indent/julia.vim b/indent/julia.vim index 1d5e5d0f..c21548e3 100644 --- a/indent/julia.vim +++ b/indent/julia.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 + " Vim indent file " Language: Julia " Maintainer: Carlo Baldassi <carlobaldassi@gmail.com> @@ -384,4 +385,5 @@ function GetJuliaIndent() return ind endfunction + endif diff --git a/indent/kotlin.vim b/indent/kotlin.vim index e574c006..a987f067 100644 --- a/indent/kotlin.vim +++ b/indent/kotlin.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1 + " Vim indent file " Language: Kotlin " Maintainer: Alexander Udalov @@ -55,4 +56,5 @@ function! GetKotlinIndent() return prev_indent endfunction + endif diff --git a/indent/less.vim b/indent/less.vim index 44f6fc02..61739f73 100644 --- a/indent/less.vim +++ b/indent/less.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 + " Vim indent file " Language: LessCSS " Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de> @@ -8,4 +9,5 @@ if exists("b:did_indent") finish endif -runtime! indent/css.vimendif +runtime! indent/css.vim +endif diff --git a/indent/lilypond.vim b/indent/lilypond.vim index 8e2ca02a..f9b2cbdd 100644 --- a/indent/lilypond.vim +++ b/indent/lilypond.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 + " LilyPond indent file " Language: LilyPond " Maintainer: Heikki Junes <hjunes@cc.hut.fi> @@ -59,4 +60,5 @@ endfunction " " " + endif diff --git a/indent/litcoffee.vim b/indent/litcoffee.vim index d8382308..9ab22c97 100644 --- a/indent/litcoffee.vim +++ b/indent/litcoffee.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 + if exists('b:did_indent') finish endif @@ -21,4 +22,5 @@ function GetLitCoffeeIndent() endif endfunc + endif diff --git a/indent/llvm.vim b/indent/llvm.vim index 94c89a04..dd00c7e8 100644 --- a/indent/llvm.vim +++ b/indent/llvm.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 + " Vim indent file " Language: llvm " Maintainer: The LLVM team, http://llvm.org/ @@ -71,4 +72,5 @@ function! GetLLVMIndent() return ind endfunction + endif diff --git a/indent/ls.vim b/indent/ls.vim index 0f2d7b22..5de62bb6 100644 --- a/indent/ls.vim +++ b/indent/ls.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1 + " Language: LiveScript " Maintainer: George Zahariev " URL: http://github.com/gkz/vim-ls @@ -263,4 +264,5 @@ function! GetLiveScriptIndent(curlinenum) return indent endfunction + endif diff --git a/indent/lua.vim b/indent/lua.vim index 4bd6e2b4..49180347 100644 --- a/indent/lua.vim +++ b/indent/lua.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lua') == -1 + " Vim indent file " Language: Lua " URL: https://github.com/tbastos/vim-lua @@ -115,4 +116,5 @@ function GetLuaIndent() return indent(prev_line) + (shiftwidth() * i) endfunction + endif diff --git a/indent/mako.vim b/indent/mako.vim index c99202f6..fc971785 100644 --- a/indent/mako.vim +++ b/indent/mako.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1 + " Vim indent file " Language: Mako " Author: Scott Torborg <storborg@mit.edu> @@ -427,4 +428,5 @@ fun! <SID>HtmlIndentSum(lnum, style) endfun " vim: set ts=4 sw=4: + endif diff --git a/indent/markdown.vim b/indent/markdown.vim index 60205111..fa797312 100644 --- a/indent/markdown.vim +++ b/indent/markdown.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1 + if exists("b:did_indent") | finish | endif let b:did_indent = 1 @@ -74,4 +75,5 @@ function GetMarkdownIndent() return ind endif endfunction + endif diff --git a/indent/meson.vim b/indent/meson.vim index a546f944..b9b72ec6 100644 --- a/indent/meson.vim +++ b/indent/meson.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1 + " Vim indent file " Language: Meson " Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com> @@ -178,4 +179,5 @@ let &cpo = s:keepcpo unlet s:keepcpo " vim:sw=2 + endif diff --git a/indent/moon.vim b/indent/moon.vim index 7fe985d3..799da8db 100644 --- a/indent/moon.vim +++ b/indent/moon.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1 + " Language: MoonScript " Maintainer: leafo <leafot@gmail.com> " Based On: CoffeeScript by Mick Koch <kchmck@gmail.com> @@ -322,4 +323,5 @@ function! GetMoonIndent(curlinenum) return indent endfunction + endif diff --git a/indent/nginx.vim b/indent/nginx.vim index 0aefe740..9ff28374 100644 --- a/indent/nginx.vim +++ b/indent/nginx.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1 + if exists("b:did_indent") finish endif @@ -10,4 +11,5 @@ 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 b61ee8b3..3eea2ed7 100644 --- a/indent/nim.vim +++ b/indent/nim.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1 + " Only load this indent file when no other was loaded. if exists("b:did_indent") finish @@ -141,4 +142,5 @@ endfunction " vim:sw=2 + endif diff --git a/indent/nix.vim b/indent/nix.vim index e70a06a5..d91f7563 100644 --- a/indent/nix.vim +++ b/indent/nix.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 + " Vim indent file " Language: Nix " Maintainer: Daiderd Jordan <daiderd@gmail.com> @@ -102,4 +103,5 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/indent/ocaml.vim b/indent/ocaml.vim index 9c10ac6f..a38e4e95 100644 --- a/indent/ocaml.vim +++ b/indent/ocaml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + " Vim indent file " Language: OCaml " Maintainers: Jean-Francois Yuen <jfyuen@happycoders.org> @@ -272,4 +273,5 @@ function! GetOCamlIndent() endfunction " vim:sw=2 + endif diff --git a/indent/omake.vim b/indent/omake.vim index 5d610650..91db5daa 100644 --- a/indent/omake.vim +++ b/indent/omake.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + " Vim indent file " Language: OMakefile @@ -113,4 +114,5 @@ function GetMakeIndent() endif endif endfunction + endif diff --git a/indent/opencl.vim b/indent/opencl.vim index c97c54e6..e438fdf0 100644 --- a/indent/opencl.vim +++ b/indent/opencl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1 + " Only load this indent file when no other was loaded. if exists("b:did_indent") finish @@ -9,4 +10,5 @@ if version > 600 endif let b:did_indent = 1 + endif diff --git a/indent/perl.vim b/indent/perl.vim index 46895815..ff78e996 100644 --- a/indent/perl.vim +++ b/indent/perl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1 + " Vim indent file " Language: Perl 5 " Maintainer: vim-perl <vim-perl@googlegroups.com> @@ -179,4 +180,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:ts=8:sts=4:sw=4:expandtab:ft=vim + endif diff --git a/indent/pgsql.vim b/indent/pgsql.vim index 0f60bf1a..f46597a7 100644 --- a/indent/pgsql.vim +++ b/indent/pgsql.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pgsql') == -1 + " Vim indent file " Language: SQL " Author: David Fishburn <dfishburn dot vim at gmail dot com> @@ -388,4 +389,5 @@ endfunction let &cpo= s:keepcpo unlet s:keepcpo " vim: ts=4 fdm=marker sw=4 + endif diff --git a/indent/plantuml.vim b/indent/plantuml.vim index 7f33b156..53a42f3e 100644 --- a/indent/plantuml.vim +++ b/indent/plantuml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1 + scriptencoding utf-8 " Vim indent file " Language: PlantUML @@ -84,4 +85,5 @@ function! s:getIncIndent() abort \ '^\s*skinparam\>.*{\s*$\|' . \ s:typeKeywordIncPattern() endfunction + endif diff --git a/indent/pony.vim b/indent/pony.vim index 67ce483b..2b6e3e51 100644 --- a/indent/pony.vim +++ b/indent/pony.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1 + " Vim indent file " Language: Pony " Maintainer: Jak Wings @@ -36,4 +37,5 @@ 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 d94a4f18..b09816b1 100644 --- a/indent/proto.vim +++ b/indent/proto.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1 + " Vim indent file " Language: Protobuf " Maintainer: Johannes Zellner <johannes@zellner.org> @@ -16,4 +17,5 @@ setlocal expandtab setlocal shiftwidth=2 let b:undo_indent = "setl cin<" + endif diff --git a/indent/ps1.vim b/indent/ps1.vim index 96ca8b2c..810bdafc 100644 --- a/indent/ps1.vim +++ b/indent/ps1.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1 + " Vim indent file " Language: Windows PowerShell " Maintainer: Peter Provost <peter@provost.org> @@ -19,4 +20,5 @@ inoremap <buffer> # X# let b:undo_indent = "setl si<" + endif diff --git a/indent/pug.vim b/indent/pug.vim index cfb363cc..291ebfc6 100644 --- a/indent/pug.vim +++ b/indent/pug.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pug') == -1 + " Vim indent file " Language: Pug " Maintainer: Joshua Borton @@ -69,4 +70,5 @@ function! GetPugIndent() endfunction " vim:set sw=2: + endif diff --git a/indent/puppet.vim b/indent/puppet.vim index a3a494a0..a713b353 100644 --- a/indent/puppet.vim +++ b/indent/puppet.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + " Vim indent file " Language: Puppet " Maintainer: Todd Zullinger <tmz@pobox.com> @@ -135,4 +136,5 @@ function! GetPuppetIndent(...) return ind endfunction + endif diff --git a/indent/purescript.vim b/indent/purescript.vim index 780a06a1..5d01bba4 100644 --- a/indent/purescript.vim +++ b/indent/purescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1 + " indentation for purescript " " Based on idris indentation @@ -275,4 +276,5 @@ function! GetPurescriptIndent() return match(prevline, '\S') endfunction + endif diff --git a/indent/python.vim b/indent/python.vim index 2bf211d8..475bbf40 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-indent') == -1 + " PEP8 compatible Python indent file " Language: Python " Maintainer: Daniel Hahler <https://daniel.hahler.de/> @@ -453,4 +454,5 @@ function! GetPythonPEPIndent(lnum) return s:indent_like_previous_line(a:lnum) endfunction + endif diff --git a/indent/qml.vim b/indent/qml.vim index 9187f60f..2a5b5d4f 100644 --- a/indent/qml.vim +++ b/indent/qml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1 + " Vim indent file " Language: QML " Author: Robert Kieffer @@ -58,4 +59,5 @@ function! GetJsIndent() return ind endfunction + endif diff --git a/indent/racket.vim b/indent/racket.vim index f6b1e06d..be620b7b 100644 --- a/indent/racket.vim +++ b/indent/racket.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1 + " Language: Racket " Maintainer: Will Langstroth <will@langstroth.com> " URL: http://github.com/wlangstroth/vim-racket @@ -11,4 +12,5 @@ let b:did_indent = 1 setlocal ai nosi let b:undo_indent = "setl ai< si<" + endif diff --git a/indent/reason.vim b/indent/reason.vim index 0e8c3b74..43c6eb7c 100644 --- a/indent/reason.vim +++ b/indent/reason.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1 + " Vim indent file " Language: Reason (adapted from Rust) " Author: Chris Morgan <me@chrismorgan.info> (Modifications by Jordan W) @@ -216,4 +217,5 @@ function GetReasonIndent(lnum) " Fall back on cindent, which does it mostly right return cindent(a:lnum) endfunction + endif diff --git a/indent/ruby.vim b/indent/ruby.vim index dad86a8c..4639d507 100644 --- a/indent/ruby.vim +++ b/indent/ruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim indent file " Language: Ruby " Maintainer: Andrew Radev <andrey.radev@gmail.com> @@ -951,4 +952,5 @@ 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 a744008f..0c2876b8 100644 --- a/indent/rust.vim +++ b/indent/rust.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Vim indent file " Language: Rust " Author: Chris Morgan <me@chrismorgan.info> @@ -278,4 +279,5 @@ 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 d70b35df..d77c0075 100644 --- a/indent/scala.vim +++ b/indent/scala.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 + " Vim indent file " Language : Scala (http://scala-lang.org/) " Original Author : Stefan Matthias Aust @@ -605,4 +606,5 @@ endfunction " vim:set sw=2 sts=2 ts=8 et: " vim600:fdm=marker fdl=1 fdc=0: + endif diff --git a/indent/scss.vim b/indent/scss.vim index efbd1812..331fb78b 100644 --- a/indent/scss.vim +++ b/indent/scss.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scss') == -1 + " Vim indent file " Language : SCSS (Sassy CSS) " Maintainer : Daniel Hofstetter (daniel.hofstetter@42dh.com) @@ -88,4 +89,5 @@ unlet s:keepcpo " vim:set et ts=2 sw=2: + endif diff --git a/indent/slim.vim b/indent/slim.vim index 43dfd5be..81762b1d 100644 --- a/indent/slim.vim +++ b/indent/slim.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1 + " Vim indent file " Language: Slim @@ -74,4 +75,5 @@ function! GetSlimIndent() endfunction " vim:set sw=2: + endif diff --git a/indent/slime.vim b/indent/slime.vim index 50cd6d24..0cb565ac 100644 --- a/indent/slime.vim +++ b/indent/slime.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slime') == -1 + " Vim indent file " Language: Slime @@ -74,4 +75,5 @@ function! GetSlimeIndent() endfunction " vim:set sw=2: + endif diff --git a/indent/solidity.vim b/indent/solidity.vim index 682a0e48..d80e5566 100644 --- a/indent/solidity.vim +++ b/indent/solidity.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1 + " Vim indent file " Language: Solidity " Acknowledgement: Based off of vim-javascript @@ -438,4 +439,5 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/indent/stylus.vim b/indent/stylus.vim index 94f59678..009bf499 100644 --- a/indent/stylus.vim +++ b/indent/stylus.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1 + " Vim indent file " Language: Stylus " Maintainer: Marc Harter @@ -128,4 +129,5 @@ function! GetStylusIndent() endfunction " vim:set sw=2; + endif diff --git a/indent/svelte.vim b/indent/svelte.vim index d4939adb..8d9fbb2f 100644 --- a/indent/svelte.vim +++ b/indent/svelte.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'svelte') == -1 + " Vim indent file " Language: Svelte 3 (HTML/JavaScript) " Author: Evan Lecklider <evan@lecklider.com> @@ -143,4 +144,5 @@ function! GetSvelteIndent() return indent endfunction + endif diff --git a/indent/svg.vim b/indent/svg.vim index 90d1dfaf..32057362 100644 --- a/indent/svg.vim +++ b/indent/svg.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'svg-indent') == -1 + " Vim indent file " " Language: svg @@ -104,4 +105,5 @@ endfun let &cpo = s:keepcpo unlet s:keepcpo + endif diff --git a/indent/swift.vim b/indent/swift.vim index 247197cb..edaf4c99 100644 --- a/indent/swift.vim +++ b/indent/swift.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1 + " File: swift.vim " Author: Keith Smiley " Description: The indent file for Swift @@ -293,4 +294,5 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/indent/terraform.vim b/indent/terraform.vim index 81fb938c..129ec368 100644 --- a/indent/terraform.vim +++ b/indent/terraform.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1 + " Only load this file if no other indent file was loaded if exists('b:did_indent') finish @@ -53,4 +54,5 @@ endfunction let &cpoptions = s:cpo_save unlet s:cpo_save + endif diff --git a/indent/tex.vim b/indent/tex.vim index c498c0c4..f129157e 100644 --- a/indent/tex.vim +++ b/indent/tex.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " LaTeX indent file (part of LaTeX Box) " Maintainer: David Munger (mungerd@gmail.com) @@ -135,4 +136,5 @@ 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/tsx.vim b/indent/tsx.vim index d6ab43a2..3c59cc3f 100644 --- a/indent/tsx.vim +++ b/indent/tsx.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 + " Save the current JavaScript indentexpr. let b:tsx_ts_indentexpr = &indentexpr @@ -109,4 +110,5 @@ fu! GetTsxIndent() return ind endfu + endif diff --git a/indent/twig.vim b/indent/twig.vim index 240181be..a0782946 100644 --- a/indent/twig.vim +++ b/indent/twig.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1 + if exists("b:ran_once") finish endif @@ -75,4 +76,5 @@ fun! s:BuildStructures() endfun call s:BuildStructures() + endif diff --git a/indent/typescript.vim b/indent/typescript.vim index ce94f32a..cf2d107a 100644 --- a/indent/typescript.vim +++ b/indent/typescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 + " Vim indent file " Language: TypeScript " Acknowledgement: Based off of vim-ruby maintained by Nikolai Weibull http://vim-ruby.rubyforge.org @@ -500,4 +501,5 @@ function! Fixedgq(lnum, count) return 0 endfunction + endif diff --git a/indent/vala.vim b/indent/vala.vim index 288885b5..f9339eb5 100644 --- a/indent/vala.vim +++ b/indent/vala.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vala') == -1 + " Vim indent file " Language: Vala " Author: Adrià Arrufat <adria.arrufat@protonmail.ch> @@ -82,4 +83,5 @@ 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 2f6fe153..eaa0d122 100644 --- a/indent/velocity.vim +++ b/indent/velocity.vim @@ -1,7 +1,9 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1 + if exists("b:did_indent") finish endif runtime! indent/html.vim + endif diff --git a/indent/vue.vim b/indent/vue.vim index a07f28ab..2f601959 100644 --- a/indent/vue.vim +++ b/indent/vue.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1 + " Vim indent file " Language: Vue.js " Maintainer: Eduardo San Martin Morote @@ -63,4 +64,5 @@ function! GetVueIndent() return indent endfunction + endif |