diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-12 14:33:21 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-12 15:08:44 +0200 |
commit | 4f3df59be709bf0d5c5c67dc804fde49abdc2700 (patch) | |
tree | 71b86b1d2c678dd2bb8411c61f83fd1cd3ec691d /compiler | |
parent | 26790941f6d4ceedbf6324eb3712949eb614908f (diff) | |
download | vim-polyglot-4f3df59be709bf0d5c5c67dc804fde49abdc2700.tar.gz vim-polyglot-4f3df59be709bf0d5c5c67dc804fde49abdc2700.zip |
Improve guard so it works for no eof new linev4.0.3
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/cake.vim | 2 | ||||
-rw-r--r-- | compiler/cargo.vim | 2 | ||||
-rw-r--r-- | compiler/coffee.vim | 2 | ||||
-rw-r--r-- | compiler/credo.vim | 2 | ||||
-rw-r--r-- | compiler/cryptol.vim | 2 | ||||
-rw-r--r-- | compiler/cucumber.vim | 2 | ||||
-rw-r--r-- | compiler/eruby.vim | 2 | ||||
-rw-r--r-- | compiler/eslint.vim | 2 | ||||
-rw-r--r-- | compiler/exunit.vim | 2 | ||||
-rw-r--r-- | compiler/fish.vim | 2 | ||||
-rw-r--r-- | compiler/go.vim | 2 | ||||
-rw-r--r-- | compiler/gradle.vim | 2 | ||||
-rw-r--r-- | compiler/gradlew.vim | 2 | ||||
-rw-r--r-- | compiler/haml.vim | 2 | ||||
-rw-r--r-- | compiler/lilypond.vim | 2 | ||||
-rw-r--r-- | compiler/ls.vim | 2 | ||||
-rw-r--r-- | compiler/mix.vim | 2 | ||||
-rw-r--r-- | compiler/nim.vim | 2 | ||||
-rw-r--r-- | compiler/nix-build.vim | 2 | ||||
-rw-r--r-- | compiler/ocaml.vim | 2 | ||||
-rw-r--r-- | compiler/python.vim | 2 | ||||
-rw-r--r-- | compiler/rake.vim | 2 | ||||
-rw-r--r-- | compiler/rspec.vim | 2 | ||||
-rw-r--r-- | compiler/ruby.vim | 2 | ||||
-rw-r--r-- | compiler/rubyunit.vim | 2 | ||||
-rw-r--r-- | compiler/rustc.vim | 2 | ||||
-rw-r--r-- | compiler/sbt.vim | 2 | ||||
-rw-r--r-- | compiler/typescript.vim | 2 |
28 files changed, 56 insertions, 0 deletions
diff --git a/compiler/cake.vim b/compiler/cake.vim index c5ca4b6a..9cd45dbb 100644 --- a/compiler/cake.vim +++ b/compiler/cake.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 @@ -14,4 +15,5 @@ call coffee#CoffeeSetUpVariables() exec 'CompilerSet makeprg=' . escape(g:coffee_cake . ' ' . \ g:coffee_cake_options . ' $*', ' ') call coffee#CoffeeSetUpErrorFormat() + endif diff --git a/compiler/cargo.vim b/compiler/cargo.vim index 25a4dcdb..a8271361 100644 --- a/compiler/cargo.vim +++ b/compiler/cargo.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Vim compiler file " Compiler: Cargo Compiler " Maintainer: Damien Radtke <damienradtke@gmail.com> @@ -48,4 +49,5 @@ unlet s:save_cpo " vint: +ProhibitAbbreviationOption " vim: set et sw=4 sts=4 ts=8: + endif diff --git a/compiler/coffee.vim b/compiler/coffee.vim index 46a248e1..d4a112c5 100644 --- a/compiler/coffee.vim +++ b/compiler/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 @@ -81,4 +82,5 @@ augroup CoffeeUpdateMakePrg autocmd BufWritePre,BufFilePost call s:UpdateMakePrg() endif augroup END + endif diff --git a/compiler/credo.vim b/compiler/credo.vim index 5fdc99ab..271dc67d 100644 --- a/compiler/credo.vim +++ b/compiler/credo.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists('current_compiler') finish endif @@ -10,4 +11,5 @@ endif CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%f:%l:\ %t:\ %m CompilerSet makeprg=mix\ credo\ suggest\ --format=flycheck + endif diff --git a/compiler/cryptol.vim b/compiler/cryptol.vim index 9e4779c6..d355f188 100644 --- a/compiler/cryptol.vim +++ b/compiler/cryptol.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1 + " Vim compiler file " Compiler: Cryptol version 1.8.19-academic Compiler " Maintainer: Edward O'Callaghan <victoredwardocallaghan AT gmail DOT com> @@ -19,4 +20,5 @@ CompilerSet errorformat& " use the default 'errorformat' " "%<" means the current file name without extension. CompilerSet makeprg=cryptol\ -o\ %<\ % + endif diff --git a/compiler/cucumber.vim b/compiler/cucumber.vim index c9223cba..27b76888 100644 --- a/compiler/cucumber.vim +++ b/compiler/cucumber.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1 + " Vim compiler file " Compiler: Cucumber " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -28,4 +29,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:set sw=2 sts=2: + endif diff --git a/compiler/eruby.vim b/compiler/eruby.vim index 5045c882..a2957379 100644 --- a/compiler/eruby.vim +++ b/compiler/eruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: eRuby " Maintainer: Doug Kearns <dougkearns@gmail.com> @@ -38,4 +39,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/eslint.vim b/compiler/eslint.vim index 1a10be93..1e5e6de5 100644 --- a/compiler/eslint.vim +++ b/compiler/eslint.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + " Vim compiler plugin " Language: JavaScript " Maintainer: vim-javascript community @@ -15,4 +16,5 @@ endif CompilerSet makeprg=eslint\ -f\ compact\ % CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m + endif diff --git a/compiler/exunit.vim b/compiler/exunit.vim index e459603b..09150683 100644 --- a/compiler/exunit.vim +++ b/compiler/exunit.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists("current_compiler") finish endif @@ -24,4 +25,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/fish.vim b/compiler/fish.vim index 9daba2e3..87abb8bf 100644 --- a/compiler/fish.vim +++ b/compiler/fish.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 + if exists('current_compiler') finish endif @@ -6,4 +7,5 @@ let current_compiler = 'fish' CompilerSet makeprg=fish\ --no-execute\ % execute 'CompilerSet errorformat='.escape(fish#errorformat(), ' ') + endif diff --git a/compiler/go.vim b/compiler/go.vim index 2eb893fa..a5528cfe 100644 --- a/compiler/go.vim +++ b/compiler/go.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 + " Copyright 2013 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. @@ -47,4 +48,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: sw=2 ts=2 et + endif diff --git a/compiler/gradle.vim b/compiler/gradle.vim index 6b1d83d2..69fa1bb9 100644 --- a/compiler/gradle.vim +++ b/compiler/gradle.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 + " Vim Compiler File " Compiler: gradle @@ -23,4 +24,5 @@ CompilerSet errorformat= \%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%E%>%f:\ %\\d%\\+:\ %m,%C\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%-G%.%# + endif diff --git a/compiler/gradlew.vim b/compiler/gradlew.vim index 6715b44d..0d08ff3e 100644 --- a/compiler/gradlew.vim +++ b/compiler/gradlew.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 + " Vim Compiler File " Compiler: gradlew @@ -23,4 +24,5 @@ CompilerSet errorformat= \%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%E%>%f:\ %\\d%\\+:\ %m,%C\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%-G%.%# + endif diff --git a/compiler/haml.vim b/compiler/haml.vim index cb0127e2..034c34f3 100644 --- a/compiler/haml.vim +++ b/compiler/haml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 + " Vim compiler file " Compiler: Haml " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -27,4 +28,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:set sw=2 sts=2: + endif diff --git a/compiler/lilypond.vim b/compiler/lilypond.vim index 80cdcf5e..da1dd17c 100644 --- a/compiler/lilypond.vim +++ b/compiler/lilypond.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 + " LilyPond compiler file " Language: LilyPond " Maintainer: Heikki Junes <hjunes@cc.hut.fi> @@ -18,4 +19,5 @@ setlocal makeprg=lilypond\ $* " (how to see multiple-line error messages?) setlocal errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m " + endif diff --git a/compiler/ls.vim b/compiler/ls.vim index 581cf2b9..8aed9a68 100644 --- a/compiler/ls.vim +++ b/compiler/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 @@ -73,4 +74,5 @@ augroup LiveScriptUpdateMakePrg autocmd BufFilePost,BufWritePost call s:UpdateMakePrg() endif augroup END + endif diff --git a/compiler/mix.vim b/compiler/mix.vim index a771ed15..9bee88e9 100644 --- a/compiler/mix.vim +++ b/compiler/mix.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists('current_compiler') finish endif @@ -15,4 +16,5 @@ CompilerSet errorformat= \%E==\ Compilation\ error\ in\ file\ %f\ ==, \%C**\ (%\\w%\\+)\ %f:%l:\ %m,%Z + endif diff --git a/compiler/nim.vim b/compiler/nim.vim index 637bd4a9..a587a306 100644 --- a/compiler/nim.vim +++ b/compiler/nim.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1 + if exists("current_compiler") finish endif @@ -24,4 +25,5 @@ unlet s:cpo_save let g:syntastic_nim_checkers = ['nim'] + endif diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim index 8298e2c9..4ef29d28 100644 --- a/compiler/nix-build.vim +++ b/compiler/nix-build.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 + if exists('current_compiler') finish endif @@ -10,4 +11,5 @@ endif CompilerSet errorformat=error:\ %m\ at\ %f:%l:%c,builder\ for\ \'%m\'\ failed\ with\ exit\ code\ %n,fixed-output\ derivation\ produced\ path\ \'%s\'\ with\ %m CompilerSet makeprg=nix-build + endif diff --git a/compiler/ocaml.vim b/compiler/ocaml.vim index b6de8420..0f64c8a0 100644 --- a/compiler/ocaml.vim +++ b/compiler/ocaml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + " Vim Compiler File " Compiler: ocaml " Maintainer: Markus Mottl <markus.mottl@gmail.com> @@ -54,4 +55,5 @@ CompilerSet errorformat = let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/compiler/python.vim b/compiler/python.vim index 63930793..eac2bb84 100644 --- a/compiler/python.vim +++ b/compiler/python.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1 + " Vim compiler file " Compiler: Unit testing tool for Python " Maintainer: Ali Aliev <ali@aliev.me> @@ -66,4 +67,5 @@ else endif " vim:foldmethod=marker:foldlevel=0 + endif diff --git a/compiler/rake.vim b/compiler/rake.vim index 28a0e7d1..12f7b7a0 100644 --- a/compiler/rake.vim +++ b/compiler/rake.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: Rake " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -38,4 +39,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/rspec.vim b/compiler/rspec.vim index 8c9c020f..1f7c132f 100644 --- a/compiler/rspec.vim +++ b/compiler/rspec.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: RSpec " Maintainer: Tim Pope <vimNOSPAM@tpope.org> @@ -34,4 +35,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/ruby.vim b/compiler/ruby.vim index ef88462d..abdb6d30 100644 --- a/compiler/ruby.vim +++ b/compiler/ruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: Ruby " Function: Syntax check and/or error reporting @@ -43,4 +44,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/rubyunit.vim b/compiler/rubyunit.vim index 884d05ac..c92f3ec8 100644 --- a/compiler/rubyunit.vim +++ b/compiler/rubyunit.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: Test::Unit - Ruby Unit Testing Framework " Maintainer: Doug Kearns <dougkearns@gmail.com> @@ -34,4 +35,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/rustc.vim b/compiler/rustc.vim index cb14dccf..3c378850 100644 --- a/compiler/rustc.vim +++ b/compiler/rustc.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Vim compiler file " Compiler: Rust Compiler " Maintainer: Chris Morgan <me@chrismorgan.info> @@ -56,4 +57,5 @@ unlet s:save_cpo " vint: +ProhibitAbbreviationOption " vim: set et sw=4 sts=4 ts=8: + endif diff --git a/compiler/sbt.vim b/compiler/sbt.vim index 6125bf29..a57f58c9 100644 --- a/compiler/sbt.vim +++ b/compiler/sbt.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 + " Vim compiler file " Language: Scala SBT (http://www.scala-sbt.org/) " Maintainer: Derek Wyatt @@ -29,4 +30,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:set sw=2 sts=2 ts=8 et: + endif diff --git a/compiler/typescript.vim b/compiler/typescript.vim index 6e60b8c6..6d158771 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 + if exists('current_compiler') finish endif @@ -20,4 +21,5 @@ endif let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %' CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m + endif |