Respect symlinks for resolving vim-polyglot as fallback, closes #605

This commit is contained in:
Adam Stankiewicz
2020-10-25 03:19:58 +01:00
parent d73c4d1562
commit cbde2571d4
1293 changed files with 2073 additions and 10649 deletions

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/ant.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ant', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ant') == -1
" Vim Compiler File
" Compiler: ant
@@ -45,5 +40,3 @@ CompilerSet errorformat=\ %#[%.%#]\ %#%f:%l:%v:%*\\d:%*\\d:\ %t%[%^:]%#:%m,
let &cpo = s:cpo_save
unlet s:cpo_save
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/bdf.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('bdf', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bdf') == -1
" Vim compiler file
" Compiler: BDF to PCF Conversion
@@ -29,5 +24,3 @@ setlocal errorformat=%ABDF\ %trror\ on\ line\ %l:\ %m,
let &cpo = s:cpo_save
unlet s:cpo_save
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/cake.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
@@ -22,5 +17,3 @@ call coffee#CoffeeSetUpVariables()
exec 'CompilerSet makeprg=' . escape(g:coffee_cake . ' ' .
\ g:coffee_cake_options . ' $*', ' ')
call coffee#CoffeeSetUpErrorFormat()
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/cargo.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
" Vim compiler file
" Compiler: Cargo Compiler
@@ -56,5 +51,3 @@ unlet s:save_cpo
" vint: +ProhibitAbbreviationOption
" vim: set et sw=4 sts=4 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/coffee.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
@@ -89,5 +84,3 @@ augroup CoffeeUpdateMakePrg
autocmd BufWritePre,BufFilePost call s:UpdateMakePrg()
endif
augroup END
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/credo.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists('current_compiler')
finish
@@ -18,5 +13,3 @@ endif
CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%f:%l:\ %t:\ %m
CompilerSet makeprg=mix\ credo\ suggest\ --format=flycheck
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/cryptol.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('cryptol', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
" Vim compiler file
" Compiler: Cryptol version 1.8.19-academic Compiler
@@ -27,5 +22,3 @@ CompilerSet errorformat& " use the default 'errorformat'
" "%<" means the current file name without extension.
CompilerSet makeprg=cryptol\ -o\ %<\ %
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/cs.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('cs', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cs') == -1
" Vim compiler file
" Compiler: Microsoft Visual Studio C#
@@ -33,5 +28,3 @@ CompilerSet makeprg=csc\ %:S
let &cpo = s:keepcpo
unlet s:keepcpo
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/cucumber.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('cucumber', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
" Vim compiler file
" Compiler: Cucumber
@@ -36,5 +31,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/dot.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('dot', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dot') == -1
" Vim compiler file
" Compiler: ATT dot
@@ -22,5 +17,3 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
endif
CompilerSet makeprg=dot\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\"
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/eruby.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
" Language: eRuby
@@ -46,5 +41,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/exunit.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists("current_compiler")
finish
@@ -32,5 +27,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/fish.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('fish', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
if exists('current_compiler')
finish
@@ -14,5 +9,3 @@ let current_compiler = 'fish'
CompilerSet makeprg=fish\ --no-execute\ %
execute 'CompilerSet errorformat='.escape(fish#errorformat(), ' ')
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/go.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('go', expand('<sfile>:p'))
finish
endif
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
@@ -55,5 +50,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 ts=2 et
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/gradle.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('gradle', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1
" Vim Compiler File
" Compiler: gradle
@@ -31,5 +26,3 @@ 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

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/gradlew.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('gradle', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1
" Vim Compiler File
" Compiler: gradlew
@@ -31,5 +26,3 @@ 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

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/haml.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('haml', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
" Vim compiler file
" Compiler: Haml
@@ -35,5 +30,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/ledger.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ledger', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ledger') == -1
" Vim Compiler File
" Compiler: ledger
@@ -39,5 +34,3 @@ if !g:ledger_is_hledger
else
exe 'CompilerSet makeprg=('.substitute(g:ledger_bin, ' ', '\\ ', 'g').'\ -f\ ' . shellescape(expand(g:ledger_main)) . '\ print\ '.substitute(g:ledger_extra_options, ' ', '\\ ', 'g').'\ >\ /dev/null)'
endif
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/lilypond.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('lilypond', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1
" LilyPond compiler file
" Language: LilyPond
@@ -26,5 +21,3 @@ 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

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/ls.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('livescript', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1
" Language: LiveScript
" Maintainer: George Zahariev
@@ -81,5 +76,3 @@ augroup LiveScriptUpdateMakePrg
autocmd BufFilePost,BufWritePost call s:UpdateMakePrg()
endif
augroup END
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/mix.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists('current_compiler')
finish
@@ -23,5 +18,3 @@ CompilerSet errorformat=
\%E==\ Compilation\ error\ in\ file\ %f\ ==,
\%C**\ (%\\w%\\+)\ %f:%l:\ %m,%Z
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/nim.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('nim', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1
if exists('current_compiler')
finish
@@ -32,5 +27,3 @@ unlet s:cpo_save
let g:syntastic_nim_checkers = ['nim']
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/nix-build.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('nix', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
if exists('current_compiler')
finish
@@ -18,5 +13,3 @@ 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

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/ocaml.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
" Vim Compiler File
" Compiler: ocaml
@@ -63,5 +58,3 @@ CompilerSet errorformat =
let &cpo = s:cpo_save
unlet s:cpo_save
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/powershell.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
" Compiler: powershell
" Run ps1 scripts in powershell and process their output. Quickly jump through
@@ -90,5 +85,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/python.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('python-compiler', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1
" Vim compiler file
" Compiler: Unit testing tool for Python
@@ -74,5 +69,3 @@ else
endif
" vim:foldmethod=marker:foldlevel=0
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/rake.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
" Language: Rake
@@ -46,5 +41,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/rspec.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
" Language: RSpec
@@ -42,5 +37,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/ruby.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
" Language: Ruby
@@ -51,5 +46,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/rubyunit.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
" Language: Test::Unit - Ruby Unit Testing Framework
@@ -42,5 +37,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/rustc.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('rust', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
" Vim compiler file
" Compiler: Rust Compiler
@@ -64,5 +59,3 @@ unlet s:save_cpo
" vint: +ProhibitAbbreviationOption
" vim: set et sw=4 sts=4 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/sass.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('sass', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sass') == -1
" Vim compiler file
" Compiler: Sass
@@ -37,5 +32,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/sbt.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('scala', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
" Vim compiler file
" Language: Scala SBT (http://www.scala-sbt.org/)
@@ -37,5 +32,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 et:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/swift.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('swift', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
" Vim compiler file
" Compiler: Swift Compiler
@@ -46,5 +41,3 @@ unlet s:save_cpo
" vint: +ProhibitAbbreviationOption
" vim: set et sw=4 sts=4 ts=8:
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/tcl.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('tcl', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tcl') == -1
" Vim compiler file
" Compiler: tcl
@@ -24,5 +19,3 @@ endif
CompilerSet makeprg=tcl
CompilerSet errorformat=%EError:\ %m,%+Z\ %\\{4}(file\ \"%f\"\ line\ %l),%-G%.%#
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/tex.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('tex', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tex') == -1
" Vim compiler file
" Compiler: TeX
@@ -74,5 +69,3 @@ CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
let &cpo = s:keepcpo
unlet s:keepcpo
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/tidy.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('tidy', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tidy') == -1
" Vim compiler file
" Compiler: HTML Tidy
@@ -26,5 +21,3 @@ CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S
" foo.html:8:1: Warning: inserting missing 'foobar' element
" foo.html:9:2: Error: <foobar> is not recognized!
CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%#
endif

View File

@@ -1,11 +1,6 @@
let s:base = expand("<sfile>:h:h")
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
let files = filter(globpath(&rtp, 'compiler/typescript.vim', 1, 1), Filter)
if len(files) > 0
exec 'source ' . files[0]
if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p'))
finish
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
if exists('current_compiler')
finish
@@ -28,5 +23,3 @@ endif
let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %'
CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m
endif