diff options
1303 files changed, 4939 insertions, 4911 deletions
diff --git a/after/compiler/tex.vim b/after/compiler/tex.vim index bfe5b2a5..d6038c2b 100644 --- a/after/compiler/tex.vim +++ b/after/compiler/tex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tex', 'after/compiler/tex.vim') finish endif diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim index 387e655b..c81fedb6 100644 --- a/after/ftplugin/cabal.vim +++ b/after/ftplugin/cabal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haskell', 'after/ftplugin/cabal.vim') finish endif diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim index b01a8a08..528fbeaa 100644 --- a/after/ftplugin/coffee.vim +++ b/after/ftplugin/coffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cjsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cjsx', 'after/ftplugin/coffee.vim') finish endif diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim index 75117f1b..21cf2690 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haskell', 'after/ftplugin/haskell.vim') finish endif diff --git a/after/ftplugin/html.vim b/after/ftplugin/html.vim index 6cbec0ad..5a6b963e 100644 --- a/after/ftplugin/html.vim +++ b/after/ftplugin/html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'after/ftplugin/html.vim') finish endif diff --git a/after/ftplugin/idris.vim b/after/ftplugin/idris.vim index 3fa7a746..f10e518c 100644 --- a/after/ftplugin/idris.vim +++ b/after/ftplugin/idris.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris', 'after/ftplugin/idris.vim') finish endif diff --git a/after/ftplugin/idris2.vim b/after/ftplugin/idris2.vim index 2572f2af..466101e7 100644 --- a/after/ftplugin/idris2.vim +++ b/after/ftplugin/idris2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris2', 'after/ftplugin/idris2.vim') finish endif diff --git a/after/ftplugin/javascript-1.vim b/after/ftplugin/javascript-1.vim index 58e2e1f6..5d6f0d0c 100644 --- a/after/ftplugin/javascript-1.vim +++ b/after/ftplugin/javascript-1.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript', 'after/ftplugin/javascript.vim') finish endif diff --git a/after/ftplugin/javascript-2.vim b/after/ftplugin/javascript-2.vim index 67a63055..9abbda2f 100644 --- a/after/ftplugin/javascript-2.vim +++ b/after/ftplugin/javascript-2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/ftplugin/javascript-2.vim') finish endif diff --git a/after/ftplugin/javascriptreact.vim b/after/ftplugin/javascriptreact.vim index ceacc887..494e6d6e 100644 --- a/after/ftplugin/javascriptreact.vim +++ b/after/ftplugin/javascriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/ftplugin/javascriptreact.vim') finish endif diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim index 54ebd29f..e1af589f 100644 --- a/after/ftplugin/jsx.vim +++ b/after/ftplugin/jsx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/ftplugin/jsx.vim') finish endif diff --git a/after/ftplugin/llvm.vim b/after/ftplugin/llvm.vim index 19835810..bb1ee63e 100644 --- a/after/ftplugin/llvm.vim +++ b/after/ftplugin/llvm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'llvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'after/ftplugin/llvm.vim') finish endif diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim index 2e3f9c7d..e530bff4 100644 --- a/after/ftplugin/puppet.vim +++ b/after/ftplugin/puppet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'after/ftplugin/puppet.vim') finish endif diff --git a/after/ftplugin/tex.vim b/after/ftplugin/tex.vim index 0fcb47a8..e2898321 100644 --- a/after/ftplugin/tex.vim +++ b/after/ftplugin/tex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tex', 'after/ftplugin/tex.vim') finish endif diff --git a/after/ftplugin/tsx.vim b/after/ftplugin/tsx.vim index 3d4226d1..d8d93c8a 100644 --- a/after/ftplugin/tsx.vim +++ b/after/ftplugin/tsx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/ftplugin/tsx.vim') finish endif diff --git a/after/ftplugin/typescriptreact.vim b/after/ftplugin/typescriptreact.vim index 3c3b2666..ec114d96 100644 --- a/after/ftplugin/typescriptreact.vim +++ b/after/ftplugin/typescriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/ftplugin/typescriptreact.vim') finish endif diff --git a/after/indent/html.vim b/after/indent/html.vim index ea76ee09..67728aac 100644 --- a/after/indent/html.vim +++ b/after/indent/html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'after/indent/html.vim') finish endif diff --git a/after/indent/javascript-1.vim b/after/indent/javascript-1.vim index 67a63055..ca9e143f 100644 --- a/after/indent/javascript-1.vim +++ b/after/indent/javascript-1.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/indent/javascript.vim') finish endif diff --git a/after/indent/javascript-2.vim b/after/indent/javascript-2.vim index 3a9fe380..ad32e284 100644 --- a/after/indent/javascript-2.vim +++ b/after/indent/javascript-2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/indent/javascript-2.vim') finish endif diff --git a/after/indent/javascriptreact.vim b/after/indent/javascriptreact.vim index ceacc887..994c195b 100644 --- a/after/indent/javascriptreact.vim +++ b/after/indent/javascriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/indent/javascriptreact.vim') finish endif diff --git a/after/indent/jsx.vim b/after/indent/jsx.vim index afee5bf0..24c4a096 100644 --- a/after/indent/jsx.vim +++ b/after/indent/jsx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/indent/jsx.vim') finish endif diff --git a/after/indent/objc.vim b/after/indent/objc.vim index e9cc20e8..c84f43b3 100644 --- a/after/indent/objc.vim +++ b/after/indent/objc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'objc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'objc', 'after/indent/objc.vim') finish endif diff --git a/after/indent/php.vim b/after/indent/php.vim index f64a7c6c..65534a8c 100644 --- a/after/indent/php.vim +++ b/after/indent/php.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/indent/php.vim') finish endif diff --git a/after/indent/tex.vim b/after/indent/tex.vim index 4cd17b84..cbb4f01b 100644 --- a/after/indent/tex.vim +++ b/after/indent/tex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tex', 'after/indent/tex.vim') finish endif diff --git a/after/indent/tsx.vim b/after/indent/tsx.vim index 18254bfc..4ff59991 100644 --- a/after/indent/tsx.vim +++ b/after/indent/tsx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/indent/tsx.vim') finish endif diff --git a/after/indent/typescript.vim b/after/indent/typescript.vim index 6d27bc70..ba107504 100644 --- a/after/indent/typescript.vim +++ b/after/indent/typescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/indent/typescript.vim') finish endif diff --git a/after/indent/typescriptreact.vim b/after/indent/typescriptreact.vim index 3c3b2666..4a530b9d 100644 --- a/after/indent/typescriptreact.vim +++ b/after/indent/typescriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/indent/typescriptreact.vim') finish endif diff --git a/after/syntax/c.vim b/after/syntax/c.vim index a8f7f416..a5daa792 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cpp-modern') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cpp-modern', 'after/syntax/c.vim') finish endif diff --git a/after/syntax/coffee.vim b/after/syntax/coffee.vim index a3e5d8fa..df65b1d9 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cjsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cjsx', 'after/syntax/coffee.vim') finish endif diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index 1143e439..27e6abdb 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cpp-modern') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cpp-modern', 'after/syntax/cpp.vim') finish endif diff --git a/after/syntax/haskell.vim b/after/syntax/haskell.vim index 61886369..9820e792 100644 --- a/after/syntax/haskell.vim +++ b/after/syntax/haskell.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dhall') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dhall', 'after/syntax/haskell.vim') finish endif diff --git a/after/syntax/help.vim b/after/syntax/help.vim index 007c21f3..b19c8d0d 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scala', 'after/syntax/help.vim') finish endif diff --git a/after/syntax/html.vim b/after/syntax/html.vim index 9dec611e..44d8f793 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'after/syntax/html.vim') finish endif diff --git a/after/syntax/html/aria.vim b/after/syntax/html/aria.vim index b589cc5e..6444f63f 100644 --- a/after/syntax/html/aria.vim +++ b/after/syntax/html/aria.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'after/syntax/html/aria.vim') finish endif diff --git a/after/syntax/html/electron.vim b/after/syntax/html/electron.vim index 35aa1a1e..7ad41cfc 100644 --- a/after/syntax/html/electron.vim +++ b/after/syntax/html/electron.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'after/syntax/html/electron.vim') finish endif diff --git a/after/syntax/html/rdfa.vim b/after/syntax/html/rdfa.vim index 5554f12b..6138f637 100644 --- a/after/syntax/html/rdfa.vim +++ b/after/syntax/html/rdfa.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'after/syntax/html/rdfa.vim') finish endif diff --git a/after/syntax/idris.vim b/after/syntax/idris.vim index 51aa6422..66fc91d1 100644 --- a/after/syntax/idris.vim +++ b/after/syntax/idris.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris', 'after/syntax/idris.vim') finish endif diff --git a/after/syntax/idris2.vim b/after/syntax/idris2.vim index 6aaecf4d..fedcd8c1 100644 --- a/after/syntax/idris2.vim +++ b/after/syntax/idris2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris2', 'after/syntax/idris2.vim') finish endif diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim index 67a63055..469a906e 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/syntax/javascript.vim') finish endif diff --git a/after/syntax/javascript/graphql.vim b/after/syntax/javascript/graphql.vim index dafba802..d13ae9fb 100644 --- a/after/syntax/javascript/graphql.vim +++ b/after/syntax/javascript/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/syntax/javascript/graphql.vim') finish endif diff --git a/after/syntax/javascript/html5.vim b/after/syntax/javascript/html5.vim index b605aed5..117b4fed 100644 --- a/after/syntax/javascript/html5.vim +++ b/after/syntax/javascript/html5.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'after/syntax/javascript/html5.vim') finish endif diff --git a/after/syntax/javascript/sql.vim b/after/syntax/javascript/sql.vim index 52b94d70..6ee30026 100644 --- a/after/syntax/javascript/sql.vim +++ b/after/syntax/javascript/sql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript-sql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript-sql', 'after/syntax/javascript/sql.vim') finish endif diff --git a/after/syntax/javascriptreact.vim b/after/syntax/javascriptreact.vim index ceacc887..a5c77225 100644 --- a/after/syntax/javascriptreact.vim +++ b/after/syntax/javascriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/syntax/javascriptreact.vim') finish endif diff --git a/after/syntax/javascriptreact/graphql.vim b/after/syntax/javascriptreact/graphql.vim index 6842f74c..2e1291a8 100644 --- a/after/syntax/javascriptreact/graphql.vim +++ b/after/syntax/javascriptreact/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/syntax/javascriptreact/graphql.vim') finish endif diff --git a/after/syntax/jsx.vim b/after/syntax/jsx.vim index 8ca6c767..c5a1917c 100644 --- a/after/syntax/jsx.vim +++ b/after/syntax/jsx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/syntax/jsx.vim') finish endif diff --git a/after/syntax/jsx_pretty.vim b/after/syntax/jsx_pretty.vim index 714cfb5b..115924c4 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/syntax/jsx_pretty.vim') finish endif diff --git a/after/syntax/llvm.vim b/after/syntax/llvm.vim index 024928b8..2154a635 100644 --- a/after/syntax/llvm.vim +++ b/after/syntax/llvm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'llvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'after/syntax/llvm.vim') finish endif diff --git a/after/syntax/mdx.vim b/after/syntax/mdx.vim index 8d734bb2..38722924 100644 --- a/after/syntax/mdx.vim +++ b/after/syntax/mdx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mdx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mdx', 'after/syntax/mdx.vim') finish endif diff --git a/after/syntax/mma.vim b/after/syntax/mma.vim index 67611337..bd8a0213 100644 --- a/after/syntax/mma.vim +++ b/after/syntax/mma.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mathematica') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mathematica', 'after/syntax/mma.vim') finish endif diff --git a/after/syntax/objc.vim b/after/syntax/objc.vim index a9805eed..d0b48090 100644 --- a/after/syntax/objc.vim +++ b/after/syntax/objc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'objc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'objc', 'after/syntax/objc.vim') finish endif diff --git a/after/syntax/php/graphql.vim b/after/syntax/php/graphql.vim index 3c94bcb8..00c9811b 100644 --- a/after/syntax/php/graphql.vim +++ b/after/syntax/php/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/syntax/php/graphql.vim') finish endif diff --git a/after/syntax/reason.vim b/after/syntax/reason.vim index c30114ee..b64d866d 100644 --- a/after/syntax/reason.vim +++ b/after/syntax/reason.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'reason') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'reason', 'after/syntax/reason.vim') finish endif diff --git a/after/syntax/reason/graphql.vim b/after/syntax/reason/graphql.vim index 0ef3b1d7..74a88a5d 100644 --- a/after/syntax/reason/graphql.vim +++ b/after/syntax/reason/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/syntax/reason/graphql.vim') finish endif diff --git a/after/syntax/rspec.vim b/after/syntax/rspec.vim index 9a0961d7..d83bbacc 100644 --- a/after/syntax/rspec.vim +++ b/after/syntax/rspec.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rspec') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rspec', 'after/syntax/rspec.vim') finish endif diff --git a/after/syntax/ruby.vim b/after/syntax/ruby.vim index 3c9fccd2..082115e1 100644 --- a/after/syntax/ruby.vim +++ b/after/syntax/ruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'yard') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'yard', 'after/syntax/ruby.vim') finish endif diff --git a/after/syntax/rust.vim b/after/syntax/rust.vim index 1cf3e3a2..319c14b9 100644 --- a/after/syntax/rust.vim +++ b/after/syntax/rust.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'after/syntax/rust.vim') finish endif diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim index 8a30dc30..e99af17f 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tex', 'after/syntax/tex.vim') finish endif diff --git a/after/syntax/tsx.vim b/after/syntax/tsx.vim index 458419d2..933bff82 100644 --- a/after/syntax/tsx.vim +++ b/after/syntax/tsx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/syntax/tsx.vim') finish endif diff --git a/after/syntax/typescript/graphql.vim b/after/syntax/typescript/graphql.vim index df6bf36c..6db06513 100644 --- a/after/syntax/typescript/graphql.vim +++ b/after/syntax/typescript/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/syntax/typescript/graphql.vim') finish endif diff --git a/after/syntax/typescriptreact.vim b/after/syntax/typescriptreact.vim index 3c3b2666..72f82492 100644 --- a/after/syntax/typescriptreact.vim +++ b/after/syntax/typescriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'after/syntax/typescriptreact.vim') finish endif diff --git a/after/syntax/typescriptreact/graphql.vim b/after/syntax/typescriptreact/graphql.vim index 0367e0da..518c6b68 100644 --- a/after/syntax/typescriptreact/graphql.vim +++ b/after/syntax/typescriptreact/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/syntax/typescriptreact/graphql.vim') finish endif diff --git a/after/syntax/vue/graphql.vim b/after/syntax/vue/graphql.vim index 6842f74c..935154d8 100644 --- a/after/syntax/vue/graphql.vim +++ b/after/syntax/vue/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'after/syntax/vue/graphql.vim') finish endif diff --git a/after/syntax/zsh.vim b/after/syntax/zsh.vim index fcdcac31..cf4f9246 100644 --- a/after/syntax/zsh.vim +++ b/after/syntax/zsh.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zinit') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zinit', 'after/syntax/zsh.vim') finish endif diff --git a/autoload/LaTeXtoUnicode.vim b/autoload/LaTeXtoUnicode.vim index def14bfd..79827318 100644 --- a/autoload/LaTeXtoUnicode.vim +++ b/autoload/LaTeXtoUnicode.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'autoload/LaTeXtoUnicode.vim') finish endif diff --git a/autoload/RstFold.vim b/autoload/RstFold.vim index 16a12b96..c18b8232 100644 --- a/autoload/RstFold.vim +++ b/autoload/RstFold.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rst', 'autoload/RstFold.vim') finish endif diff --git a/autoload/ada.vim b/autoload/ada.vim index 71faa0a6..792fc03f 100644 --- a/autoload/ada.vim +++ b/autoload/ada.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ada') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ada', 'autoload/ada.vim') finish endif diff --git a/autoload/cargo.vim b/autoload/cargo.vim index 08b01231..001d35ce 100644 --- a/autoload/cargo.vim +++ b/autoload/cargo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'autoload/cargo.vim') finish endif diff --git a/autoload/cargo/quickfix.vim b/autoload/cargo/quickfix.vim index a8272a05..ddd08e26 100644 --- a/autoload/cargo/quickfix.vim +++ b/autoload/cargo/quickfix.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'autoload/cargo/quickfix.vim') finish endif diff --git a/autoload/clojurecomplete.vim b/autoload/clojurecomplete.vim index 36ea354e..6d6a61b1 100644 --- a/autoload/clojurecomplete.vim +++ b/autoload/clojurecomplete.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'clojure') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'clojure', 'autoload/clojurecomplete.vim') finish endif diff --git a/autoload/coffee.vim b/autoload/coffee.vim index bc038f0e..78427a18 100644 --- a/autoload/coffee.vim +++ b/autoload/coffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'autoload/coffee.vim') finish endif diff --git a/autoload/crystal/indent.vim b/autoload/crystal/indent.vim index b2fc9193..3e8b07e5 100644 --- a/autoload/crystal/indent.vim +++ b/autoload/crystal/indent.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/crystal/indent.vim') finish endif diff --git a/autoload/crystal_lang.vim b/autoload/crystal_lang.vim index 60032c5f..15afbeda 100644 --- a/autoload/crystal_lang.vim +++ b/autoload/crystal_lang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/crystal_lang.vim') finish endif diff --git a/autoload/csv.vim b/autoload/csv.vim index 39e37367..e47ee41d 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'csv') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'csv', 'autoload/csv.vim') finish endif diff --git a/autoload/dart.vim b/autoload/dart.vim index b4cdce2a..959b67ca 100644 --- a/autoload/dart.vim +++ b/autoload/dart.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dart') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dart', 'autoload/dart.vim') finish endif diff --git a/autoload/db/adapter/ecto.vim b/autoload/db/adapter/ecto.vim index 251a3a6b..a1765254 100644 --- a/autoload/db/adapter/ecto.vim +++ b/autoload/db/adapter/ecto.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'autoload/db/adapter/ecto.vim') finish endif diff --git a/autoload/ecrystal.vim b/autoload/ecrystal.vim index a7bc0596..1ea21a3e 100644 --- a/autoload/ecrystal.vim +++ b/autoload/ecrystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/ecrystal.vim') finish endif diff --git a/autoload/elixir/indent.vim b/autoload/elixir/indent.vim index f38947fd..412d2cf5 100644 --- a/autoload/elixir/indent.vim +++ b/autoload/elixir/indent.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'autoload/elixir/indent.vim') finish endif diff --git a/autoload/elixir/util.vim b/autoload/elixir/util.vim index 4136799c..1cee9199 100644 --- a/autoload/elixir/util.vim +++ b/autoload/elixir/util.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'autoload/elixir/util.vim') finish endif diff --git a/autoload/fish.vim b/autoload/fish.vim index 92d9f642..d495f7db 100644 --- a/autoload/fish.vim +++ b/autoload/fish.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fish') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fish', 'autoload/fish.vim') finish endif diff --git a/autoload/fsharp.vim b/autoload/fsharp.vim index 7ce4ab2f..a37a92e7 100644 --- a/autoload/fsharp.vim +++ b/autoload/fsharp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fsharp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fsharp', 'autoload/fsharp.vim') finish endif diff --git a/autoload/fzf_gitignore.vim b/autoload/fzf_gitignore.vim index 62e2fde2..40272db7 100644 --- a/autoload/fzf_gitignore.vim +++ b/autoload/fzf_gitignore.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gitignore') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gitignore', 'autoload/fzf_gitignore.vim') finish endif diff --git a/autoload/go/config.vim b/autoload/go/config.vim index 0c48a1f7..b087b2c4 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'autoload/go/config.vim') finish endif diff --git a/autoload/graphql.vim b/autoload/graphql.vim index 4e0652a2..6dc441c6 100644 --- a/autoload/graphql.vim +++ b/autoload/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'autoload/graphql.vim') finish endif diff --git a/autoload/htmlcomplete.vim b/autoload/htmlcomplete.vim index e4087b01..a378493e 100644 --- a/autoload/htmlcomplete.vim +++ b/autoload/htmlcomplete.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'autoload/htmlcomplete.vim') finish endif diff --git a/autoload/jsonnet.vim b/autoload/jsonnet.vim index 3626edd2..6a71cbb6 100644 --- a/autoload/jsonnet.vim +++ b/autoload/jsonnet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsonnet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsonnet', 'autoload/jsonnet.vim') finish endif diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim index 39157d19..f9ae5b18 100644 --- a/autoload/jsx_pretty/comment.vim +++ b/autoload/jsx_pretty/comment.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'autoload/jsx_pretty/comment.vim') finish endif diff --git a/autoload/jsx_pretty/indent.vim b/autoload/jsx_pretty/indent.vim index ee4859ce..f45316b2 100644 --- a/autoload/jsx_pretty/indent.vim +++ b/autoload/jsx_pretty/indent.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsx', 'autoload/jsx_pretty/indent.vim') finish endif diff --git a/autoload/julia.vim b/autoload/julia.vim index ed77fc39..6ffe5fd5 100644 --- a/autoload/julia.vim +++ b/autoload/julia.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'autoload/julia.vim') finish endif diff --git a/autoload/julia/doc.vim b/autoload/julia/doc.vim index 6461bd44..dfac90a0 100644 --- a/autoload/julia/doc.vim +++ b/autoload/julia/doc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'autoload/julia/doc.vim') finish endif diff --git a/autoload/julia_blocks.vim b/autoload/julia_blocks.vim index a27ccfbe..6a0c05c9 100644 --- a/autoload/julia_blocks.vim +++ b/autoload/julia_blocks.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'autoload/julia_blocks.vim') finish endif diff --git a/autoload/julia_latex_symbols.vim b/autoload/julia_latex_symbols.vim index bd53c1c3..5fb5821a 100644 --- a/autoload/julia_latex_symbols.vim +++ b/autoload/julia_latex_symbols.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'autoload/julia_latex_symbols.vim') finish endif diff --git a/autoload/ledger.vim b/autoload/ledger.vim index 265aa666..1006430c 100644 --- a/autoload/ledger.vim +++ b/autoload/ledger.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ledger') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ledger', 'autoload/ledger.vim') finish endif diff --git a/autoload/nim.vim b/autoload/nim.vim index 820f62c7..c0faf6e1 100644 --- a/autoload/nim.vim +++ b/autoload/nim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nim', 'autoload/nim.vim') finish endif diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim new file mode 100644 index 00000000..9d01b346 --- /dev/null +++ b/autoload/polyglot/init.vim @@ -0,0 +1,3630 @@ +" Vim support file to detect file types +" +" Maintainer: Adam Stankiewicz <sheerun@sher.pl> +" URL: https://github.com/sheerun/vim-polyglot + +" Listen very carefully, I will say this only once +if exists("did_load_polyglot") + finish +endif + +" Switch to compatible mode for the time being +let s:cpo_save = &cpo +set cpo&vim + +let did_load_polyglot = 1 + +let g:polyglot_initialized = 0 + +func! polyglot#init#init() + " A no-op as sourcing this file is enough +endfunc + +func! polyglot#init#is_disabled(caller, name, path) + if g:polyglot_initialized + return has_key(g:polyglot_is_disabled, a:name) + endif + if a:path[0:7] == "autoload" + let g:polyglot_initialized = 1 + + for p in globpath(&rtp, a:path, 0, 1) + if p != a:caller + exe "source " . p + return 1 + endif + endfor + endif +endfunc + +let g:polyglot_is_disabled = {} +let s:new_polyglot_disabled = [] + +if exists('g:polyglot_disabled') + for pkg in g:polyglot_disabled + let base = split(pkg, '\.') + if len(base) > 0 + let g:polyglot_is_disabled[pkg] = 1 + call add(s:new_polyglot_disabled, base[0]) + endif + endfor +else + let g:polyglot_disabled_not_set = 1 +endif + +func! PolyglotVerify() + if exists("g:polyglot_disabled_not_set") + if exists("g:polyglot_disabled") + echohl WarningMsg + echo "vim-polyglot: g:polyglot_disabled should be defined before loading vim-polyglot" + echohl None + endif + + unlet g:polyglot_disabled_not_set + endif +endfun + +au VimEnter * call PolyglotVerify() + +" Be consistent across different systems +set nofileignorecase + +function! s:SetDefault(name, value) + if !exists(a:name) + let {a:name} = a:value + endif +endfunction + +call s:SetDefault('g:markdown_enable_spell_checking', 0) +call s:SetDefault('g:markdown_enable_input_abbreviations', 0) +call s:SetDefault('g:markdown_enable_mappings', 0) + +" Enable jsx syntax by default +call s:SetDefault('g:jsx_ext_required', 0) + +" Needed for sql highlighting +call s:SetDefault('g:javascript_sql_dialect', 'sql') + +" Make csv loading faster +call s:SetDefault('g:csv_start', 1) +call s:SetDefault('g:csv_end', 2) +call s:SetDefault('g:csv_default_delim', ',') + +" Disable json concealing by default +call s:SetDefault('g:vim_json_syntax_conceal', 0) + +call s:SetDefault('g:filetype_euphoria', 'elixir') + +if !exists('g:python_highlight_all') + call s:SetDefault('g:python_highlight_builtins', 1) + call s:SetDefault('g:python_highlight_builtin_objs', 1) + call s:SetDefault('g:python_highlight_builtin_types', 1) + call s:SetDefault('g:python_highlight_builtin_funcs', 1) + call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1) + call s:SetDefault('g:python_highlight_exceptions', 1) + call s:SetDefault('g:python_highlight_string_formatting', 1) + call s:SetDefault('g:python_highlight_string_format', 1) + call s:SetDefault('g:python_highlight_string_templates', 1) + call s:SetDefault('g:python_highlight_indent_errors', 1) + call s:SetDefault('g:python_highlight_space_errors', 1) + call s:SetDefault('g:python_highlight_doctests', 1) + call s:SetDefault('g:python_highlight_func_calls', 1) + call s:SetDefault('g:python_highlight_class_vars', 1) + call s:SetDefault('g:python_highlight_operators', 1) + call s:SetDefault('g:python_highlight_file_headers_as_comments', 1) + call s:SetDefault('g:python_slow_sync', 1) +endif + +" We need it because scripts.vim in vim uses "set ft=" which cannot be +" overridden with setf (and we can't use set ft= so our scripts.vim work) +func! s:Setf(ft) + if &filetype !~# '\<'.a:ft.'\>' + let &filetype = a:ft + endif +endfunc + +" Function used for patterns that end in a star: don't set the filetype if the +" file name matches ft_ignore_pat. +" When using this, the entry should probably be further down below with the +" other StarSetf() calls. +func! s:StarSetf(ft) + if expand("<amatch>") !~ g:ft_ignore_pat + exe 'setf ' . a:ft + endif +endfunc + +augroup polyglot-observer | augroup END + +if exists('s:cpo_save') + " Restore 'cpoptions' + let &cpo = s:cpo_save + unlet s:cpo_save +endif + +" Load user-defined filetype.vim and oter plugins ftdetect first +" This is to use polyglot-defined ftdetect always as fallback to user settings +augroup filetypedetect + runtime! filetype.vim + runtime! ftdetect/*.vim +augroup END + + +augroup filetypedetect + +" Switch to compatible mode for the time being +let s:cpo_save = &cpo +set cpo&vim + +if !has_key(g:polyglot_is_disabled, 'ftdetect') + +" It can happen vim filetype.vim loads first, then we need a reset +if exists("did_load_filetypes") + au! filetypedetect +endif + +" Prevent filetype.vim of vim from loading again +let did_load_filetypes = 1 + + +" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE + +if !has_key(g:polyglot_is_disabled, 'gleam') + au BufNewFile,BufRead *.gleam setf gleam +endif + +if !has_key(g:polyglot_is_disabled, 'jsonc') + au BufNewFile,BufRead *.cjson,*.jsonc,{.,}babelrc,{.,}eslintrc.json,{.,}jshintrc,{.,}jslintrc,{.,}mocharc.json,coc-settings.json,coffeelint.json,jsconfig.json,tsconfig.json setf jsonc +endif + +if !has_key(g:polyglot_is_disabled, 'mint') + au BufNewFile,BufRead *.mint setf mint +endif + +if !has_key(g:polyglot_is_disabled, 'context') + au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi setf context +endif + +if !has_key(g:polyglot_is_disabled, 'xpm2') + au BufNewFile,BufRead *.xpm2 setf xpm2 +endif + +if !has_key(g:polyglot_is_disabled, 'xpm') + au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() + au BufNewFile,BufRead *.xpm setf xpm +endif + +if !has_key(g:polyglot_is_disabled, 'xf86conf') + au BufNewFile,BufRead */xorg.conf.d/*.conf,xorg.conf,xorg.conf-4 setf xf86conf + au BufNewFile,BufRead XF86Config-4* call s:StarSetf('xf86conf') + au BufNewFile,BufRead XF86Config* call s:StarSetf('xf86conf') +endif + +if !has_key(g:polyglot_is_disabled, 'pullrequest') + au BufNewFile,BufRead PULLREQ_EDITMSG setf pullrequest +endif + +if !has_key(g:polyglot_is_disabled, 'text') + au BufNewFile,BufRead *.text,README setf text +endif + +if !has_key(g:polyglot_is_disabled, 'svn') + au BufNewFile,BufRead svn-commit*.tmp setf svn +endif + +if !has_key(g:polyglot_is_disabled, 'logcheck') + au BufNewFile,BufRead */etc/logcheck/*.d*/* call s:StarSetf('logcheck') +endif + +if !has_key(g:polyglot_is_disabled, 'fvwm') + au BufNewFile,BufRead */.fvwm/* call s:StarSetf('fvwm') +endif + +if !has_key(g:polyglot_is_disabled, 'crontab') + au BufNewFile,BufRead crontab setf crontab + au BufNewFile,BufRead crontab.* call s:StarSetf('crontab') + au BufNewFile,BufRead */etc/cron.d/* call s:StarSetf('crontab') +endif + +if !has_key(g:polyglot_is_disabled, 'bzr') + au BufNewFile,BufRead bzr_log.* call s:StarSetf('bzr') +endif + +if !has_key(g:polyglot_is_disabled, 'asteriskvm') + au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm') +endif + +if !has_key(g:polyglot_is_disabled, 'asterisk') + au BufNewFile,BufRead *asterisk/*.conf* call s:StarSetf('asterisk') +endif + +if !has_key(g:polyglot_is_disabled, 'apachestyle') + au BufNewFile,BufRead proftpd.conf* call s:StarSetf('apachestyle') + au BufNewFile,BufRead */etc/proftpd/conf.*/* call s:StarSetf('apachestyle') + au BufNewFile,BufRead */etc/proftpd/*.conf* call s:StarSetf('apachestyle') +endif + +if !has_key(g:polyglot_is_disabled, 'z8a') + au BufNewFile,BufRead *.z8a setf z8a +endif + +if !has_key(g:polyglot_is_disabled, 'zimbutempl') + au BufNewFile,BufRead *.zut setf zimbutempl +endif + +if !has_key(g:polyglot_is_disabled, 'zimbu') + au BufNewFile,BufRead *.zu setf zimbu +endif + +if !has_key(g:polyglot_is_disabled, 'yacc') + au BufNewFile,BufRead *.y++,*.yxx,*.yy setf yacc +endif + +if !has_key(g:polyglot_is_disabled, 'xslt') + au BufNewFile,BufRead *.xsl,*.xslt setf xslt +endif + +if !has_key(g:polyglot_is_disabled, 'xsd') + au BufNewFile,BufRead *.xsd setf xsd +endif + +if !has_key(g:polyglot_is_disabled, 'xquery') + au BufNewFile,BufRead *.xq,*.xql,*.xqm,*.xquery,*.xqy setf xquery +endif + +if !has_key(g:polyglot_is_disabled, 'xmodmap') + au BufNewFile,BufRead *Xmodmap setf xmodmap + au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap') +endif + +if !has_key(g:polyglot_is_disabled, 'xmath') + au BufNewFile,BufRead *.msc,*.msf setf xmath +endif + +if !has_key(g:polyglot_is_disabled, 'xdefaults') + au BufNewFile,BufRead *.ad,{.,}Xdefaults,{.,}Xpdefaults,{.,}Xresources,xdm-config setf xdefaults + au BufNewFile,BufRead Xresources* call s:StarSetf('xdefaults') + au BufNewFile,BufRead */app-defaults/* call s:StarSetf('xdefaults') + au BufNewFile,BufRead */Xresources/* call s:StarSetf('xdefaults') +endif + +if !has_key(g:polyglot_is_disabled, 'xinetd') + au BufNewFile,BufRead */etc/xinetd.conf setf xinetd + au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd') +endif + +if !has_key(g:polyglot_is_disabled, 'xhtml') + au BufNewFile,BufRead *.xht,*.xhtml setf xhtml +endif + +if !has_key(g:polyglot_is_disabled, 'wsh') + au BufNewFile,BufRead *.ws[fc] setf wsh +endif + +if !has_key(g:polyglot_is_disabled, 'cvs') + au BufNewFile,BufRead cvs\d\+ setf cvs +endif + +if !has_key(g:polyglot_is_disabled, 'cvsrc') + au BufNewFile,BufRead {.,}cvsrc setf cvsrc +endif + +if !has_key(g:polyglot_is_disabled, 'wvdial') + au BufNewFile,BufRead {.,}wvdialrc,wvdial.conf setf wvdial +endif + +if !has_key(g:polyglot_is_disabled, 'wsml') + au BufNewFile,BufRead *.wsml setf wsml +endif + +if !has_key(g:polyglot_is_disabled, 'winbatch') + au BufNewFile,BufRead *.wbt setf winbatch +endif + +if !has_key(g:polyglot_is_disabled, 'wml') + au BufNewFile,BufRead *.wml setf wml +endif + +if !has_key(g:polyglot_is_disabled, 'wget') + au BufNewFile,BufRead {.,}wgetrc,wgetrc setf wget +endif + +if !has_key(g:polyglot_is_disabled, 'webmacro') + au BufNewFile,BufRead *.wm setf webmacro +endif + +if !has_key(g:polyglot_is_disabled, 'wast') + au BufNewFile,BufRead *.wast,*.wat setf wast +endif + +if !has_key(g:polyglot_is_disabled, 'vroom') + au BufNewFile,BufRead *.vroom setf vroom +endif + +if !has_key(g:polyglot_is_disabled, 'vrml') + au BufNewFile,BufRead *.wrl setf vrml +endif + +if !has_key(g:polyglot_is_disabled, 'vgrindefs') + au BufNewFile,BufRead vgrindefs setf vgrindefs +endif + +if !has_key(g:polyglot_is_disabled, 'viminfo') + au BufNewFile,BufRead {.,}viminfo,_viminfo setf viminfo +endif + +if !has_key(g:polyglot_is_disabled, 'vim') + au BufNewFile,BufRead *.vba,*.vim,{.,}exrc,_exrc setf vim + au BufNewFile,BufRead *vimrc* call s:StarSetf('vim') +endif + +if !has_key(g:polyglot_is_disabled, 'vhdl') + au BufNewFile,BufRead *.hdl,*.vbe,*.vhd,*.vhdl,*.vho,*.vst setf vhdl + au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') +endif + +if !has_key(g:polyglot_is_disabled, 'systemverilog') + au BufNewFile,BufRead *.sv,*.svh setf systemverilog +endif + +if !has_key(g:polyglot_is_disabled, 'verilogams') + au BufNewFile,BufRead *.va,*.vams setf verilogams +endif + +if !has_key(g:polyglot_is_disabled, 'verilog') + au BufNewFile,BufRead *.v setf verilog +endif + +if !has_key(g:polyglot_is_disabled, 'vera') + au BufNewFile,BufRead *.vr,*.vrh,*.vri setf vera +endif + +if !has_key(g:polyglot_is_disabled, 'upstart') + au BufNewFile,BufRead */.config/upstart/*.conf,*/.config/upstart/*.override,*/.init/*.conf,*/.init/*.override,*/etc/init/*.conf,*/etc/init/*.override,*/usr/share/upstart/*.conf,*/usr/share/upstart/*.override setf upstart +endif + +if !has_key(g:polyglot_is_disabled, 'updatedb') + au BufNewFile,BufRead */etc/updatedb.conf setf updatedb +endif + +if !has_key(g:polyglot_is_disabled, 'uc') + au BufNewFile,BufRead *.uc setf uc +endif + +if !has_key(g:polyglot_is_disabled, 'udevperm') + au BufNewFile,BufRead */etc/udev/permissions.d/*.permissions setf udevperm +endif + +if !has_key(g:polyglot_is_disabled, 'udevconf') + au BufNewFile,BufRead */etc/udev/udev.conf setf udevconf +endif + +if !has_key(g:polyglot_is_disabled, 'uil') + au BufNewFile,BufRead *.uil,*.uit setf uil +endif + +if !has_key(g:polyglot_is_disabled, 'tsscl') + au BufNewFile,BufRead *.tsscl setf tsscl +endif + +if !has_key(g:polyglot_is_disabled, 'tssop') + au BufNewFile,BufRead *.tssop setf tssop +endif + +if !has_key(g:polyglot_is_disabled, 'tssgm') + au BufNewFile,BufRead *.tssgm setf tssgm +endif + +if !has_key(g:polyglot_is_disabled, 'trustees') + au BufNewFile,BufRead trustees.conf setf trustees +endif + +if !has_key(g:polyglot_is_disabled, 'treetop') + au BufNewFile,BufRead *.treetop setf treetop +endif + +if !has_key(g:polyglot_is_disabled, 'tpp') + au BufNewFile,BufRead *.tpp setf tpp +endif + +if !has_key(g:polyglot_is_disabled, 'tidy') + au BufNewFile,BufRead {.,}tidyrc,tidy.conf,tidyrc setf tidy +endif + +if !has_key(g:polyglot_is_disabled, 'texmf') + au BufNewFile,BufRead texmf.cnf setf texmf +endif + +if !has_key(g:polyglot_is_disabled, 'texinfo') + au BufNewFile,BufRead *.texi,*.texinfo,*.txi setf texinfo +endif + +if !has_key(g:polyglot_is_disabled, 'tex') + au BufNewFile,BufRead *.bbl,*.dtx,*.latex,*.ltx,*.sty setf tex +endif + +if !has_key(g:polyglot_is_disabled, 'terminfo') + au BufNewFile,BufRead *.ti setf terminfo +endif + +if !has_key(g:polyglot_is_disabled, 'teraterm') + au BufNewFile,BufRead *.ttl setf teraterm +endif + +if !has_key(g:polyglot_is_disabled, 'tsalt') + au BufNewFile,BufRead *.slt setf tsalt +endif + +if !has_key(g:polyglot_is_disabled, 'tli') + au BufNewFile,BufRead *.tli setf tli +endif + +if !has_key(g:polyglot_is_disabled, 'tcl') + au BufNewFile,BufRead *.itcl,*.itk,*.jacl,*.tcl,*.tk setf tcl +endif + +if !has_key(g:polyglot_is_disabled, 'taskedit') + au BufNewFile,BufRead *.task setf taskedit +endif + +if !has_key(g:polyglot_is_disabled, 'taskdata') + au BufNewFile,BufRead {pending,completed,undo}.data setf taskdata +endif + +if !has_key(g:polyglot_is_disabled, 'tak') + au BufNewFile,BufRead *.tak setf tak +endif + +if !has_key(g:polyglot_is_disabled, 'tags') + au BufNewFile,BufRead tags setf tags +endif + +if !has_key(g:polyglot_is_disabled, 'sudoers') + au BufNewFile,BufRead */etc/sudoers,sudoers.tmp setf sudoers +endif + +if !has_key(g:polyglot_is_disabled, 'sdc') + au BufNewFile,BufRead *.sdc setf sdc +endif + +if !has_key(g:polyglot_is_disabled, 'sysctl') + au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl +endif + +if !has_key(g:polyglot_is_disabled, 'sil') + au BufNewFile,BufRead *.sil setf sil +endif + +if !has_key(g:polyglot_is_disabled, 'swiftgyb') + au BufNewFile,BufRead *.swift.gyb setf swiftgyb +endif + +if !has_key(g:polyglot_is_disabled, 'voscm') + au BufNewFile,BufRead *.cm setf voscm +endif + +if !has_key(g:polyglot_is_disabled, 'sml') + au BufNewFile,BufRead *.sml setf sml +endif + +if !has_key(g:polyglot_is_disabled, 'stp') + au BufNewFile,BufRead *.stp setf stp +endif + +if !has_key(g:polyglot_is_disabled, 'smcl') + au BufNewFile,BufRead *.hlp,*.ihlp,*.smcl setf smcl +endif + +if !has_key(g:polyglot_is_disabled, 'stata') + au BufNewFile,BufRead *.ado,*.do,*.imata,*.mata setf stata +endif + +if !has_key(g:polyglot_is_disabled, 'sshdconfig') + au BufNewFile,BufRead */etc/ssh/sshd_config.d/*.conf,sshd_config setf sshdconfig +endif + +if !has_key(g:polyglot_is_disabled, 'sshconfig') + au BufNewFile,BufRead */.ssh/config,*/etc/ssh/ssh_config.d/*.conf,ssh_config setf sshconfig +endif + +if !has_key(g:polyglot_is_disabled, 'sqr') + au BufNewFile,BufRead *.sqi,*.sqr setf sqr +endif + +if !has_key(g:polyglot_is_disabled, 'sqlj') + au BufNewFile,BufRead *.sqlj setf sqlj +endif + +if !has_key(g:polyglot_is_disabled, 'squid') + au BufNewFile,BufRead squid.conf setf squid +endif + +if !has_key(g:polyglot_is_disabled, 'spice') + au BufNewFile,BufRead *.sp,*.spice setf spice +endif + +if !has_key(g:polyglot_is_disabled, 'slice') + au BufNewFile,BufRead *.ice setf slice +endif + +if !has_key(g:polyglot_is_disabled, 'spup') + au BufNewFile,BufRead *.spd,*.spdata,*.speedup setf spup +endif + +if !has_key(g:polyglot_is_disabled, 'hog') + au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog +endif + +if !has_key(g:polyglot_is_disabled, 'mib') + au BufNewFile,BufRead *.mib,*.my setf mib +endif + +if !has_key(g:polyglot_is_disabled, 'snobol4') + au BufNewFile,BufRead *.sno,*.spt setf snobol4 +endif + +if !has_key(g:polyglot_is_disabled, 'smith') + au BufNewFile,BufRead *.smith,*.smt setf smith +endif + +if !has_key(g:polyglot_is_disabled, 'st') + au BufNewFile,BufRead *.st setf st +endif + +if !has_key(g:polyglot_is_disabled, 'slrnsc') + au BufNewFile,BufRead *.score setf slrnsc +endif + +if !has_key(g:polyglot_is_disabled, 'slrnrc') + au BufNewFile,BufRead {.,}slrnrc setf slrnrc +endif + +if !has_key(g:polyglot_is_disabled, 'skill') + au BufNewFile,BufRead *.cdf,*.il,*.ils setf skill +endif + +if !has_key(g:polyglot_is_disabled, 'sisu') + au BufNewFile,BufRead *.-sst,*.-sst.meta,*._sst,*._sst.meta,*.ssi,*.ssm,*.sst,*.sst.meta setf sisu +endif + +if !has_key(g:polyglot_is_disabled, 'sinda') + au BufNewFile,BufRead *.s85,*.sin setf sinda +endif + +if !has_key(g:polyglot_is_disabled, 'simula') + au BufNewFile,BufRead *.sim setf simula +endif + +if !has_key(g:polyglot_is_disabled, 'screen') + au BufNewFile,BufRead {.,}screenrc,screenrc setf screen +endif + +if !has_key(g:polyglot_is_disabled, 'scheme') + au BufNewFile,BufRead *.rkt,*.scm,*.ss setf scheme +endif + +if !has_key(g:polyglot_is_disabled, 'catalog') + au BufNewFile,BufRead catalog setf catalog + au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog') +endif + +if !has_key(g:polyglot_is_disabled, 'setserial') + au BufNewFile,BufRead */etc/serial.conf setf setserial +endif + +if !has_key(g:polyglot_is_disabled, 'slpspi') + au BufNewFile,BufRead */etc/slp.spi setf slpspi +endif + +if !has_key(g:polyglot_is_disabled, 'spyce') + au BufNewFile,BufRead *.spi,*.spy setf spyce +endif + +if !has_key(g:polyglot_is_disabled, 'slpreg') + au BufNewFile,BufRead */etc/slp.reg setf slpreg +endif + +if !has_key(g:polyglot_is_disabled, 'slpconf') + au BufNewFile,BufRead */etc/slp.conf setf slpconf +endif + +if !has_key(g:polyglot_is_disabled, 'services') + au BufNewFile,BufRead */etc/services setf services +endif + +if !has_key(g:polyglot_is_disabled, 'sm') + au BufNewFile,BufRead sendmail.cf setf sm +endif + +if !has_key(g:polyglot_is_disabled, 'sieve') + au BufNewFile,BufRead *.sieve,*.siv setf sieve +endif + +if !has_key(g:polyglot_is_disabled, 'sdl') + au BufNewFile,BufRead *.pr,*.sdl setf sdl +endif + +if !has_key(g:polyglot_is_disabled, 'sd') + au BufNewFile,BufRead *.sd setf sd +endif + +if !has_key(g:polyglot_is_disabled, 'scilab') + au BufNewFile,BufRead *.sce,*.sci setf scilab +endif + +if !has_key(g:polyglot_is_disabled, 'sbt') + au BufNewFile,BufRead *.sbt setf sbt +endif + +if !has_key(g:polyglot_is_disabled, 'sather') + au BufNewFile,BufRead *.sa setf sather +endif + +if !has_key(g:polyglot_is_disabled, 'sass') + au BufNewFile,BufRead *.sass setf sass +endif + +if !has_key(g:polyglot_is_disabled, 'sas') + au BufNewFile,BufRead *.sas setf sas +endif + +if !has_key(g:polyglot_is_disabled, 'samba') + au BufNewFile,BufRead smb.conf setf samba +endif + +if !has_key(g:polyglot_is_disabled, 'slang') + au BufNewFile,BufRead *.sl setf slang +endif + +if !has_key(g:polyglot_is_disabled, 'rtf') + au BufNewFile,BufRead *.rtf setf rtf +endif + +if !has_key(g:polyglot_is_disabled, 'rpcgen') + au BufNewFile,BufRead *.x setf rpcgen +endif + +if !has_key(g:polyglot_is_disabled, 'robots') + au BufNewFile,BufRead robots.txt setf robots +endif + +if !has_key(g:polyglot_is_disabled, 'rpl') + au BufNewFile,BufRead *.rpl setf rpl +endif + +if !has_key(g:polyglot_is_disabled, 'rng') + au BufNewFile,BufRead *.rng setf rng +endif + +if !has_key(g:polyglot_is_disabled, 'rnc') + au BufNewFile,BufRead *.rnc setf rnc +endif + +if !has_key(g:polyglot_is_disabled, 'resolv') + au BufNewFile,BufRead resolv.conf setf resolv +endif + +if !has_key(g:polyglot_is_disabled, 'remind') + au BufNewFile,BufRead *.rem,*.remind,{.,}reminders setf remind + au BufNewFile,BufRead .reminders* call s:StarSetf('remind') +endif + +if !has_key(g:polyglot_is_disabled, 'rrst') + au BufNewFile,BufRead *.rrst,*.srst setf rrst +endif + +if !has_key(g:polyglot_is_disabled, 'rmd') + au BufNewFile,BufRead *.rmd,*.smd setf rmd +endif + +if !has_key(g:polyglot_is_disabled, 'rnoweb') + au BufNewFile,BufRead *.rnw,*.snw setf rnoweb +endif + +if !has_key(g:polyglot_is_disabled, 'rexx') + au BufNewFile,BufRead *.jrexx,*.orx,*.rex,*.rexx,*.rexxj,*.rxj,*.rxo,*.testGroup,*.testUnit setf rexx +endif + +if !has_key(g:polyglot_is_disabled, 'rego') + au BufNewFile,BufRead *.rego setf rego +endif + +if !has_key(g:polyglot_is_disabled, 'rib') + au BufNewFile,BufRead *.rib setf rib +endif + +if !has_key(g:polyglot_is_disabled, 'readline') + au BufNewFile,BufRead {.,}inputrc,inputrc setf readline +endif + +if !has_key(g:polyglot_is_disabled, 'rcs') + au BufNewFile,BufRead *\,v setf rcs +endif + +if !has_key(g:polyglot_is_disabled, 'ratpoison') + au BufNewFile,BufRead {.,}ratpoisonrc,ratpoisonrc setf ratpoison +endif + +if !has_key(g:polyglot_is_disabled, 'radiance') + au BufNewFile,BufRead *.mat,*.rad setf radiance +endif + +if !has_key(g:polyglot_is_disabled, 'pyrex') + au BufNewFile,BufRead *.pxd,*.pyx setf pyrex +endif + +if !has_key(g:polyglot_is_disabled, 'protocols') + au BufNewFile,BufRead */etc/protocols setf protocols +endif + +if !has_key(g:polyglot_is_disabled, 'promela') + au BufNewFile,BufRead *.pml setf promela +endif + +if !has_key(g:polyglot_is_disabled, 'psf') + au BufNewFile,BufRead *.psf setf psf +endif + +if !has_key(g:polyglot_is_disabled, 'procmail') + au BufNewFile,BufRead {.,}procmail,{.,}procmailrc setf procmail +endif + +if !has_key(g:polyglot_is_disabled, 'privoxy') + au BufNewFile,BufRead *.action setf privoxy +endif + +if !has_key(g:polyglot_is_disabled, 'proc') + au BufNewFile,BufRead *.pc setf proc +endif + +if !has_key(g:polyglot_is_disabled, 'obj') + au BufNewFile,BufRead *.obj setf obj +endif + +if !has_key(g:polyglot_is_disabled, 'ppwiz') + au BufNewFile,BufRead *.ih,*.it setf ppwiz +endif + +if !has_key(g:polyglot_is_disabled, 'pccts') + au BufNewFile,BufRead *.g setf pccts +endif + +if !has_key(g:polyglot_is_disabled, 'povini') + au BufNewFile,BufRead {.,}povrayrc setf povini +endif + +if !has_key(g:polyglot_is_disabled, 'pov') + au BufNewFile,BufRead *.pov setf pov +endif + +if !has_key(g:polyglot_is_disabled, 'ppd') + au BufNewFile,BufRead *.ppd setf ppd +endif + +if !has_key(g:polyglot_is_disabled, 'postscr') + au BufNewFile,BufRead *.afm,*.ai,*.eps,*.epsf,*.epsi,*.pfa,*.ps setf postscr +endif + +if !has_key(g:polyglot_is_disabled, 'pfmain') + au BufNewFile,BufRead main.cf setf pfmain +endif + +if !has_key(g:polyglot_is_disabled, 'po') + au BufNewFile,BufRead *.po,*.pot setf po +endif + +if !has_key(g:polyglot_is_disabled, 'plp') + au BufNewFile,BufRead *.plp setf plp +endif + +if !has_key(g:polyglot_is_disabled, 'plsql') + au BufNewFile,BufRead *.pls,*.plsql setf plsql +endif + +if !has_key(g:polyglot_is_disabled, 'plm') + au BufNewFile,BufRead *.p36,*.pac,*.plm setf plm +endif + +if !has_key(g:polyglot_is_disabled, 'pli') + au BufNewFile,BufRead *.pl1,*.pli setf pli +endif + +if !has_key(g:polyglot_is_disabled, 'pine') + au BufNewFile,BufRead {.,}pinerc,{.,}pinercex,pinerc,pinercex setf pine +endif + +if !has_key(g:polyglot_is_disabled, 'pilrc') + au BufNewFile,BufRead *.rcp setf pilrc +endif + +if !has_key(g:polyglot_is_disabled, 'pinfo') + au BufNewFile,BufRead */.pinforc,*/etc/pinforc setf pinfo +endif + +if !has_key(g:polyglot_is_disabled, 'cmod') + au BufNewFile,BufRead *.cmod setf cmod +endif + +if !has_key(g:polyglot_is_disabled, 'pike') + au BufNewFile,BufRead *.pike,*.pmod setf pike +endif + +if !has_key(g:polyglot_is_disabled, 'pcmk') + au BufNewFile,BufRead *.pcmk setf pcmk +endif + +if !has_key(g:polyglot_is_disabled, 'pdf') + au BufNewFile,BufRead *.pdf setf pdf +endif + +if !has_key(g:polyglot_is_disabled, 'pascal') + au BufNewFile,BufRead *.dpr,*.lpr,*.pas,*.pp setf pascal +endif + +if !has_key(g:polyglot_is_disabled, 'passwd') + au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd +endif + +if !has_key(g:polyglot_is_disabled, 'papp') + au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp +endif + +if !has_key(g:polyglot_is_disabled, 'pamenv') + au BufNewFile,BufRead {.,}pam_environment,pam_env.conf setf pamenv +endif + +if !has_key(g:polyglot_is_disabled, 'pamconf') + au BufNewFile,BufRead */etc/pam.conf setf pamconf + au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf') +endif + +if !has_key(g:polyglot_is_disabled, 'pf') + au BufNewFile,BufRead pf.conf setf pf +endif + +if !has_key(g:polyglot_is_disabled, 'ora') + au BufNewFile,BufRead *.ora setf ora +endif + +if !has_key(g:polyglot_is_disabled, 'opl') + au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl +endif + +if !has_key(g:polyglot_is_disabled, 'openroad') + au BufNewFile,BufRead *.or setf openroad +endif + +if !has_key(g:polyglot_is_disabled, 'omnimark') + au BufNewFile,BufRead *.xin,*.xom setf omnimark +endif + +if !has_key(g:polyglot_is_disabled, 'occam') + au BufNewFile,BufRead *.occ setf occam +endif + +if !has_key(g:polyglot_is_disabled, 'nsis') + au BufNewFile,BufRead *.nsh,*.nsi setf nsis +endif + +if !has_key(g:polyglot_is_disabled, 'nqc') + au BufNewFile,BufRead *.nqc setf nqc +endif + +if !has_key(g:polyglot_is_disabled, 'nroff') + au BufNewFile,BufRead *.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc setf nroff + au BufNewFile,BufRead *.mom,*.nr,*.roff,*.tmac,*.tr setf nroff + au BufNewFile,BufRead tmac.* call s:StarSetf('nroff') +endif + +if !has_key(g:polyglot_is_disabled, 'ncf') + au BufNewFile,BufRead *.ncf setf ncf +endif + +if !has_key(g:polyglot_is_disabled, 'ninja') + au BufNewFile,BufRead *.ninja setf ninja +endif + +if !has_key(g:polyglot_is_disabled, 'netrc') + au BufNewFile,BufRead {.,}netrc setf netrc +endif + +if !has_key(g:polyglot_is_disabled, 'neomuttrc') + au BufNewFile,BufRead Neomuttrc setf neomuttrc + au BufNewFile,BufRead neomuttrc* call s:StarSetf('neomuttrc') + au BufNewFile,BufRead Neomuttrc* call s:StarSetf('neomuttrc') + au BufNewFile,BufRead .neomuttrc* call s:StarSetf('neomuttrc') + au BufNewFile,BufRead */.neomutt/neomuttrc* call s:StarSetf('neomuttrc') +endif + +if !has_key(g:polyglot_is_disabled, 'natural') + au BufNewFile,BufRead *.NS[ACGLMNPS] setf natural +endif + +if !has_key(g:polyglot_is_disabled, 'nanorc') + au BufNewFile,BufRead *.nanorc,*/etc/nanorc setf nanorc +endif + +if !has_key(g:polyglot_is_disabled, 'n1ql') + au BufNewFile,BufRead *.n1ql,*.nql setf n1ql +endif + +if !has_key(g:polyglot_is_disabled, 'mush') + au BufNewFile,BufRead *.mush setf mush +endif + +if !has_key(g:polyglot_is_disabled, 'mupad') + au BufNewFile,BufRead *.mu setf mupad +endif + +if !has_key(g:polyglot_is_disabled, 'muttrc') + au BufNewFile,BufRead Mutt{ng,}rc setf muttrc + au BufNewFile,BufRead mutt{ng,}rc* call s:StarSetf('muttrc') + au BufNewFile,BufRead Mutt{ng,}rc* call s:StarSetf('muttrc') + au BufNewFile,BufRead .mutt{ng,}rc* call s:StarSetf('muttrc') + au BufNewFile,BufRead */etc/Muttrc.d/* call s:StarSetf('muttrc') + au BufNewFile,BufRead */.mutt{ng,}/mutt{ng,}rc* call s:StarSetf('muttrc') +endif + +if !has_key(g:polyglot_is_disabled, 'msql') + au BufNewFile,BufRead *.msql setf msql +endif + +if !has_key(g:polyglot_is_disabled, 'mrxvtrc') + au BufNewFile,BufRead {.,}mrxvtrc,mrxvtrc setf mrxvtrc +endif + +if !has_key(g:polyglot_is_disabled, 'srec') + au BufNewFile,BufRead *.mot,*.s19,*.s28,*.s37,*.srec setf srec +endif + +if !has_key(g:polyglot_is_disabled, 'mplayerconf') + au BufNewFile,BufRead */.mplayer/config,mplayer.conf setf mplayerconf +endif + +if !has_key(g:polyglot_is_disabled, 'modconf') + au BufNewFile,BufRead */etc/conf.modules,*/etc/modules,*/etc/modules.conf setf modconf + au BufNewFile,BufRead */etc/modprobe.* call s:StarSetf('modconf') +endif + +if !has_key(g:polyglot_is_disabled, 'moo') + au BufNewFile,BufRead *.moo setf moo +endif + +if !has_key(g:polyglot_is_disabled, 'monk') + au BufNewFile,BufRead *.isc,*.monk,*.ssc,*.tsc setf monk +endif + +if !has_key(g:polyglot_is_disabled, 'modula3') + au BufNewFile,BufRead *.[mi][3g] setf modula3 +endif + +if !has_key(g:polyglot_is_disabled, 'modula2') + au BufNewFile,BufRead *.DEF,*.MOD,*.m2,*.mi setf modula2 +endif + +if !has_key(g:polyglot_is_disabled, 'mmp') + au BufNewFile,BufRead *.mmp setf mmp +endif + +if !has_key(g:polyglot_is_disabled, 'mix') + au BufNewFile,BufRead *.mix,*.mixal setf mix +endif + +if !has_key(g:polyglot_is_disabled, 'mgl') + au BufNewFile,BufRead *.mgl setf mgl +endif + +if !has_key(g:polyglot_is_disabled, 'mp') + au BufNewFile,BufRead *.mp setf mp +endif + +if !has_key(g:polyglot_is_disabled, 'mf') + au BufNewFile,BufRead *.mf setf mf +endif + +if !has_key(g:polyglot_is_disabled, 'messages') + au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*} setf messages +endif + +if !has_key(g:polyglot_is_disabled, 'hgcommit') + au BufNewFile,BufRead hg-editor-*.txt setf hgcommit +endif + +if !has_key(g:polyglot_is_disabled, 'mel') + au BufNewFile,BufRead *.mel setf mel +endif + +if !has_key(g:polyglot_is_disabled, 'map') + au BufNewFile,BufRead *.map setf map +endif + +if !has_key(g:polyglot_is_disabled, 'maple') + au BufNewFile,BufRead *.mpl,*.mv,*.mws setf maple +endif + +if !has_key(g:polyglot_is_disabled, 'manconf') + au BufNewFile,BufRead */etc/man.conf,man.config setf manconf +endif + +if !has_key(g:polyglot_is_disabled, 'mallard') + au BufNewFile,BufRead *.page setf mallard +endif + +if !has_key(g:polyglot_is_disabled, 'ist') + au BufNewFile,BufRead *.ist,*.mst setf ist +endif + +if !has_key(g:polyglot_is_disabled, 'mailcap') + au BufNewFile,BufRead {.,}mailcap,mailcap setf mailcap +endif + +if !has_key(g:polyglot_is_disabled, 'mailaliases') + au BufNewFile,BufRead */etc/aliases,*/etc/mail/aliases setf mailaliases +endif + +if !has_key(g:polyglot_is_disabled, 'mail') + au BufNewFile,BufRead *.eml,{.,}article,{.,}article.\d\+,{.,}followup,{.,}letter,{.,}letter.\d\+,/tmp/SLRN[0-9A-Z.]\+,ae\d\+.txt,mutt[[:alnum:]_-]\\\{6\},mutt{ng,}-*-\w\+,neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\},pico.\d\+,snd.\d\+,{neo,}mutt[[:alnum:]._-]\\\{6\} setf mail + au BufNewFile,BufRead reportbug-* call s:StarSetf('mail') +endif + +if !has_key(g:polyglot_is_disabled, 'mgp') + au BufNewFile,BufRead *.mgp setf mgp +endif + +if !has_key(g:polyglot_is_disabled, 'lss') + au BufNewFile,BufRead *.lss setf lss +endif + +if !has_key(g:polyglot_is_disabled, 'lsl') + au BufNewFile,BufRead *.lsl setf lsl +endif + +if !has_key(g:polyglot_is_disabled, 'lout') + au BufNewFile,BufRead *.lou,*.lout setf lout +endif + +if !has_key(g:polyglot_is_disabled, 'lotos') + au BufNewFile,BufRead *.lot,*.lotos setf lotos +endif + +if !has_key(g:polyglot_is_disabled, 'logtalk') + au BufNewFile,BufRead *.lgt setf logtalk +endif + +if !has_key(g:polyglot_is_disabled, 'logindefs') + au BufNewFile,BufRead */etc/login.defs setf logindefs +endif + +if !has_key(g:polyglot_is_disabled, 'loginaccess') + au BufNewFile,BufRead */etc/login.access setf loginaccess +endif + +if !has_key(g:polyglot_is_disabled, 'litestep') + au BufNewFile,BufRead */LiteStep/*/*.rc setf litestep +endif + +if !has_key(g:polyglot_is_disabled, 'lite') + au BufNewFile,BufRead *.lite,*.lt setf lite +endif + +if !has_key(g:polyglot_is_disabled, 'liquid') + au BufNewFile,BufRead *.liquid setf liquid +endif + +if !has_key(g:polyglot_is_disabled, 'lisp') + au BufNewFile,BufRead *.cl,*.el,*.lisp,*.lsp,{.,}emacs,{.,}sawfishrc,{.,}sbclrc,sbclrc setf lisp +endif + +if !has_key(g:polyglot_is_disabled, 'lilo') + au BufNewFile,BufRead lilo.conf setf lilo + au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo') +endif + +if !has_key(g:polyglot_is_disabled, 'lifelines') + au BufNewFile,BufRead *.ll setf lifelines +endif + +if !has_key(g:polyglot_is_disabled, 'lftp') + au BufNewFile,BufRead *lftp/rc,{.,}lftprc,lftp.conf setf lftp +endif + +if !has_key(g:polyglot_is_disabled, 'sensors') + au BufNewFile,BufRead */etc/sensors.conf,*/etc/sensors3.conf setf sensors +endif + +if !has_key(g:polyglot_is_disabled, 'libao') + au BufNewFile,BufRead */.libao,*/etc/libao.conf setf libao +endif + +if !has_key(g:polyglot_is_disabled, 'lex') + au BufNewFile,BufRead *.l,*.l++,*.lex,*.lxx setf lex +endif + +if !has_key(g:polyglot_is_disabled, 'ld') + au BufNewFile,BufRead *.ld setf ld +endif + +if !has_key(g:polyglot_is_disabled, 'ldif') + au BufNewFile,BufRead *.ldif setf ldif +endif + +if !has_key(g:polyglot_is_disabled, 'lprolog') + au BufNewFile,BufRead *.sig setf lprolog +endif + +if !has_key(g:polyglot_is_disabled, 'limits') + au BufNewFile,BufRead */etc/*limits.conf,*/etc/*limits.d/*.conf,*/etc/limits setf limits +endif + +if !has_key(g:polyglot_is_disabled, 'latte') + au BufNewFile,BufRead *.latte,*.lte setf latte +endif + +if !has_key(g:polyglot_is_disabled, 'lace') + au BufNewFile,BufRead *.ACE,*.ace setf lace +endif + +if !has_key(g:polyglot_is_disabled, 'kconfig') + au BufNewFile,BufRead Kconfig,Kconfig.debug setf kconfig + au BufNewFile,BufRead Kconfig.* call s:StarSetf('kconfig') +endif + +if !has_key(g:polyglot_is_disabled, 'kscript') + au BufNewFile,BufRead *.ks setf kscript +endif + +if !has_key(g:polyglot_is_disabled, 'kivy') + au BufNewFile,BufRead *.kv setf kivy +endif + +if !has_key(g:polyglot_is_disabled, 'kwt') + au BufNewFile,BufRead *.k setf kwt +endif + +if !has_key(g:polyglot_is_disabled, 'kix') + au BufNewFile,BufRead *.kix setf kix +endif + +if !has_key(g:polyglot_is_disabled, 'jovial') + au BufNewFile,BufRead *.j73,*.jov,*.jovial setf jovial +endif + +if !has_key(g:polyglot_is_disabled, 'jgraph') + au BufNewFile,BufRead *.jgr setf jgraph +endif + +if !has_key(g:polyglot_is_disabled, 'jess') + au BufNewFile,BufRead *.clp setf jess +endif + +if !has_key(g:polyglot_is_disabled, 'jproperties') + au BufNewFile,BufRead *.properties,*.properties_??,*.properties_??_?? setf jproperties + au BufNewFile,BufRead *.properties_??_??_* call s:StarSetf('jproperties') +endif + +if !has_key(g:polyglot_is_disabled, 'jsp') + au BufNewFile,BufRead *.jsp setf jsp +endif + +if !has_key(g:polyglot_is_disabled, 'javacc') + au BufNewFile,BufRead *.jj,*.jjt setf javacc +endif + +if !has_key(g:polyglot_is_disabled, 'java') + au BufNewFile,BufRead *.jav,*.java setf java +endif + +if !has_key(g:polyglot_is_disabled, 'jam') + au BufNewFile,BufRead *.jpl,*.jpr setf jam + au BufNewFile,BufRead Prl*.* call s:StarSetf('jam') + au BufNewFile,BufRead JAM*.* call s:StarSetf('jam') +endif + +if !has_key(g:polyglot_is_disabled, 'jal') + au BufNewFile,BufRead *.JAL,*.jal setf jal +endif + +if !has_key(g:polyglot_is_disabled, 'j') + au BufNewFile,BufRead *.ijs setf j +endif + +if !has_key(g:polyglot_is_disabled, 'iss') + au BufNewFile,BufRead *.iss setf iss +endif + +if !has_key(g:polyglot_is_disabled, 'inittab') + au BufNewFile,BufRead inittab setf inittab +endif + +if !has_key(g:polyglot_is_disabled, 'fgl') + au BufNewFile,BufRead *.4gh,*.4gl,*.m4gl setf fgl +endif + +if !has_key(g:polyglot_is_disabled, 'ipfilter') + au BufNewFile,BufRead ipf.conf,ipf.rules,ipf6.conf setf ipfilter +endif + +if !has_key(g:polyglot_is_disabled, 'usw2kagtlog') + au BufNewFile,BufRead *.usw2kagt.log\c,usw2kagt.*.log\c,usw2kagt.log\c setf usw2kagtlog +endif + +if !has_key(g:polyglot_is_disabled, 'usserverlog') + au BufNewFile,BufRead *.usserver.log\c,usserver.*.log\c,usserver.log\c setf usserverlog +endif + +if !has_key(g:polyglot_is_disabled, 'upstreaminstalllog') + au BufNewFile,BufRead *.upstreaminstall.log\c,upstreaminstall.*.log\c,upstreaminstall.log\c setf upstreaminstalllog +endif + +if !has_key(g:polyglot_is_disabled, 'upstreamlog') + au BufNewFile,BufRead *.upstream.log\c,UPSTREAM-*.log\c,fdrupstream.log,upstream.*.log\c,upstream.log\c setf upstreamlog +endif + +if !has_key(g:polyglot_is_disabled, 'upstreamdat') + au BufNewFile,BufRead *.upstream.dat\c,upstream.*.dat\c,upstream.dat\c setf upstreamdat +endif + +if !has_key(g:polyglot_is_disabled, 'initng') + au BufNewFile,BufRead *.ii,*/etc/initng/*/*.i setf initng +endif + +if !has_key(g:polyglot_is_disabled, 'inform') + au BufNewFile,BufRead *.INF,*.inf setf inform +endif + +if !has_key(g:polyglot_is_disabled, 'indent') + au BufNewFile,BufRead {.,}indent.pro,indentrc setf indent +endif + +if !has_key(g:polyglot_is_disabled, 'icemenu') + au BufNewFile,BufRead */.icewm/menu setf icemenu +endif + +if !has_key(g:polyglot_is_disabled, 'msidl') + au BufNewFile,BufRead *.mof,*.odl setf msidl +endif + +if !has_key(g:polyglot_is_disabled, 'icon') + au BufNewFile,BufRead *.icn setf icon +endif + +if !has_key(g:polyglot_is_disabled, 'httest') + au BufNewFile,BufRead *.htb,*.htt setf httest +endif + +if !has_key(g:polyglot_is_disabled, 'hb') + au BufNewFile,BufRead *.hb setf hb +endif + +if !has_key(g:polyglot_is_disabled, 'hostsaccess') + au BufNewFile,BufRead */etc/hosts.allow,*/etc/hosts.deny setf hostsaccess +endif + +if !has_key(g:polyglot_is_disabled, 'hostconf') + au BufNewFile,BufRead */etc/host.conf setf hostconf +endif + +if !has_key(g:polyglot_is_disabled, 'template') + au BufNewFile,BufRead *.tmpl setf template +endif + +if !has_key(g:polyglot_is_disabled, 'htmlm4') + au BufNewFile,BufRead *.html.m4 setf htmlm4 +endif + +if !has_key(g:polyglot_is_disabled, 'tilde') + au BufNewFile,BufRead *.t.html setf tilde +endif + +if !has_key(g:polyglot_is_disabled, 'html') + au BufNewFile,BufRead,BufWritePost *.html call polyglot#detect#Html() + au BufNewFile,BufRead *.htm,*.html.hl,*.inc,*.st,*.xht,*.xhtml setf html +endif + +if !has_key(g:polyglot_is_disabled, 'hollywood') + au BufNewFile,BufRead *.hws setf hollywood +endif + +if !has_key(g:polyglot_is_disabled, 'hex') + au BufNewFile,BufRead *.h32,*.hex setf hex +endif + +if !has_key(g:polyglot_is_disabled, 'hercules') + au BufNewFile,BufRead *.errsum,*.ev,*.sum,*.vc setf hercules +endif + +if !has_key(g:polyglot_is_disabled, 'hastepreproc') + au BufNewFile,BufRead *.htpp setf hastepreproc +endif + +if !has_key(g:polyglot_is_disabled, 'haste') + au BufNewFile,BufRead *.ht setf haste +endif + +if !has_key(g:polyglot_is_disabled, 'chaskell') + au BufNewFile,BufRead *.chs setf chaskell +endif + +if !has_key(g:polyglot_is_disabled, 'lhaskell') + au BufNewFile,BufRead *.lhs setf lhaskell +endif + +if !has_key(g:polyglot_is_disabled, 'gtkrc') + au BufNewFile,BufRead {.,}gtkrc,gtkrc setf gtkrc + au BufNewFile,BufRead gtkrc* call s:StarSetf('gtkrc') + au BufNewFile,BufRead .gtkrc* call s:StarSetf('gtkrc') +endif + +if !has_key(g:polyglot_is_disabled, 'group') + au BufNewFile,BufRead */etc/group,*/etc/group-,*/etc/group.edit,*/etc/gshadow,*/etc/gshadow-,*/etc/gshadow.edit,*/var/backups/group.bak,*/var/backups/gshadow.bak setf group +endif + +if !has_key(g:polyglot_is_disabled, 'gsp') + au BufNewFile,BufRead *.gsp setf gsp +endif + +if !has_key(g:polyglot_is_disabled, 'gretl') + au BufNewFile,BufRead *.gretl setf gretl +endif + +if !has_key(g:polyglot_is_disabled, 'grads') + au BufNewFile,BufRead *.gs setf grads +endif + +if !has_key(g:polyglot_is_disabled, 'gitolite') + au BufNewFile,BufRead gitolite.conf setf gitolite + au BufNewFile,BufRead */gitolite-admin/conf/* call s:StarSetf('gitolite') +endif + +if !has_key(g:polyglot_is_disabled, 'gnash') + au BufNewFile,BufRead {.,}gnashpluginrc,{.,}gnashrc,gnashpluginrc,gnashrc setf gnash +endif + +if !has_key(g:polyglot_is_disabled, 'gpg') + au BufNewFile,BufRead */.gnupg/gpg.conf,*/.gnupg/options,*/usr/*/gnupg/options.skel setf gpg +endif + +if !has_key(g:polyglot_is_disabled, 'gp') + au BufNewFile,BufRead *.gp,{.,}gprc setf gp +endif + +if !has_key(g:polyglot_is_disabled, 'gkrellmrc') + au BufNewFile,BufRead gkrellmrc,gkrellmrc_? setf gkrellmrc +endif + +if !has_key(g:polyglot_is_disabled, 'gedcom') + au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom + au BufNewFile,BufRead */tmp/lltmp* call s:StarSetf('gedcom') +endif + +if !has_key(g:polyglot_is_disabled, 'gdmo') + au BufNewFile,BufRead *.gdmo,*.mo setf gdmo +endif + +if !has_key(g:polyglot_is_disabled, 'gdb') + au BufNewFile,BufRead {.,}gdbinit setf gdb +endif + +if !has_key(g:polyglot_is_disabled, 'fstab') + au BufNewFile,BufRead fstab,mtab setf fstab +endif + +if !has_key(g:polyglot_is_disabled, 'framescript') + au BufNewFile,BufRead *.fsl setf framescript +endif + +if !has_key(g:polyglot_is_disabled, 'fortran') + au BufNewFile,BufRead *.f,*.f03,*.f08,*.f77,*.f90,*.f95,*.for,*.fortran,*.fpp,*.ftn setf fortran +endif + +if !has_key(g:polyglot_is_disabled, 'reva') + au BufNewFile,BufRead *.frt setf reva +endif + +if !has_key(g:polyglot_is_disabled, 'focexec') + au BufNewFile,BufRead *.fex,*.focexec setf focexec +endif + +if !has_key(g:polyglot_is_disabled, 'fetchmail') + au BufNewFile,BufRead {.,}fetchmailrc setf fetchmail +endif + +if !has_key(g:polyglot_is_disabled, 'factor') + au BufNewFile,BufRead *.factor setf factor +endif + +if !has_key(g:polyglot_is_disabled, 'fan') + au BufNewFile,BufRead *.fan,*.fwt setf fan +endif + +if !has_key(g:polyglot_is_disabled, 'falcon') + au BufNewFile,BufRead *.fal setf falcon +endif + +if !has_key(g:polyglot_is_disabled, 'exports') + au BufNewFile,BufRead exports setf exports +endif + +if !has_key(g:polyglot_is_disabled, 'expect') + au BufNewFile,BufRead *.exp setf expect +endif + +if !has_key(g:polyglot_is_disabled, 'exim') + au BufNewFile,BufRead exim.conf setf exim +endif + +if !has_key(g:polyglot_is_disabled, 'csc') + au BufNewFile,BufRead *.csc setf csc +endif + +if !has_key(g:polyglot_is_disabled, 'esterel') + au BufNewFile,BufRead *.strl setf esterel +endif + +if !has_key(g:polyglot_is_disabled, 'esqlc') + au BufNewFile,BufRead *.EC,*.ec setf esqlc +endif + +if !has_key(g:polyglot_is_disabled, 'esmtprc') + au BufNewFile,BufRead *esmtprc setf esmtprc +endif + +if !has_key(g:polyglot_is_disabled, 'elmfilt') + au BufNewFile,BufRead filter-rules setf elmfilt +endif + +if !has_key(g:polyglot_is_disabled, 'elinks') + au BufNewFile,BufRead elinks.conf setf elinks +endif + +if !has_key(g:polyglot_is_disabled, 'ecd') + au BufNewFile,BufRead *.ecd setf ecd +endif + +if !has_key(g:polyglot_is_disabled, 'edif') + au BufNewFile,BufRead *.ed\(f\|if\|o\) setf edif +endif + +if !has_key(g:polyglot_is_disabled, 'dts') + au BufNewFile,BufRead *.dts,*.dtsi setf dts +endif + +if !has_key(g:polyglot_is_disabled, 'dtd') + au BufNewFile,BufRead *.dtd setf dtd +endif + +if !has_key(g:polyglot_is_disabled, 'dsl') + au BufNewFile,BufRead *.dsl setf dsl +endif + +if !has_key(g:polyglot_is_disabled, 'datascript') + au BufNewFile,BufRead *.ds setf datascript +endif + +if !has_key(g:polyglot_is_disabled, 'dracula') + au BufNewFile,BufRead *.drac,*.drc,*lpe,*lvs setf dracula + au BufNewFile,BufRead drac.* call s:StarSetf('dracula') +endif + +if !has_key(g:polyglot_is_disabled, 'def') + au BufNewFile,BufRead *.def setf def +endif + +if !has_key(g:polyglot_is_disabled, 'dylan') + au BufNewFile,BufRead *.dylan setf dylan +endif + +if !has_key(g:polyglot_is_disabled, 'dylanintr') + au BufNewFile,BufRead *.intr setf dylanintr +endif + +if !has_key(g:polyglot_is_disabled, 'dylanlid') + au BufNewFile,BufRead *.lid setf dylanlid +endif + +if !has_key(g:polyglot_is_disabled, 'dot') + au BufNewFile,BufRead *.dot,*.gv setf dot +endif + +if !has_key(g:polyglot_is_disabled, 'dircolors') + au BufNewFile,BufRead */etc/DIR_COLORS,{.,}dir_colors,{.,}dircolors setf dircolors +endif + +if !has_key(g:polyglot_is_disabled, 'diff') + au BufNewFile,BufRead *.diff,*.rej setf diff +endif + +if !has_key(g:polyglot_is_disabled, 'dictdconf') + au BufNewFile,BufRead dictd.conf setf dictdconf +endif + +if !has_key(g:polyglot_is_disabled, 'dictconf') + au BufNewFile,BufRead {.,}dictrc,dict.conf setf dictconf +endif + +if !has_key(g:polyglot_is_disabled, 'desktop') + au BufNewFile,BufRead *.desktop,*.directory setf desktop +endif + +if !has_key(g:polyglot_is_disabled, 'desc') + au BufNewFile,BufRead *.desc setf desc +endif + +if !has_key(g:polyglot_is_disabled, 'dnsmasq') + au BufNewFile,BufRead */etc/dnsmasq.conf setf dnsmasq + au BufNewFile,BufRead */etc/dnsmasq.d/* call s:StarSetf('dnsmasq') +endif + +if !has_key(g:polyglot_is_disabled, 'denyhosts') + au BufNewFile,BufRead denyhosts.conf setf denyhosts +endif + +if !has_key(g:polyglot_is_disabled, 'debsources') + au BufNewFile,BufRead */etc/apt/sources.list,*/etc/apt/sources.list.d/*.list setf debsources +endif + +if !has_key(g:polyglot_is_disabled, 'debcopyright') + au BufNewFile,BufRead */debian/copyright setf debcopyright +endif + +if !has_key(g:polyglot_is_disabled, 'debcontrol') + au BufNewFile,BufRead */debian/control setf debcontrol +endif + +if !has_key(g:polyglot_is_disabled, 'cuplsim') + au BufNewFile,BufRead *.si setf cuplsim +endif + +if !has_key(g:polyglot_is_disabled, 'cupl') + au BufNewFile,BufRead *.pld setf cupl +endif + +if !has_key(g:polyglot_is_disabled, 'csp') + au BufNewFile,BufRead *.csp,*.fdr setf csp +endif + +if !has_key(g:polyglot_is_disabled, 'quake') + au BufNewFile,BufRead *baseq[2-3]/*.cfg,*id1/*.cfg,*quake[1-3]/*.cfg setf quake +endif + +if !has_key(g:polyglot_is_disabled, 'lynx') + au BufNewFile,BufRead lynx.cfg setf lynx +endif + +if !has_key(g:polyglot_is_disabled, 'eterm') + au BufNewFile,BufRead *Eterm/*.cfg setf eterm +endif + +if !has_key(g:polyglot_is_disabled, 'dcd') + au BufNewFile,BufRead *.dcd setf dcd +endif + +if !has_key(g:polyglot_is_disabled, 'dockerfile') + au BufNewFile,BufRead *.Dockerfile,*.dock,Containerfile,Dockerfile,dockerfile setf dockerfile + au BufNewFile,BufRead Dockerfile* call s:StarSetf('dockerfile') +endif + +if !has_key(g:polyglot_is_disabled, 'cuda') + au BufNewFile,BufRead *.cu,*.cuh setf cuda +endif + +if !has_key(g:polyglot_is_disabled, 'config') + au BufNewFile,BufRead Pipfile,configure.ac,configure.in setf config + au BufNewFile,BufRead /etc/hostname.* call s:StarSetf('config') +endif + +if !has_key(g:polyglot_is_disabled, 'cf') + au BufNewFile,BufRead *.cfc,*.cfi,*.cfm setf cf +endif + +if !has_key(g:polyglot_is_disabled, 'coco') + au BufNewFile,BufRead *.atg setf coco +endif + +if !has_key(g:polyglot_is_disabled, 'cobol') + au BufNewFile,BufRead *.cbl,*.cob,*.lib setf cobol +endif + +if !has_key(g:polyglot_is_disabled, 'cmusrc') + au BufNewFile,BufRead */.cmus/{autosave,rc,command-history,*.theme},*/cmus/{rc,*.theme} setf cmusrc +endif + +if !has_key(g:polyglot_is_disabled, 'cl') + au BufNewFile,BufRead *.eni setf cl +endif + +if !has_key(g:polyglot_is_disabled, 'clean') + au BufNewFile,BufRead *.dcl,*.icl setf clean +endif + +if !has_key(g:polyglot_is_disabled, 'chordpro') + au BufNewFile,BufRead *.cho,*.chopro,*.chordpro,*.crd,*.crdpro setf chordpro +endif + +if !has_key(g:polyglot_is_disabled, 'chill') + au BufNewFile,BufRead *..ch setf chill +endif + +if !has_key(g:polyglot_is_disabled, 'debchangelog') + au BufNewFile,BufRead */debian/changelog,NEWS.Debian,NEWS.dch,changelog.Debian,changelog.dch setf debchangelog +endif + +if !has_key(g:polyglot_is_disabled, 'cterm') + au BufNewFile,BufRead *.con setf cterm +endif + +if !has_key(g:polyglot_is_disabled, 'css') + au BufNewFile,BufRead *.css setf css +endif + +if !has_key(g:polyglot_is_disabled, 'ch') + au BufNewFile,BufRead *.chf setf ch +endif + +if !has_key(g:polyglot_is_disabled, 'cynpp') + au BufNewFile,BufRead *.cyn setf cynpp +endif + +if !has_key(g:polyglot_is_disabled, 'crm') + au BufNewFile,BufRead *.crm setf crm +endif + +if !has_key(g:polyglot_is_disabled, 'conaryrecipe') + au BufNewFile,BufRead *.recipe setf conaryrecipe +endif + +if !has_key(g:polyglot_is_disabled, 'cdl') + au BufNewFile,BufRead *.cdl setf cdl +endif + +if !has_key(g:polyglot_is_disabled, 'chaiscript') + au BufNewFile,BufRead *.chai setf chaiscript +endif + +if !has_key(g:polyglot_is_disabled, 'cfengine') + au BufNewFile,BufRead cfengine.conf setf cfengine +endif + +if !has_key(g:polyglot_is_disabled, 'cdrdaoconf') + au BufNewFile,BufRead */etc/cdrdao.conf,*/etc/default/cdrdao,*/etc/defaults/cdrdao,{.,}cdrdao setf cdrdaoconf +endif + +if !has_key(g:polyglot_is_disabled, 'cdrtoc') + au BufNewFile,BufRead *.toc setf cdrtoc +endif + +if !has_key(g:polyglot_is_disabled, 'cabal') + au BufNewFile,BufRead *.cabal setf cabal +endif + +if !has_key(g:polyglot_is_disabled, 'csdl') + au BufNewFile,BufRead *.csdl setf csdl +endif + +if !has_key(g:polyglot_is_disabled, 'cs') + au BufNewFile,BufRead *.cs setf cs +endif + +if !has_key(g:polyglot_is_disabled, 'calendar') + au BufNewFile,BufRead calendar setf calendar + au BufNewFile,BufRead */share/calendar/calendar.* call s:StarSetf('calendar') + au BufNewFile,BufRead */share/calendar/*/calendar.* call s:StarSetf('calendar') + au BufNewFile,BufRead */.calendar/* call s:StarSetf('calendar') +endif + +if !has_key(g:polyglot_is_disabled, 'lpc') + au BufNewFile,BufRead *.lpc,*.ulpc setf lpc +endif + +if !has_key(g:polyglot_is_disabled, 'bsdl') + au BufNewFile,BufRead *.bsdl,*bsd setf bsdl +endif + +if !has_key(g:polyglot_is_disabled, 'blank') + au BufNewFile,BufRead *.bl setf blank +endif + +if !has_key(g:polyglot_is_disabled, 'bindzone') + au BufNewFile,BufRead named.root setf bindzone + au BufNewFile,BufRead */named/db.* call s:StarSetf('bindzone') + au BufNewFile,BufRead */bind/db.* call s:StarSetf('bindzone') +endif + +if !has_key(g:polyglot_is_disabled, 'named') + au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named +endif + +if !has_key(g:polyglot_is_disabled, 'bst') + au BufNewFile,BufRead *.bst setf bst +endif + +if !has_key(g:polyglot_is_disabled, 'bib') + au BufNewFile,BufRead *.bib setf bib +endif + +if !has_key(g:polyglot_is_disabled, 'bdf') + au BufNewFile,BufRead *.bdf setf bdf +endif + +if !has_key(g:polyglot_is_disabled, 'bc') + au BufNewFile,BufRead *.bc setf bc +endif + +if !has_key(g:polyglot_is_disabled, 'dosbatch') + au BufNewFile,BufRead *.bat,*.sys setf dosbatch +endif + +if !has_key(g:polyglot_is_disabled, 'hamster') + au BufNewFile,BufRead *.hsc,*.hsm setf hamster +endif + +if !has_key(g:polyglot_is_disabled, 'freebasic') + au BufNewFile,BufRead *.bi,*.fb setf freebasic +endif + +if !has_key(g:polyglot_is_disabled, 'ibasic') + au BufNewFile,BufRead *.iba,*.ibi setf ibasic +endif + +if !has_key(g:polyglot_is_disabled, 'b') + au BufNewFile,BufRead *.imp,*.mch,*.ref setf b +endif + +if !has_key(g:polyglot_is_disabled, 'sql') + au BufNewFile,BufRead *.bdy,*.ddl,*.fnc,*.pck,*.pkb,*.pks,*.plb,*.pls,*.plsql,*.prc,*.spc,*.sql,*.tpb,*.tps,*.trg,*.tyb,*.tyc,*.typ,*.vw setf sql +endif + +if !has_key(g:polyglot_is_disabled, 'gitignore') + au BufNewFile,BufRead *.git/info/exclude,*/.config/git/ignore,{.,}gitignore setf gitignore +endif + +if !has_key(g:polyglot_is_disabled, 'tads') + au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() +endif + +if !has_key(g:polyglot_is_disabled, 'prolog') + au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() + au BufNewFile,BufRead *.pdb,*.pro,*.prolog,*.yap setf prolog +endif + +if !has_key(g:polyglot_is_disabled, 'bzl') + au BufNewFile,BufRead *.BUILD,*.bazel,*.bzl,BUCK,BUILD,BUILD.bazel,Tiltfile,WORKSPACE setf bzl +endif + +if !has_key(g:polyglot_is_disabled, 'odin') + au BufNewFile,BufRead *.odin setf odin +endif + +if !has_key(g:polyglot_is_disabled, 'dosini') + au BufNewFile,BufRead *.dof,*.ini,*.lektorproject,*.prefs,*.pro,*.properties,*/etc/pacman.conf,*/etc/yum.conf,{.,}editorconfig,{.,}npmrc,buildozer.spec setf dosini + au BufNewFile,BufRead php.ini-* call s:StarSetf('dosini') + au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini') +endif + +if !has_key(g:polyglot_is_disabled, 'spec') + au BufNewFile,BufRead *.spec setf spec +endif + +if !has_key(g:polyglot_is_disabled, 'visual-basic') + au BufNewFile,BufRead,BufWritePost *.bas call polyglot#detect#Bas() + au BufNewFile,BufRead *.cls,*.ctl,*.dsm,*.frm,*.frx,*.sba,*.vba,*.vbs setf vb +endif + +if !has_key(g:polyglot_is_disabled, 'basic') + au BufNewFile,BufRead *.basic setf basic +endif + +if !has_key(g:polyglot_is_disabled, 'trasys') + au BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp() +endif + +if !has_key(g:polyglot_is_disabled, 'zig') + au BufNewFile,BufRead *.zir setf zir + au BufNewFile,BufRead *.zig,*.zir setf zig +endif + +if !has_key(g:polyglot_is_disabled, 'zephir') + au BufNewFile,BufRead *.zep setf zephir +endif + +if !has_key(g:polyglot_is_disabled, 'help') + au BufNewFile,BufRead $VIMRUNTIME/doc/*.txt setf help +endif + +if !has_key(g:polyglot_is_disabled, 'helm') + au BufNewFile,BufRead */templates/*.tpl,*/templates/*.yaml setf helm +endif + +if !has_key(g:polyglot_is_disabled, 'smarty') + au BufNewFile,BufRead *.tpl setf smarty +endif + +if !has_key(g:polyglot_is_disabled, 'ansible') + au BufNewFile,BufRead handlers.*.y{a,}ml,local.y{a,}ml,main.y{a,}ml,playbook.y{a,}ml,requirements.y{a,}ml,roles.*.y{a,}ml,site.y{a,}ml,tasks.*.y{a,}ml setf yaml.ansible + au BufNewFile,BufRead host_vars/* call s:StarSetf('yaml.ansible') + au BufNewFile,BufRead group_vars/* call s:StarSetf('yaml.ansible') +endif + +if !has_key(g:polyglot_is_disabled, 'xsl') + au BufNewFile,BufRead *.xsl,*.xslt setf xsl +endif + +if !has_key(g:polyglot_is_disabled, 'xdc') + au BufNewFile,BufRead *.xdc setf xdc +endif + +if !has_key(g:polyglot_is_disabled, 'vue') + au BufNewFile,BufRead *.vue,*.wpy setf vue +endif + +if !has_key(g:polyglot_is_disabled, 'vmasm') + au BufNewFile,BufRead *.mar setf vmasm +endif + +if !has_key(g:polyglot_is_disabled, 'velocity') + au BufNewFile,BufRead *.vm setf velocity +endif + +if !has_key(g:polyglot_is_disabled, 'vcl') + au BufNewFile,BufRead *.vcl setf vcl +endif + +if !has_key(g:polyglot_is_disabled, 'vbnet') + au BufNewFile,BufRead *.vb,*.vbhtml setf vbnet +endif + +if !has_key(g:polyglot_is_disabled, 'vala') + au BufNewFile,BufRead *.vala,*.valadoc,*.vapi setf vala +endif + +if !has_key(g:polyglot_is_disabled, 'v') + au BufNewFile,BufRead *.v,*.vsh,*.vv setf vlang +endif + +if !has_key(g:polyglot_is_disabled, 'unison') + au BufNewFile,BufRead *.u,*.uu setf unison +endif + +if !has_key(g:polyglot_is_disabled, 'typescript') + au BufNewFile,BufRead *.ts setf typescript + au BufNewFile,BufRead *.tsx setf typescriptreact +endif + +if !has_key(g:polyglot_is_disabled, 'twig') + au BufNewFile,BufRead *.twig setf html.twig + au BufNewFile,BufRead *.xml.twig setf xml.twig +endif + +if !has_key(g:polyglot_is_disabled, 'tutor') + au BufNewFile,BufRead *.tutor setf tutor +endif + +if !has_key(g:polyglot_is_disabled, 'tptp') + au BufNewFile,BufRead *.ax,*.p,*.tptp setf tptp +endif + +if !has_key(g:polyglot_is_disabled, 'toml') + au BufNewFile,BufRead *.toml,*/.cargo/config,*/.cargo/credentials,Cargo.lock,Gopkg.lock,Pipfile,poetry.lock setf toml +endif + +if !has_key(g:polyglot_is_disabled, 'tmux') + au BufNewFile,BufRead {.,}tmux*.conf setf tmux +endif + +if !has_key(g:polyglot_is_disabled, 'thrift') + au BufNewFile,BufRead *.thrift setf thrift +endif + +if !has_key(g:polyglot_is_disabled, 'textile') + au BufNewFile,BufRead *.textile setf textile +endif + +if !has_key(g:polyglot_is_disabled, 'terraform') + au BufNewFile,BufRead *.tf,*.tfvars setf terraform +endif + +if !has_key(g:polyglot_is_disabled, 'tf') + au BufNewFile,BufRead *.tf,{.,}tfrc,tfrc setf tf +endif + +if !has_key(g:polyglot_is_disabled, 'systemd') + au BufNewFile,BufRead *.automount,*.dnssd,*.link,*.mount,*.netdev,*.network,*.nspawn,*.path,*.service,*.slice,*.socket,*.swap,*.target,*.timer,*/systemd/*.conf setf systemd + au BufNewFile,BufRead *.#* call s:StarSetf('systemd') +endif + +if !has_key(g:polyglot_is_disabled, 'sxhkd') + au BufNewFile,BufRead *.sxhkdrc,sxhkdrc setf sxhkdrc +endif + +if !has_key(g:polyglot_is_disabled, 'swift') + au BufNewFile,BufRead *.swift setf swift +endif + +if !has_key(g:polyglot_is_disabled, 'svg') + au BufNewFile,BufRead *.svg setf svg +endif + +if !has_key(g:polyglot_is_disabled, 'svelte') + au BufNewFile,BufRead *.svelte setf svelte +endif + +if !has_key(g:polyglot_is_disabled, 'stylus') + au BufNewFile,BufRead *.styl,*.stylus setf stylus +endif + +if !has_key(g:polyglot_is_disabled, 'solidity') + au BufNewFile,BufRead *.sol setf solidity +endif + +if !has_key(g:polyglot_is_disabled, 'smt2') + au BufNewFile,BufRead *.smt,*.smt2 setf smt2 +endif + +if !has_key(g:polyglot_is_disabled, 'slime') + au BufNewFile,BufRead *.slime setf slime +endif + +if !has_key(g:polyglot_is_disabled, 'slim') + au BufNewFile,BufRead *.slim setf slim +endif + +if !has_key(g:polyglot_is_disabled, 'sh') + au BufNewFile,BufRead *.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh,*.sh.in,*.tmux,*.tool,*/etc/udev/cdsymlinks.conf,{.,}bash_aliases,{.,}bash_history,{.,}bash_logout,{.,}bash_profile,{.,}bashrc,{.,}cshrc,{.,}env,{.,}env.example,{.,}flaskenv,{.,}login,{.,}profile,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile setf sh + au BufNewFile,BufRead *.zsh,*/etc/zprofile,{.,}zfbfmarks,{.,}zlogin,{.,}zlogout,{.,}zprofile,{.,}zshenv,{.,}zshrc setf zsh + au BufNewFile,BufRead .zsh* call s:StarSetf('zsh') + au BufNewFile,BufRead .zlog* call s:StarSetf('zsh') + au BufNewFile,BufRead .zcompdump* call s:StarSetf('zsh') +endif + +if !has_key(g:polyglot_is_disabled, 'scss') + au BufNewFile,BufRead *.scss setf scss +endif + +if !has_key(g:polyglot_is_disabled, 'scala') + au BufNewFile,BufRead *.kojo,*.sc,*.scala setf scala +endif + +if !has_key(g:polyglot_is_disabled, 'rust') + au BufNewFile,BufRead *.rs,*.rs.in setf rust +endif + +if !has_key(g:polyglot_is_disabled, 'brewfile') + au BufNewFile,BufRead Brewfile setf brewfile +endif + +if !has_key(g:polyglot_is_disabled, 'rspec') + au BufNewFile,BufRead *_spec.rb set ft=ruby syntax=rspec +endif + +if !has_key(g:polyglot_is_disabled, 'ruby') + au BufNewFile,BufRead *.axlsx,*.builder,*.cap,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.opal,*.pluginspec,*.podspec,*.rabl,*.rake,*.rant,*.rb,*.rbi,*.rbuild,*.rbw,*.rbx,*.rjs,*.ru,*.ruby,*.rxml,*.spec,*.thor,*.watchr,{.,}Brewfile,{.,}Guardfile,{.,}autotest,{.,}irbrc,{.,}pryrc,{.,}simplecov,Appraisals,Berksfile,Buildfile,Capfile,Cheffile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,KitchenSink,Mavenfile,Podfile,Puppetfile,Rakefile,Routefile,Snapfile,Thorfile,Vagrantfile,[Rr]antfile,buildfile,vagrantfile setf ruby + au BufNewFile,BufRead [Rr]akefile* call s:StarSetf('ruby') + au BufNewFile,BufRead *.erb,*.erb.deface,*.rhtml setf eruby +endif + +if !has_key(g:polyglot_is_disabled, 'rst') + au BufNewFile,BufRead *.rest,*.rest.txt,*.rst,*.rst.txt setf rst +endif + +if !has_key(g:polyglot_is_disabled, 'reason') + au BufNewFile,BufRead,BufWritePost *.re call polyglot#detect#Re() + au BufNewFile,BufRead *.rei setf reason +endif + +if !has_key(g:polyglot_is_disabled, 'razor') + au BufNewFile,BufRead *.cshtml,*.razor setf razor +endif + +if !has_key(g:polyglot_is_disabled, 'raml') + au BufNewFile,BufRead *.raml setf raml +endif + +if !has_key(g:polyglot_is_disabled, 'raku') + au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() + au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() + au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() + au BufNewFile,BufRead *.6pl,*.6pm,*.nqp,*.p6,*.p6l,*.p6m,*.pl6,*.pm6,*.pod6,*.raku,*.rakudoc,*.rakumod,*.rakutest,*.t6 setf raku +endif + +if !has_key(g:polyglot_is_disabled, 'ragel') + au BufNewFile,BufRead *.rl setf ragel +endif + +if !has_key(g:polyglot_is_disabled, 'racket') + au BufNewFile,BufRead *.rkt,*.rktd,*.rktl,*.scrbl setf racket +endif + +if !has_key(g:polyglot_is_disabled, 'r-lang') + au BufNewFile,BufRead *.S,*.r,*.rsx,*.s,{.,}Rprofile,expr-dist setf r + au BufNewFile,BufRead *.rd setf rhelp +endif + +if !has_key(g:polyglot_is_disabled, 'qml') + au BufNewFile,BufRead *.qbs,*.qml setf qml +endif + +if !has_key(g:polyglot_is_disabled, 'qmake') + au BufNewFile,BufRead *.pri,*.pro setf qmake +endif + +if !has_key(g:polyglot_is_disabled, 'requirements') + au BufNewFile,BufRead *.pip,*require.{txt,in},*requirements.{txt,in},constraints.{txt,in} setf requirements +endif + +if !has_key(g:polyglot_is_disabled, 'python') + au BufNewFile,BufRead *.cgi,*.fcgi,*.gyp,*.gypi,*.lmi,*.ptl,*.py,*.py3,*.pyde,*.pyi,*.pyp,*.pyt,*.pyw,*.rpy,*.smk,*.spec,*.tac,*.wsgi,*.xpy,{.,}gclient,{.,}pythonrc,{.,}pythonstartup,DEPS,SConscript,SConstruct,Snakefile,wscript setf python +endif + +if !has_key(g:polyglot_is_disabled, 'purescript') + au BufNewFile,BufRead *.purs setf purescript +endif + +if !has_key(g:polyglot_is_disabled, 'puppet') + au BufNewFile,BufRead *.pp,Modulefile setf puppet + au BufNewFile,BufRead *.epp setf embeddedpuppet +endif + +if !has_key(g:polyglot_is_disabled, 'pug') + au BufNewFile,BufRead *.jade,*.pug setf pug +endif + +if !has_key(g:polyglot_is_disabled, 'protobuf') + au BufNewFile,BufRead *.proto setf proto +endif + +if !has_key(g:polyglot_is_disabled, 'powershell') + au BufNewFile,BufRead *.ps1,*.psd1,*.psm1,*.pssc setf ps1 + au BufNewFile,BufRead *.ps1xml setf ps1xml +endif + +if !has_key(g:polyglot_is_disabled, 'pony') + au BufNewFile,BufRead *.pony setf pony +endif + +if !has_key(g:polyglot_is_disabled, 'plantuml') + au BufNewFile,BufRead *.iuml,*.plantuml,*.pu,*.puml,*.uml setf plantuml +endif + +if !has_key(g:polyglot_is_disabled, 'pest') + au BufNewFile,BufRead *.pest setf pest +endif + +if !has_key(g:polyglot_is_disabled, 'blade') + au BufNewFile,BufRead *.blade,*.blade.php setf blade +endif + +if !has_key(g:polyglot_is_disabled, 'php') + au BufNewFile,BufRead *.aw,*.ctp,*.fcgi,*.inc,*.php,*.php3,*.php4,*.php5,*.php9,*.phps,*.phpt,*.phtml,{.,}php,{.,}php_cs,{.,}php_cs.dist,Phakefile setf php +endif + +if !has_key(g:polyglot_is_disabled, 'cql') + au BufNewFile,BufRead *.cql setf cql +endif + +if !has_key(g:polyglot_is_disabled, 'pgsql') + au BufNewFile,BufRead *.pgsql let b:sql_type_override='pgsql' | set ft=sql +endif + +if !has_key(g:polyglot_is_disabled, 'perl') + au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() + au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() + au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() + au BufNewFile,BufRead *.al,*.cgi,*.fcgi,*.perl,*.ph,*.plx,*.psgi,{.,}gitolite.rc,Makefile.PL,Rexfile,ack,cpanfile,example.gitolite.rc setf perl + au BufNewFile,BufRead *.pod setf pod + au BufNewFile,BufRead *.comp,*.mason,*.mhtml setf mason + au BufNewFile,BufRead,BufWritePost *.tt2 call polyglot#detect#Tt2() + au BufNewFile,BufRead,BufWritePost *.tt2 call polyglot#detect#Tt2() + au BufNewFile,BufRead *.xs setf xs +endif + +if !has_key(g:polyglot_is_disabled, 'rc') + au BufNewFile,BufRead *.rc,*.rch setf rc +endif + +if !has_key(g:polyglot_is_disabled, 'opencl') + au BufNewFile,BufRead *.cl,*.opencl setf opencl +endif + +if !has_key(g:polyglot_is_disabled, 'octave') + au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() + au BufNewFile,BufRead *.oct setf octave +endif + +if !has_key(g:polyglot_is_disabled, 'ocaml') + au BufNewFile,BufRead *.eliom,*.eliomi,*.ml,*.ml.cppo,*.ml4,*.mli,*.mli.cppo,*.mlip,*.mll,*.mlp,*.mlt,*.mly,{.,}ocamlinit setf ocaml + au BufNewFile,BufRead *.om,OMakefile,OMakeroot,OMakeroot.in setf omake + au BufNewFile,BufRead *.opam,*.opam.template,opam setf opam + au BufNewFile,BufRead _oasis setf oasis + au BufNewFile,BufRead dune,dune-project,dune-workspace,jbuild setf dune + au BufNewFile,BufRead _tags setf ocamlbuild_tags + au BufNewFile,BufRead *.ocp setf ocpbuild + au BufNewFile,BufRead *.root setf ocpbuildroot + au BufNewFile,BufRead *.sexp setf sexplib +endif + +if !has_key(g:polyglot_is_disabled, 'objc') + au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() + au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() +endif + +if !has_key(g:polyglot_is_disabled, 'nix') + au BufNewFile,BufRead *.nix setf nix +endif + +if !has_key(g:polyglot_is_disabled, 'nim') + au BufNewFile,BufRead *.nim,*.nim.cfg,*.nimble,*.nimrod,*.nims,nim.cfg setf nim +endif + +if !has_key(g:polyglot_is_disabled, 'nginx') + au BufNewFile,BufRead *.nginx,*.nginxconf,*.vhost,*/nginx/*.conf,*nginx.conf,nginx*.conf,nginx.conf setf nginx + au BufNewFile,BufRead */usr/local/nginx/conf/* call s:StarSetf('nginx') + au BufNewFile,BufRead */etc/nginx/* call s:StarSetf('nginx') +endif + +if !has_key(g:polyglot_is_disabled, 'murphi') + au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() +endif + +if !has_key(g:polyglot_is_disabled, 'moonscript') + au BufNewFile,BufRead *.moon setf moon +endif + +if !has_key(g:polyglot_is_disabled, 'meson') + au BufNewFile,BufRead meson.build,meson_options.txt setf meson + au BufNewFile,BufRead *.wrap setf dosini +endif + +if !has_key(g:polyglot_is_disabled, 'mdx') + au BufNewFile,BufRead *.mdx setf markdown.mdx +endif + +if !has_key(g:polyglot_is_disabled, 'mathematica') + au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() + au BufNewFile,BufRead *.cdf,*.ma,*.mathematica,*.mma,*.mt,*.nb,*.nbp,*.wl,*.wls,*.wlt setf mma +endif + +if !has_key(g:polyglot_is_disabled, 'mako') + au BufNewFile,BufRead *.mako,*.mao setf mako + au BufReadPre *.*.mao execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype + au BufNewFile *.*.mao execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype + au BufReadPre *.*.mako execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype + au BufNewFile *.*.mako execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype +endif + +if !has_key(g:polyglot_is_disabled, 'm4') + au BufNewFile,BufRead *.at,*.m4 setf m4 +endif + +if !has_key(g:polyglot_is_disabled, 'lua') + au BufNewFile,BufRead *.fcgi,*.lua,*.nse,*.p8,*.pd_lua,*.rbxs,*.rockspec,*.wlua,{.,}luacheckrc setf lua +endif + +if !has_key(g:polyglot_is_disabled, 'log') + au BufNewFile,BufRead *.LOG,*.log,*_LOG,*_log setf log +endif + +if !has_key(g:polyglot_is_disabled, 'llvm') + au BufNewFile,BufRead *.ll setf llvm + au BufNewFile,BufRead *.td setf tablegen +endif + +if !has_key(g:polyglot_is_disabled, 'livescript') + au BufNewFile,BufRead *._ls,*.ls,Slakefile setf livescript +endif + +if !has_key(g:polyglot_is_disabled, 'lilypond') + au BufNewFile,BufRead *.ily,*.ly setf lilypond +endif + +if !has_key(g:polyglot_is_disabled, 'less') + au BufNewFile,BufRead *.less setf less +endif + +if !has_key(g:polyglot_is_disabled, 'ledger') + au BufNewFile,BufRead *.journal,*.ldg,*.ledger setf ledger +endif + +if !has_key(g:polyglot_is_disabled, 'kotlin') + au BufNewFile,BufRead *.kt,*.ktm,*.kts setf kotlin +endif + +if !has_key(g:polyglot_is_disabled, 'julia') + au BufNewFile,BufRead *.jl setf julia +endif + +if !has_key(g:polyglot_is_disabled, 'jst') + au BufNewFile,BufRead *.ect,*.ejs,*.jst setf jst +endif + +if !has_key(g:polyglot_is_disabled, 'jsonnet') + au BufNewFile,BufRead *.jsonnet,*.libsonnet setf jsonnet +endif + +if !has_key(g:polyglot_is_disabled, 'json') + au BufNewFile,BufRead *.JSON-tmLanguage,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.json,*.jsonl,*.jsonp,*.mcmeta,*.template,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,{.,}arcconfig,{.,}htmlhintrc,{.,}tern-config,{.,}tern-project,{.,}watchmanconfig,Pipfile.lock,composer.lock,mcmod.info setf json +endif + +if !has_key(g:polyglot_is_disabled, 'json5') + au BufNewFile,BufRead *.json5 setf json5 +endif + +if !has_key(g:polyglot_is_disabled, 'jq') + au BufNewFile,BufRead *.jq,{.,}jqrc setf jq + au BufNewFile,BufRead .jqrc* call s:StarSetf('jq') +endif + +if !has_key(g:polyglot_is_disabled, 'htmldjango') + au BufNewFile,BufRead *.j2,*.jinja,*.jinja2,*.njk setf htmldjango +endif + +if !has_key(g:polyglot_is_disabled, 'jenkins') + au BufNewFile,BufRead *.Jenkinsfile,*.jenkinsfile,Jenkinsfile setf Jenkinsfile + au BufNewFile,BufRead Jenkinsfile* call s:StarSetf('Jenkinsfile') +endif + +if !has_key(g:polyglot_is_disabled, 'ion') + au BufNewFile,BufRead *.ion,~/.config/ion/initrc setf ion +endif + +if !has_key(g:polyglot_is_disabled, 'idris2') + au BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr() + au BufNewFile,BufRead *.ipkg,idris-response setf idris2 + au BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr() +endif + +if !has_key(g:polyglot_is_disabled, 'idris') + au BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr() + au BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr() + au BufNewFile,BufRead idris-response setf idris +endif + +if !has_key(g:polyglot_is_disabled, 'icalendar') + au BufNewFile,BufRead *.ics setf icalendar +endif + +if !has_key(g:polyglot_is_disabled, 'i3') + au BufNewFile,BufRead *.i3.config,*.i3config,{.,}i3.config,{.,}i3config,i3.config,i3config setf i3config +endif + +if !has_key(g:polyglot_is_disabled, 'hive') + au BufNewFile,BufRead *.hql,*.q,*.ql setf hive +endif + +if !has_key(g:polyglot_is_disabled, 'hcl') + au BufNewFile,BufRead *.hcl,*.nomad,*.workflow,Appfile setf hcl +endif + +if !has_key(g:polyglot_is_disabled, 'haxe') + au BufNewFile,BufRead *.hx,*.hxsl setf haxe +endif + +if !has_key(g:polyglot_is_disabled, 'haskell') + au BufNewFile,BufRead *.bpk,*.hs,*.hs-boot,*.hsc,*.hsig setf haskell +endif + +if !has_key(g:polyglot_is_disabled, 'haproxy') + au BufNewFile,BufRead haproxy*.conf* call s:StarSetf('haproxy') + au BufNewFile,BufRead haproxy*.cfg* call s:StarSetf('haproxy') +endif + +if !has_key(g:polyglot_is_disabled, 'handlebars') + au BufNewFile,BufRead *.hjs,*.hogan,*.hulk,*.mustache setf html.mustache + au BufNewFile,BufRead *.handlebars,*.hb,*.hbs,*.hdbs setf html.handlebars +endif + +if !has_key(g:polyglot_is_disabled, 'haml') + au BufNewFile,BufRead *.haml,*.haml.deface,*.hamlbars,*.hamlc setf haml +endif + +if !has_key(g:polyglot_is_disabled, 'grub') + au BufNewFile,BufRead */boot/grub/grub.conf,*/boot/grub/menu.lst,*/etc/grub.conf setf grub +endif + +if !has_key(g:polyglot_is_disabled, 'groovy') + au BufNewFile,BufRead *.gradle,*.groovy,*.grt,*.gtpl,*.gvy,Jenkinsfile setf groovy +endif + +if !has_key(g:polyglot_is_disabled, 'graphql') + au BufNewFile,BufRead *.gql,*.graphql,*.graphqls setf graphql +endif + +if !has_key(g:polyglot_is_disabled, 'jsx') + au BufNewFile,BufRead *.jsx setf javascriptreact +endif + +if !has_key(g:polyglot_is_disabled, 'javascript') + au BufNewFile,BufRead *._js,*.bones,*.cjs,*.es,*.es6,*.frag,*.gs,*.jake,*.javascript,*.js,*.jsb,*.jscad,*.jsfl,*.jsm,*.jss,*.mjs,*.njs,*.pac,*.sjs,*.ssjs,*.xsjs,*.xsjslib,Jakefile setf javascript + au BufNewFile,BufRead *.flow setf flow +endif + +if !has_key(g:polyglot_is_disabled, 'go') + au BufNewFile,BufRead *.go setf go + au BufNewFile,BufRead go.mod setf gomod + au BufNewFile,BufRead *.tmpl setf gohtmltmpl +endif + +if !has_key(g:polyglot_is_disabled, 'gnuplot') + au BufNewFile,BufRead *.gnu,*.gnuplot,*.gp,*.gpi,*.p,*.plot,*.plt setf gnuplot +endif + +if !has_key(g:polyglot_is_disabled, 'gmpl') + au BufNewFile,BufRead *.mod setf gmpl +endif + +if !has_key(g:polyglot_is_disabled, 'glsl') + au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() + au BufNewFile,BufRead *.comp,*.fp,*.frag,*.frg,*.fsh,*.fshader,*.geo,*.geom,*.glsl,*.glslf,*.glslv,*.gs,*.gshader,*.shader,*.tesc,*.tese,*.vert,*.vrx,*.vsh,*.vshader setf glsl +endif + +if !has_key(g:polyglot_is_disabled, 'git') + au BufNewFile,BufRead *.gitconfig,*.git/config,*.git/modules/*/config,*/.config/git/config,*/git/config,{.,}gitconfig,{.,}gitmodules setf gitconfig + au BufNewFile,BufRead */{.,}gitconfig.d/* call s:StarSetf('gitconfig') + au BufNewFile,BufRead git-rebase-todo setf gitrebase + au BufNewFile,BufRead .gitsendemail.* call s:StarSetf('gitsendemail') + au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit +endif + +if !has_key(g:polyglot_is_disabled, 'gdscript') + au BufNewFile,BufRead *.gd setf gdscript3 +endif + +if !has_key(g:polyglot_is_disabled, 'fsharp') + au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() + au BufNewFile,BufRead *.fsi,*.fsx setf fsharp +endif + +if !has_key(g:polyglot_is_disabled, 'forth') + au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() + au BufNewFile,BufRead *.ft,*.fth setf forth +endif + +if !has_key(g:polyglot_is_disabled, 'flatbuffers') + au BufNewFile,BufRead *.fbs setf fbs +endif + +if !has_key(g:polyglot_is_disabled, 'fish') + au BufNewFile,BufRead *.fish setf fish +endif + +if !has_key(g:polyglot_is_disabled, 'ferm') + au BufNewFile,BufRead *.ferm,ferm.conf setf ferm +endif + +if !has_key(g:polyglot_is_disabled, 'fennel') + au BufNewFile,BufRead *.fnl setf fennel +endif + +if !has_key(g:polyglot_is_disabled, 'erlang') + au BufNewFile,BufRead *.app,*.app.src,*.erl,*.es,*.escript,*.hrl,*.xrl,*.yaws,*.yrl,Emakefile,rebar.config,rebar.config.lock,rebar.lock setf erlang +endif + +if !has_key(g:polyglot_is_disabled, 'emblem') + au BufNewFile,BufRead *.em,*.emblem setf emblem +endif + +if !has_key(g:polyglot_is_disabled, 'emberscript') + au BufNewFile,BufRead *.em,*.emberscript setf ember-script +endif + +if !has_key(g:polyglot_is_disabled, 'elm') + au BufNewFile,BufRead *.elm setf elm +endif + +if !has_key(g:polyglot_is_disabled, 'elixir') + au BufNewFile,BufRead *.ex,*.exs,mix.lock setf elixir + au BufNewFile,BufRead *.eex,*.html.leex,*.leex setf eelixir +endif + +if !has_key(g:polyglot_is_disabled, 'docker-compose') + au BufNewFile,BufRead docker-compose*.yaml,docker-compose*.yml setf yaml.docker-compose +endif + +if !has_key(g:polyglot_is_disabled, 'yaml') + au BufNewFile,BufRead *.mir,*.reek,*.rviz,*.sublime-syntax,*.syntax,*.yaml,*.yaml-tmlanguage,*.yaml.sed,*.yml,*.yml.mysql,{.,}clang-format,{.,}clang-tidy,{.,}gemrc,fish_history,fish_read_history,glide.lock,yarn.lock setf yaml +endif + +if !has_key(g:polyglot_is_disabled, 'mysql') + au BufNewFile,BufRead *.mysql setf mysql +endif + +if !has_key(g:polyglot_is_disabled, 'sed') + au BufNewFile,BufRead *.sed setf sed +endif + +if !has_key(g:polyglot_is_disabled, 'dlang') + au BufNewFile,BufRead *.d,*.di setf d + au BufNewFile,BufRead *.lst setf dcov + au BufNewFile,BufRead *.dd setf dd + au BufNewFile,BufRead *.ddoc setf ddoc + au BufNewFile,BufRead *.sdl setf dsdl +endif + +if !has_key(g:polyglot_is_disabled, 'dhall') + au BufNewFile,BufRead *.dhall setf dhall +endif + +if !has_key(g:polyglot_is_disabled, 'dart') + au BufNewFile,BufRead *.dart,*.drt setf dart +endif + +if !has_key(g:polyglot_is_disabled, 'cue') + au BufNewFile,BufRead *.cue setf cuesheet +endif + +if !has_key(g:polyglot_is_disabled, 'cucumber') + au BufNewFile,BufRead *.feature,*.story setf cucumber +endif + +if !has_key(g:polyglot_is_disabled, 'crystal') + au BufNewFile,BufRead *.cr,Projectfile setf crystal + au BufNewFile,BufRead *.ecr setf ecrystal +endif + +if !has_key(g:polyglot_is_disabled, 'cryptol') + au BufNewFile,BufRead *.cry,*.cyl,*.lcry,*.lcyl setf cryptol +endif + +if !has_key(g:polyglot_is_disabled, 'coffee-script') + au BufNewFile,BufRead *._coffee,*.cake,*.cjsx,*.coffee,*.coffeekup,*.cson,*.iced,Cakefile setf coffee + au BufNewFile,BufRead *.coffee.md,*.litcoffee setf litcoffee +endif + +if !has_key(g:polyglot_is_disabled, 'markdown') + au BufNewFile,BufRead *.markdown,*.md,*.mdown,*.mdwn,*.mkd,*.mkdn,*.mkdown,*.ronn,*.workbook,contents.lr setf markdown +endif + +if !has_key(g:polyglot_is_disabled, 'cmake') + au BufNewFile,BufRead *.cmake,*.cmake.in,CMakeLists.txt setf cmake +endif + +if !has_key(g:polyglot_is_disabled, 'clojure') + au BufNewFile,BufRead *.boot,*.cl2,*.clj,*.cljc,*.cljs,*.cljs.hl,*.cljscm,*.cljx,*.edn,*.hic,build.boot,profile.boot,riemann.config setf clojure +endif + +if !has_key(g:polyglot_is_disabled, 'carp') + au BufNewFile,BufRead *.carp setf carp +endif + +if !has_key(g:polyglot_is_disabled, 'caddyfile') + au BufNewFile,BufRead Caddyfile setf caddyfile +endif + +if !has_key(g:polyglot_is_disabled, 'awk') + au BufNewFile,BufRead *.awk,*.gawk setf awk +endif + +if !has_key(g:polyglot_is_disabled, 'ave') + au BufNewFile,BufRead *.ave setf ave +endif + +if !has_key(g:polyglot_is_disabled, 'autoit') + au BufNewFile,BufRead *.au3 setf autoit +endif + +if !has_key(g:polyglot_is_disabled, 'atlas') + au BufNewFile,BufRead *.as,*.atl setf atlas +endif + +if !has_key(g:polyglot_is_disabled, 'aspperl') + au BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp() +endif + +if !has_key(g:polyglot_is_disabled, 'aspvbs') + au BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp() + au BufNewFile,BufRead,BufWritePost *.asa call polyglot#detect#Asa() +endif + +if !has_key(g:polyglot_is_disabled, 'asn') + au BufNewFile,BufRead *.asn,*.asn1 setf asn +endif + +if !has_key(g:polyglot_is_disabled, 'automake') + au BufNewFile,BufRead GNUmakefile.am,[mM]akefile.am setf automake +endif + +if !has_key(g:polyglot_is_disabled, 'elf') + au BufNewFile,BufRead *.am setf elf +endif + +if !has_key(g:polyglot_is_disabled, 'make') + au BufNewFile,BufRead *.dsp,*.mak,*.mk,*[mM]akefile setf make +endif + +if !has_key(g:polyglot_is_disabled, 'autohotkey') + au BufNewFile,BufRead *.ahk,*.ahkl setf autohotkey +endif + +if !has_key(g:polyglot_is_disabled, 'asciidoc') + au BufNewFile,BufRead *.adoc,*.asc,*.asciidoc setf asciidoc +endif + +if !has_key(g:polyglot_is_disabled, 'art') + au BufNewFile,BufRead *.art setf art +endif + +if !has_key(g:polyglot_is_disabled, 'arduino') + au BufNewFile,BufRead *.ino,*.pde setf arduino +endif + +if !has_key(g:polyglot_is_disabled, 'c/c++') + au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() + au BufNewFile,BufRead *.c++,*.cc,*.cp,*.cpp,*.cxx,*.h++,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.moc,*.tcc,*.tlh,*.tpp setf cpp + au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() + au BufNewFile,BufRead *.c,*.cats,*.idc,*.qc,*enlightenment/*.cfg setf c +endif + +if !has_key(g:polyglot_is_disabled, 'arch') + au BufNewFile,BufRead {.,}arch-inventory,=tagging-method setf arch +endif + +if !has_key(g:polyglot_is_disabled, 'aptconf') + au BufNewFile,BufRead */.aptitude/config,*/etc/apt/apt.conf.d/*.conf,apt.conf setf aptconf + au BufNewFile,BufRead */etc/apt/apt.conf.d/[^.]* call s:StarSetf('aptconf') +endif + +if !has_key(g:polyglot_is_disabled, 'applescript') + au BufNewFile,BufRead *.applescript,*.scpt setf applescript +endif + +if !has_key(g:polyglot_is_disabled, 'apiblueprint') + au BufNewFile,BufRead *.apib setf apiblueprint +endif + +if !has_key(g:polyglot_is_disabled, 'apache') + au BufNewFile,BufRead */etc/apache2/sites-*/*.com,*/etc/httpd/*.conf,{.,}htaccess setf apache + au BufNewFile,BufRead srm.conf* call s:StarSetf('apache') + au BufNewFile,BufRead httpd.conf* call s:StarSetf('apache') + au BufNewFile,BufRead apache2.conf* call s:StarSetf('apache') + au BufNewFile,BufRead apache.conf* call s:StarSetf('apache') + au BufNewFile,BufRead access.conf* call s:StarSetf('apache') + au BufNewFile,BufRead */etc/httpd/conf.d/*.conf* call s:StarSetf('apache') + au BufNewFile,BufRead */etc/apache2/sites-*/* call s:StarSetf('apache') + au BufNewFile,BufRead */etc/apache2/mods-*/* call s:StarSetf('apache') + au BufNewFile,BufRead */etc/apache2/conf.*/* call s:StarSetf('apache') + au BufNewFile,BufRead */etc/apache2/*.conf* call s:StarSetf('apache') +endif + +if !has_key(g:polyglot_is_disabled, 'ant') + au BufNewFile,BufRead build.xml setf ant +endif + +if !has_key(g:polyglot_is_disabled, 'xml') + au BufNewFile,BufRead *.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.cdxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.csproj.user,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.psc1,*.pt,*.rdf,*.res,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.tpm,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wpl,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*/etc/blkid.tab,*/etc/blkid.tab.old,*/etc/xdg/menus/*.menu,*fglrxrc,{.,}classpath,{.,}cproject,{.,}project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config setf xml +endif + +if !has_key(g:polyglot_is_disabled, 'csv') + au BufNewFile,BufRead *.csv,*.tab,*.tsv setf csv +endif + +if !has_key(g:polyglot_is_disabled, 'ampl') + " AMPL + au BufNewFile,BufRead *.run setf ampl +endif + +if !has_key(g:polyglot_is_disabled, 'aml') + au BufNewFile,BufRead *.aml setf aml +endif + +if !has_key(g:polyglot_is_disabled, 'alsaconf') + au BufNewFile,BufRead */etc/asound.conf,*/usr/share/alsa/alsa.conf,{.,}asoundrc setf alsaconf +endif + +if !has_key(g:polyglot_is_disabled, 'conf') + au BufNewFile,BufRead *.conf,*/etc/hosts,auto.master,config setf conf +endif + +if !has_key(g:polyglot_is_disabled, 'master') + au BufNewFile,BufRead *.mas,*.master setf master +endif + +if !has_key(g:polyglot_is_disabled, 'aidl') + " AIDL + au BufNewFile,BufRead *.aidl setf aidl +endif + +if !has_key(g:polyglot_is_disabled, 'ahdl') + " AHDL + au BufNewFile,BufRead *.tdf setf ahdl +endif + +if !has_key(g:polyglot_is_disabled, 'ada') + " Ada (83, 9X, 95) + au BufNewFile,BufRead *.ada,*.ada_m,*.adb,*.adc,*.ads,*.gpr setf ada +endif + +if !has_key(g:polyglot_is_disabled, 'acpiasl') + au BufNewFile,BufRead *.asl,*.dsl setf asl +endif + +if !has_key(g:polyglot_is_disabled, 'acedb') + " AceDB + au BufNewFile,BufRead *.wrm setf acedb +endif + +if !has_key(g:polyglot_is_disabled, 'abel') + " ABEL + au BufNewFile,BufRead *.abl setf abel +endif + +if !has_key(g:polyglot_is_disabled, 'abc') + " ABC music notation + au BufNewFile,BufRead *.abc setf abc +endif + +if !has_key(g:polyglot_is_disabled, 'abaqus') + au BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp() +endif + +if !has_key(g:polyglot_is_disabled, 'abap') + " ABAB/4 + au BufNewFile,BufRead *.abap setf abap +endif + +if !has_key(g:polyglot_is_disabled, 'aap') + " A-A-P recipe + au BufNewFile,BufRead *.aap setf aap +endif + +if !has_key(g:polyglot_is_disabled, 'a65') + " XA65 MOS6510 cross assembler + au BufNewFile,BufRead *.a65 setf a65 +endif + +if !has_key(g:polyglot_is_disabled, 'a2ps') + au BufNewFile,BufRead */etc/a2ps.cfg,*/etc/a2ps/*.cfg,{.,}a2psrc,a2psrc setf a2ps +endif + +if !has_key(g:polyglot_is_disabled, 'cfg') + au BufNewFile,BufRead *.cfg,*.hgrc,*hgrc setf cfg +endif + +if !has_key(g:polyglot_is_disabled, '8th') + " 8th (Firth-derivative) + au BufNewFile,BufRead *.8th setf 8th +endif + + +" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE + +func! s:Observe(fn) + let b:PolyglotObserve = function("polyglot#" . a:fn) + augroup polyglot-observer + au! + au CursorHold,CursorHoldI <buffer> call b:PolyglotObserve() + augroup END +endfunc + +au BufNewFile,BufRead,StdinReadPost,BufWritePost * if (&ft == "" || &ft == "conf") && expand("<afile>:e") == "" | + \ call polyglot#shebang#Detect() | endif + +au BufWinEnter * if &ft == "" && expand("<afile>:e") == "" | + \ call s:Observe('shebang#Detect') | endif + +au BufWritePost * au! polyglot-observer + +augroup END + +endif + +if !has_key(g:polyglot_is_disabled, 'sensible') + " Use 2-spaces tab indentation by default + if &tabstop == 8 + let &tabstop = 2 + endif + + " Set shiftwidth to proper value as users often mix it with tabstop + if &shiftwidth > &tabstop + let &shiftwidth = &tabstop + endif + + " Use utf-8 encoding by default + set encoding=utf-8 + + " Reload unchanged files automatically. + set autoread + + " This is needed to avoid swapfile warning when auto-reloading + set shortmess+=A + + " Avoids swapfiles in current directory + if &directory =~# '^\.,' + if !empty($HOME) + if has('win32') + let &directory = expand('$HOME/vimfiles') . '//,' . &directory + else + let &directory = expand('$HOME/.vim') . '//,' . &directory + endif + endif + if !empty($XDG_DATA_HOME) + let &directory = expand('$XDG_DATA_HOME') . '//,' . &directory + endif + if has('macunix') + let &directory = expand('$HOME/Library/Autosave Information') . '//,' . &directory + endif + endif + + " Autoindent when starting new line, or using `o` or `O`. + set autoindent +endif + +if !has_key(g:polyglot_is_disabled, 'autoindent') + " Code below re-implements sleuth for vim-polyglot + let g:loaded_sleuth = 1 + + let s:default_shiftwidth = &shiftwidth + + func! s:get_shiftwidth(indents) abort + let shiftwidth = 0 + let max_count = 0 + let final_counts = {} + for [indent, indent_count] in items(a:indents) + let indent_count = indent_count * 1.5 + for [indent2, indent2_count] in items(a:indents) + if indent2 > indent && indent2 % indent == 0 + let indent_count = indent_count + indent2_count + endif + endfor + let final_counts[indent] = indent_count + endfor + for [indent, final_count] in items(final_counts) + if final_count > max_count + let shiftwidth = indent + let max_count = final_count + endif + endfor + return shiftwidth + endfunc + + func! s:guess(lines) abort + let options = {} + let ccomment = 0 + let podcomment = 0 + let triplequote = 0 + let backtick = 0 + let xmlcomment = 0 + let heredoc = '' + let minindent = 10 + let spaces_minus_tabs = 0 + let lineno = 0 + let stack = [0] + let indents = { '2': 0, '3': 0, '4': 0, '6': 0, '8': 0 } + + for line in a:lines + let lineno += 1 + + if line =~# '^\s*$' + continue + endif + + if line =~# '^\s*/\*' + let ccomment = 1 + endif + if ccomment + if line =~# '\*/' + let ccomment = 0 + endif + continue + endif + + if line =~# '^=\w' + let podcomment = 1 + endif + if podcomment + if line =~# '^=\%(end\|cut\)\>' + let podcomment = 0 + endif + continue + endif + + if triplequote + if line =~# '^[^"]*"""[^"]*$' + let triplequote = 0 + endif + continue + elseif line =~# '^[^"]*"""[^"]*$' + let triplequote = 1 + endif + + if backtick + if line =~# '^[^`]*`[^`]*$' + let backtick = 0 + endif + continue + elseif &filetype ==# 'go' && line =~# '^[^`]*`[^`]*$' + let backtick = 1 + endif + + if line =~# '^\s*<\!--' + let xmlcomment = 1 + endif + if xmlcomment + if line =~# '-->' + let xmlcomment = 0 + endif + continue + endif + + " This is correct order because both "<<EOF" and "EOF" matches end + if heredoc != '' + if line =~# heredoc + let heredoc = '' + endif + continue + endif + let herematch = matchlist(line, '\C<<\W*\([A-Z]\+\)\s*$') + if len(herematch) > 0 + let heredoc = herematch[1] . '$' + endif + + if line[0] == "\t" + let spaces_minus_tabs -= 1 + else + if line[0] == " " + let spaces_minus_tabs += 1 + endif + let indent = len(matchstr(line, '^ *')) + while stack[-1] > indent + call remove(stack, -1) + endwhile + + let indent_inc = indent - stack[-1] + + if indent_inc == 0 && len(stack) > 1 + let indent_inc = indent - stack[-2] + endif + + if has_key(indents, indent_inc) + let indents[indent_inc] += 1 + let prev_indent = indent + endif + + if stack[-1] != indent + call add(stack, indent) + endif + endif + endfor + + if spaces_minus_tabs < 0 + setlocal noexpandtab + let &l:shiftwidth=&tabstop + return 1 + endif + + let shiftwidth = s:get_shiftwidth(indents) + + if shiftwidth > 0 + setlocal expandtab + let &l:shiftwidth=shiftwidth + try + " Sunchronize tabstop with shiftwidth + let &l:softtabstop = -1 + catch /^Vim\%((\a\+)\)\=:E487/ + " -1 was not supported before Vim 7.4 + let &l:softtabstop = a:num_spaces + endtry + return 1 + endif + + return 0 + endfunc + + func! s:detect_indent() abort + if &buftype ==# 'help' + return + endif + + " Do not autodetect indent if language or user sets it + if &l:shiftwidth != s:default_shiftwidth + return + endif + + let b:sleuth_culprit = expand("<afile>:p") + if s:guess(getline(1, 128)) + return + endif + if s:guess(getline(1, 1024)) + return + endif + let pattern = polyglot#sleuth#GlobForFiletype(&filetype) + if len(pattern) == 0 + return + endif + let pattern = '{' . pattern . ',.git,.svn,.hg}' + let dir = expand('%:p:h') + let level = 3 + while isdirectory(dir) && dir !=# fnamemodify(dir, ':h') && level > 0 + " Ignore files from homedir and root + if dir == expand('~') || dir == '/' + unlet b:sleuth_culprit + return + endif + for neighbor in glob(dir . '/' . pattern, 0, 1)[0:level] + let b:sleuth_culprit = neighbor + " Do not consider directories above .git, .svn or .hg + if fnamemodify(neighbor, ":h:t")[0] == "." + let level = 0 + continue + endif + if neighbor !=# expand('%:p') && filereadable(neighbor) + if s:guess(readfile(neighbor, '', 32)) + return + endif + endif + endfor + + let dir = fnamemodify(dir, ':h') + let level -= 1 + endwhile + + let b:sleuth_culprit = "default" + endfunc + + set smarttab + + func! SleuthIndicator() abort + let sw = &shiftwidth ? &shiftwidth : &tabstop + if &expandtab + return 'sw='.sw + elseif &tabstop == sw + return 'ts='.&tabstop + else + return 'sw='.sw.',ts='.&tabstop + endif + endfunc + + augroup polyglot-sleuth + au! + au BufEnter * call s:detect_indent() + au User Flags call Hoist('buffer', 5, 'SleuthIndicator') + augroup END + + command! -bar -bang Sleuth call s:detect_indent() +endif + +augroup filetypedetect + +" Ignored extensions +if exists("*fnameescape") +au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.dpkg-dist,?\+.dpkg-old,?\+.dpkg-new,?\+.dpkg-bak,?\+.rpmsave,?\+.rpmnew,?\+.pacsave,?\+.pacnew + \ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r")) +au BufNewFile,BufRead *~ + \ let s:name = expand("<afile>") | + \ let s:short = substitute(s:name, '\~$', '', '') | + \ if s:name != s:short && s:short != "" | + \ exe "doau filetypedetect BufRead " . fnameescape(s:short) | + \ endif | + \ unlet! s:name s:short +au BufNewFile,BufRead ?\+.in + \ if expand("<afile>:t") != "configure.in" | + \ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r")) | + \ endif +elseif &verbose > 0 + echomsg "Warning: some filetypes will not be recognized because this version of Vim does not have fnameescape()" +endif + +" Pattern used to match file names which should not be inspected. +" Currently finds compressed files. +if !exists("g:ft_ignore_pat") + let g:ft_ignore_pat = '\.\(Z\|gz\|bz2\|zip\|tgz\)$' +endif + +" *.cmd is close to a Batch file, but on OS/2 Rexx files also use *.cmd. +au BufNewFile,BufRead *.cmd + \ if getline(1) =~ '^/\*' | setf rexx | else | setf dosbatch | endif + +" Batch file for 4DOS +au BufNewFile,BufRead *.btm call polyglot#ft#FTbtm() + +" BIND zone +au BufNewFile,BufRead *.db call polyglot#ft#BindzoneCheck('') + +" C or lpc +au BufNewFile,BufRead *.c call polyglot#ft#FTlpc() + +" Cynlib +" .cc and .cpp files can be C++ or Cynlib. +au BufNewFile,BufRead *.cpp if exists("cynlib_syntax_for_cpp")|setf cynlib|else|setf cpp|endif + +au BufNewFile,BufRead *.h call polyglot#ft#FTheader() + +au BufNewFile,BufRead [cC]hange[lL]og + \ if getline(1) =~ '; urgency=' + \| setf debchangelog + \| else + \| setf changelog + \| endif + +au BufNewFile,BufRead NEWS + \ if getline(1) =~ '; urgency=' + \| setf debchangelog + \| endif + +" Changes for WEB and CWEB or CHILL +au BufNewFile,BufRead *.ch call polyglot#ft#FTchange() + +" Clever or dtd +au BufNewFile,BufRead *.ent call polyglot#ft#FTent() + +" Clipper (or FoxPro; could also be eviews) +au BufNewFile,BufRead *.prg + \ if exists("g:filetype_prg") | + \ exe "setf " . g:filetype_prg | + \ else | + \ setf clipper | + \ endif + +au BufNewFile,BufRead *.cpy + \ if getline(1) =~ '^##' | + \ setf python | + \ else | + \ setf cobol | + \ endif + +" Euphoria 3 or 4 +au BufNewFile,BufRead *.eu,*.ew,*.ex,*.exu,*.exw call polyglot#ft#EuphoriaCheck() +if has("fname_case") + au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call polyglot#ft#EuphoriaCheck() +endif + +au BufNewFile,BufRead control + \ if getline(1) =~ '^Source:' + \| setf debcontrol + \| endif + +au BufNewFile,BufRead copyright + \ if getline(1) =~ '^Format:' + \| setf debcopyright + \| endif + +" the D language or dtrace +au BufNewFile,BufRead *.d call polyglot#ft#DtraceCheck() + +au BufNewFile,BufRead *.patch + \ if getline(1) =~ '^From [0-9a-f]\{40\} Mon Sep 17 00:00:00 2001$' | + \ setf gitsendemail | + \ else | + \ setf diff | + \ endif + +" Diva (with Skill) or InstallShield +au BufNewFile,BufRead *.rul + \ if getline(1).getline(2).getline(3).getline(4).getline(5).getline(6) =~? 'InstallShield' | + \ setf ishd | + \ else | + \ setf diva | + \ endif + +" DCL (Digital Command Language - vms) or DNS zone file +au BufNewFile,BufRead *.com call polyglot#ft#BindzoneCheck('dcl') + +au BufNewFile,BufRead *.edn + \ if getline(1) =~ '^\s*(\s*edif\>' | + \ setf edif | + \ else | + \ setf clojure | + \ endif + +" Eiffel or Specman or Euphoria +au BufNewFile,BufRead *.e,*.E call polyglot#ft#FTe() + +if !empty($XDG_CONFIG_HOME) + au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config setf gitconfig +endif + +au BufNewFile,BufRead .msg.[0-9]* + \ if getline(1) =~ '^From.*# This line is ignored.$' | + \ setf gitsendemail | + \ endif +au BufNewFile,BufRead *.git/* + \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | + \ setf git | + \ endif + +if !empty($GNUPGHOME) + au BufNewFile,BufRead $GNUPGHOME/options setf gpg + au BufNewFile,BufRead $GNUPGHOME/gpg.conf setf gpg +endif + +" HTML (.shtml and .stm for server side) +au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call polyglot#ft#FThtml() + +" IDL (Interface Description Language) +au BufNewFile,BufRead *.idl call polyglot#ft#FTidl() + +au BufNewFile,BufRead indent.pro call polyglot#ft#ProtoCheck('indent') + +" IDL (Interactive Data Language) +au BufNewFile,BufRead *.pro call polyglot#ft#ProtoCheck('idlang') + +" M4 +au BufNewFile,BufRead *.m4 + \ if expand("<afile>") !~? 'html.m4$\|fvwm2rc' | setf m4 | endif + +" Mathematica, Matlab, Murphi or Objective C +au BufNewFile,BufRead *.m call polyglot#ft#FTm() + +" MMIX or VMS makefile +au BufNewFile,BufRead *.mms call polyglot#ft#FTmms() + +" Modsim III (or LambdaProlog) +au BufNewFile,BufRead *.mod + \ if getline(1) =~ '\<module\>' | + \ setf lprolog | + \ else | + \ setf modsim3 | + \ endif + +" Mutt setup files (must be before catch *.rc) +au BufNewFile,BufRead */etc/Muttrc.d/* call s:StarSetf('muttrc') + +" Nroff/Troff (*.ms and *.t are checked below) +au BufNewFile,BufRead *.me + \ if expand("<afile>") != "read.me" && expand("<afile>") != "click.me" | + \ setf nroff | + \ endif +au BufNewFile,BufRead *.[1-9] call polyglot#ft#FTnroff() + +" Nroff or Objective C++ +au BufNewFile,BufRead *.mm call polyglot#ft#FTmm() + +" Pacman hooks +au BufNewFile,BufRead *.hook + \ if getline(1) == '[Trigger]' | + \ setf dosini | + \ endif + +" Perl +au BufNewFile,BufRead *.pl call polyglot#ft#FTpl() + +" Perl, XPM or XPM2 +au BufNewFile,BufRead *.pm + \ if getline(1) =~ "XPM2" | + \ setf xpm2 | + \ elseif getline(1) =~ "XPM" | + \ setf xpm | + \ else | + \ setf perl | + \ endif + +" Povray, PHP or assembly +au BufNewFile,BufRead *.inc call polyglot#ft#FTinc() + +" Printcap and Termcap +au BufNewFile,BufRead *printcap + \ let b:ptcap_type = "print" | setf ptcap +au BufNewFile,BufRead *termcap + \ let b:ptcap_type = "term" | setf ptcap + +" Progress or CWEB +au BufNewFile,BufRead *.w call polyglot#ft#FTprogress_cweb() + +" Progress or assembly +au BufNewFile,BufRead *.i call polyglot#ft#FTprogress_asm() + +" Progress or Pascal +au BufNewFile,BufRead *.p call polyglot#ft#FTprogress_pascal() + +" Software Distributor Product Specification File (POSIX 1387.2-1995) +au BufNewFile,BufRead INDEX,INFO + \ if getline(1) =~ '^\s*\(distribution\|installed_software\|root\|bundle\|product\)\s*$' | + \ setf psf | + \ endif + +" Registry for MS-Windows +au BufNewFile,BufRead *.reg + \ if getline(1) =~? '^REGEDIT[0-9]*\s*$\|^Windows Registry Editor Version \d*\.\d*\s*$' | setf registry | endif + +" Rexx, Rebol or R +au BufNewFile,BufRead *.r,*.R call polyglot#ft#FTr() + +" Sendmail .mc files are actually m4. Could also be MS Message text file. +au BufNewFile,BufRead *.mc call polyglot#ft#McSetf() + +" SGML +au BufNewFile,BufRead *.sgm,*.sgml + \ if getline(1).getline(2).getline(3).getline(4).getline(5) =~? 'linuxdoc' | + \ setf sgmllnx | + \ elseif getline(1) =~ '<!DOCTYPE.*DocBook' || getline(2) =~ '<!DOCTYPE.*DocBook' | + \ let b:docbk_type = "sgml" | + \ let b:docbk_ver = 4 | + \ setf docbk | + \ else | + \ setf sgml | + \ endif + +" SGMLDECL +au BufNewFile,BufRead *.decl,*.dcl,*.dec + \ if getline(1).getline(2).getline(3) =~? '^<!SGML' | + \ setf sgmldecl | + \ endif + +" Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc. +" Gentoo ebuilds and Arch Linux PKGBUILDs are actually bash scripts +" NOTE: Patterns ending in a star are further down, these have lower priority. +au BufNewFile,BufRead .bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass,PKGBUILD call polyglot#ft#SetFileTypeSH("bash") +au BufNewFile,BufRead .kshrc,*.ksh call polyglot#ft#SetFileTypeSH("ksh") +au BufNewFile,BufRead */etc/profile,.profile,*.sh,*.env call polyglot#ft#SetFileTypeSH(getline(1)) + + +" Shell script (Arch Linux) or PHP file (Drupal) +au BufNewFile,BufRead *.install + \ if getline(1) =~ '<?php' | + \ setf php | + \ else | + \ call polyglot#ft#SetFileTypeSH("bash") | + \ endif + +" tcsh scripts (patterns ending in a star further below) +au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login call polyglot#ft#SetFileTypeShell("tcsh") + +" csh scripts, but might also be tcsh scripts (on some systems csh is tcsh) +" (patterns ending in a start further below) +au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call polyglot#ft#CSH() + +au BufNewFile,BufRead *.cls + \ if getline(1) =~ '^%' | + \ setf tex | + \ elseif getline(1)[0] == '#' && getline(1) =~ 'rexx' | + \ setf rexx | + \ else | + \ setf st | + \ endif + +" SMIL or XML +au BufNewFile,BufRead *.smil + \ if getline(1) =~ '<?\s*xml.*?>' | + \ setf xml | + \ else | + \ setf smil | + \ endif + +" SMIL or SNMP MIB file +au BufNewFile,BufRead *.smi + \ if getline(1) =~ '\<smil\>' | + \ setf smil | + \ else | + \ setf mib | + \ endif + +au BufNewFile,BufRead *.rules call polyglot#ft#FTRules() + +" SQL +au BufNewFile,BufRead *.sql call polyglot#ft#SQL() + +" Also *.class, but not when it's a Java bytecode file +au BufNewFile,BufRead *.class + \ if getline(1) !~ "^\xca\xfe\xba\xbe" | setf stata | endif + +au BufNewFile,BufRead *.tex call polyglot#ft#FTtex() + +" Virata Config Script File or Drupal module +au BufRead,BufNewFile *.hw,*.module,*.pkg + \ if getline(1) =~ '<?php' | + \ setf php | + \ else | + \ setf virata | + \ endif + +" Visual Basic (also uses *.bas) or FORM +au BufNewFile,BufRead *.frm call polyglot#ft#FTVB("form") + +" WEB (*.web is also used for Winbatch: Guess, based on expecting "%" comment +" lines in a WEB file). +au BufNewFile,BufRead *.web + \ if getline(1)[0].getline(2)[0].getline(3)[0].getline(4)[0].getline(5)[0] =~ "%" | + \ setf web | + \ else | + \ setf winbatch | + \ endif + +" X Pixmap (dynamically sets colors, use BufEnter to make it work better) +au BufEnter *.xpm + \ if getline(1) =~ "XPM2" | + \ setf xpm2 | + \ else | + \ setf xpm | + \ endif + +" XFree86 config +au BufNewFile,BufRead XF86Config + \ if getline(1) =~ '\<XConfigurator\>' | + \ let b:xf86conf_xfree86_version = 3 | + \ endif | + \ setf xf86conf +au BufNewFile,BufRead */xorg.conf.d/*.conf + \ let b:xf86conf_xfree86_version = 4 | + \ setf xf86conf + +" Xorg config +au BufNewFile,BufRead xorg.conf,xorg.conf-4 let b:xf86conf_xfree86_version = 4 | setf xf86conf + +au BufNewFile,BufRead *.ms + \ if !polyglot#ft#FTnroff() | setf xmath | endif + +" XML specific variants: docbk and xbl +au BufNewFile,BufRead *.xml call polyglot#ft#FTxml() + +" Yacc or racc +au BufNewFile,BufRead *.y call polyglot#ft#FTy() + +" Zope +" dtml (zope dynamic template markup language), pt (zope page template), +" cpt (zope form controller page template) +au BufNewFile,BufRead *.dtml,*.pt,*.cpt call polyglot#ft#FThtml() +" zsql (zope sql method) +au BufNewFile,BufRead *.zsql call polyglot#ft#SQL() + +augroup END + + +" Source the user-specified filetype file, for backwards compatibility with +" Vim 5.x. +if exists("myfiletypefile") && filereadable(expand(myfiletypefile)) + execute "source " . myfiletypefile +endif + + +" Check for "*" after loading myfiletypefile, so that scripts.vim is only used +" when there are no matching file name extensions. +" Don't do this for compressed files. +augroup filetypedetect +au BufNewFile,BufRead * + \ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat + \ | runtime! scripts.vim | endif +au StdinReadPost * if !did_filetype() | runtime! scripts.vim | endif + + +" Extra checks for when no filetype has been detected now. Mostly used for +" patterns that end in "*". E.g., "zsh*" matches "zsh.vim", but that's a Vim +" script file. +" Most of these should call s:StarSetf() to avoid names ending in .gz and the +" like are used. + +" More Apache style config files +au BufNewFile,BufRead */etc/proftpd/*.conf*,*/etc/proftpd/conf.*/* call s:StarSetf('apachestyle') +au BufNewFile,BufRead proftpd.conf* call s:StarSetf('apachestyle') + +" More Apache config files +au BufNewFile,BufRead access.conf*,apache.conf*,apache2.conf*,httpd.conf*,srm.conf* call s:StarSetf('apache') +au BufNewFile,BufRead */etc/apache2/*.conf*,*/etc/apache2/conf.*/*,*/etc/apache2/mods-*/*,*/etc/apache2/sites-*/*,*/etc/httpd/conf.d/*.conf* call s:StarSetf('apache') + +" Asterisk config file +au BufNewFile,BufRead *asterisk/*.conf* call s:StarSetf('asterisk') +au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm') + +" BIND zone +au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone') + +" Calendar +au BufNewFile,BufRead */.calendar/*, + \*/share/calendar/*/calendar.*,*/share/calendar/calendar.* + \ call s:StarSetf('calendar') + +" Changelog +au BufNewFile,BufRead [cC]hange[lL]og* + \ if getline(1) =~ '; urgency=' + \| call s:StarSetf('debchangelog') + \|else + \| call s:StarSetf('changelog') + \|endif + +" Crontab +au BufNewFile,BufRead crontab,crontab.*,*/etc/cron.d/* call s:StarSetf('crontab') + +" dnsmasq(8) configuration +au BufNewFile,BufRead */etc/dnsmasq.d/* call s:StarSetf('dnsmasq') + +" Dracula +au BufNewFile,BufRead drac.* call s:StarSetf('dracula') + +" Fvwm +au BufNewFile,BufRead */.fvwm/* call s:StarSetf('fvwm') +au BufNewFile,BufRead *fvwmrc*,*fvwm95*.hook + \ let b:fvwm_version = 1 | call s:StarSetf('fvwm') +au BufNewFile,BufRead *fvwm2rc* + \ if expand("<afile>:e") == "m4" + \| call s:StarSetf('fvwm2m4') + \|else + \| let b:fvwm_version = 2 | call s:StarSetf('fvwm') + \|endif + +" Gedcom +au BufNewFile,BufRead */tmp/lltmp* call s:StarSetf('gedcom') + +" Git +au BufNewFile,BufRead */.gitconfig.d/*,/etc/gitconfig.d/* call s:StarSetf('gitconfig') + +" Gitolite +au BufNewFile,BufRead */gitolite-admin/conf/* call s:StarSetf('gitolite') + +" GTK RC +au BufNewFile,BufRead .gtkrc*,gtkrc* call s:StarSetf('gtkrc') + +" Jam +au BufNewFile,BufRead Prl*.*,JAM*.* call s:StarSetf('jam') + +" Jargon +au! BufNewFile,BufRead *jarg* + \ if getline(1).getline(2).getline(3).getline(4).getline(5) =~? 'THIS IS THE JARGON FILE' + \| call s:StarSetf('jargon') + \|endif + +" Java Properties resource file (note: doesn't catch font.properties.pl) +au BufNewFile,BufRead *.properties_??_??_* call s:StarSetf('jproperties') + +" Kconfig +au BufNewFile,BufRead Kconfig.* call s:StarSetf('kconfig') + +" Lilo: Linux loader +au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo') + +" Logcheck +au BufNewFile,BufRead */etc/logcheck/*.d*/* call s:StarSetf('logcheck') + +" Makefile +au BufNewFile,BufRead [mM]akefile* call s:StarSetf('make') + +" Ruby Makefile +au BufNewFile,BufRead [rR]akefile* call s:StarSetf('ruby') + +" Mail (also matches muttrc.vim, so this is below the other checks) +au BufNewFile,BufRead {neo,}mutt[[:alnum:]._-]\\\{6\} setf mail + +au BufNewFile,BufRead reportbug-* call s:StarSetf('mail') + +" Modconf +au BufNewFile,BufRead */etc/modutils/* + \ if executable(expand("<afile>")) != 1 + \| call s:StarSetf('modconf') + \|endif +au BufNewFile,BufRead */etc/modprobe.* call s:StarSetf('modconf') + +" Mutt setup file +au BufNewFile,BufRead .mutt{ng,}rc*,*/.mutt{ng,}/mutt{ng,}rc* call s:StarSetf('muttrc') +au BufNewFile,BufRead mutt{ng,}rc*,Mutt{ng,}rc* call s:StarSetf('muttrc') + +" Neomutt setup file +au BufNewFile,BufRead .neomuttrc*,*/.neomutt/neomuttrc* call s:StarSetf('neomuttrc') +au BufNewFile,BufRead neomuttrc*,Neomuttrc* call s:StarSetf('neomuttrc') + +" Nroff macros +au BufNewFile,BufRead tmac.* call s:StarSetf('nroff') + +" OpenBSD hostname.if +au BufNewFile,BufRead /etc/hostname.* call s:StarSetf('config') + +" Pam conf +au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf') + +" Printcap and Termcap +au BufNewFile,BufRead *printcap* + \ if !did_filetype() + \| let b:ptcap_type = "print" | call s:StarSetf('ptcap') + \|endif +au BufNewFile,BufRead *termcap* + \ if !did_filetype() + \| let b:ptcap_type = "term" | call s:StarSetf('ptcap') + \|endif + +" ReDIF +" Only used when the .rdf file was not detected to be XML. +au BufRead,BufNewFile *.rdf call polyglot#ft#Redif() + +" Remind +au BufNewFile,BufRead .reminders* call s:StarSetf('remind') + +" SGML catalog file +au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog') + +" Shell scripts ending in a star +au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash") +au BufNewFile,BufRead .kshrc* call polyglot#ft#SetFileTypeSH("ksh") +au BufNewFile,BufRead .profile* call polyglot#ft#SetFileTypeSH(getline(1)) + +" tcsh scripts ending in a star +au BufNewFile,BufRead .tcshrc* call polyglot#ft#SetFileTypeShell("tcsh") + +" csh scripts ending in a star +au BufNewFile,BufRead .login*,.cshrc* call polyglot#ft#CSH() + +" VHDL +au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') + +" Vim script +au BufNewFile,BufRead *vimrc* call s:StarSetf('vim') + +" Subversion commit file +au BufNewFile,BufRead svn-commit*.tmp setf svn + +" X resources file +au BufNewFile,BufRead Xresources*,*/app-defaults/*,*/Xresources/* call s:StarSetf('xdefaults') + +" XFree86 config +au BufNewFile,BufRead XF86Config-4* + \ let b:xf86conf_xfree86_version = 4 | call s:StarSetf('xf86conf') +au BufNewFile,BufRead XF86Config* + \ if getline(1) =~ '\<XConfigurator\>' + \| let b:xf86conf_xfree86_version = 3 + \|endif + \|call s:StarSetf('xf86conf') + +" X11 xmodmap +au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap') + +" Xinetd conf +au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd') + +" yum conf (close enough to dosini) +au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini') + +" Z-Shell script ending in a star +au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump* call s:StarSetf('zsh') +au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh') + + +" Help files match *.txt but should have a last line that is a modeline. +au BufNewFile,BufRead *.txt + \ if getline('$') !~ 'vim:.*ft=help' + \| setf text + \| endif + + +" NOTE: The above command could have ended the filetypedetect autocmd group +" and started another one. Let's make sure it has ended to get to a consistent +" state. +augroup END + +" Use the filetype detect plugins. They may overrule any of the previously +" detected filetypes. No need to load if everything is enabled +if exists("did_load_filetypes") && exists("g:polyglot_disabled") + unlet did_load_filetypes + runtime! extras/filetype.vim +endif + +let s:runtime = resolve($VIMRUNTIME) +let s:base = resolve(expand('<sfile>:p:h:h:h')) + +func! s:process_rtp(rtp) + " Remove vim-polyglot from paths and make everything absolute + let rtp = [] + for path in a:rtp[1:-2] + let abspath = resolve(path) + if stridx(abspath, s:base) != 0 + call add(rtp, abspath) + endif + endfor + let result = [a:rtp[0]] + " Then all other stuff (until vimruntime) + let i = 0 + for path in rtp[0:len(rtp)-1] + if path == s:runtime + break + endif + call add(result, path) + let i = i + 1 + endfor + " Then vim-polyglot + call add(result, s:base) + " Then all other files, until after-files + for path in rtp[i:len(rtp)-1] + if match(path, '[/\\]after$') > -1 + break + endif + call add(result, path) + let i = i + 1 + endfor + " Then vim-polyglot after path + call add(result, s:base . '/after') + " Then all other after paths + for path in rtp[i:len(rtp)-1] + call add(result, path) + endfor + " User's after directory is always last + call add(result, a:rtp[len(a:rtp)-1]) + return result +endfunc + +" We want vim-polyglot files to load only as fallback +let &rtp = join(s:process_rtp(split(&rtp, ',')), ',') + +" Restore 'cpoptions' +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/autoload/pony.vim b/autoload/pony.vim index 4a47a037..eac21938 100644 --- a/autoload/pony.vim +++ b/autoload/pony.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pony') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pony', 'autoload/pony.vim') finish endif diff --git a/autoload/puppet/align.vim b/autoload/puppet/align.vim index 907f191a..56270f09 100644 --- a/autoload/puppet/align.vim +++ b/autoload/puppet/align.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'autoload/puppet/align.vim') finish endif diff --git a/autoload/puppet/ctags.vim b/autoload/puppet/ctags.vim index 0d73ec1d..e5c7321e 100644 --- a/autoload/puppet/ctags.vim +++ b/autoload/puppet/ctags.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'autoload/puppet/ctags.vim') finish endif diff --git a/autoload/puppet/format.vim b/autoload/puppet/format.vim index 8c766e7f..b5ad655d 100644 --- a/autoload/puppet/format.vim +++ b/autoload/puppet/format.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'autoload/puppet/format.vim') finish endif diff --git a/autoload/python/utils.vim b/autoload/python/utils.vim index 76ad78b2..c72f8fda 100644 --- a/autoload/python/utils.vim +++ b/autoload/python/utils.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'python-compiler') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'python-compiler', 'autoload/python/utils.vim') finish endif diff --git a/autoload/requirements.vim b/autoload/requirements.vim index 6dace12b..717b6210 100644 --- a/autoload/requirements.vim +++ b/autoload/requirements.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'requirements') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'requirements', 'autoload/requirements.vim') finish endif diff --git a/autoload/rubycomplete.vim b/autoload/rubycomplete.vim index f1f9810c..9c3f9ffd 100644 --- a/autoload/rubycomplete.vim +++ b/autoload/rubycomplete.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'autoload/rubycomplete.vim') finish endif diff --git a/autoload/rust.vim b/autoload/rust.vim index 5b0cd64f..e883ad78 100644 --- a/autoload/rust.vim +++ b/autoload/rust.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'autoload/rust.vim') finish endif diff --git a/autoload/rust/debugging.vim b/autoload/rust/debugging.vim index 7985c87c..9cae4834 100644 --- a/autoload/rust/debugging.vim +++ b/autoload/rust/debugging.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'autoload/rust/debugging.vim') finish endif diff --git a/autoload/rust/delimitmate.vim b/autoload/rust/delimitmate.vim index ecd7c28c..40f3c1d1 100644 --- a/autoload/rust/delimitmate.vim +++ b/autoload/rust/delimitmate.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'autoload/rust/delimitmate.vim') finish endif diff --git a/autoload/rust/tags.vim b/autoload/rust/tags.vim index f4830e28..45d99908 100644 --- a/autoload/rust/tags.vim +++ b/autoload/rust/tags.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'autoload/rust/tags.vim') finish endif diff --git a/autoload/rustfmt.vim b/autoload/rustfmt.vim index 5dc682a5..23e7206a 100644 --- a/autoload/rustfmt.vim +++ b/autoload/rustfmt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'autoload/rustfmt.vim') finish endif diff --git a/autoload/smt2.vim b/autoload/smt2.vim index b9e104a0..1aee2635 100644 --- a/autoload/smt2.vim +++ b/autoload/smt2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'smt2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'smt2', 'autoload/smt2.vim') finish endif diff --git a/autoload/stylcomplete.vim b/autoload/stylcomplete.vim index 7437d32b..654d405a 100644 --- a/autoload/stylcomplete.vim +++ b/autoload/stylcomplete.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'stylus') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'stylus', 'autoload/stylcomplete.vim') finish endif diff --git a/autoload/terraform.vim b/autoload/terraform.vim index 594d74a0..a1d2a06a 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'terraform') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'terraform', 'autoload/terraform.vim') finish endif diff --git a/autoload/vital/_crystal.vim b/autoload/vital/_crystal.vim index 95bdc840..8cb1d703 100644 --- a/autoload/vital/_crystal.vim +++ b/autoload/vital/_crystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/vital/_crystal.vim') finish endif diff --git a/autoload/vital/_crystal/ColorEcho.vim b/autoload/vital/_crystal/ColorEcho.vim index d0480c19..a9b566dd 100644 --- a/autoload/vital/_crystal/ColorEcho.vim +++ b/autoload/vital/_crystal/ColorEcho.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/vital/_crystal/ColorEcho.vim') finish endif diff --git a/autoload/vital/_crystal/Data/List.vim b/autoload/vital/_crystal/Data/List.vim index 436e41f0..b61878a0 100644 --- a/autoload/vital/_crystal/Data/List.vim +++ b/autoload/vital/_crystal/Data/List.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/vital/_crystal/Data/List.vim') finish endif diff --git a/autoload/vital/_crystal/Data/String.vim b/autoload/vital/_crystal/Data/String.vim index ea3769f9..430718ab 100644 --- a/autoload/vital/_crystal/Data/String.vim +++ b/autoload/vital/_crystal/Data/String.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/vital/_crystal/Data/String.vim') finish endif diff --git a/autoload/vital/_crystal/Process.vim b/autoload/vital/_crystal/Process.vim index 8118a9f6..1a1ba3cd 100644 --- a/autoload/vital/_crystal/Process.vim +++ b/autoload/vital/_crystal/Process.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/vital/_crystal/Process.vim') finish endif diff --git a/autoload/vital/_crystal/Web/JSON.vim b/autoload/vital/_crystal/Web/JSON.vim index c72446aa..4e2df8f7 100644 --- a/autoload/vital/_crystal/Web/JSON.vim +++ b/autoload/vital/_crystal/Web/JSON.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/vital/_crystal/Web/JSON.vim') finish endif diff --git a/autoload/vital/crystal.vim b/autoload/vital/crystal.vim index 24b12ee9..50f7ce75 100644 --- a/autoload/vital/crystal.vim +++ b/autoload/vital/crystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'autoload/vital/crystal.vim') finish endif diff --git a/autoload/xml/aria.vim b/autoload/xml/aria.vim index edba38fb..d2f8abe8 100644 --- a/autoload/xml/aria.vim +++ b/autoload/xml/aria.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'autoload/xml/aria.vim') finish endif diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim index 2618e225..0df1bd0a 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html5', 'autoload/xml/html5.vim') finish endif diff --git a/autoload/xml/xsd.vim b/autoload/xml/xsd.vim index a2899094..fdabdc5a 100644 --- a/autoload/xml/xsd.vim +++ b/autoload/xml/xsd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xsd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xsd', 'autoload/xml/xsd.vim') finish endif diff --git a/autoload/yats.vim b/autoload/yats.vim index f96841aa..e810937e 100644 --- a/autoload/yats.vim +++ b/autoload/yats.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'autoload/yats.vim') finish endif diff --git a/autoload/zig/config.vim b/autoload/zig/config.vim index fd7f4223..a96595aa 100644 --- a/autoload/zig/config.vim +++ b/autoload/zig/config.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'autoload/zig/config.vim') finish endif diff --git a/autoload/zig/fmt.vim b/autoload/zig/fmt.vim index 824122af..2562be39 100644 --- a/autoload/zig/fmt.vim +++ b/autoload/zig/fmt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'autoload/zig/fmt.vim') finish endif diff --git a/autoload/zig/list.vim b/autoload/zig/list.vim index a5b41f13..832ba107 100644 --- a/autoload/zig/list.vim +++ b/autoload/zig/list.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'autoload/zig/list.vim') finish endif diff --git a/autoload/zig/util.vim b/autoload/zig/util.vim index b59b43ed..c886fb62 100644 --- a/autoload/zig/util.vim +++ b/autoload/zig/util.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'autoload/zig/util.vim') finish endif diff --git a/compiler/ant.vim b/compiler/ant.vim index 8d038e0b..c46491f8 100644 --- a/compiler/ant.vim +++ b/compiler/ant.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ant') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ant', 'compiler/ant.vim') finish endif diff --git a/compiler/bdf.vim b/compiler/bdf.vim index 915c2d70..997d685b 100644 --- a/compiler/bdf.vim +++ b/compiler/bdf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bdf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bdf', 'compiler/bdf.vim') finish endif diff --git a/compiler/cake.vim b/compiler/cake.vim index 0f0d9c1e..a761282c 100644 --- a/compiler/cake.vim +++ b/compiler/cake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'compiler/cake.vim') finish endif diff --git a/compiler/cargo.vim b/compiler/cargo.vim index 8b6ee453..d56612f2 100644 --- a/compiler/cargo.vim +++ b/compiler/cargo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'compiler/cargo.vim') finish endif diff --git a/compiler/coffee.vim b/compiler/coffee.vim index d73b850b..28aff34e 100644 --- a/compiler/coffee.vim +++ b/compiler/coffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'compiler/coffee.vim') finish endif diff --git a/compiler/credo.vim b/compiler/credo.vim index 1cfe5cda..ca7bfc22 100644 --- a/compiler/credo.vim +++ b/compiler/credo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'compiler/credo.vim') finish endif diff --git a/compiler/cryptol.vim b/compiler/cryptol.vim index cb6b72f9..2855c0da 100644 --- a/compiler/cryptol.vim +++ b/compiler/cryptol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cryptol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cryptol', 'compiler/cryptol.vim') finish endif diff --git a/compiler/cs.vim b/compiler/cs.vim index 0bbc12b4..5b34a437 100644 --- a/compiler/cs.vim +++ b/compiler/cs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cs', 'compiler/cs.vim') finish endif diff --git a/compiler/cucumber.vim b/compiler/cucumber.vim index 831f0a4a..e43f553a 100644 --- a/compiler/cucumber.vim +++ b/compiler/cucumber.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cucumber') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cucumber', 'compiler/cucumber.vim') finish endif diff --git a/compiler/dot.vim b/compiler/dot.vim index 63e1d552..3773f89a 100644 --- a/compiler/dot.vim +++ b/compiler/dot.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dot') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dot', 'compiler/dot.vim') finish endif diff --git a/compiler/eruby.vim b/compiler/eruby.vim index c576858c..bd5a16d0 100644 --- a/compiler/eruby.vim +++ b/compiler/eruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'compiler/eruby.vim') finish endif diff --git a/compiler/exunit.vim b/compiler/exunit.vim index 6921850a..6381308f 100644 --- a/compiler/exunit.vim +++ b/compiler/exunit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'compiler/exunit.vim') finish endif diff --git a/compiler/fish.vim b/compiler/fish.vim index e46699b6..7684db47 100644 --- a/compiler/fish.vim +++ b/compiler/fish.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fish') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fish', 'compiler/fish.vim') finish endif diff --git a/compiler/gleam.vim b/compiler/gleam.vim index 808a869a..6a63fa19 100644 --- a/compiler/gleam.vim +++ b/compiler/gleam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gleam') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gleam', 'compiler/gleam.vim') finish endif diff --git a/compiler/go.vim b/compiler/go.vim index 01c7fe0a..3333caee 100644 --- a/compiler/go.vim +++ b/compiler/go.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'compiler/go.vim') finish endif diff --git a/compiler/gradle.vim b/compiler/gradle.vim index 3b40fb18..6a52af1b 100644 --- a/compiler/gradle.vim +++ b/compiler/gradle.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gradle') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gradle', 'compiler/gradle.vim') finish endif diff --git a/compiler/gradlew.vim b/compiler/gradlew.vim index 12a24d99..22048a92 100644 --- a/compiler/gradlew.vim +++ b/compiler/gradlew.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gradle') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gradle', 'compiler/gradlew.vim') finish endif diff --git a/compiler/haml.vim b/compiler/haml.vim index 03ae7776..83fd2970 100644 --- a/compiler/haml.vim +++ b/compiler/haml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haml', 'compiler/haml.vim') finish endif diff --git a/compiler/ledger.vim b/compiler/ledger.vim index 18731a00..92348ba3 100644 --- a/compiler/ledger.vim +++ b/compiler/ledger.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ledger') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ledger', 'compiler/ledger.vim') finish endif diff --git a/compiler/lilypond.vim b/compiler/lilypond.vim index d70b60ff..60a1c52b 100644 --- a/compiler/lilypond.vim +++ b/compiler/lilypond.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lilypond') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'compiler/lilypond.vim') finish endif diff --git a/compiler/ls.vim b/compiler/ls.vim index b3cdb32f..f23539aa 100644 --- a/compiler/ls.vim +++ b/compiler/ls.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'livescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'livescript', 'compiler/ls.vim') finish endif diff --git a/compiler/mix.vim b/compiler/mix.vim index 0563f8ee..cb7902ee 100644 --- a/compiler/mix.vim +++ b/compiler/mix.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'compiler/mix.vim') finish endif diff --git a/compiler/nim.vim b/compiler/nim.vim index edfa730e..f88e7d88 100644 --- a/compiler/nim.vim +++ b/compiler/nim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nim', 'compiler/nim.vim') finish endif diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim index 5049e4e4..7c39a4a0 100644 --- a/compiler/nix-build.vim +++ b/compiler/nix-build.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nix') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nix', 'compiler/nix-build.vim') finish endif diff --git a/compiler/ocaml.vim b/compiler/ocaml.vim index d8650017..3ad94741 100644 --- a/compiler/ocaml.vim +++ b/compiler/ocaml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'compiler/ocaml.vim') finish endif diff --git a/compiler/powershell.vim b/compiler/powershell.vim index edfa1ec9..0ba5776c 100644 --- a/compiler/powershell.vim +++ b/compiler/powershell.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'powershell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'powershell', 'compiler/powershell.vim') finish endif diff --git a/compiler/python.vim b/compiler/python.vim index e7caa465..b71b6a88 100644 --- a/compiler/python.vim +++ b/compiler/python.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'python-compiler') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'python-compiler', 'compiler/python.vim') finish endif diff --git a/compiler/rake.vim b/compiler/rake.vim index 9557fc9a..84e312e8 100644 --- a/compiler/rake.vim +++ b/compiler/rake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'compiler/rake.vim') finish endif diff --git a/compiler/rspec.vim b/compiler/rspec.vim index 2b16684a..19f41ade 100644 --- a/compiler/rspec.vim +++ b/compiler/rspec.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'compiler/rspec.vim') finish endif diff --git a/compiler/ruby.vim b/compiler/ruby.vim index 96a54615..c0299d7e 100644 --- a/compiler/ruby.vim +++ b/compiler/ruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'compiler/ruby.vim') finish endif diff --git a/compiler/rubyunit.vim b/compiler/rubyunit.vim index eb443f03..f1049612 100644 --- a/compiler/rubyunit.vim +++ b/compiler/rubyunit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'compiler/rubyunit.vim') finish endif diff --git a/compiler/rustc.vim b/compiler/rustc.vim index 0a093541..8c950bf0 100644 --- a/compiler/rustc.vim +++ b/compiler/rustc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'compiler/rustc.vim') finish endif diff --git a/compiler/sass.vim b/compiler/sass.vim index 7d1e9876..b4bbcc3b 100644 --- a/compiler/sass.vim +++ b/compiler/sass.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sass') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sass', 'compiler/sass.vim') finish endif diff --git a/compiler/sbt.vim b/compiler/sbt.vim index 32cf3f26..a7ab9da7 100644 --- a/compiler/sbt.vim +++ b/compiler/sbt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scala', 'compiler/sbt.vim') finish endif diff --git a/compiler/swift.vim b/compiler/swift.vim index cd19a7e8..f832c9de 100644 --- a/compiler/swift.vim +++ b/compiler/swift.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'swift') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'swift', 'compiler/swift.vim') finish endif diff --git a/compiler/tcl.vim b/compiler/tcl.vim index d562da46..c48d197a 100644 --- a/compiler/tcl.vim +++ b/compiler/tcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tcl', 'compiler/tcl.vim') finish endif diff --git a/compiler/tidy.vim b/compiler/tidy.vim index 5ebe6e37..fec701da 100644 --- a/compiler/tidy.vim +++ b/compiler/tidy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tidy') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tidy', 'compiler/tidy.vim') finish endif diff --git a/compiler/typescript.vim b/compiler/typescript.vim index e5ec6dfb..43380d27 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'compiler/typescript.vim') finish endif diff --git a/extras/flow.vim b/extras/flow.vim index 0de97c05..d4a1f36d 100644 --- a/extras/flow.vim +++ b/extras/flow.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript', 'extras/flow.vim') finish endif diff --git a/extras/jsdoc.vim b/extras/jsdoc.vim index f49a5e54..369027c4 100644 --- a/extras/jsdoc.vim +++ b/extras/jsdoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript', 'extras/jsdoc.vim') finish endif diff --git a/extras/ngdoc.vim b/extras/ngdoc.vim index e5735b2a..76baafc3 100644 --- a/extras/ngdoc.vim +++ b/extras/ngdoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript', 'extras/ngdoc.vim') finish endif diff --git a/filetype.vim b/filetype.vim index 988d79ee..cd75d58a 100644 --- a/filetype.vim +++ b/filetype.vim @@ -1 +1 @@ -runtime! ftdetect/polyglot.vim +call polyglot#init#init() diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 9e4edbed..cd75d58a 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1,3608 +1 @@ -" Vim support file to detect file types -" -" Maintainer: Adam Stankiewicz <sheerun@sher.pl> -" URL: https://github.com/sheerun/vim-polyglot - -" Listen very carefully, I will say this only once -if exists("did_load_polyglot") - finish -endif - -let did_load_polyglot = 1 - -" Switch to compatible mode for the time being -let s:cpo_save = &cpo -set cpo&vim - -let g:polyglot_is_disabled = {} -let s:new_polyglot_disabled = [] - -if exists('g:polyglot_disabled') - for pkg in g:polyglot_disabled - let base = split(pkg, '\.') - if len(base) > 0 - let g:polyglot_is_disabled[pkg] = 1 - call add(s:new_polyglot_disabled, base[0]) - endif - endfor -else - let g:polyglot_disabled_not_set = 1 -endif - -func! PolyglotVerify() - if exists("g:polyglot_disabled_not_set") - if exists("g:polyglot_disabled") - echohl WarningMsg - echo "vim-polyglot: g:polyglot_disabled should be defined before loading vim-polyglot" - echohl None - endif - - unlet g:polyglot_disabled_not_set - endif -endfun - -au VimEnter * call PolyglotVerify() - -" Be consistent across different systems -set nofileignorecase - -function! s:SetDefault(name, value) - if !exists(a:name) - let {a:name} = a:value - endif -endfunction - -call s:SetDefault('g:markdown_enable_spell_checking', 0) -call s:SetDefault('g:markdown_enable_input_abbreviations', 0) -call s:SetDefault('g:markdown_enable_mappings', 0) - -" Enable jsx syntax by default -call s:SetDefault('g:jsx_ext_required', 0) - -" Needed for sql highlighting -call s:SetDefault('g:javascript_sql_dialect', 'sql') - -" Make csv loading faster -call s:SetDefault('g:csv_start', 1) -call s:SetDefault('g:csv_end', 2) -call s:SetDefault('g:csv_default_delim', ',') - -" Disable json concealing by default -call s:SetDefault('g:vim_json_syntax_conceal', 0) - -call s:SetDefault('g:filetype_euphoria', 'elixir') - -if !exists('g:python_highlight_all') - call s:SetDefault('g:python_highlight_builtins', 1) - call s:SetDefault('g:python_highlight_builtin_objs', 1) - call s:SetDefault('g:python_highlight_builtin_types', 1) - call s:SetDefault('g:python_highlight_builtin_funcs', 1) - call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1) - call s:SetDefault('g:python_highlight_exceptions', 1) - call s:SetDefault('g:python_highlight_string_formatting', 1) - call s:SetDefault('g:python_highlight_string_format', 1) - call s:SetDefault('g:python_highlight_string_templates', 1) - call s:SetDefault('g:python_highlight_indent_errors', 1) - call s:SetDefault('g:python_highlight_space_errors', 1) - call s:SetDefault('g:python_highlight_doctests', 1) - call s:SetDefault('g:python_highlight_func_calls', 1) - call s:SetDefault('g:python_highlight_class_vars', 1) - call s:SetDefault('g:python_highlight_operators', 1) - call s:SetDefault('g:python_highlight_file_headers_as_comments', 1) - call s:SetDefault('g:python_slow_sync', 1) -endif - -" We need it because scripts.vim in vim uses "set ft=" which cannot be -" overridden with setf (and we can't use set ft= so our scripts.vim work) -func! s:Setf(ft) - if &filetype !~# '\<'.a:ft.'\>' - let &filetype = a:ft - endif -endfunc - -" Function used for patterns that end in a star: don't set the filetype if the -" file name matches ft_ignore_pat. -" When using this, the entry should probably be further down below with the -" other StarSetf() calls. -func! s:StarSetf(ft) - if expand("<amatch>") !~ g:ft_ignore_pat - exe 'setf ' . a:ft - endif -endfunc - -augroup polyglot-observer | augroup END - -if exists('s:cpo_save') - " Restore 'cpoptions' - let &cpo = s:cpo_save - unlet s:cpo_save -endif - -" Load user-defined filetype.vim and oter plugins ftdetect first -" This is to use polyglot-defined ftdetect always as fallback to user settings -augroup filetypedetect - runtime! filetype.vim - runtime! ftdetect/*.vim -augroup END - - -augroup filetypedetect - -" Switch to compatible mode for the time being -let s:cpo_save = &cpo -set cpo&vim - -if !has_key(g:polyglot_is_disabled, 'ftdetect') - -" It can happen vim filetype.vim loads first, then we need a reset -if exists("did_load_filetypes") - au! filetypedetect -endif - -" Prevent filetype.vim of vim from loading again -let did_load_filetypes = 1 - - -" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE - -if !has_key(g:polyglot_is_disabled, 'gleam') - au BufNewFile,BufRead *.gleam setf gleam -endif - -if !has_key(g:polyglot_is_disabled, 'jsonc') - au BufNewFile,BufRead *.cjson,*.jsonc,{.,}babelrc,{.,}eslintrc.json,{.,}jshintrc,{.,}jslintrc,{.,}mocharc.json,coc-settings.json,coffeelint.json,jsconfig.json,tsconfig.json setf jsonc -endif - -if !has_key(g:polyglot_is_disabled, 'mint') - au BufNewFile,BufRead *.mint setf mint -endif - -if !has_key(g:polyglot_is_disabled, 'context') - au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi setf context -endif - -if !has_key(g:polyglot_is_disabled, 'xpm2') - au BufNewFile,BufRead *.xpm2 setf xpm2 -endif - -if !has_key(g:polyglot_is_disabled, 'xpm') - au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() - au BufNewFile,BufRead *.xpm setf xpm -endif - -if !has_key(g:polyglot_is_disabled, 'xf86conf') - au BufNewFile,BufRead */xorg.conf.d/*.conf,xorg.conf,xorg.conf-4 setf xf86conf - au BufNewFile,BufRead XF86Config-4* call s:StarSetf('xf86conf') - au BufNewFile,BufRead XF86Config* call s:StarSetf('xf86conf') -endif - -if !has_key(g:polyglot_is_disabled, 'pullrequest') - au BufNewFile,BufRead PULLREQ_EDITMSG setf pullrequest -endif - -if !has_key(g:polyglot_is_disabled, 'text') - au BufNewFile,BufRead *.text,README setf text -endif - -if !has_key(g:polyglot_is_disabled, 'svn') - au BufNewFile,BufRead svn-commit*.tmp setf svn -endif - -if !has_key(g:polyglot_is_disabled, 'logcheck') - au BufNewFile,BufRead */etc/logcheck/*.d*/* call s:StarSetf('logcheck') -endif - -if !has_key(g:polyglot_is_disabled, 'fvwm') - au BufNewFile,BufRead */.fvwm/* call s:StarSetf('fvwm') -endif - -if !has_key(g:polyglot_is_disabled, 'crontab') - au BufNewFile,BufRead crontab setf crontab - au BufNewFile,BufRead crontab.* call s:StarSetf('crontab') - au BufNewFile,BufRead */etc/cron.d/* call s:StarSetf('crontab') -endif - -if !has_key(g:polyglot_is_disabled, 'bzr') - au BufNewFile,BufRead bzr_log.* call s:StarSetf('bzr') -endif - -if !has_key(g:polyglot_is_disabled, 'asteriskvm') - au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm') -endif - -if !has_key(g:polyglot_is_disabled, 'asterisk') - au BufNewFile,BufRead *asterisk/*.conf* call s:StarSetf('asterisk') -endif - -if !has_key(g:polyglot_is_disabled, 'apachestyle') - au BufNewFile,BufRead proftpd.conf* call s:StarSetf('apachestyle') - au BufNewFile,BufRead */etc/proftpd/conf.*/* call s:StarSetf('apachestyle') - au BufNewFile,BufRead */etc/proftpd/*.conf* call s:StarSetf('apachestyle') -endif - -if !has_key(g:polyglot_is_disabled, 'z8a') - au BufNewFile,BufRead *.z8a setf z8a -endif - -if !has_key(g:polyglot_is_disabled, 'zimbutempl') - au BufNewFile,BufRead *.zut setf zimbutempl -endif - -if !has_key(g:polyglot_is_disabled, 'zimbu') - au BufNewFile,BufRead *.zu setf zimbu -endif - -if !has_key(g:polyglot_is_disabled, 'yacc') - au BufNewFile,BufRead *.y++,*.yxx,*.yy setf yacc -endif - -if !has_key(g:polyglot_is_disabled, 'xslt') - au BufNewFile,BufRead *.xsl,*.xslt setf xslt -endif - -if !has_key(g:polyglot_is_disabled, 'xsd') - au BufNewFile,BufRead *.xsd setf xsd -endif - -if !has_key(g:polyglot_is_disabled, 'xquery') - au BufNewFile,BufRead *.xq,*.xql,*.xqm,*.xquery,*.xqy setf xquery -endif - -if !has_key(g:polyglot_is_disabled, 'xmodmap') - au BufNewFile,BufRead *Xmodmap setf xmodmap - au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap') -endif - -if !has_key(g:polyglot_is_disabled, 'xmath') - au BufNewFile,BufRead *.msc,*.msf setf xmath -endif - -if !has_key(g:polyglot_is_disabled, 'xdefaults') - au BufNewFile,BufRead *.ad,{.,}Xdefaults,{.,}Xpdefaults,{.,}Xresources,xdm-config setf xdefaults - au BufNewFile,BufRead Xresources* call s:StarSetf('xdefaults') - au BufNewFile,BufRead */app-defaults/* call s:StarSetf('xdefaults') - au BufNewFile,BufRead */Xresources/* call s:StarSetf('xdefaults') -endif - -if !has_key(g:polyglot_is_disabled, 'xinetd') - au BufNewFile,BufRead */etc/xinetd.conf setf xinetd - au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd') -endif - -if !has_key(g:polyglot_is_disabled, 'xhtml') - au BufNewFile,BufRead *.xht,*.xhtml setf xhtml -endif - -if !has_key(g:polyglot_is_disabled, 'wsh') - au BufNewFile,BufRead *.ws[fc] setf wsh -endif - -if !has_key(g:polyglot_is_disabled, 'cvs') - au BufNewFile,BufRead cvs\d\+ setf cvs -endif - -if !has_key(g:polyglot_is_disabled, 'cvsrc') - au BufNewFile,BufRead {.,}cvsrc setf cvsrc -endif - -if !has_key(g:polyglot_is_disabled, 'wvdial') - au BufNewFile,BufRead {.,}wvdialrc,wvdial.conf setf wvdial -endif - -if !has_key(g:polyglot_is_disabled, 'wsml') - au BufNewFile,BufRead *.wsml setf wsml -endif - -if !has_key(g:polyglot_is_disabled, 'winbatch') - au BufNewFile,BufRead *.wbt setf winbatch -endif - -if !has_key(g:polyglot_is_disabled, 'wml') - au BufNewFile,BufRead *.wml setf wml -endif - -if !has_key(g:polyglot_is_disabled, 'wget') - au BufNewFile,BufRead {.,}wgetrc,wgetrc setf wget -endif - -if !has_key(g:polyglot_is_disabled, 'webmacro') - au BufNewFile,BufRead *.wm setf webmacro -endif - -if !has_key(g:polyglot_is_disabled, 'wast') - au BufNewFile,BufRead *.wast,*.wat setf wast -endif - -if !has_key(g:polyglot_is_disabled, 'vroom') - au BufNewFile,BufRead *.vroom setf vroom -endif - -if !has_key(g:polyglot_is_disabled, 'vrml') - au BufNewFile,BufRead *.wrl setf vrml -endif - -if !has_key(g:polyglot_is_disabled, 'vgrindefs') - au BufNewFile,BufRead vgrindefs setf vgrindefs -endif - -if !has_key(g:polyglot_is_disabled, 'viminfo') - au BufNewFile,BufRead {.,}viminfo,_viminfo setf viminfo -endif - -if !has_key(g:polyglot_is_disabled, 'vim') - au BufNewFile,BufRead *.vba,*.vim,{.,}exrc,_exrc setf vim - au BufNewFile,BufRead *vimrc* call s:StarSetf('vim') -endif - -if !has_key(g:polyglot_is_disabled, 'vhdl') - au BufNewFile,BufRead *.hdl,*.vbe,*.vhd,*.vhdl,*.vho,*.vst setf vhdl - au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') -endif - -if !has_key(g:polyglot_is_disabled, 'systemverilog') - au BufNewFile,BufRead *.sv,*.svh setf systemverilog -endif - -if !has_key(g:polyglot_is_disabled, 'verilogams') - au BufNewFile,BufRead *.va,*.vams setf verilogams -endif - -if !has_key(g:polyglot_is_disabled, 'verilog') - au BufNewFile,BufRead *.v setf verilog -endif - -if !has_key(g:polyglot_is_disabled, 'vera') - au BufNewFile,BufRead *.vr,*.vrh,*.vri setf vera -endif - -if !has_key(g:polyglot_is_disabled, 'upstart') - au BufNewFile,BufRead */.config/upstart/*.conf,*/.config/upstart/*.override,*/.init/*.conf,*/.init/*.override,*/etc/init/*.conf,*/etc/init/*.override,*/usr/share/upstart/*.conf,*/usr/share/upstart/*.override setf upstart -endif - -if !has_key(g:polyglot_is_disabled, 'updatedb') - au BufNewFile,BufRead */etc/updatedb.conf setf updatedb -endif - -if !has_key(g:polyglot_is_disabled, 'uc') - au BufNewFile,BufRead *.uc setf uc -endif - -if !has_key(g:polyglot_is_disabled, 'udevperm') - au BufNewFile,BufRead */etc/udev/permissions.d/*.permissions setf udevperm -endif - -if !has_key(g:polyglot_is_disabled, 'udevconf') - au BufNewFile,BufRead */etc/udev/udev.conf setf udevconf -endif - -if !has_key(g:polyglot_is_disabled, 'uil') - au BufNewFile,BufRead *.uil,*.uit setf uil -endif - -if !has_key(g:polyglot_is_disabled, 'tsscl') - au BufNewFile,BufRead *.tsscl setf tsscl -endif - -if !has_key(g:polyglot_is_disabled, 'tssop') - au BufNewFile,BufRead *.tssop setf tssop -endif - -if !has_key(g:polyglot_is_disabled, 'tssgm') - au BufNewFile,BufRead *.tssgm setf tssgm -endif - -if !has_key(g:polyglot_is_disabled, 'trustees') - au BufNewFile,BufRead trustees.conf setf trustees -endif - -if !has_key(g:polyglot_is_disabled, 'treetop') - au BufNewFile,BufRead *.treetop setf treetop -endif - -if !has_key(g:polyglot_is_disabled, 'tpp') - au BufNewFile,BufRead *.tpp setf tpp -endif - -if !has_key(g:polyglot_is_disabled, 'tidy') - au BufNewFile,BufRead {.,}tidyrc,tidy.conf,tidyrc setf tidy -endif - -if !has_key(g:polyglot_is_disabled, 'texmf') - au BufNewFile,BufRead texmf.cnf setf texmf -endif - -if !has_key(g:polyglot_is_disabled, 'texinfo') - au BufNewFile,BufRead *.texi,*.texinfo,*.txi setf texinfo -endif - -if !has_key(g:polyglot_is_disabled, 'tex') - au BufNewFile,BufRead *.bbl,*.dtx,*.latex,*.ltx,*.sty setf tex -endif - -if !has_key(g:polyglot_is_disabled, 'terminfo') - au BufNewFile,BufRead *.ti setf terminfo -endif - -if !has_key(g:polyglot_is_disabled, 'teraterm') - au BufNewFile,BufRead *.ttl setf teraterm -endif - -if !has_key(g:polyglot_is_disabled, 'tsalt') - au BufNewFile,BufRead *.slt setf tsalt -endif - -if !has_key(g:polyglot_is_disabled, 'tli') - au BufNewFile,BufRead *.tli setf tli -endif - -if !has_key(g:polyglot_is_disabled, 'tcl') - au BufNewFile,BufRead *.itcl,*.itk,*.jacl,*.tcl,*.tk setf tcl -endif - -if !has_key(g:polyglot_is_disabled, 'taskedit') - au BufNewFile,BufRead *.task setf taskedit -endif - -if !has_key(g:polyglot_is_disabled, 'taskdata') - au BufNewFile,BufRead {pending,completed,undo}.data setf taskdata -endif - -if !has_key(g:polyglot_is_disabled, 'tak') - au BufNewFile,BufRead *.tak setf tak -endif - -if !has_key(g:polyglot_is_disabled, 'tags') - au BufNewFile,BufRead tags setf tags -endif - -if !has_key(g:polyglot_is_disabled, 'sudoers') - au BufNewFile,BufRead */etc/sudoers,sudoers.tmp setf sudoers -endif - -if !has_key(g:polyglot_is_disabled, 'sdc') - au BufNewFile,BufRead *.sdc setf sdc -endif - -if !has_key(g:polyglot_is_disabled, 'sysctl') - au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl -endif - -if !has_key(g:polyglot_is_disabled, 'sil') - au BufNewFile,BufRead *.sil setf sil -endif - -if !has_key(g:polyglot_is_disabled, 'swiftgyb') - au BufNewFile,BufRead *.swift.gyb setf swiftgyb -endif - -if !has_key(g:polyglot_is_disabled, 'voscm') - au BufNewFile,BufRead *.cm setf voscm -endif - -if !has_key(g:polyglot_is_disabled, 'sml') - au BufNewFile,BufRead *.sml setf sml -endif - -if !has_key(g:polyglot_is_disabled, 'stp') - au BufNewFile,BufRead *.stp setf stp -endif - -if !has_key(g:polyglot_is_disabled, 'smcl') - au BufNewFile,BufRead *.hlp,*.ihlp,*.smcl setf smcl -endif - -if !has_key(g:polyglot_is_disabled, 'stata') - au BufNewFile,BufRead *.ado,*.do,*.imata,*.mata setf stata -endif - -if !has_key(g:polyglot_is_disabled, 'sshdconfig') - au BufNewFile,BufRead */etc/ssh/sshd_config.d/*.conf,sshd_config setf sshdconfig -endif - -if !has_key(g:polyglot_is_disabled, 'sshconfig') - au BufNewFile,BufRead */.ssh/config,*/etc/ssh/ssh_config.d/*.conf,ssh_config setf sshconfig -endif - -if !has_key(g:polyglot_is_disabled, 'sqr') - au BufNewFile,BufRead *.sqi,*.sqr setf sqr -endif - -if !has_key(g:polyglot_is_disabled, 'sqlj') - au BufNewFile,BufRead *.sqlj setf sqlj -endif - -if !has_key(g:polyglot_is_disabled, 'squid') - au BufNewFile,BufRead squid.conf setf squid -endif - -if !has_key(g:polyglot_is_disabled, 'spice') - au BufNewFile,BufRead *.sp,*.spice setf spice -endif - -if !has_key(g:polyglot_is_disabled, 'slice') - au BufNewFile,BufRead *.ice setf slice -endif - -if !has_key(g:polyglot_is_disabled, 'spup') - au BufNewFile,BufRead *.spd,*.spdata,*.speedup setf spup -endif - -if !has_key(g:polyglot_is_disabled, 'hog') - au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog -endif - -if !has_key(g:polyglot_is_disabled, 'mib') - au BufNewFile,BufRead *.mib,*.my setf mib -endif - -if !has_key(g:polyglot_is_disabled, 'snobol4') - au BufNewFile,BufRead *.sno,*.spt setf snobol4 -endif - -if !has_key(g:polyglot_is_disabled, 'smith') - au BufNewFile,BufRead *.smith,*.smt setf smith -endif - -if !has_key(g:polyglot_is_disabled, 'st') - au BufNewFile,BufRead *.st setf st -endif - -if !has_key(g:polyglot_is_disabled, 'slrnsc') - au BufNewFile,BufRead *.score setf slrnsc -endif - -if !has_key(g:polyglot_is_disabled, 'slrnrc') - au BufNewFile,BufRead {.,}slrnrc setf slrnrc -endif - -if !has_key(g:polyglot_is_disabled, 'skill') - au BufNewFile,BufRead *.cdf,*.il,*.ils setf skill -endif - -if !has_key(g:polyglot_is_disabled, 'sisu') - au BufNewFile,BufRead *.-sst,*.-sst.meta,*._sst,*._sst.meta,*.ssi,*.ssm,*.sst,*.sst.meta setf sisu -endif - -if !has_key(g:polyglot_is_disabled, 'sinda') - au BufNewFile,BufRead *.s85,*.sin setf sinda -endif - -if !has_key(g:polyglot_is_disabled, 'simula') - au BufNewFile,BufRead *.sim setf simula -endif - -if !has_key(g:polyglot_is_disabled, 'screen') - au BufNewFile,BufRead {.,}screenrc,screenrc setf screen -endif - -if !has_key(g:polyglot_is_disabled, 'scheme') - au BufNewFile,BufRead *.rkt,*.scm,*.ss setf scheme -endif - -if !has_key(g:polyglot_is_disabled, 'catalog') - au BufNewFile,BufRead catalog setf catalog - au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog') -endif - -if !has_key(g:polyglot_is_disabled, 'setserial') - au BufNewFile,BufRead */etc/serial.conf setf setserial -endif - -if !has_key(g:polyglot_is_disabled, 'slpspi') - au BufNewFile,BufRead */etc/slp.spi setf slpspi -endif - -if !has_key(g:polyglot_is_disabled, 'spyce') - au BufNewFile,BufRead *.spi,*.spy setf spyce -endif - -if !has_key(g:polyglot_is_disabled, 'slpreg') - au BufNewFile,BufRead */etc/slp.reg setf slpreg -endif - -if !has_key(g:polyglot_is_disabled, 'slpconf') - au BufNewFile,BufRead */etc/slp.conf setf slpconf -endif - -if !has_key(g:polyglot_is_disabled, 'services') - au BufNewFile,BufRead */etc/services setf services -endif - -if !has_key(g:polyglot_is_disabled, 'sm') - au BufNewFile,BufRead sendmail.cf setf sm -endif - -if !has_key(g:polyglot_is_disabled, 'sieve') - au BufNewFile,BufRead *.sieve,*.siv setf sieve -endif - -if !has_key(g:polyglot_is_disabled, 'sdl') - au BufNewFile,BufRead *.pr,*.sdl setf sdl -endif - -if !has_key(g:polyglot_is_disabled, 'sd') - au BufNewFile,BufRead *.sd setf sd -endif - -if !has_key(g:polyglot_is_disabled, 'scilab') - au BufNewFile,BufRead *.sce,*.sci setf scilab -endif - -if !has_key(g:polyglot_is_disabled, 'sbt') - au BufNewFile,BufRead *.sbt setf sbt -endif - -if !has_key(g:polyglot_is_disabled, 'sather') - au BufNewFile,BufRead *.sa setf sather -endif - -if !has_key(g:polyglot_is_disabled, 'sass') - au BufNewFile,BufRead *.sass setf sass -endif - -if !has_key(g:polyglot_is_disabled, 'sas') - au BufNewFile,BufRead *.sas setf sas -endif - -if !has_key(g:polyglot_is_disabled, 'samba') - au BufNewFile,BufRead smb.conf setf samba -endif - -if !has_key(g:polyglot_is_disabled, 'slang') - au BufNewFile,BufRead *.sl setf slang -endif - -if !has_key(g:polyglot_is_disabled, 'rtf') - au BufNewFile,BufRead *.rtf setf rtf -endif - -if !has_key(g:polyglot_is_disabled, 'rpcgen') - au BufNewFile,BufRead *.x setf rpcgen -endif - -if !has_key(g:polyglot_is_disabled, 'robots') - au BufNewFile,BufRead robots.txt setf robots -endif - -if !has_key(g:polyglot_is_disabled, 'rpl') - au BufNewFile,BufRead *.rpl setf rpl -endif - -if !has_key(g:polyglot_is_disabled, 'rng') - au BufNewFile,BufRead *.rng setf rng -endif - -if !has_key(g:polyglot_is_disabled, 'rnc') - au BufNewFile,BufRead *.rnc setf rnc -endif - -if !has_key(g:polyglot_is_disabled, 'resolv') - au BufNewFile,BufRead resolv.conf setf resolv -endif - -if !has_key(g:polyglot_is_disabled, 'remind') - au BufNewFile,BufRead *.rem,*.remind,{.,}reminders setf remind - au BufNewFile,BufRead .reminders* call s:StarSetf('remind') -endif - -if !has_key(g:polyglot_is_disabled, 'rrst') - au BufNewFile,BufRead *.rrst,*.srst setf rrst -endif - -if !has_key(g:polyglot_is_disabled, 'rmd') - au BufNewFile,BufRead *.rmd,*.smd setf rmd -endif - -if !has_key(g:polyglot_is_disabled, 'rnoweb') - au BufNewFile,BufRead *.rnw,*.snw setf rnoweb -endif - -if !has_key(g:polyglot_is_disabled, 'rexx') - au BufNewFile,BufRead *.jrexx,*.orx,*.rex,*.rexx,*.rexxj,*.rxj,*.rxo,*.testGroup,*.testUnit setf rexx -endif - -if !has_key(g:polyglot_is_disabled, 'rego') - au BufNewFile,BufRead *.rego setf rego -endif - -if !has_key(g:polyglot_is_disabled, 'rib') - au BufNewFile,BufRead *.rib setf rib -endif - -if !has_key(g:polyglot_is_disabled, 'readline') - au BufNewFile,BufRead {.,}inputrc,inputrc setf readline -endif - -if !has_key(g:polyglot_is_disabled, 'rcs') - au BufNewFile,BufRead *\,v setf rcs -endif - -if !has_key(g:polyglot_is_disabled, 'ratpoison') - au BufNewFile,BufRead {.,}ratpoisonrc,ratpoisonrc setf ratpoison -endif - -if !has_key(g:polyglot_is_disabled, 'radiance') - au BufNewFile,BufRead *.mat,*.rad setf radiance -endif - -if !has_key(g:polyglot_is_disabled, 'pyrex') - au BufNewFile,BufRead *.pxd,*.pyx setf pyrex -endif - -if !has_key(g:polyglot_is_disabled, 'protocols') - au BufNewFile,BufRead */etc/protocols setf protocols -endif - -if !has_key(g:polyglot_is_disabled, 'promela') - au BufNewFile,BufRead *.pml setf promela -endif - -if !has_key(g:polyglot_is_disabled, 'psf') - au BufNewFile,BufRead *.psf setf psf -endif - -if !has_key(g:polyglot_is_disabled, 'procmail') - au BufNewFile,BufRead {.,}procmail,{.,}procmailrc setf procmail -endif - -if !has_key(g:polyglot_is_disabled, 'privoxy') - au BufNewFile,BufRead *.action setf privoxy -endif - -if !has_key(g:polyglot_is_disabled, 'proc') - au BufNewFile,BufRead *.pc setf proc -endif - -if !has_key(g:polyglot_is_disabled, 'obj') - au BufNewFile,BufRead *.obj setf obj -endif - -if !has_key(g:polyglot_is_disabled, 'ppwiz') - au BufNewFile,BufRead *.ih,*.it setf ppwiz -endif - -if !has_key(g:polyglot_is_disabled, 'pccts') - au BufNewFile,BufRead *.g setf pccts -endif - -if !has_key(g:polyglot_is_disabled, 'povini') - au BufNewFile,BufRead {.,}povrayrc setf povini -endif - -if !has_key(g:polyglot_is_disabled, 'pov') - au BufNewFile,BufRead *.pov setf pov -endif - -if !has_key(g:polyglot_is_disabled, 'ppd') - au BufNewFile,BufRead *.ppd setf ppd -endif - -if !has_key(g:polyglot_is_disabled, 'postscr') - au BufNewFile,BufRead *.afm,*.ai,*.eps,*.epsf,*.epsi,*.pfa,*.ps setf postscr -endif - -if !has_key(g:polyglot_is_disabled, 'pfmain') - au BufNewFile,BufRead main.cf setf pfmain -endif - -if !has_key(g:polyglot_is_disabled, 'po') - au BufNewFile,BufRead *.po,*.pot setf po -endif - -if !has_key(g:polyglot_is_disabled, 'plp') - au BufNewFile,BufRead *.plp setf plp -endif - -if !has_key(g:polyglot_is_disabled, 'plsql') - au BufNewFile,BufRead *.pls,*.plsql setf plsql -endif - -if !has_key(g:polyglot_is_disabled, 'plm') - au BufNewFile,BufRead *.p36,*.pac,*.plm setf plm -endif - -if !has_key(g:polyglot_is_disabled, 'pli') - au BufNewFile,BufRead *.pl1,*.pli setf pli -endif - -if !has_key(g:polyglot_is_disabled, 'pine') - au BufNewFile,BufRead {.,}pinerc,{.,}pinercex,pinerc,pinercex setf pine -endif - -if !has_key(g:polyglot_is_disabled, 'pilrc') - au BufNewFile,BufRead *.rcp setf pilrc -endif - -if !has_key(g:polyglot_is_disabled, 'pinfo') - au BufNewFile,BufRead */.pinforc,*/etc/pinforc setf pinfo -endif - -if !has_key(g:polyglot_is_disabled, 'cmod') - au BufNewFile,BufRead *.cmod setf cmod -endif - -if !has_key(g:polyglot_is_disabled, 'pike') - au BufNewFile,BufRead *.pike,*.pmod setf pike -endif - -if !has_key(g:polyglot_is_disabled, 'pcmk') - au BufNewFile,BufRead *.pcmk setf pcmk -endif - -if !has_key(g:polyglot_is_disabled, 'pdf') - au BufNewFile,BufRead *.pdf setf pdf -endif - -if !has_key(g:polyglot_is_disabled, 'pascal') - au BufNewFile,BufRead *.dpr,*.lpr,*.pas,*.pp setf pascal -endif - -if !has_key(g:polyglot_is_disabled, 'passwd') - au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd -endif - -if !has_key(g:polyglot_is_disabled, 'papp') - au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp -endif - -if !has_key(g:polyglot_is_disabled, 'pamenv') - au BufNewFile,BufRead {.,}pam_environment,pam_env.conf setf pamenv -endif - -if !has_key(g:polyglot_is_disabled, 'pamconf') - au BufNewFile,BufRead */etc/pam.conf setf pamconf - au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf') -endif - -if !has_key(g:polyglot_is_disabled, 'pf') - au BufNewFile,BufRead pf.conf setf pf -endif - -if !has_key(g:polyglot_is_disabled, 'ora') - au BufNewFile,BufRead *.ora setf ora -endif - -if !has_key(g:polyglot_is_disabled, 'opl') - au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl -endif - -if !has_key(g:polyglot_is_disabled, 'openroad') - au BufNewFile,BufRead *.or setf openroad -endif - -if !has_key(g:polyglot_is_disabled, 'omnimark') - au BufNewFile,BufRead *.xin,*.xom setf omnimark -endif - -if !has_key(g:polyglot_is_disabled, 'occam') - au BufNewFile,BufRead *.occ setf occam -endif - -if !has_key(g:polyglot_is_disabled, 'nsis') - au BufNewFile,BufRead *.nsh,*.nsi setf nsis -endif - -if !has_key(g:polyglot_is_disabled, 'nqc') - au BufNewFile,BufRead *.nqc setf nqc -endif - -if !has_key(g:polyglot_is_disabled, 'nroff') - au BufNewFile,BufRead *.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc setf nroff - au BufNewFile,BufRead *.mom,*.nr,*.roff,*.tmac,*.tr setf nroff - au BufNewFile,BufRead tmac.* call s:StarSetf('nroff') -endif - -if !has_key(g:polyglot_is_disabled, 'ncf') - au BufNewFile,BufRead *.ncf setf ncf -endif - -if !has_key(g:polyglot_is_disabled, 'ninja') - au BufNewFile,BufRead *.ninja setf ninja -endif - -if !has_key(g:polyglot_is_disabled, 'netrc') - au BufNewFile,BufRead {.,}netrc setf netrc -endif - -if !has_key(g:polyglot_is_disabled, 'neomuttrc') - au BufNewFile,BufRead Neomuttrc setf neomuttrc - au BufNewFile,BufRead neomuttrc* call s:StarSetf('neomuttrc') - au BufNewFile,BufRead Neomuttrc* call s:StarSetf('neomuttrc') - au BufNewFile,BufRead .neomuttrc* call s:StarSetf('neomuttrc') - au BufNewFile,BufRead */.neomutt/neomuttrc* call s:StarSetf('neomuttrc') -endif - -if !has_key(g:polyglot_is_disabled, 'natural') - au BufNewFile,BufRead *.NS[ACGLMNPS] setf natural -endif - -if !has_key(g:polyglot_is_disabled, 'nanorc') - au BufNewFile,BufRead *.nanorc,*/etc/nanorc setf nanorc -endif - -if !has_key(g:polyglot_is_disabled, 'n1ql') - au BufNewFile,BufRead *.n1ql,*.nql setf n1ql -endif - -if !has_key(g:polyglot_is_disabled, 'mush') - au BufNewFile,BufRead *.mush setf mush -endif - -if !has_key(g:polyglot_is_disabled, 'mupad') - au BufNewFile,BufRead *.mu setf mupad -endif - -if !has_key(g:polyglot_is_disabled, 'muttrc') - au BufNewFile,BufRead Mutt{ng,}rc setf muttrc - au BufNewFile,BufRead mutt{ng,}rc* call s:StarSetf('muttrc') - au BufNewFile,BufRead Mutt{ng,}rc* call s:StarSetf('muttrc') - au BufNewFile,BufRead .mutt{ng,}rc* call s:StarSetf('muttrc') - au BufNewFile,BufRead */etc/Muttrc.d/* call s:StarSetf('muttrc') - au BufNewFile,BufRead */.mutt{ng,}/mutt{ng,}rc* call s:StarSetf('muttrc') -endif - -if !has_key(g:polyglot_is_disabled, 'msql') - au BufNewFile,BufRead *.msql setf msql -endif - -if !has_key(g:polyglot_is_disabled, 'mrxvtrc') - au BufNewFile,BufRead {.,}mrxvtrc,mrxvtrc setf mrxvtrc -endif - -if !has_key(g:polyglot_is_disabled, 'srec') - au BufNewFile,BufRead *.mot,*.s19,*.s28,*.s37,*.srec setf srec -endif - -if !has_key(g:polyglot_is_disabled, 'mplayerconf') - au BufNewFile,BufRead */.mplayer/config,mplayer.conf setf mplayerconf -endif - -if !has_key(g:polyglot_is_disabled, 'modconf') - au BufNewFile,BufRead */etc/conf.modules,*/etc/modules,*/etc/modules.conf setf modconf - au BufNewFile,BufRead */etc/modprobe.* call s:StarSetf('modconf') -endif - -if !has_key(g:polyglot_is_disabled, 'moo') - au BufNewFile,BufRead *.moo setf moo -endif - -if !has_key(g:polyglot_is_disabled, 'monk') - au BufNewFile,BufRead *.isc,*.monk,*.ssc,*.tsc setf monk -endif - -if !has_key(g:polyglot_is_disabled, 'modula3') - au BufNewFile,BufRead *.[mi][3g] setf modula3 -endif - -if !has_key(g:polyglot_is_disabled, 'modula2') - au BufNewFile,BufRead *.DEF,*.MOD,*.m2,*.mi setf modula2 -endif - -if !has_key(g:polyglot_is_disabled, 'mmp') - au BufNewFile,BufRead *.mmp setf mmp -endif - -if !has_key(g:polyglot_is_disabled, 'mix') - au BufNewFile,BufRead *.mix,*.mixal setf mix -endif - -if !has_key(g:polyglot_is_disabled, 'mgl') - au BufNewFile,BufRead *.mgl setf mgl -endif - -if !has_key(g:polyglot_is_disabled, 'mp') - au BufNewFile,BufRead *.mp setf mp -endif - -if !has_key(g:polyglot_is_disabled, 'mf') - au BufNewFile,BufRead *.mf setf mf -endif - -if !has_key(g:polyglot_is_disabled, 'messages') - au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*} setf messages -endif - -if !has_key(g:polyglot_is_disabled, 'hgcommit') - au BufNewFile,BufRead hg-editor-*.txt setf hgcommit -endif - -if !has_key(g:polyglot_is_disabled, 'mel') - au BufNewFile,BufRead *.mel setf mel -endif - -if !has_key(g:polyglot_is_disabled, 'map') - au BufNewFile,BufRead *.map setf map -endif - -if !has_key(g:polyglot_is_disabled, 'maple') - au BufNewFile,BufRead *.mpl,*.mv,*.mws setf maple -endif - -if !has_key(g:polyglot_is_disabled, 'manconf') - au BufNewFile,BufRead */etc/man.conf,man.config setf manconf -endif - -if !has_key(g:polyglot_is_disabled, 'mallard') - au BufNewFile,BufRead *.page setf mallard -endif - -if !has_key(g:polyglot_is_disabled, 'ist') - au BufNewFile,BufRead *.ist,*.mst setf ist -endif - -if !has_key(g:polyglot_is_disabled, 'mailcap') - au BufNewFile,BufRead {.,}mailcap,mailcap setf mailcap -endif - -if !has_key(g:polyglot_is_disabled, 'mailaliases') - au BufNewFile,BufRead */etc/aliases,*/etc/mail/aliases setf mailaliases -endif - -if !has_key(g:polyglot_is_disabled, 'mail') - au BufNewFile,BufRead *.eml,{.,}article,{.,}article.\d\+,{.,}followup,{.,}letter,{.,}letter.\d\+,/tmp/SLRN[0-9A-Z.]\+,ae\d\+.txt,mutt[[:alnum:]_-]\\\{6\},mutt{ng,}-*-\w\+,neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\},pico.\d\+,snd.\d\+,{neo,}mutt[[:alnum:]._-]\\\{6\} setf mail - au BufNewFile,BufRead reportbug-* call s:StarSetf('mail') -endif - -if !has_key(g:polyglot_is_disabled, 'mgp') - au BufNewFile,BufRead *.mgp setf mgp -endif - -if !has_key(g:polyglot_is_disabled, 'lss') - au BufNewFile,BufRead *.lss setf lss -endif - -if !has_key(g:polyglot_is_disabled, 'lsl') - au BufNewFile,BufRead *.lsl setf lsl -endif - -if !has_key(g:polyglot_is_disabled, 'lout') - au BufNewFile,BufRead *.lou,*.lout setf lout -endif - -if !has_key(g:polyglot_is_disabled, 'lotos') - au BufNewFile,BufRead *.lot,*.lotos setf lotos -endif - -if !has_key(g:polyglot_is_disabled, 'logtalk') - au BufNewFile,BufRead *.lgt setf logtalk -endif - -if !has_key(g:polyglot_is_disabled, 'logindefs') - au BufNewFile,BufRead */etc/login.defs setf logindefs -endif - -if !has_key(g:polyglot_is_disabled, 'loginaccess') - au BufNewFile,BufRead */etc/login.access setf loginaccess -endif - -if !has_key(g:polyglot_is_disabled, 'litestep') - au BufNewFile,BufRead */LiteStep/*/*.rc setf litestep -endif - -if !has_key(g:polyglot_is_disabled, 'lite') - au BufNewFile,BufRead *.lite,*.lt setf lite -endif - -if !has_key(g:polyglot_is_disabled, 'liquid') - au BufNewFile,BufRead *.liquid setf liquid -endif - -if !has_key(g:polyglot_is_disabled, 'lisp') - au BufNewFile,BufRead *.cl,*.el,*.lisp,*.lsp,{.,}emacs,{.,}sawfishrc,{.,}sbclrc,sbclrc setf lisp -endif - -if !has_key(g:polyglot_is_disabled, 'lilo') - au BufNewFile,BufRead lilo.conf setf lilo - au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo') -endif - -if !has_key(g:polyglot_is_disabled, 'lifelines') - au BufNewFile,BufRead *.ll setf lifelines -endif - -if !has_key(g:polyglot_is_disabled, 'lftp') - au BufNewFile,BufRead *lftp/rc,{.,}lftprc,lftp.conf setf lftp -endif - -if !has_key(g:polyglot_is_disabled, 'sensors') - au BufNewFile,BufRead */etc/sensors.conf,*/etc/sensors3.conf setf sensors -endif - -if !has_key(g:polyglot_is_disabled, 'libao') - au BufNewFile,BufRead */.libao,*/etc/libao.conf setf libao -endif - -if !has_key(g:polyglot_is_disabled, 'lex') - au BufNewFile,BufRead *.l,*.l++,*.lex,*.lxx setf lex -endif - -if !has_key(g:polyglot_is_disabled, 'ld') - au BufNewFile,BufRead *.ld setf ld -endif - -if !has_key(g:polyglot_is_disabled, 'ldif') - au BufNewFile,BufRead *.ldif setf ldif -endif - -if !has_key(g:polyglot_is_disabled, 'lprolog') - au BufNewFile,BufRead *.sig setf lprolog -endif - -if !has_key(g:polyglot_is_disabled, 'limits') - au BufNewFile,BufRead */etc/*limits.conf,*/etc/*limits.d/*.conf,*/etc/limits setf limits -endif - -if !has_key(g:polyglot_is_disabled, 'latte') - au BufNewFile,BufRead *.latte,*.lte setf latte -endif - -if !has_key(g:polyglot_is_disabled, 'lace') - au BufNewFile,BufRead *.ACE,*.ace setf lace -endif - -if !has_key(g:polyglot_is_disabled, 'kconfig') - au BufNewFile,BufRead Kconfig,Kconfig.debug setf kconfig - au BufNewFile,BufRead Kconfig.* call s:StarSetf('kconfig') -endif - -if !has_key(g:polyglot_is_disabled, 'kscript') - au BufNewFile,BufRead *.ks setf kscript -endif - -if !has_key(g:polyglot_is_disabled, 'kivy') - au BufNewFile,BufRead *.kv setf kivy -endif - -if !has_key(g:polyglot_is_disabled, 'kwt') - au BufNewFile,BufRead *.k setf kwt -endif - -if !has_key(g:polyglot_is_disabled, 'kix') - au BufNewFile,BufRead *.kix setf kix -endif - -if !has_key(g:polyglot_is_disabled, 'jovial') - au BufNewFile,BufRead *.j73,*.jov,*.jovial setf jovial -endif - -if !has_key(g:polyglot_is_disabled, 'jgraph') - au BufNewFile,BufRead *.jgr setf jgraph -endif - -if !has_key(g:polyglot_is_disabled, 'jess') - au BufNewFile,BufRead *.clp setf jess -endif - -if !has_key(g:polyglot_is_disabled, 'jproperties') - au BufNewFile,BufRead *.properties,*.properties_??,*.properties_??_?? setf jproperties - au BufNewFile,BufRead *.properties_??_??_* call s:StarSetf('jproperties') -endif - -if !has_key(g:polyglot_is_disabled, 'jsp') - au BufNewFile,BufRead *.jsp setf jsp -endif - -if !has_key(g:polyglot_is_disabled, 'javacc') - au BufNewFile,BufRead *.jj,*.jjt setf javacc -endif - -if !has_key(g:polyglot_is_disabled, 'java') - au BufNewFile,BufRead *.jav,*.java setf java -endif - -if !has_key(g:polyglot_is_disabled, 'jam') - au BufNewFile,BufRead *.jpl,*.jpr setf jam - au BufNewFile,BufRead Prl*.* call s:StarSetf('jam') - au BufNewFile,BufRead JAM*.* call s:StarSetf('jam') -endif - -if !has_key(g:polyglot_is_disabled, 'jal') - au BufNewFile,BufRead *.JAL,*.jal setf jal -endif - -if !has_key(g:polyglot_is_disabled, 'j') - au BufNewFile,BufRead *.ijs setf j -endif - -if !has_key(g:polyglot_is_disabled, 'iss') - au BufNewFile,BufRead *.iss setf iss -endif - -if !has_key(g:polyglot_is_disabled, 'inittab') - au BufNewFile,BufRead inittab setf inittab -endif - -if !has_key(g:polyglot_is_disabled, 'fgl') - au BufNewFile,BufRead *.4gh,*.4gl,*.m4gl setf fgl -endif - -if !has_key(g:polyglot_is_disabled, 'ipfilter') - au BufNewFile,BufRead ipf.conf,ipf.rules,ipf6.conf setf ipfilter -endif - -if !has_key(g:polyglot_is_disabled, 'usw2kagtlog') - au BufNewFile,BufRead *.usw2kagt.log\c,usw2kagt.*.log\c,usw2kagt.log\c setf usw2kagtlog -endif - -if !has_key(g:polyglot_is_disabled, 'usserverlog') - au BufNewFile,BufRead *.usserver.log\c,usserver.*.log\c,usserver.log\c setf usserverlog -endif - -if !has_key(g:polyglot_is_disabled, 'upstreaminstalllog') - au BufNewFile,BufRead *.upstreaminstall.log\c,upstreaminstall.*.log\c,upstreaminstall.log\c setf upstreaminstalllog -endif - -if !has_key(g:polyglot_is_disabled, 'upstreamlog') - au BufNewFile,BufRead *.upstream.log\c,UPSTREAM-*.log\c,fdrupstream.log,upstream.*.log\c,upstream.log\c setf upstreamlog -endif - -if !has_key(g:polyglot_is_disabled, 'upstreamdat') - au BufNewFile,BufRead *.upstream.dat\c,upstream.*.dat\c,upstream.dat\c setf upstreamdat -endif - -if !has_key(g:polyglot_is_disabled, 'initng') - au BufNewFile,BufRead *.ii,*/etc/initng/*/*.i setf initng -endif - -if !has_key(g:polyglot_is_disabled, 'inform') - au BufNewFile,BufRead *.INF,*.inf setf inform -endif - -if !has_key(g:polyglot_is_disabled, 'indent') - au BufNewFile,BufRead {.,}indent.pro,indentrc setf indent -endif - -if !has_key(g:polyglot_is_disabled, 'icemenu') - au BufNewFile,BufRead */.icewm/menu setf icemenu -endif - -if !has_key(g:polyglot_is_disabled, 'msidl') - au BufNewFile,BufRead *.mof,*.odl setf msidl -endif - -if !has_key(g:polyglot_is_disabled, 'icon') - au BufNewFile,BufRead *.icn setf icon -endif - -if !has_key(g:polyglot_is_disabled, 'httest') - au BufNewFile,BufRead *.htb,*.htt setf httest -endif - -if !has_key(g:polyglot_is_disabled, 'hb') - au BufNewFile,BufRead *.hb setf hb -endif - -if !has_key(g:polyglot_is_disabled, 'hostsaccess') - au BufNewFile,BufRead */etc/hosts.allow,*/etc/hosts.deny setf hostsaccess -endif - -if !has_key(g:polyglot_is_disabled, 'hostconf') - au BufNewFile,BufRead */etc/host.conf setf hostconf -endif - -if !has_key(g:polyglot_is_disabled, 'template') - au BufNewFile,BufRead *.tmpl setf template -endif - -if !has_key(g:polyglot_is_disabled, 'htmlm4') - au BufNewFile,BufRead *.html.m4 setf htmlm4 -endif - -if !has_key(g:polyglot_is_disabled, 'tilde') - au BufNewFile,BufRead *.t.html setf tilde -endif - -if !has_key(g:polyglot_is_disabled, 'html') - au BufNewFile,BufRead,BufWritePost *.html call polyglot#detect#Html() - au BufNewFile,BufRead *.htm,*.html.hl,*.inc,*.st,*.xht,*.xhtml setf html -endif - -if !has_key(g:polyglot_is_disabled, 'hollywood') - au BufNewFile,BufRead *.hws setf hollywood -endif - -if !has_key(g:polyglot_is_disabled, 'hex') - au BufNewFile,BufRead *.h32,*.hex setf hex -endif - -if !has_key(g:polyglot_is_disabled, 'hercules') - au BufNewFile,BufRead *.errsum,*.ev,*.sum,*.vc setf hercules -endif - -if !has_key(g:polyglot_is_disabled, 'hastepreproc') - au BufNewFile,BufRead *.htpp setf hastepreproc -endif - -if !has_key(g:polyglot_is_disabled, 'haste') - au BufNewFile,BufRead *.ht setf haste -endif - -if !has_key(g:polyglot_is_disabled, 'chaskell') - au BufNewFile,BufRead *.chs setf chaskell -endif - -if !has_key(g:polyglot_is_disabled, 'lhaskell') - au BufNewFile,BufRead *.lhs setf lhaskell -endif - -if !has_key(g:polyglot_is_disabled, 'gtkrc') - au BufNewFile,BufRead {.,}gtkrc,gtkrc setf gtkrc - au BufNewFile,BufRead gtkrc* call s:StarSetf('gtkrc') - au BufNewFile,BufRead .gtkrc* call s:StarSetf('gtkrc') -endif - -if !has_key(g:polyglot_is_disabled, 'group') - au BufNewFile,BufRead */etc/group,*/etc/group-,*/etc/group.edit,*/etc/gshadow,*/etc/gshadow-,*/etc/gshadow.edit,*/var/backups/group.bak,*/var/backups/gshadow.bak setf group -endif - -if !has_key(g:polyglot_is_disabled, 'gsp') - au BufNewFile,BufRead *.gsp setf gsp -endif - -if !has_key(g:polyglot_is_disabled, 'gretl') - au BufNewFile,BufRead *.gretl setf gretl -endif - -if !has_key(g:polyglot_is_disabled, 'grads') - au BufNewFile,BufRead *.gs setf grads -endif - -if !has_key(g:polyglot_is_disabled, 'gitolite') - au BufNewFile,BufRead gitolite.conf setf gitolite - au BufNewFile,BufRead */gitolite-admin/conf/* call s:StarSetf('gitolite') -endif - -if !has_key(g:polyglot_is_disabled, 'gnash') - au BufNewFile,BufRead {.,}gnashpluginrc,{.,}gnashrc,gnashpluginrc,gnashrc setf gnash -endif - -if !has_key(g:polyglot_is_disabled, 'gpg') - au BufNewFile,BufRead */.gnupg/gpg.conf,*/.gnupg/options,*/usr/*/gnupg/options.skel setf gpg -endif - -if !has_key(g:polyglot_is_disabled, 'gp') - au BufNewFile,BufRead *.gp,{.,}gprc setf gp -endif - -if !has_key(g:polyglot_is_disabled, 'gkrellmrc') - au BufNewFile,BufRead gkrellmrc,gkrellmrc_? setf gkrellmrc -endif - -if !has_key(g:polyglot_is_disabled, 'gedcom') - au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom - au BufNewFile,BufRead */tmp/lltmp* call s:StarSetf('gedcom') -endif - -if !has_key(g:polyglot_is_disabled, 'gdmo') - au BufNewFile,BufRead *.gdmo,*.mo setf gdmo -endif - -if !has_key(g:polyglot_is_disabled, 'gdb') - au BufNewFile,BufRead {.,}gdbinit setf gdb -endif - -if !has_key(g:polyglot_is_disabled, 'fstab') - au BufNewFile,BufRead fstab,mtab setf fstab -endif - -if !has_key(g:polyglot_is_disabled, 'framescript') - au BufNewFile,BufRead *.fsl setf framescript -endif - -if !has_key(g:polyglot_is_disabled, 'fortran') - au BufNewFile,BufRead *.f,*.f03,*.f08,*.f77,*.f90,*.f95,*.for,*.fortran,*.fpp,*.ftn setf fortran -endif - -if !has_key(g:polyglot_is_disabled, 'reva') - au BufNewFile,BufRead *.frt setf reva -endif - -if !has_key(g:polyglot_is_disabled, 'focexec') - au BufNewFile,BufRead *.fex,*.focexec setf focexec -endif - -if !has_key(g:polyglot_is_disabled, 'fetchmail') - au BufNewFile,BufRead {.,}fetchmailrc setf fetchmail -endif - -if !has_key(g:polyglot_is_disabled, 'factor') - au BufNewFile,BufRead *.factor setf factor -endif - -if !has_key(g:polyglot_is_disabled, 'fan') - au BufNewFile,BufRead *.fan,*.fwt setf fan -endif - -if !has_key(g:polyglot_is_disabled, 'falcon') - au BufNewFile,BufRead *.fal setf falcon -endif - -if !has_key(g:polyglot_is_disabled, 'exports') - au BufNewFile,BufRead exports setf exports -endif - -if !has_key(g:polyglot_is_disabled, 'expect') - au BufNewFile,BufRead *.exp setf expect -endif - -if !has_key(g:polyglot_is_disabled, 'exim') - au BufNewFile,BufRead exim.conf setf exim -endif - -if !has_key(g:polyglot_is_disabled, 'csc') - au BufNewFile,BufRead *.csc setf csc -endif - -if !has_key(g:polyglot_is_disabled, 'esterel') - au BufNewFile,BufRead *.strl setf esterel -endif - -if !has_key(g:polyglot_is_disabled, 'esqlc') - au BufNewFile,BufRead *.EC,*.ec setf esqlc -endif - -if !has_key(g:polyglot_is_disabled, 'esmtprc') - au BufNewFile,BufRead *esmtprc setf esmtprc -endif - -if !has_key(g:polyglot_is_disabled, 'elmfilt') - au BufNewFile,BufRead filter-rules setf elmfilt -endif - -if !has_key(g:polyglot_is_disabled, 'elinks') - au BufNewFile,BufRead elinks.conf setf elinks -endif - -if !has_key(g:polyglot_is_disabled, 'ecd') - au BufNewFile,BufRead *.ecd setf ecd -endif - -if !has_key(g:polyglot_is_disabled, 'edif') - au BufNewFile,BufRead *.ed\(f\|if\|o\) setf edif -endif - -if !has_key(g:polyglot_is_disabled, 'dts') - au BufNewFile,BufRead *.dts,*.dtsi setf dts -endif - -if !has_key(g:polyglot_is_disabled, 'dtd') - au BufNewFile,BufRead *.dtd setf dtd -endif - -if !has_key(g:polyglot_is_disabled, 'dsl') - au BufNewFile,BufRead *.dsl setf dsl -endif - -if !has_key(g:polyglot_is_disabled, 'datascript') - au BufNewFile,BufRead *.ds setf datascript -endif - -if !has_key(g:polyglot_is_disabled, 'dracula') - au BufNewFile,BufRead *.drac,*.drc,*lpe,*lvs setf dracula - au BufNewFile,BufRead drac.* call s:StarSetf('dracula') -endif - -if !has_key(g:polyglot_is_disabled, 'def') - au BufNewFile,BufRead *.def setf def -endif - -if !has_key(g:polyglot_is_disabled, 'dylan') - au BufNewFile,BufRead *.dylan setf dylan -endif - -if !has_key(g:polyglot_is_disabled, 'dylanintr') - au BufNewFile,BufRead *.intr setf dylanintr -endif - -if !has_key(g:polyglot_is_disabled, 'dylanlid') - au BufNewFile,BufRead *.lid setf dylanlid -endif - -if !has_key(g:polyglot_is_disabled, 'dot') - au BufNewFile,BufRead *.dot,*.gv setf dot -endif - -if !has_key(g:polyglot_is_disabled, 'dircolors') - au BufNewFile,BufRead */etc/DIR_COLORS,{.,}dir_colors,{.,}dircolors setf dircolors -endif - -if !has_key(g:polyglot_is_disabled, 'diff') - au BufNewFile,BufRead *.diff,*.rej setf diff -endif - -if !has_key(g:polyglot_is_disabled, 'dictdconf') - au BufNewFile,BufRead dictd.conf setf dictdconf -endif - -if !has_key(g:polyglot_is_disabled, 'dictconf') - au BufNewFile,BufRead {.,}dictrc,dict.conf setf dictconf -endif - -if !has_key(g:polyglot_is_disabled, 'desktop') - au BufNewFile,BufRead *.desktop,*.directory setf desktop -endif - -if !has_key(g:polyglot_is_disabled, 'desc') - au BufNewFile,BufRead *.desc setf desc -endif - -if !has_key(g:polyglot_is_disabled, 'dnsmasq') - au BufNewFile,BufRead */etc/dnsmasq.conf setf dnsmasq - au BufNewFile,BufRead */etc/dnsmasq.d/* call s:StarSetf('dnsmasq') -endif - -if !has_key(g:polyglot_is_disabled, 'denyhosts') - au BufNewFile,BufRead denyhosts.conf setf denyhosts -endif - -if !has_key(g:polyglot_is_disabled, 'debsources') - au BufNewFile,BufRead */etc/apt/sources.list,*/etc/apt/sources.list.d/*.list setf debsources -endif - -if !has_key(g:polyglot_is_disabled, 'debcopyright') - au BufNewFile,BufRead */debian/copyright setf debcopyright -endif - -if !has_key(g:polyglot_is_disabled, 'debcontrol') - au BufNewFile,BufRead */debian/control setf debcontrol -endif - -if !has_key(g:polyglot_is_disabled, 'cuplsim') - au BufNewFile,BufRead *.si setf cuplsim -endif - -if !has_key(g:polyglot_is_disabled, 'cupl') - au BufNewFile,BufRead *.pld setf cupl -endif - -if !has_key(g:polyglot_is_disabled, 'csp') - au BufNewFile,BufRead *.csp,*.fdr setf csp -endif - -if !has_key(g:polyglot_is_disabled, 'quake') - au BufNewFile,BufRead *baseq[2-3]/*.cfg,*id1/*.cfg,*quake[1-3]/*.cfg setf quake -endif - -if !has_key(g:polyglot_is_disabled, 'lynx') - au BufNewFile,BufRead lynx.cfg setf lynx -endif - -if !has_key(g:polyglot_is_disabled, 'eterm') - au BufNewFile,BufRead *Eterm/*.cfg setf eterm -endif - -if !has_key(g:polyglot_is_disabled, 'dcd') - au BufNewFile,BufRead *.dcd setf dcd -endif - -if !has_key(g:polyglot_is_disabled, 'dockerfile') - au BufNewFile,BufRead *.Dockerfile,*.dock,Containerfile,Dockerfile,dockerfile setf dockerfile - au BufNewFile,BufRead Dockerfile* call s:StarSetf('dockerfile') -endif - -if !has_key(g:polyglot_is_disabled, 'cuda') - au BufNewFile,BufRead *.cu,*.cuh setf cuda -endif - -if !has_key(g:polyglot_is_disabled, 'config') - au BufNewFile,BufRead Pipfile,configure.ac,configure.in setf config - au BufNewFile,BufRead /etc/hostname.* call s:StarSetf('config') -endif - -if !has_key(g:polyglot_is_disabled, 'cf') - au BufNewFile,BufRead *.cfc,*.cfi,*.cfm setf cf -endif - -if !has_key(g:polyglot_is_disabled, 'coco') - au BufNewFile,BufRead *.atg setf coco -endif - -if !has_key(g:polyglot_is_disabled, 'cobol') - au BufNewFile,BufRead *.cbl,*.cob,*.lib setf cobol -endif - -if !has_key(g:polyglot_is_disabled, 'cmusrc') - au BufNewFile,BufRead */.cmus/{autosave,rc,command-history,*.theme},*/cmus/{rc,*.theme} setf cmusrc -endif - -if !has_key(g:polyglot_is_disabled, 'cl') - au BufNewFile,BufRead *.eni setf cl -endif - -if !has_key(g:polyglot_is_disabled, 'clean') - au BufNewFile,BufRead *.dcl,*.icl setf clean -endif - -if !has_key(g:polyglot_is_disabled, 'chordpro') - au BufNewFile,BufRead *.cho,*.chopro,*.chordpro,*.crd,*.crdpro setf chordpro -endif - -if !has_key(g:polyglot_is_disabled, 'chill') - au BufNewFile,BufRead *..ch setf chill -endif - -if !has_key(g:polyglot_is_disabled, 'debchangelog') - au BufNewFile,BufRead */debian/changelog,NEWS.Debian,NEWS.dch,changelog.Debian,changelog.dch setf debchangelog -endif - -if !has_key(g:polyglot_is_disabled, 'cterm') - au BufNewFile,BufRead *.con setf cterm -endif - -if !has_key(g:polyglot_is_disabled, 'css') - au BufNewFile,BufRead *.css setf css -endif - -if !has_key(g:polyglot_is_disabled, 'ch') - au BufNewFile,BufRead *.chf setf ch -endif - -if !has_key(g:polyglot_is_disabled, 'cynpp') - au BufNewFile,BufRead *.cyn setf cynpp -endif - -if !has_key(g:polyglot_is_disabled, 'crm') - au BufNewFile,BufRead *.crm setf crm -endif - -if !has_key(g:polyglot_is_disabled, 'conaryrecipe') - au BufNewFile,BufRead *.recipe setf conaryrecipe -endif - -if !has_key(g:polyglot_is_disabled, 'cdl') - au BufNewFile,BufRead *.cdl setf cdl -endif - -if !has_key(g:polyglot_is_disabled, 'chaiscript') - au BufNewFile,BufRead *.chai setf chaiscript -endif - -if !has_key(g:polyglot_is_disabled, 'cfengine') - au BufNewFile,BufRead cfengine.conf setf cfengine -endif - -if !has_key(g:polyglot_is_disabled, 'cdrdaoconf') - au BufNewFile,BufRead */etc/cdrdao.conf,*/etc/default/cdrdao,*/etc/defaults/cdrdao,{.,}cdrdao setf cdrdaoconf -endif - -if !has_key(g:polyglot_is_disabled, 'cdrtoc') - au BufNewFile,BufRead *.toc setf cdrtoc -endif - -if !has_key(g:polyglot_is_disabled, 'cabal') - au BufNewFile,BufRead *.cabal setf cabal -endif - -if !has_key(g:polyglot_is_disabled, 'csdl') - au BufNewFile,BufRead *.csdl setf csdl -endif - -if !has_key(g:polyglot_is_disabled, 'cs') - au BufNewFile,BufRead *.cs setf cs -endif - -if !has_key(g:polyglot_is_disabled, 'calendar') - au BufNewFile,BufRead calendar setf calendar - au BufNewFile,BufRead */share/calendar/calendar.* call s:StarSetf('calendar') - au BufNewFile,BufRead */share/calendar/*/calendar.* call s:StarSetf('calendar') - au BufNewFile,BufRead */.calendar/* call s:StarSetf('calendar') -endif - -if !has_key(g:polyglot_is_disabled, 'lpc') - au BufNewFile,BufRead *.lpc,*.ulpc setf lpc -endif - -if !has_key(g:polyglot_is_disabled, 'bsdl') - au BufNewFile,BufRead *.bsdl,*bsd setf bsdl -endif - -if !has_key(g:polyglot_is_disabled, 'blank') - au BufNewFile,BufRead *.bl setf blank -endif - -if !has_key(g:polyglot_is_disabled, 'bindzone') - au BufNewFile,BufRead named.root setf bindzone - au BufNewFile,BufRead */named/db.* call s:StarSetf('bindzone') - au BufNewFile,BufRead */bind/db.* call s:StarSetf('bindzone') -endif - -if !has_key(g:polyglot_is_disabled, 'named') - au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named -endif - -if !has_key(g:polyglot_is_disabled, 'bst') - au BufNewFile,BufRead *.bst setf bst -endif - -if !has_key(g:polyglot_is_disabled, 'bib') - au BufNewFile,BufRead *.bib setf bib -endif - -if !has_key(g:polyglot_is_disabled, 'bdf') - au BufNewFile,BufRead *.bdf setf bdf -endif - -if !has_key(g:polyglot_is_disabled, 'bc') - au BufNewFile,BufRead *.bc setf bc -endif - -if !has_key(g:polyglot_is_disabled, 'dosbatch') - au BufNewFile,BufRead *.bat,*.sys setf dosbatch -endif - -if !has_key(g:polyglot_is_disabled, 'hamster') - au BufNewFile,BufRead *.hsc,*.hsm setf hamster -endif - -if !has_key(g:polyglot_is_disabled, 'freebasic') - au BufNewFile,BufRead *.bi,*.fb setf freebasic -endif - -if !has_key(g:polyglot_is_disabled, 'ibasic') - au BufNewFile,BufRead *.iba,*.ibi setf ibasic -endif - -if !has_key(g:polyglot_is_disabled, 'b') - au BufNewFile,BufRead *.imp,*.mch,*.ref setf b -endif - -if !has_key(g:polyglot_is_disabled, 'sql') - au BufNewFile,BufRead *.bdy,*.ddl,*.fnc,*.pck,*.pkb,*.pks,*.plb,*.pls,*.plsql,*.prc,*.spc,*.sql,*.tpb,*.tps,*.trg,*.tyb,*.tyc,*.typ,*.vw setf sql -endif - -if !has_key(g:polyglot_is_disabled, 'gitignore') - au BufNewFile,BufRead *.git/info/exclude,*/.config/git/ignore,{.,}gitignore setf gitignore -endif - -if !has_key(g:polyglot_is_disabled, 'tads') - au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() -endif - -if !has_key(g:polyglot_is_disabled, 'prolog') - au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() - au BufNewFile,BufRead *.pdb,*.pro,*.prolog,*.yap setf prolog -endif - -if !has_key(g:polyglot_is_disabled, 'bzl') - au BufNewFile,BufRead *.BUILD,*.bazel,*.bzl,BUCK,BUILD,BUILD.bazel,Tiltfile,WORKSPACE setf bzl -endif - -if !has_key(g:polyglot_is_disabled, 'odin') - au BufNewFile,BufRead *.odin setf odin -endif - -if !has_key(g:polyglot_is_disabled, 'dosini') - au BufNewFile,BufRead *.dof,*.ini,*.lektorproject,*.prefs,*.pro,*.properties,*/etc/pacman.conf,*/etc/yum.conf,{.,}editorconfig,{.,}npmrc,buildozer.spec setf dosini - au BufNewFile,BufRead php.ini-* call s:StarSetf('dosini') - au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini') -endif - -if !has_key(g:polyglot_is_disabled, 'spec') - au BufNewFile,BufRead *.spec setf spec -endif - -if !has_key(g:polyglot_is_disabled, 'visual-basic') - au BufNewFile,BufRead,BufWritePost *.bas call polyglot#detect#Bas() - au BufNewFile,BufRead *.cls,*.ctl,*.dsm,*.frm,*.frx,*.sba,*.vba,*.vbs setf vb -endif - -if !has_key(g:polyglot_is_disabled, 'basic') - au BufNewFile,BufRead *.basic setf basic -endif - -if !has_key(g:polyglot_is_disabled, 'trasys') - au BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp() -endif - -if !has_key(g:polyglot_is_disabled, 'zig') - au BufNewFile,BufRead *.zir setf zir - au BufNewFile,BufRead *.zig,*.zir setf zig -endif - -if !has_key(g:polyglot_is_disabled, 'zephir') - au BufNewFile,BufRead *.zep setf zephir -endif - -if !has_key(g:polyglot_is_disabled, 'help') - au BufNewFile,BufRead $VIMRUNTIME/doc/*.txt setf help -endif - -if !has_key(g:polyglot_is_disabled, 'helm') - au BufNewFile,BufRead */templates/*.tpl,*/templates/*.yaml setf helm -endif - -if !has_key(g:polyglot_is_disabled, 'smarty') - au BufNewFile,BufRead *.tpl setf smarty -endif - -if !has_key(g:polyglot_is_disabled, 'ansible') - au BufNewFile,BufRead handlers.*.y{a,}ml,local.y{a,}ml,main.y{a,}ml,playbook.y{a,}ml,requirements.y{a,}ml,roles.*.y{a,}ml,site.y{a,}ml,tasks.*.y{a,}ml setf yaml.ansible - au BufNewFile,BufRead host_vars/* call s:StarSetf('yaml.ansible') - au BufNewFile,BufRead group_vars/* call s:StarSetf('yaml.ansible') -endif - -if !has_key(g:polyglot_is_disabled, 'xsl') - au BufNewFile,BufRead *.xsl,*.xslt setf xsl -endif - -if !has_key(g:polyglot_is_disabled, 'xdc') - au BufNewFile,BufRead *.xdc setf xdc -endif - -if !has_key(g:polyglot_is_disabled, 'vue') - au BufNewFile,BufRead *.vue,*.wpy setf vue -endif - -if !has_key(g:polyglot_is_disabled, 'vmasm') - au BufNewFile,BufRead *.mar setf vmasm -endif - -if !has_key(g:polyglot_is_disabled, 'velocity') - au BufNewFile,BufRead *.vm setf velocity -endif - -if !has_key(g:polyglot_is_disabled, 'vcl') - au BufNewFile,BufRead *.vcl setf vcl -endif - -if !has_key(g:polyglot_is_disabled, 'vbnet') - au BufNewFile,BufRead *.vb,*.vbhtml setf vbnet -endif - -if !has_key(g:polyglot_is_disabled, 'vala') - au BufNewFile,BufRead *.vala,*.valadoc,*.vapi setf vala -endif - -if !has_key(g:polyglot_is_disabled, 'v') - au BufNewFile,BufRead *.v,*.vsh,*.vv setf vlang -endif - -if !has_key(g:polyglot_is_disabled, 'unison') - au BufNewFile,BufRead *.u,*.uu setf unison -endif - -if !has_key(g:polyglot_is_disabled, 'typescript') - au BufNewFile,BufRead *.ts setf typescript - au BufNewFile,BufRead *.tsx setf typescriptreact -endif - -if !has_key(g:polyglot_is_disabled, 'twig') - au BufNewFile,BufRead *.twig setf html.twig - au BufNewFile,BufRead *.xml.twig setf xml.twig -endif - -if !has_key(g:polyglot_is_disabled, 'tutor') - au BufNewFile,BufRead *.tutor setf tutor -endif - -if !has_key(g:polyglot_is_disabled, 'tptp') - au BufNewFile,BufRead *.ax,*.p,*.tptp setf tptp -endif - -if !has_key(g:polyglot_is_disabled, 'toml') - au BufNewFile,BufRead *.toml,*/.cargo/config,*/.cargo/credentials,Cargo.lock,Gopkg.lock,Pipfile,poetry.lock setf toml -endif - -if !has_key(g:polyglot_is_disabled, 'tmux') - au BufNewFile,BufRead {.,}tmux*.conf setf tmux -endif - -if !has_key(g:polyglot_is_disabled, 'thrift') - au BufNewFile,BufRead *.thrift setf thrift -endif - -if !has_key(g:polyglot_is_disabled, 'textile') - au BufNewFile,BufRead *.textile setf textile -endif - -if !has_key(g:polyglot_is_disabled, 'terraform') - au BufNewFile,BufRead *.tf,*.tfvars setf terraform -endif - -if !has_key(g:polyglot_is_disabled, 'tf') - au BufNewFile,BufRead *.tf,{.,}tfrc,tfrc setf tf -endif - -if !has_key(g:polyglot_is_disabled, 'systemd') - au BufNewFile,BufRead *.automount,*.dnssd,*.link,*.mount,*.netdev,*.network,*.nspawn,*.path,*.service,*.slice,*.socket,*.swap,*.target,*.timer,*/systemd/*.conf setf systemd - au BufNewFile,BufRead *.#* call s:StarSetf('systemd') -endif - -if !has_key(g:polyglot_is_disabled, 'sxhkd') - au BufNewFile,BufRead *.sxhkdrc,sxhkdrc setf sxhkdrc -endif - -if !has_key(g:polyglot_is_disabled, 'swift') - au BufNewFile,BufRead *.swift setf swift -endif - -if !has_key(g:polyglot_is_disabled, 'svg') - au BufNewFile,BufRead *.svg setf svg -endif - -if !has_key(g:polyglot_is_disabled, 'svelte') - au BufNewFile,BufRead *.svelte setf svelte -endif - -if !has_key(g:polyglot_is_disabled, 'stylus') - au BufNewFile,BufRead *.styl,*.stylus setf stylus -endif - -if !has_key(g:polyglot_is_disabled, 'solidity') - au BufNewFile,BufRead *.sol setf solidity -endif - -if !has_key(g:polyglot_is_disabled, 'smt2') - au BufNewFile,BufRead *.smt,*.smt2 setf smt2 -endif - -if !has_key(g:polyglot_is_disabled, 'slime') - au BufNewFile,BufRead *.slime setf slime -endif - -if !has_key(g:polyglot_is_disabled, 'slim') - au BufNewFile,BufRead *.slim setf slim -endif - -if !has_key(g:polyglot_is_disabled, 'sh') - au BufNewFile,BufRead *.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh,*.sh.in,*.tmux,*.tool,*/etc/udev/cdsymlinks.conf,{.,}bash_aliases,{.,}bash_history,{.,}bash_logout,{.,}bash_profile,{.,}bashrc,{.,}cshrc,{.,}env,{.,}env.example,{.,}flaskenv,{.,}login,{.,}profile,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile setf sh - au BufNewFile,BufRead *.zsh,*/etc/zprofile,{.,}zfbfmarks,{.,}zlogin,{.,}zlogout,{.,}zprofile,{.,}zshenv,{.,}zshrc setf zsh - au BufNewFile,BufRead .zsh* call s:StarSetf('zsh') - au BufNewFile,BufRead .zlog* call s:StarSetf('zsh') - au BufNewFile,BufRead .zcompdump* call s:StarSetf('zsh') -endif - -if !has_key(g:polyglot_is_disabled, 'scss') - au BufNewFile,BufRead *.scss setf scss -endif - -if !has_key(g:polyglot_is_disabled, 'scala') - au BufNewFile,BufRead *.kojo,*.sc,*.scala setf scala -endif - -if !has_key(g:polyglot_is_disabled, 'rust') - au BufNewFile,BufRead *.rs,*.rs.in setf rust -endif - -if !has_key(g:polyglot_is_disabled, 'brewfile') - au BufNewFile,BufRead Brewfile setf brewfile -endif - -if !has_key(g:polyglot_is_disabled, 'rspec') - au BufNewFile,BufRead *_spec.rb set ft=ruby syntax=rspec -endif - -if !has_key(g:polyglot_is_disabled, 'ruby') - au BufNewFile,BufRead *.axlsx,*.builder,*.cap,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.opal,*.pluginspec,*.podspec,*.rabl,*.rake,*.rant,*.rb,*.rbi,*.rbuild,*.rbw,*.rbx,*.rjs,*.ru,*.ruby,*.rxml,*.spec,*.thor,*.watchr,{.,}Brewfile,{.,}Guardfile,{.,}autotest,{.,}irbrc,{.,}pryrc,{.,}simplecov,Appraisals,Berksfile,Buildfile,Capfile,Cheffile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,KitchenSink,Mavenfile,Podfile,Puppetfile,Rakefile,Routefile,Snapfile,Thorfile,Vagrantfile,[Rr]antfile,buildfile,vagrantfile setf ruby - au BufNewFile,BufRead [Rr]akefile* call s:StarSetf('ruby') - au BufNewFile,BufRead *.erb,*.erb.deface,*.rhtml setf eruby -endif - -if !has_key(g:polyglot_is_disabled, 'rst') - au BufNewFile,BufRead *.rest,*.rest.txt,*.rst,*.rst.txt setf rst -endif - -if !has_key(g:polyglot_is_disabled, 'reason') - au BufNewFile,BufRead,BufWritePost *.re call polyglot#detect#Re() - au BufNewFile,BufRead *.rei setf reason -endif - -if !has_key(g:polyglot_is_disabled, 'razor') - au BufNewFile,BufRead *.cshtml,*.razor setf razor -endif - -if !has_key(g:polyglot_is_disabled, 'raml') - au BufNewFile,BufRead *.raml setf raml -endif - -if !has_key(g:polyglot_is_disabled, 'raku') - au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() - au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() - au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() - au BufNewFile,BufRead *.6pl,*.6pm,*.nqp,*.p6,*.p6l,*.p6m,*.pl6,*.pm6,*.pod6,*.raku,*.rakudoc,*.rakumod,*.rakutest,*.t6 setf raku -endif - -if !has_key(g:polyglot_is_disabled, 'ragel') - au BufNewFile,BufRead *.rl setf ragel -endif - -if !has_key(g:polyglot_is_disabled, 'racket') - au BufNewFile,BufRead *.rkt,*.rktd,*.rktl,*.scrbl setf racket -endif - -if !has_key(g:polyglot_is_disabled, 'r-lang') - au BufNewFile,BufRead *.S,*.r,*.rsx,*.s,{.,}Rprofile,expr-dist setf r - au BufNewFile,BufRead *.rd setf rhelp -endif - -if !has_key(g:polyglot_is_disabled, 'qml') - au BufNewFile,BufRead *.qbs,*.qml setf qml -endif - -if !has_key(g:polyglot_is_disabled, 'qmake') - au BufNewFile,BufRead *.pri,*.pro setf qmake -endif - -if !has_key(g:polyglot_is_disabled, 'requirements') - au BufNewFile,BufRead *.pip,*require.{txt,in},*requirements.{txt,in},constraints.{txt,in} setf requirements -endif - -if !has_key(g:polyglot_is_disabled, 'python') - au BufNewFile,BufRead *.cgi,*.fcgi,*.gyp,*.gypi,*.lmi,*.ptl,*.py,*.py3,*.pyde,*.pyi,*.pyp,*.pyt,*.pyw,*.rpy,*.smk,*.spec,*.tac,*.wsgi,*.xpy,{.,}gclient,{.,}pythonrc,{.,}pythonstartup,DEPS,SConscript,SConstruct,Snakefile,wscript setf python -endif - -if !has_key(g:polyglot_is_disabled, 'purescript') - au BufNewFile,BufRead *.purs setf purescript -endif - -if !has_key(g:polyglot_is_disabled, 'puppet') - au BufNewFile,BufRead *.pp,Modulefile setf puppet - au BufNewFile,BufRead *.epp setf embeddedpuppet -endif - -if !has_key(g:polyglot_is_disabled, 'pug') - au BufNewFile,BufRead *.jade,*.pug setf pug -endif - -if !has_key(g:polyglot_is_disabled, 'protobuf') - au BufNewFile,BufRead *.proto setf proto -endif - -if !has_key(g:polyglot_is_disabled, 'powershell') - au BufNewFile,BufRead *.ps1,*.psd1,*.psm1,*.pssc setf ps1 - au BufNewFile,BufRead *.ps1xml setf ps1xml -endif - -if !has_key(g:polyglot_is_disabled, 'pony') - au BufNewFile,BufRead *.pony setf pony -endif - -if !has_key(g:polyglot_is_disabled, 'plantuml') - au BufNewFile,BufRead *.iuml,*.plantuml,*.pu,*.puml,*.uml setf plantuml -endif - -if !has_key(g:polyglot_is_disabled, 'pest') - au BufNewFile,BufRead *.pest setf pest -endif - -if !has_key(g:polyglot_is_disabled, 'blade') - au BufNewFile,BufRead *.blade,*.blade.php setf blade -endif - -if !has_key(g:polyglot_is_disabled, 'php') - au BufNewFile,BufRead *.aw,*.ctp,*.fcgi,*.inc,*.php,*.php3,*.php4,*.php5,*.php9,*.phps,*.phpt,*.phtml,{.,}php,{.,}php_cs,{.,}php_cs.dist,Phakefile setf php -endif - -if !has_key(g:polyglot_is_disabled, 'cql') - au BufNewFile,BufRead *.cql setf cql -endif - -if !has_key(g:polyglot_is_disabled, 'pgsql') - au BufNewFile,BufRead *.pgsql let b:sql_type_override='pgsql' | set ft=sql -endif - -if !has_key(g:polyglot_is_disabled, 'perl') - au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() - au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() - au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() - au BufNewFile,BufRead *.al,*.cgi,*.fcgi,*.perl,*.ph,*.plx,*.psgi,{.,}gitolite.rc,Makefile.PL,Rexfile,ack,cpanfile,example.gitolite.rc setf perl - au BufNewFile,BufRead *.pod setf pod - au BufNewFile,BufRead *.comp,*.mason,*.mhtml setf mason - au BufNewFile,BufRead,BufWritePost *.tt2 call polyglot#detect#Tt2() - au BufNewFile,BufRead,BufWritePost *.tt2 call polyglot#detect#Tt2() - au BufNewFile,BufRead *.xs setf xs -endif - -if !has_key(g:polyglot_is_disabled, 'rc') - au BufNewFile,BufRead *.rc,*.rch setf rc -endif - -if !has_key(g:polyglot_is_disabled, 'opencl') - au BufNewFile,BufRead *.cl,*.opencl setf opencl -endif - -if !has_key(g:polyglot_is_disabled, 'octave') - au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() - au BufNewFile,BufRead *.oct setf octave -endif - -if !has_key(g:polyglot_is_disabled, 'ocaml') - au BufNewFile,BufRead *.eliom,*.eliomi,*.ml,*.ml.cppo,*.ml4,*.mli,*.mli.cppo,*.mlip,*.mll,*.mlp,*.mlt,*.mly,{.,}ocamlinit setf ocaml - au BufNewFile,BufRead *.om,OMakefile,OMakeroot,OMakeroot.in setf omake - au BufNewFile,BufRead *.opam,*.opam.template,opam setf opam - au BufNewFile,BufRead _oasis setf oasis - au BufNewFile,BufRead dune,dune-project,dune-workspace,jbuild setf dune - au BufNewFile,BufRead _tags setf ocamlbuild_tags - au BufNewFile,BufRead *.ocp setf ocpbuild - au BufNewFile,BufRead *.root setf ocpbuildroot - au BufNewFile,BufRead *.sexp setf sexplib -endif - -if !has_key(g:polyglot_is_disabled, 'objc') - au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() - au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() -endif - -if !has_key(g:polyglot_is_disabled, 'nix') - au BufNewFile,BufRead *.nix setf nix -endif - -if !has_key(g:polyglot_is_disabled, 'nim') - au BufNewFile,BufRead *.nim,*.nim.cfg,*.nimble,*.nimrod,*.nims,nim.cfg setf nim -endif - -if !has_key(g:polyglot_is_disabled, 'nginx') - au BufNewFile,BufRead *.nginx,*.nginxconf,*.vhost,*/nginx/*.conf,*nginx.conf,nginx*.conf,nginx.conf setf nginx - au BufNewFile,BufRead */usr/local/nginx/conf/* call s:StarSetf('nginx') - au BufNewFile,BufRead */etc/nginx/* call s:StarSetf('nginx') -endif - -if !has_key(g:polyglot_is_disabled, 'murphi') - au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() -endif - -if !has_key(g:polyglot_is_disabled, 'moonscript') - au BufNewFile,BufRead *.moon setf moon -endif - -if !has_key(g:polyglot_is_disabled, 'meson') - au BufNewFile,BufRead meson.build,meson_options.txt setf meson - au BufNewFile,BufRead *.wrap setf dosini -endif - -if !has_key(g:polyglot_is_disabled, 'mdx') - au BufNewFile,BufRead *.mdx setf markdown.mdx -endif - -if !has_key(g:polyglot_is_disabled, 'mathematica') - au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() - au BufNewFile,BufRead *.cdf,*.ma,*.mathematica,*.mma,*.mt,*.nb,*.nbp,*.wl,*.wls,*.wlt setf mma -endif - -if !has_key(g:polyglot_is_disabled, 'mako') - au BufNewFile,BufRead *.mako,*.mao setf mako - au BufReadPre *.*.mao execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype - au BufNewFile *.*.mao execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype - au BufReadPre *.*.mako execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype - au BufNewFile *.*.mako execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype -endif - -if !has_key(g:polyglot_is_disabled, 'm4') - au BufNewFile,BufRead *.at,*.m4 setf m4 -endif - -if !has_key(g:polyglot_is_disabled, 'lua') - au BufNewFile,BufRead *.fcgi,*.lua,*.nse,*.p8,*.pd_lua,*.rbxs,*.rockspec,*.wlua,{.,}luacheckrc setf lua -endif - -if !has_key(g:polyglot_is_disabled, 'log') - au BufNewFile,BufRead *.LOG,*.log,*_LOG,*_log setf log -endif - -if !has_key(g:polyglot_is_disabled, 'llvm') - au BufNewFile,BufRead *.ll setf llvm - au BufNewFile,BufRead *.td setf tablegen -endif - -if !has_key(g:polyglot_is_disabled, 'livescript') - au BufNewFile,BufRead *._ls,*.ls,Slakefile setf livescript -endif - -if !has_key(g:polyglot_is_disabled, 'lilypond') - au BufNewFile,BufRead *.ily,*.ly setf lilypond -endif - -if !has_key(g:polyglot_is_disabled, 'less') - au BufNewFile,BufRead *.less setf less -endif - -if !has_key(g:polyglot_is_disabled, 'ledger') - au BufNewFile,BufRead *.journal,*.ldg,*.ledger setf ledger -endif - -if !has_key(g:polyglot_is_disabled, 'kotlin') - au BufNewFile,BufRead *.kt,*.ktm,*.kts setf kotlin -endif - -if !has_key(g:polyglot_is_disabled, 'julia') - au BufNewFile,BufRead *.jl setf julia -endif - -if !has_key(g:polyglot_is_disabled, 'jst') - au BufNewFile,BufRead *.ect,*.ejs,*.jst setf jst -endif - -if !has_key(g:polyglot_is_disabled, 'jsonnet') - au BufNewFile,BufRead *.jsonnet,*.libsonnet setf jsonnet -endif - -if !has_key(g:polyglot_is_disabled, 'json') - au BufNewFile,BufRead *.JSON-tmLanguage,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.json,*.jsonl,*.jsonp,*.mcmeta,*.template,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,{.,}arcconfig,{.,}htmlhintrc,{.,}tern-config,{.,}tern-project,{.,}watchmanconfig,Pipfile.lock,composer.lock,mcmod.info setf json -endif - -if !has_key(g:polyglot_is_disabled, 'json5') - au BufNewFile,BufRead *.json5 setf json5 -endif - -if !has_key(g:polyglot_is_disabled, 'jq') - au BufNewFile,BufRead *.jq,{.,}jqrc setf jq - au BufNewFile,BufRead .jqrc* call s:StarSetf('jq') -endif - -if !has_key(g:polyglot_is_disabled, 'htmldjango') - au BufNewFile,BufRead *.j2,*.jinja,*.jinja2,*.njk setf htmldjango -endif - -if !has_key(g:polyglot_is_disabled, 'jenkins') - au BufNewFile,BufRead *.Jenkinsfile,*.jenkinsfile,Jenkinsfile setf Jenkinsfile - au BufNewFile,BufRead Jenkinsfile* call s:StarSetf('Jenkinsfile') -endif - -if !has_key(g:polyglot_is_disabled, 'ion') - au BufNewFile,BufRead *.ion,~/.config/ion/initrc setf ion -endif - -if !has_key(g:polyglot_is_disabled, 'idris2') - au BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr() - au BufNewFile,BufRead *.ipkg,idris-response setf idris2 - au BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr() -endif - -if !has_key(g:polyglot_is_disabled, 'idris') - au BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr() - au BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr() - au BufNewFile,BufRead idris-response setf idris -endif - -if !has_key(g:polyglot_is_disabled, 'icalendar') - au BufNewFile,BufRead *.ics setf icalendar -endif - -if !has_key(g:polyglot_is_disabled, 'i3') - au BufNewFile,BufRead *.i3.config,*.i3config,{.,}i3.config,{.,}i3config,i3.config,i3config setf i3config -endif - -if !has_key(g:polyglot_is_disabled, 'hive') - au BufNewFile,BufRead *.hql,*.q,*.ql setf hive -endif - -if !has_key(g:polyglot_is_disabled, 'hcl') - au BufNewFile,BufRead *.hcl,*.nomad,*.workflow,Appfile setf hcl -endif - -if !has_key(g:polyglot_is_disabled, 'haxe') - au BufNewFile,BufRead *.hx,*.hxsl setf haxe -endif - -if !has_key(g:polyglot_is_disabled, 'haskell') - au BufNewFile,BufRead *.bpk,*.hs,*.hs-boot,*.hsc,*.hsig setf haskell -endif - -if !has_key(g:polyglot_is_disabled, 'haproxy') - au BufNewFile,BufRead haproxy*.conf* call s:StarSetf('haproxy') - au BufNewFile,BufRead haproxy*.cfg* call s:StarSetf('haproxy') -endif - -if !has_key(g:polyglot_is_disabled, 'handlebars') - au BufNewFile,BufRead *.hjs,*.hogan,*.hulk,*.mustache setf html.mustache - au BufNewFile,BufRead *.handlebars,*.hb,*.hbs,*.hdbs setf html.handlebars -endif - -if !has_key(g:polyglot_is_disabled, 'haml') - au BufNewFile,BufRead *.haml,*.haml.deface,*.hamlbars,*.hamlc setf haml -endif - -if !has_key(g:polyglot_is_disabled, 'grub') - au BufNewFile,BufRead */boot/grub/grub.conf,*/boot/grub/menu.lst,*/etc/grub.conf setf grub -endif - -if !has_key(g:polyglot_is_disabled, 'groovy') - au BufNewFile,BufRead *.gradle,*.groovy,*.grt,*.gtpl,*.gvy,Jenkinsfile setf groovy -endif - -if !has_key(g:polyglot_is_disabled, 'graphql') - au BufNewFile,BufRead *.gql,*.graphql,*.graphqls setf graphql -endif - -if !has_key(g:polyglot_is_disabled, 'jsx') - au BufNewFile,BufRead *.jsx setf javascriptreact -endif - -if !has_key(g:polyglot_is_disabled, 'javascript') - au BufNewFile,BufRead *._js,*.bones,*.cjs,*.es,*.es6,*.frag,*.gs,*.jake,*.javascript,*.js,*.jsb,*.jscad,*.jsfl,*.jsm,*.jss,*.mjs,*.njs,*.pac,*.sjs,*.ssjs,*.xsjs,*.xsjslib,Jakefile setf javascript - au BufNewFile,BufRead *.flow setf flow -endif - -if !has_key(g:polyglot_is_disabled, 'go') - au BufNewFile,BufRead *.go setf go - au BufNewFile,BufRead go.mod setf gomod - au BufNewFile,BufRead *.tmpl setf gohtmltmpl -endif - -if !has_key(g:polyglot_is_disabled, 'gnuplot') - au BufNewFile,BufRead *.gnu,*.gnuplot,*.gp,*.gpi,*.p,*.plot,*.plt setf gnuplot -endif - -if !has_key(g:polyglot_is_disabled, 'gmpl') - au BufNewFile,BufRead *.mod setf gmpl -endif - -if !has_key(g:polyglot_is_disabled, 'glsl') - au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() - au BufNewFile,BufRead *.comp,*.fp,*.frag,*.frg,*.fsh,*.fshader,*.geo,*.geom,*.glsl,*.glslf,*.glslv,*.gs,*.gshader,*.shader,*.tesc,*.tese,*.vert,*.vrx,*.vsh,*.vshader setf glsl -endif - -if !has_key(g:polyglot_is_disabled, 'git') - au BufNewFile,BufRead *.gitconfig,*.git/config,*.git/modules/*/config,*/.config/git/config,*/git/config,{.,}gitconfig,{.,}gitmodules setf gitconfig - au BufNewFile,BufRead */{.,}gitconfig.d/* call s:StarSetf('gitconfig') - au BufNewFile,BufRead git-rebase-todo setf gitrebase - au BufNewFile,BufRead .gitsendemail.* call s:StarSetf('gitsendemail') - au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit -endif - -if !has_key(g:polyglot_is_disabled, 'gdscript') - au BufNewFile,BufRead *.gd setf gdscript3 -endif - -if !has_key(g:polyglot_is_disabled, 'fsharp') - au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() - au BufNewFile,BufRead *.fsi,*.fsx setf fsharp -endif - -if !has_key(g:polyglot_is_disabled, 'forth') - au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() - au BufNewFile,BufRead *.ft,*.fth setf forth -endif - -if !has_key(g:polyglot_is_disabled, 'flatbuffers') - au BufNewFile,BufRead *.fbs setf fbs -endif - -if !has_key(g:polyglot_is_disabled, 'fish') - au BufNewFile,BufRead *.fish setf fish -endif - -if !has_key(g:polyglot_is_disabled, 'ferm') - au BufNewFile,BufRead *.ferm,ferm.conf setf ferm -endif - -if !has_key(g:polyglot_is_disabled, 'fennel') - au BufNewFile,BufRead *.fnl setf fennel -endif - -if !has_key(g:polyglot_is_disabled, 'erlang') - au BufNewFile,BufRead *.app,*.app.src,*.erl,*.es,*.escript,*.hrl,*.xrl,*.yaws,*.yrl,Emakefile,rebar.config,rebar.config.lock,rebar.lock setf erlang -endif - -if !has_key(g:polyglot_is_disabled, 'emblem') - au BufNewFile,BufRead *.em,*.emblem setf emblem -endif - -if !has_key(g:polyglot_is_disabled, 'emberscript') - au BufNewFile,BufRead *.em,*.emberscript setf ember-script -endif - -if !has_key(g:polyglot_is_disabled, 'elm') - au BufNewFile,BufRead *.elm setf elm -endif - -if !has_key(g:polyglot_is_disabled, 'elixir') - au BufNewFile,BufRead *.ex,*.exs,mix.lock setf elixir - au BufNewFile,BufRead *.eex,*.html.leex,*.leex setf eelixir -endif - -if !has_key(g:polyglot_is_disabled, 'docker-compose') - au BufNewFile,BufRead docker-compose*.yaml,docker-compose*.yml setf yaml.docker-compose -endif - -if !has_key(g:polyglot_is_disabled, 'yaml') - au BufNewFile,BufRead *.mir,*.reek,*.rviz,*.sublime-syntax,*.syntax,*.yaml,*.yaml-tmlanguage,*.yaml.sed,*.yml,*.yml.mysql,{.,}clang-format,{.,}clang-tidy,{.,}gemrc,fish_history,fish_read_history,glide.lock,yarn.lock setf yaml -endif - -if !has_key(g:polyglot_is_disabled, 'mysql') - au BufNewFile,BufRead *.mysql setf mysql -endif - -if !has_key(g:polyglot_is_disabled, 'sed') - au BufNewFile,BufRead *.sed setf sed -endif - -if !has_key(g:polyglot_is_disabled, 'dlang') - au BufNewFile,BufRead *.d,*.di setf d - au BufNewFile,BufRead *.lst setf dcov - au BufNewFile,BufRead *.dd setf dd - au BufNewFile,BufRead *.ddoc setf ddoc - au BufNewFile,BufRead *.sdl setf dsdl -endif - -if !has_key(g:polyglot_is_disabled, 'dhall') - au BufNewFile,BufRead *.dhall setf dhall -endif - -if !has_key(g:polyglot_is_disabled, 'dart') - au BufNewFile,BufRead *.dart,*.drt setf dart -endif - -if !has_key(g:polyglot_is_disabled, 'cue') - au BufNewFile,BufRead *.cue setf cuesheet -endif - -if !has_key(g:polyglot_is_disabled, 'cucumber') - au BufNewFile,BufRead *.feature,*.story setf cucumber -endif - -if !has_key(g:polyglot_is_disabled, 'crystal') - au BufNewFile,BufRead *.cr,Projectfile setf crystal - au BufNewFile,BufRead *.ecr setf ecrystal -endif - -if !has_key(g:polyglot_is_disabled, 'cryptol') - au BufNewFile,BufRead *.cry,*.cyl,*.lcry,*.lcyl setf cryptol -endif - -if !has_key(g:polyglot_is_disabled, 'coffee-script') - au BufNewFile,BufRead *._coffee,*.cake,*.cjsx,*.coffee,*.coffeekup,*.cson,*.iced,Cakefile setf coffee - au BufNewFile,BufRead *.coffee.md,*.litcoffee setf litcoffee -endif - -if !has_key(g:polyglot_is_disabled, 'markdown') - au BufNewFile,BufRead *.markdown,*.md,*.mdown,*.mdwn,*.mkd,*.mkdn,*.mkdown,*.ronn,*.workbook,contents.lr setf markdown -endif - -if !has_key(g:polyglot_is_disabled, 'cmake') - au BufNewFile,BufRead *.cmake,*.cmake.in,CMakeLists.txt setf cmake -endif - -if !has_key(g:polyglot_is_disabled, 'clojure') - au BufNewFile,BufRead *.boot,*.cl2,*.clj,*.cljc,*.cljs,*.cljs.hl,*.cljscm,*.cljx,*.edn,*.hic,build.boot,profile.boot,riemann.config setf clojure -endif - -if !has_key(g:polyglot_is_disabled, 'carp') - au BufNewFile,BufRead *.carp setf carp -endif - -if !has_key(g:polyglot_is_disabled, 'caddyfile') - au BufNewFile,BufRead Caddyfile setf caddyfile -endif - -if !has_key(g:polyglot_is_disabled, 'awk') - au BufNewFile,BufRead *.awk,*.gawk setf awk -endif - -if !has_key(g:polyglot_is_disabled, 'ave') - au BufNewFile,BufRead *.ave setf ave -endif - -if !has_key(g:polyglot_is_disabled, 'autoit') - au BufNewFile,BufRead *.au3 setf autoit -endif - -if !has_key(g:polyglot_is_disabled, 'atlas') - au BufNewFile,BufRead *.as,*.atl setf atlas -endif - -if !has_key(g:polyglot_is_disabled, 'aspperl') - au BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp() -endif - -if !has_key(g:polyglot_is_disabled, 'aspvbs') - au BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp() - au BufNewFile,BufRead,BufWritePost *.asa call polyglot#detect#Asa() -endif - -if !has_key(g:polyglot_is_disabled, 'asn') - au BufNewFile,BufRead *.asn,*.asn1 setf asn -endif - -if !has_key(g:polyglot_is_disabled, 'automake') - au BufNewFile,BufRead GNUmakefile.am,[mM]akefile.am setf automake -endif - -if !has_key(g:polyglot_is_disabled, 'elf') - au BufNewFile,BufRead *.am setf elf -endif - -if !has_key(g:polyglot_is_disabled, 'make') - au BufNewFile,BufRead *.dsp,*.mak,*.mk,*[mM]akefile setf make -endif - -if !has_key(g:polyglot_is_disabled, 'autohotkey') - au BufNewFile,BufRead *.ahk,*.ahkl setf autohotkey -endif - -if !has_key(g:polyglot_is_disabled, 'asciidoc') - au BufNewFile,BufRead *.adoc,*.asc,*.asciidoc setf asciidoc -endif - -if !has_key(g:polyglot_is_disabled, 'art') - au BufNewFile,BufRead *.art setf art -endif - -if !has_key(g:polyglot_is_disabled, 'arduino') - au BufNewFile,BufRead *.ino,*.pde setf arduino -endif - -if !has_key(g:polyglot_is_disabled, 'c/c++') - au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() - au BufNewFile,BufRead *.c++,*.cc,*.cp,*.cpp,*.cxx,*.h++,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.moc,*.tcc,*.tlh,*.tpp setf cpp - au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() - au BufNewFile,BufRead *.c,*.cats,*.idc,*.qc,*enlightenment/*.cfg setf c -endif - -if !has_key(g:polyglot_is_disabled, 'arch') - au BufNewFile,BufRead {.,}arch-inventory,=tagging-method setf arch -endif - -if !has_key(g:polyglot_is_disabled, 'aptconf') - au BufNewFile,BufRead */.aptitude/config,*/etc/apt/apt.conf.d/*.conf,apt.conf setf aptconf - au BufNewFile,BufRead */etc/apt/apt.conf.d/[^.]* call s:StarSetf('aptconf') -endif - -if !has_key(g:polyglot_is_disabled, 'applescript') - au BufNewFile,BufRead *.applescript,*.scpt setf applescript -endif - -if !has_key(g:polyglot_is_disabled, 'apiblueprint') - au BufNewFile,BufRead *.apib setf apiblueprint -endif - -if !has_key(g:polyglot_is_disabled, 'apache') - au BufNewFile,BufRead */etc/apache2/sites-*/*.com,*/etc/httpd/*.conf,{.,}htaccess setf apache - au BufNewFile,BufRead srm.conf* call s:StarSetf('apache') - au BufNewFile,BufRead httpd.conf* call s:StarSetf('apache') - au BufNewFile,BufRead apache2.conf* call s:StarSetf('apache') - au BufNewFile,BufRead apache.conf* call s:StarSetf('apache') - au BufNewFile,BufRead access.conf* call s:StarSetf('apache') - au BufNewFile,BufRead */etc/httpd/conf.d/*.conf* call s:StarSetf('apache') - au BufNewFile,BufRead */etc/apache2/sites-*/* call s:StarSetf('apache') - au BufNewFile,BufRead */etc/apache2/mods-*/* call s:StarSetf('apache') - au BufNewFile,BufRead */etc/apache2/conf.*/* call s:StarSetf('apache') - au BufNewFile,BufRead */etc/apache2/*.conf* call s:StarSetf('apache') -endif - -if !has_key(g:polyglot_is_disabled, 'ant') - au BufNewFile,BufRead build.xml setf ant -endif - -if !has_key(g:polyglot_is_disabled, 'xml') - au BufNewFile,BufRead *.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.cdxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.csproj.user,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.psc1,*.pt,*.rdf,*.res,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.tpm,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wpl,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*/etc/blkid.tab,*/etc/blkid.tab.old,*/etc/xdg/menus/*.menu,*fglrxrc,{.,}classpath,{.,}cproject,{.,}project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config setf xml -endif - -if !has_key(g:polyglot_is_disabled, 'csv') - au BufNewFile,BufRead *.csv,*.tab,*.tsv setf csv -endif - -if !has_key(g:polyglot_is_disabled, 'ampl') - " AMPL - au BufNewFile,BufRead *.run setf ampl -endif - -if !has_key(g:polyglot_is_disabled, 'aml') - au BufNewFile,BufRead *.aml setf aml -endif - -if !has_key(g:polyglot_is_disabled, 'alsaconf') - au BufNewFile,BufRead */etc/asound.conf,*/usr/share/alsa/alsa.conf,{.,}asoundrc setf alsaconf -endif - -if !has_key(g:polyglot_is_disabled, 'conf') - au BufNewFile,BufRead *.conf,*/etc/hosts,auto.master,config setf conf -endif - -if !has_key(g:polyglot_is_disabled, 'master') - au BufNewFile,BufRead *.mas,*.master setf master -endif - -if !has_key(g:polyglot_is_disabled, 'aidl') - " AIDL - au BufNewFile,BufRead *.aidl setf aidl -endif - -if !has_key(g:polyglot_is_disabled, 'ahdl') - " AHDL - au BufNewFile,BufRead *.tdf setf ahdl -endif - -if !has_key(g:polyglot_is_disabled, 'ada') - " Ada (83, 9X, 95) - au BufNewFile,BufRead *.ada,*.ada_m,*.adb,*.adc,*.ads,*.gpr setf ada -endif - -if !has_key(g:polyglot_is_disabled, 'acpiasl') - au BufNewFile,BufRead *.asl,*.dsl setf asl -endif - -if !has_key(g:polyglot_is_disabled, 'acedb') - " AceDB - au BufNewFile,BufRead *.wrm setf acedb -endif - -if !has_key(g:polyglot_is_disabled, 'abel') - " ABEL - au BufNewFile,BufRead *.abl setf abel -endif - -if !has_key(g:polyglot_is_disabled, 'abc') - " ABC music notation - au BufNewFile,BufRead *.abc setf abc -endif - -if !has_key(g:polyglot_is_disabled, 'abaqus') - au BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp() -endif - -if !has_key(g:polyglot_is_disabled, 'abap') - " ABAB/4 - au BufNewFile,BufRead *.abap setf abap -endif - -if !has_key(g:polyglot_is_disabled, 'aap') - " A-A-P recipe - au BufNewFile,BufRead *.aap setf aap -endif - -if !has_key(g:polyglot_is_disabled, 'a65') - " XA65 MOS6510 cross assembler - au BufNewFile,BufRead *.a65 setf a65 -endif - -if !has_key(g:polyglot_is_disabled, 'a2ps') - au BufNewFile,BufRead */etc/a2ps.cfg,*/etc/a2ps/*.cfg,{.,}a2psrc,a2psrc setf a2ps -endif - -if !has_key(g:polyglot_is_disabled, 'cfg') - au BufNewFile,BufRead *.cfg,*.hgrc,*hgrc setf cfg -endif - -if !has_key(g:polyglot_is_disabled, '8th') - " 8th (Firth-derivative) - au BufNewFile,BufRead *.8th setf 8th -endif - - -" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE - -func! s:Observe(fn) - let b:PolyglotObserve = function("polyglot#" . a:fn) - augroup polyglot-observer - au! - au CursorHold,CursorHoldI <buffer> call b:PolyglotObserve() - augroup END -endfunc - -au BufNewFile,BufRead,StdinReadPost,BufWritePost * if (&ft == "" || &ft == "conf") && expand("<afile>:e") == "" | - \ call polyglot#shebang#Detect() | endif - -au BufWinEnter * if &ft == "" && expand("<afile>:e") == "" | - \ call s:Observe('shebang#Detect') | endif - -au BufWritePost * au! polyglot-observer - -augroup END - -endif - -if !has_key(g:polyglot_is_disabled, 'sensible') - " Use 2-spaces tab indentation by default - if &tabstop == 8 - let &tabstop = 2 - endif - - " Set shiftwidth to proper value as users often mix it with tabstop - if &shiftwidth > &tabstop - let &shiftwidth = &tabstop - endif - - " Use utf-8 encoding by default - set encoding=utf-8 - - " Reload unchanged files automatically. - set autoread - - " This is needed to avoid swapfile warning when auto-reloading - set shortmess+=A - - " Avoids swapfiles in current directory - if &directory =~# '^\.,' - if !empty($HOME) - if has('win32') - let &directory = expand('$HOME/vimfiles') . '//,' . &directory - else - let &directory = expand('$HOME/.vim') . '//,' . &directory - endif - endif - if !empty($XDG_DATA_HOME) - let &directory = expand('$XDG_DATA_HOME') . '//,' . &directory - endif - if has('macunix') - let &directory = expand('$HOME/Library/Autosave Information') . '//,' . &directory - endif - endif - - " Autoindent when starting new line, or using `o` or `O`. - set autoindent -endif - -if !has_key(g:polyglot_is_disabled, 'autoindent') - " Code below re-implements sleuth for vim-polyglot - let g:loaded_sleuth = 1 - - let s:default_shiftwidth = &shiftwidth - - func! s:get_shiftwidth(indents) abort - let shiftwidth = 0 - let max_count = 0 - let final_counts = {} - for [indent, indent_count] in items(a:indents) - let indent_count = indent_count * 1.5 - for [indent2, indent2_count] in items(a:indents) - if indent2 > indent && indent2 % indent == 0 - let indent_count = indent_count + indent2_count - endif - endfor - let final_counts[indent] = indent_count - endfor - for [indent, final_count] in items(final_counts) - if final_count > max_count - let shiftwidth = indent - let max_count = final_count - endif - endfor - return shiftwidth - endfunc - - func! s:guess(lines) abort - let options = {} - let ccomment = 0 - let podcomment = 0 - let triplequote = 0 - let backtick = 0 - let xmlcomment = 0 - let heredoc = '' - let minindent = 10 - let spaces_minus_tabs = 0 - let lineno = 0 - let stack = [0] - let indents = { '2': 0, '3': 0, '4': 0, '6': 0, '8': 0 } - - for line in a:lines - let lineno += 1 - - if line =~# '^\s*$' - continue - endif - - if line =~# '^\s*/\*' - let ccomment = 1 - endif - if ccomment - if line =~# '\*/' - let ccomment = 0 - endif - continue - endif - - if line =~# '^=\w' - let podcomment = 1 - endif - if podcomment - if line =~# '^=\%(end\|cut\)\>' - let podcomment = 0 - endif - continue - endif - - if triplequote - if line =~# '^[^"]*"""[^"]*$' - let triplequote = 0 - endif - continue - elseif line =~# '^[^"]*"""[^"]*$' - let triplequote = 1 - endif - - if backtick - if line =~# '^[^`]*`[^`]*$' - let backtick = 0 - endif - continue - elseif &filetype ==# 'go' && line =~# '^[^`]*`[^`]*$' - let backtick = 1 - endif - - if line =~# '^\s*<\!--' - let xmlcomment = 1 - endif - if xmlcomment - if line =~# '-->' - let xmlcomment = 0 - endif - continue - endif - - " This is correct order because both "<<EOF" and "EOF" matches end - if heredoc != '' - if line =~# heredoc - let heredoc = '' - endif - continue - endif - let herematch = matchlist(line, '\C<<\W*\([A-Z]\+\)\s*$') - if len(herematch) > 0 - let heredoc = herematch[1] . '$' - endif - - if line[0] == "\t" - let spaces_minus_tabs -= 1 - else - if line[0] == " " - let spaces_minus_tabs += 1 - endif - let indent = len(matchstr(line, '^ *')) - while stack[-1] > indent - call remove(stack, -1) - endwhile - - let indent_inc = indent - stack[-1] - - if indent_inc == 0 && len(stack) > 1 - let indent_inc = indent - stack[-2] - endif - - if has_key(indents, indent_inc) - let indents[indent_inc] += 1 - let prev_indent = indent - endif - - if stack[-1] != indent - call add(stack, indent) - endif - endif - endfor - - if spaces_minus_tabs < 0 - setlocal noexpandtab - let &l:shiftwidth=&tabstop - return 1 - endif - - let shiftwidth = s:get_shiftwidth(indents) - - if shiftwidth > 0 - setlocal expandtab - let &l:shiftwidth=shiftwidth - try - " Sunchronize tabstop with shiftwidth - let &l:softtabstop = -1 - catch /^Vim\%((\a\+)\)\=:E487/ - " -1 was not supported before Vim 7.4 - let &l:softtabstop = a:num_spaces - endtry - return 1 - endif - - return 0 - endfunc - - func! s:detect_indent() abort - if &buftype ==# 'help' - return - endif - - " Do not autodetect indent if language or user sets it - if &l:shiftwidth != s:default_shiftwidth - return - endif - - let b:sleuth_culprit = expand("<afile>:p") - if s:guess(getline(1, 128)) - return - endif - if s:guess(getline(1, 1024)) - return - endif - let pattern = polyglot#sleuth#GlobForFiletype(&filetype) - if len(pattern) == 0 - return - endif - let pattern = '{' . pattern . ',.git,.svn,.hg}' - let dir = expand('%:p:h') - let level = 3 - while isdirectory(dir) && dir !=# fnamemodify(dir, ':h') && level > 0 - " Ignore files from homedir and root - if dir == expand('~') || dir == '/' - unlet b:sleuth_culprit - return - endif - for neighbor in glob(dir . '/' . pattern, 0, 1)[0:level] - let b:sleuth_culprit = neighbor - " Do not consider directories above .git, .svn or .hg - if fnamemodify(neighbor, ":h:t")[0] == "." - let level = 0 - continue - endif - if neighbor !=# expand('%:p') && filereadable(neighbor) - if s:guess(readfile(neighbor, '', 32)) - return - endif - endif - endfor - - let dir = fnamemodify(dir, ':h') - let level -= 1 - endwhile - - let b:sleuth_culprit = "default" - endfunc - - set smarttab - - func! SleuthIndicator() abort - let sw = &shiftwidth ? &shiftwidth : &tabstop - if &expandtab - return 'sw='.sw - elseif &tabstop == sw - return 'ts='.&tabstop - else - return 'sw='.sw.',ts='.&tabstop - endif - endfunc - - augroup polyglot-sleuth - au! - au BufEnter * call s:detect_indent() - au User Flags call Hoist('buffer', 5, 'SleuthIndicator') - augroup END - - command! -bar -bang Sleuth call s:detect_indent() -endif - -augroup filetypedetect - -" Ignored extensions -if exists("*fnameescape") -au BufNewFile,BufRead ?\+.orig,?\+.bak,?\+.old,?\+.new,?\+.dpkg-dist,?\+.dpkg-old,?\+.dpkg-new,?\+.dpkg-bak,?\+.rpmsave,?\+.rpmnew,?\+.pacsave,?\+.pacnew - \ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r")) -au BufNewFile,BufRead *~ - \ let s:name = expand("<afile>") | - \ let s:short = substitute(s:name, '\~$', '', '') | - \ if s:name != s:short && s:short != "" | - \ exe "doau filetypedetect BufRead " . fnameescape(s:short) | - \ endif | - \ unlet! s:name s:short -au BufNewFile,BufRead ?\+.in - \ if expand("<afile>:t") != "configure.in" | - \ exe "doau filetypedetect BufRead " . fnameescape(expand("<afile>:r")) | - \ endif -elseif &verbose > 0 - echomsg "Warning: some filetypes will not be recognized because this version of Vim does not have fnameescape()" -endif - -" Pattern used to match file names which should not be inspected. -" Currently finds compressed files. -if !exists("g:ft_ignore_pat") - let g:ft_ignore_pat = '\.\(Z\|gz\|bz2\|zip\|tgz\)$' -endif - -" *.cmd is close to a Batch file, but on OS/2 Rexx files also use *.cmd. -au BufNewFile,BufRead *.cmd - \ if getline(1) =~ '^/\*' | setf rexx | else | setf dosbatch | endif - -" Batch file for 4DOS -au BufNewFile,BufRead *.btm call polyglot#ft#FTbtm() - -" BIND zone -au BufNewFile,BufRead *.db call polyglot#ft#BindzoneCheck('') - -" C or lpc -au BufNewFile,BufRead *.c call polyglot#ft#FTlpc() - -" Cynlib -" .cc and .cpp files can be C++ or Cynlib. -au BufNewFile,BufRead *.cpp if exists("cynlib_syntax_for_cpp")|setf cynlib|else|setf cpp|endif - -au BufNewFile,BufRead *.h call polyglot#ft#FTheader() - -au BufNewFile,BufRead [cC]hange[lL]og - \ if getline(1) =~ '; urgency=' - \| setf debchangelog - \| else - \| setf changelog - \| endif - -au BufNewFile,BufRead NEWS - \ if getline(1) =~ '; urgency=' - \| setf debchangelog - \| endif - -" Changes for WEB and CWEB or CHILL -au BufNewFile,BufRead *.ch call polyglot#ft#FTchange() - -" Clever or dtd -au BufNewFile,BufRead *.ent call polyglot#ft#FTent() - -" Clipper (or FoxPro; could also be eviews) -au BufNewFile,BufRead *.prg - \ if exists("g:filetype_prg") | - \ exe "setf " . g:filetype_prg | - \ else | - \ setf clipper | - \ endif - -au BufNewFile,BufRead *.cpy - \ if getline(1) =~ '^##' | - \ setf python | - \ else | - \ setf cobol | - \ endif - -" Euphoria 3 or 4 -au BufNewFile,BufRead *.eu,*.ew,*.ex,*.exu,*.exw call polyglot#ft#EuphoriaCheck() -if has("fname_case") - au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call polyglot#ft#EuphoriaCheck() -endif - -au BufNewFile,BufRead control - \ if getline(1) =~ '^Source:' - \| setf debcontrol - \| endif - -au BufNewFile,BufRead copyright - \ if getline(1) =~ '^Format:' - \| setf debcopyright - \| endif - -" the D language or dtrace -au BufNewFile,BufRead *.d call polyglot#ft#DtraceCheck() - -au BufNewFile,BufRead *.patch - \ if getline(1) =~ '^From [0-9a-f]\{40\} Mon Sep 17 00:00:00 2001$' | - \ setf gitsendemail | - \ else | - \ setf diff | - \ endif - -" Diva (with Skill) or InstallShield -au BufNewFile,BufRead *.rul - \ if getline(1).getline(2).getline(3).getline(4).getline(5).getline(6) =~? 'InstallShield' | - \ setf ishd | - \ else | - \ setf diva | - \ endif - -" DCL (Digital Command Language - vms) or DNS zone file -au BufNewFile,BufRead *.com call polyglot#ft#BindzoneCheck('dcl') - -au BufNewFile,BufRead *.edn - \ if getline(1) =~ '^\s*(\s*edif\>' | - \ setf edif | - \ else | - \ setf clojure | - \ endif - -" Eiffel or Specman or Euphoria -au BufNewFile,BufRead *.e,*.E call polyglot#ft#FTe() - -if !empty($XDG_CONFIG_HOME) - au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config setf gitconfig -endif - -au BufNewFile,BufRead .msg.[0-9]* - \ if getline(1) =~ '^From.*# This line is ignored.$' | - \ setf gitsendemail | - \ endif -au BufNewFile,BufRead *.git/* - \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | - \ setf git | - \ endif - -if !empty($GNUPGHOME) - au BufNewFile,BufRead $GNUPGHOME/options setf gpg - au BufNewFile,BufRead $GNUPGHOME/gpg.conf setf gpg -endif - -" HTML (.shtml and .stm for server side) -au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call polyglot#ft#FThtml() - -" IDL (Interface Description Language) -au BufNewFile,BufRead *.idl call polyglot#ft#FTidl() - -au BufNewFile,BufRead indent.pro call polyglot#ft#ProtoCheck('indent') - -" IDL (Interactive Data Language) -au BufNewFile,BufRead *.pro call polyglot#ft#ProtoCheck('idlang') - -" M4 -au BufNewFile,BufRead *.m4 - \ if expand("<afile>") !~? 'html.m4$\|fvwm2rc' | setf m4 | endif - -" Mathematica, Matlab, Murphi or Objective C -au BufNewFile,BufRead *.m call polyglot#ft#FTm() - -" MMIX or VMS makefile -au BufNewFile,BufRead *.mms call polyglot#ft#FTmms() - -" Modsim III (or LambdaProlog) -au BufNewFile,BufRead *.mod - \ if getline(1) =~ '\<module\>' | - \ setf lprolog | - \ else | - \ setf modsim3 | - \ endif - -" Mutt setup files (must be before catch *.rc) -au BufNewFile,BufRead */etc/Muttrc.d/* call s:StarSetf('muttrc') - -" Nroff/Troff (*.ms and *.t are checked below) -au BufNewFile,BufRead *.me - \ if expand("<afile>") != "read.me" && expand("<afile>") != "click.me" | - \ setf nroff | - \ endif -au BufNewFile,BufRead *.[1-9] call polyglot#ft#FTnroff() - -" Nroff or Objective C++ -au BufNewFile,BufRead *.mm call polyglot#ft#FTmm() - -" Pacman hooks -au BufNewFile,BufRead *.hook - \ if getline(1) == '[Trigger]' | - \ setf dosini | - \ endif - -" Perl -au BufNewFile,BufRead *.pl call polyglot#ft#FTpl() - -" Perl, XPM or XPM2 -au BufNewFile,BufRead *.pm - \ if getline(1) =~ "XPM2" | - \ setf xpm2 | - \ elseif getline(1) =~ "XPM" | - \ setf xpm | - \ else | - \ setf perl | - \ endif - -" Povray, PHP or assembly -au BufNewFile,BufRead *.inc call polyglot#ft#FTinc() - -" Printcap and Termcap -au BufNewFile,BufRead *printcap - \ let b:ptcap_type = "print" | setf ptcap -au BufNewFile,BufRead *termcap - \ let b:ptcap_type = "term" | setf ptcap - -" Progress or CWEB -au BufNewFile,BufRead *.w call polyglot#ft#FTprogress_cweb() - -" Progress or assembly -au BufNewFile,BufRead *.i call polyglot#ft#FTprogress_asm() - -" Progress or Pascal -au BufNewFile,BufRead *.p call polyglot#ft#FTprogress_pascal() - -" Software Distributor Product Specification File (POSIX 1387.2-1995) -au BufNewFile,BufRead INDEX,INFO - \ if getline(1) =~ '^\s*\(distribution\|installed_software\|root\|bundle\|product\)\s*$' | - \ setf psf | - \ endif - -" Registry for MS-Windows -au BufNewFile,BufRead *.reg - \ if getline(1) =~? '^REGEDIT[0-9]*\s*$\|^Windows Registry Editor Version \d*\.\d*\s*$' | setf registry | endif - -" Rexx, Rebol or R -au BufNewFile,BufRead *.r,*.R call polyglot#ft#FTr() - -" Sendmail .mc files are actually m4. Could also be MS Message text file. -au BufNewFile,BufRead *.mc call polyglot#ft#McSetf() - -" SGML -au BufNewFile,BufRead *.sgm,*.sgml - \ if getline(1).getline(2).getline(3).getline(4).getline(5) =~? 'linuxdoc' | - \ setf sgmllnx | - \ elseif getline(1) =~ '<!DOCTYPE.*DocBook' || getline(2) =~ '<!DOCTYPE.*DocBook' | - \ let b:docbk_type = "sgml" | - \ let b:docbk_ver = 4 | - \ setf docbk | - \ else | - \ setf sgml | - \ endif - -" SGMLDECL -au BufNewFile,BufRead *.decl,*.dcl,*.dec - \ if getline(1).getline(2).getline(3) =~? '^<!SGML' | - \ setf sgmldecl | - \ endif - -" Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc. -" Gentoo ebuilds and Arch Linux PKGBUILDs are actually bash scripts -" NOTE: Patterns ending in a star are further down, these have lower priority. -au BufNewFile,BufRead .bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass,PKGBUILD call polyglot#ft#SetFileTypeSH("bash") -au BufNewFile,BufRead .kshrc,*.ksh call polyglot#ft#SetFileTypeSH("ksh") -au BufNewFile,BufRead */etc/profile,.profile,*.sh,*.env call polyglot#ft#SetFileTypeSH(getline(1)) - - -" Shell script (Arch Linux) or PHP file (Drupal) -au BufNewFile,BufRead *.install - \ if getline(1) =~ '<?php' | - \ setf php | - \ else | - \ call polyglot#ft#SetFileTypeSH("bash") | - \ endif - -" tcsh scripts (patterns ending in a star further below) -au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login call polyglot#ft#SetFileTypeShell("tcsh") - -" csh scripts, but might also be tcsh scripts (on some systems csh is tcsh) -" (patterns ending in a start further below) -au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call polyglot#ft#CSH() - -au BufNewFile,BufRead *.cls - \ if getline(1) =~ '^%' | - \ setf tex | - \ elseif getline(1)[0] == '#' && getline(1) =~ 'rexx' | - \ setf rexx | - \ else | - \ setf st | - \ endif - -" SMIL or XML -au BufNewFile,BufRead *.smil - \ if getline(1) =~ '<?\s*xml.*?>' | - \ setf xml | - \ else | - \ setf smil | - \ endif - -" SMIL or SNMP MIB file -au BufNewFile,BufRead *.smi - \ if getline(1) =~ '\<smil\>' | - \ setf smil | - \ else | - \ setf mib | - \ endif - -au BufNewFile,BufRead *.rules call polyglot#ft#FTRules() - -" SQL -au BufNewFile,BufRead *.sql call polyglot#ft#SQL() - -" Also *.class, but not when it's a Java bytecode file -au BufNewFile,BufRead *.class - \ if getline(1) !~ "^\xca\xfe\xba\xbe" | setf stata | endif - -au BufNewFile,BufRead *.tex call polyglot#ft#FTtex() - -" Virata Config Script File or Drupal module -au BufRead,BufNewFile *.hw,*.module,*.pkg - \ if getline(1) =~ '<?php' | - \ setf php | - \ else | - \ setf virata | - \ endif - -" Visual Basic (also uses *.bas) or FORM -au BufNewFile,BufRead *.frm call polyglot#ft#FTVB("form") - -" WEB (*.web is also used for Winbatch: Guess, based on expecting "%" comment -" lines in a WEB file). -au BufNewFile,BufRead *.web - \ if getline(1)[0].getline(2)[0].getline(3)[0].getline(4)[0].getline(5)[0] =~ "%" | - \ setf web | - \ else | - \ setf winbatch | - \ endif - -" X Pixmap (dynamically sets colors, use BufEnter to make it work better) -au BufEnter *.xpm - \ if getline(1) =~ "XPM2" | - \ setf xpm2 | - \ else | - \ setf xpm | - \ endif - -" XFree86 config -au BufNewFile,BufRead XF86Config - \ if getline(1) =~ '\<XConfigurator\>' | - \ let b:xf86conf_xfree86_version = 3 | - \ endif | - \ setf xf86conf -au BufNewFile,BufRead */xorg.conf.d/*.conf - \ let b:xf86conf_xfree86_version = 4 | - \ setf xf86conf - -" Xorg config -au BufNewFile,BufRead xorg.conf,xorg.conf-4 let b:xf86conf_xfree86_version = 4 | setf xf86conf - -au BufNewFile,BufRead *.ms - \ if !polyglot#ft#FTnroff() | setf xmath | endif - -" XML specific variants: docbk and xbl -au BufNewFile,BufRead *.xml call polyglot#ft#FTxml() - -" Yacc or racc -au BufNewFile,BufRead *.y call polyglot#ft#FTy() - -" Zope -" dtml (zope dynamic template markup language), pt (zope page template), -" cpt (zope form controller page template) -au BufNewFile,BufRead *.dtml,*.pt,*.cpt call polyglot#ft#FThtml() -" zsql (zope sql method) -au BufNewFile,BufRead *.zsql call polyglot#ft#SQL() - -augroup END - - -" Source the user-specified filetype file, for backwards compatibility with -" Vim 5.x. -if exists("myfiletypefile") && filereadable(expand(myfiletypefile)) - execute "source " . myfiletypefile -endif - - -" Check for "*" after loading myfiletypefile, so that scripts.vim is only used -" when there are no matching file name extensions. -" Don't do this for compressed files. -augroup filetypedetect -au BufNewFile,BufRead * - \ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat - \ | runtime! scripts.vim | endif -au StdinReadPost * if !did_filetype() | runtime! scripts.vim | endif - - -" Extra checks for when no filetype has been detected now. Mostly used for -" patterns that end in "*". E.g., "zsh*" matches "zsh.vim", but that's a Vim -" script file. -" Most of these should call s:StarSetf() to avoid names ending in .gz and the -" like are used. - -" More Apache style config files -au BufNewFile,BufRead */etc/proftpd/*.conf*,*/etc/proftpd/conf.*/* call s:StarSetf('apachestyle') -au BufNewFile,BufRead proftpd.conf* call s:StarSetf('apachestyle') - -" More Apache config files -au BufNewFile,BufRead access.conf*,apache.conf*,apache2.conf*,httpd.conf*,srm.conf* call s:StarSetf('apache') -au BufNewFile,BufRead */etc/apache2/*.conf*,*/etc/apache2/conf.*/*,*/etc/apache2/mods-*/*,*/etc/apache2/sites-*/*,*/etc/httpd/conf.d/*.conf* call s:StarSetf('apache') - -" Asterisk config file -au BufNewFile,BufRead *asterisk/*.conf* call s:StarSetf('asterisk') -au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm') - -" BIND zone -au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone') - -" Calendar -au BufNewFile,BufRead */.calendar/*, - \*/share/calendar/*/calendar.*,*/share/calendar/calendar.* - \ call s:StarSetf('calendar') - -" Changelog -au BufNewFile,BufRead [cC]hange[lL]og* - \ if getline(1) =~ '; urgency=' - \| call s:StarSetf('debchangelog') - \|else - \| call s:StarSetf('changelog') - \|endif - -" Crontab -au BufNewFile,BufRead crontab,crontab.*,*/etc/cron.d/* call s:StarSetf('crontab') - -" dnsmasq(8) configuration -au BufNewFile,BufRead */etc/dnsmasq.d/* call s:StarSetf('dnsmasq') - -" Dracula -au BufNewFile,BufRead drac.* call s:StarSetf('dracula') - -" Fvwm -au BufNewFile,BufRead */.fvwm/* call s:StarSetf('fvwm') -au BufNewFile,BufRead *fvwmrc*,*fvwm95*.hook - \ let b:fvwm_version = 1 | call s:StarSetf('fvwm') -au BufNewFile,BufRead *fvwm2rc* - \ if expand("<afile>:e") == "m4" - \| call s:StarSetf('fvwm2m4') - \|else - \| let b:fvwm_version = 2 | call s:StarSetf('fvwm') - \|endif - -" Gedcom -au BufNewFile,BufRead */tmp/lltmp* call s:StarSetf('gedcom') - -" Git -au BufNewFile,BufRead */.gitconfig.d/*,/etc/gitconfig.d/* call s:StarSetf('gitconfig') - -" Gitolite -au BufNewFile,BufRead */gitolite-admin/conf/* call s:StarSetf('gitolite') - -" GTK RC -au BufNewFile,BufRead .gtkrc*,gtkrc* call s:StarSetf('gtkrc') - -" Jam -au BufNewFile,BufRead Prl*.*,JAM*.* call s:StarSetf('jam') - -" Jargon -au! BufNewFile,BufRead *jarg* - \ if getline(1).getline(2).getline(3).getline(4).getline(5) =~? 'THIS IS THE JARGON FILE' - \| call s:StarSetf('jargon') - \|endif - -" Java Properties resource file (note: doesn't catch font.properties.pl) -au BufNewFile,BufRead *.properties_??_??_* call s:StarSetf('jproperties') - -" Kconfig -au BufNewFile,BufRead Kconfig.* call s:StarSetf('kconfig') - -" Lilo: Linux loader -au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo') - -" Logcheck -au BufNewFile,BufRead */etc/logcheck/*.d*/* call s:StarSetf('logcheck') - -" Makefile -au BufNewFile,BufRead [mM]akefile* call s:StarSetf('make') - -" Ruby Makefile -au BufNewFile,BufRead [rR]akefile* call s:StarSetf('ruby') - -" Mail (also matches muttrc.vim, so this is below the other checks) -au BufNewFile,BufRead {neo,}mutt[[:alnum:]._-]\\\{6\} setf mail - -au BufNewFile,BufRead reportbug-* call s:StarSetf('mail') - -" Modconf -au BufNewFile,BufRead */etc/modutils/* - \ if executable(expand("<afile>")) != 1 - \| call s:StarSetf('modconf') - \|endif -au BufNewFile,BufRead */etc/modprobe.* call s:StarSetf('modconf') - -" Mutt setup file -au BufNewFile,BufRead .mutt{ng,}rc*,*/.mutt{ng,}/mutt{ng,}rc* call s:StarSetf('muttrc') -au BufNewFile,BufRead mutt{ng,}rc*,Mutt{ng,}rc* call s:StarSetf('muttrc') - -" Neomutt setup file -au BufNewFile,BufRead .neomuttrc*,*/.neomutt/neomuttrc* call s:StarSetf('neomuttrc') -au BufNewFile,BufRead neomuttrc*,Neomuttrc* call s:StarSetf('neomuttrc') - -" Nroff macros -au BufNewFile,BufRead tmac.* call s:StarSetf('nroff') - -" OpenBSD hostname.if -au BufNewFile,BufRead /etc/hostname.* call s:StarSetf('config') - -" Pam conf -au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf') - -" Printcap and Termcap -au BufNewFile,BufRead *printcap* - \ if !did_filetype() - \| let b:ptcap_type = "print" | call s:StarSetf('ptcap') - \|endif -au BufNewFile,BufRead *termcap* - \ if !did_filetype() - \| let b:ptcap_type = "term" | call s:StarSetf('ptcap') - \|endif - -" ReDIF -" Only used when the .rdf file was not detected to be XML. -au BufRead,BufNewFile *.rdf call polyglot#ft#Redif() - -" Remind -au BufNewFile,BufRead .reminders* call s:StarSetf('remind') - -" SGML catalog file -au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog') - -" Shell scripts ending in a star -au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash") -au BufNewFile,BufRead .kshrc* call polyglot#ft#SetFileTypeSH("ksh") -au BufNewFile,BufRead .profile* call polyglot#ft#SetFileTypeSH(getline(1)) - -" tcsh scripts ending in a star -au BufNewFile,BufRead .tcshrc* call polyglot#ft#SetFileTypeShell("tcsh") - -" csh scripts ending in a star -au BufNewFile,BufRead .login*,.cshrc* call polyglot#ft#CSH() - -" VHDL -au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') - -" Vim script -au BufNewFile,BufRead *vimrc* call s:StarSetf('vim') - -" Subversion commit file -au BufNewFile,BufRead svn-commit*.tmp setf svn - -" X resources file -au BufNewFile,BufRead Xresources*,*/app-defaults/*,*/Xresources/* call s:StarSetf('xdefaults') - -" XFree86 config -au BufNewFile,BufRead XF86Config-4* - \ let b:xf86conf_xfree86_version = 4 | call s:StarSetf('xf86conf') -au BufNewFile,BufRead XF86Config* - \ if getline(1) =~ '\<XConfigurator\>' - \| let b:xf86conf_xfree86_version = 3 - \|endif - \|call s:StarSetf('xf86conf') - -" X11 xmodmap -au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap') - -" Xinetd conf -au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd') - -" yum conf (close enough to dosini) -au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini') - -" Z-Shell script ending in a star -au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump* call s:StarSetf('zsh') -au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh') - - -" Help files match *.txt but should have a last line that is a modeline. -au BufNewFile,BufRead *.txt - \ if getline('$') !~ 'vim:.*ft=help' - \| setf text - \| endif - - -" NOTE: The above command could have ended the filetypedetect autocmd group -" and started another one. Let's make sure it has ended to get to a consistent -" state. -augroup END - -" Use the filetype detect plugins. They may overrule any of the previously -" detected filetypes. No need to load if everything is enabled -if exists("did_load_filetypes") && exists("g:polyglot_disabled") - unlet did_load_filetypes - runtime! extras/filetype.vim -endif - -let s:runtime = resolve($VIMRUNTIME) -let s:base = resolve(expand('<sfile>:p:h:h')) - -func! s:process_rtp(rtp) - " Remove vim-polyglot from paths and make everything absolute - let rtp = [] - for path in a:rtp[1:-2] - let abspath = resolve(path) - if stridx(abspath, s:base) != 0 - call add(rtp, abspath) - endif - endfor - let result = [a:rtp[0]] - " Then all other stuff (until vimruntime) - let i = 0 - for path in rtp[0:len(rtp)-1] - if path == s:runtime - break - endif - call add(result, path) - let i = i + 1 - endfor - " Then vim-polyglot - call add(result, s:base) - " Then all other files, until after-files - for path in rtp[i:len(rtp)-1] - if match(path, '[/\\]after$') > -1 - break - endif - call add(result, path) - let i = i + 1 - endfor - " Then vim-polyglot after path - call add(result, s:base . '/after') - " Then all other after paths - for path in rtp[i:len(rtp)-1] - call add(result, path) - endfor - " User's after directory is always last - call add(result, a:rtp[len(a:rtp)-1]) - return result -endfunc - -" We want vim-polyglot files to load only as fallback -let &rtp = join(s:process_rtp(split(&rtp, ',')), ',') - -" Restore 'cpoptions' -let &cpo = s:cpo_save -unlet s:cpo_save +call polyglot#init#init() diff --git a/ftplugin/8th.vim b/ftplugin/8th.vim index e3f8d209..e9a63dc1 100644 --- a/ftplugin/8th.vim +++ b/ftplugin/8th.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, '8th') +if polyglot#init#is_disabled(expand('<sfile>:p'), '8th', 'ftplugin/8th.vim') finish endif diff --git a/ftplugin/a2ps.vim b/ftplugin/a2ps.vim index 3e540faa..34d45368 100644 --- a/ftplugin/a2ps.vim +++ b/ftplugin/a2ps.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'a2ps') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'a2ps', 'ftplugin/a2ps.vim') finish endif diff --git a/ftplugin/aap.vim b/ftplugin/aap.vim index e77d43b9..3a8f1cbb 100644 --- a/ftplugin/aap.vim +++ b/ftplugin/aap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aap', 'ftplugin/aap.vim') finish endif diff --git a/ftplugin/abap.vim b/ftplugin/abap.vim index 2e7fa283..3b4bbc67 100644 --- a/ftplugin/abap.vim +++ b/ftplugin/abap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'abap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'abap', 'ftplugin/abap.vim') finish endif diff --git a/ftplugin/abaqus.vim b/ftplugin/abaqus.vim index d6d0e116..e9dfc577 100644 --- a/ftplugin/abaqus.vim +++ b/ftplugin/abaqus.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'abaqus') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'abaqus', 'ftplugin/abaqus.vim') finish endif diff --git a/ftplugin/ada.vim b/ftplugin/ada.vim index 23e36e31..d7b34be0 100644 --- a/ftplugin/ada.vim +++ b/ftplugin/ada.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ada') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ada', 'ftplugin/ada.vim') finish endif diff --git a/ftplugin/alsaconf.vim b/ftplugin/alsaconf.vim index cd8d60ef..b58b7a46 100644 --- a/ftplugin/alsaconf.vim +++ b/ftplugin/alsaconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'alsaconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'alsaconf', 'ftplugin/alsaconf.vim') finish endif diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim index 5b8a015b..cd61e64c 100644 --- a/ftplugin/ansible.vim +++ b/ftplugin/ansible.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ansible') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ansible', 'ftplugin/ansible.vim') finish endif diff --git a/ftplugin/ansible_hosts.vim b/ftplugin/ansible_hosts.vim index adc3bbd8..e8618f13 100644 --- a/ftplugin/ansible_hosts.vim +++ b/ftplugin/ansible_hosts.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ansible') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ansible', 'ftplugin/ansible_hosts.vim') finish endif diff --git a/ftplugin/ant.vim b/ftplugin/ant.vim index 01122fd7..9705d61f 100644 --- a/ftplugin/ant.vim +++ b/ftplugin/ant.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ant') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ant', 'ftplugin/ant.vim') finish endif diff --git a/ftplugin/arch.vim b/ftplugin/arch.vim index 47e97c7d..654d1293 100644 --- a/ftplugin/arch.vim +++ b/ftplugin/arch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'arch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'arch', 'ftplugin/arch.vim') finish endif diff --git a/ftplugin/art.vim b/ftplugin/art.vim index bcf60050..0bfa63be 100644 --- a/ftplugin/art.vim +++ b/ftplugin/art.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'art') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'art', 'ftplugin/art.vim') finish endif diff --git a/ftplugin/aspvbs.vim b/ftplugin/aspvbs.vim index 44569368..5f60f747 100644 --- a/ftplugin/aspvbs.vim +++ b/ftplugin/aspvbs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aspvbs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aspvbs', 'ftplugin/aspvbs.vim') finish endif diff --git a/ftplugin/automake.vim b/ftplugin/automake.vim index 071d52f4..520ec01e 100644 --- a/ftplugin/automake.vim +++ b/ftplugin/automake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'automake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'automake', 'ftplugin/automake.vim') finish endif diff --git a/ftplugin/awk.vim b/ftplugin/awk.vim index a534249b..4b225e35 100644 --- a/ftplugin/awk.vim +++ b/ftplugin/awk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'awk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'awk', 'ftplugin/awk.vim') finish endif diff --git a/ftplugin/bdf.vim b/ftplugin/bdf.vim index d8834f41..a2e4bcb4 100644 --- a/ftplugin/bdf.vim +++ b/ftplugin/bdf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bdf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bdf', 'ftplugin/bdf.vim') finish endif diff --git a/ftplugin/blade.vim b/ftplugin/blade.vim index db3c1c01..861260cc 100644 --- a/ftplugin/blade.vim +++ b/ftplugin/blade.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'blade') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'blade', 'ftplugin/blade.vim') finish endif diff --git a/ftplugin/bst.vim b/ftplugin/bst.vim index 722d7896..10a4b27d 100644 --- a/ftplugin/bst.vim +++ b/ftplugin/bst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bst', 'ftplugin/bst.vim') finish endif diff --git a/ftplugin/bzl.vim b/ftplugin/bzl.vim index 59501110..b1ece99b 100644 --- a/ftplugin/bzl.vim +++ b/ftplugin/bzl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bzl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bzl', 'ftplugin/bzl.vim') finish endif diff --git a/ftplugin/caddyfile.vim b/ftplugin/caddyfile.vim index b56238cf..b3e48a08 100644 --- a/ftplugin/caddyfile.vim +++ b/ftplugin/caddyfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'caddyfile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'caddyfile', 'ftplugin/caddyfile.vim') finish endif diff --git a/ftplugin/calendar.vim b/ftplugin/calendar.vim index 7f73c6e0..13bb5607 100644 --- a/ftplugin/calendar.vim +++ b/ftplugin/calendar.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'calendar') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'calendar', 'ftplugin/calendar.vim') finish endif diff --git a/ftplugin/cdrdaoconf.vim b/ftplugin/cdrdaoconf.vim index cc3ad4aa..9cf73ec2 100644 --- a/ftplugin/cdrdaoconf.vim +++ b/ftplugin/cdrdaoconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cdrdaoconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cdrdaoconf', 'ftplugin/cdrdaoconf.vim') finish endif diff --git a/ftplugin/cfg.vim b/ftplugin/cfg.vim index 42c1f95a..f6f039e8 100644 --- a/ftplugin/cfg.vim +++ b/ftplugin/cfg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cfg') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cfg', 'ftplugin/cfg.vim') finish endif diff --git a/ftplugin/ch.vim b/ftplugin/ch.vim index 030c21dd..2855416b 100644 --- a/ftplugin/ch.vim +++ b/ftplugin/ch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ch', 'ftplugin/ch.vim') finish endif diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim index 7211f7f0..279d4283 100644 --- a/ftplugin/clojure.vim +++ b/ftplugin/clojure.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'clojure') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'clojure', 'ftplugin/clojure.vim') finish endif diff --git a/ftplugin/cobol.vim b/ftplugin/cobol.vim index a3db3c43..bea6152f 100644 --- a/ftplugin/cobol.vim +++ b/ftplugin/cobol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cobol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cobol', 'ftplugin/cobol.vim') finish endif diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim index 701d4796..84378a75 100644 --- a/ftplugin/coffee.vim +++ b/ftplugin/coffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'ftplugin/coffee.vim') finish endif diff --git a/ftplugin/conf.vim b/ftplugin/conf.vim index dd150de9..210123ce 100644 --- a/ftplugin/conf.vim +++ b/ftplugin/conf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'conf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'conf', 'ftplugin/conf.vim') finish endif diff --git a/ftplugin/config.vim b/ftplugin/config.vim index a414fef5..a302b7ca 100644 --- a/ftplugin/config.vim +++ b/ftplugin/config.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'config') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'config', 'ftplugin/config.vim') finish endif diff --git a/ftplugin/crm.vim b/ftplugin/crm.vim index a407ed00..973eb1b0 100644 --- a/ftplugin/crm.vim +++ b/ftplugin/crm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crm', 'ftplugin/crm.vim') finish endif diff --git a/ftplugin/cryptol/folding.vim b/ftplugin/cryptol/folding.vim index 7adca3ef..eb2786a1 100644 --- a/ftplugin/cryptol/folding.vim +++ b/ftplugin/cryptol/folding.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cryptol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cryptol', 'ftplugin/cryptol/folding.vim') finish endif diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim index d94babeb..3d0887b6 100644 --- a/ftplugin/crystal.vim +++ b/ftplugin/crystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'ftplugin/crystal.vim') finish endif diff --git a/ftplugin/cs.vim b/ftplugin/cs.vim index f3a14da4..e22ea5e7 100644 --- a/ftplugin/cs.vim +++ b/ftplugin/cs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cs', 'ftplugin/cs.vim') finish endif diff --git a/ftplugin/csc.vim b/ftplugin/csc.vim index ef3e9d23..bdf6a477 100644 --- a/ftplugin/csc.vim +++ b/ftplugin/csc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'csc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'csc', 'ftplugin/csc.vim') finish endif diff --git a/ftplugin/css.vim b/ftplugin/css.vim index 5d4dca2a..f75c461b 100644 --- a/ftplugin/css.vim +++ b/ftplugin/css.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'css') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'css', 'ftplugin/css.vim') finish endif diff --git a/ftplugin/csv.vim b/ftplugin/csv.vim index 71b3de19..2d8eb313 100644 --- a/ftplugin/csv.vim +++ b/ftplugin/csv.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'csv') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'csv', 'ftplugin/csv.vim') finish endif diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim index f1153f5e..08bb62de 100644 --- a/ftplugin/cucumber.vim +++ b/ftplugin/cucumber.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cucumber') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cucumber', 'ftplugin/cucumber.vim') finish endif diff --git a/ftplugin/cvsrc.vim b/ftplugin/cvsrc.vim index b5f5693e..3a65d1c0 100644 --- a/ftplugin/cvsrc.vim +++ b/ftplugin/cvsrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cvsrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cvsrc', 'ftplugin/cvsrc.vim') finish endif diff --git a/ftplugin/dart.vim b/ftplugin/dart.vim index d6609181..d219781a 100644 --- a/ftplugin/dart.vim +++ b/ftplugin/dart.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dart') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dart', 'ftplugin/dart.vim') finish endif diff --git a/ftplugin/debchangelog.vim b/ftplugin/debchangelog.vim index 27d521eb..b32f3369 100644 --- a/ftplugin/debchangelog.vim +++ b/ftplugin/debchangelog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'debchangelog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'debchangelog', 'ftplugin/debchangelog.vim') finish endif diff --git a/ftplugin/debcontrol.vim b/ftplugin/debcontrol.vim index 841f2b7c..ce6059f7 100644 --- a/ftplugin/debcontrol.vim +++ b/ftplugin/debcontrol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'debcontrol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'debcontrol', 'ftplugin/debcontrol.vim') finish endif diff --git a/ftplugin/denyhosts.vim b/ftplugin/denyhosts.vim index 04ab7760..349bdb21 100644 --- a/ftplugin/denyhosts.vim +++ b/ftplugin/denyhosts.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'denyhosts') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'denyhosts', 'ftplugin/denyhosts.vim') finish endif diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim index 6c183c35..a484585b 100644 --- a/ftplugin/dhall.vim +++ b/ftplugin/dhall.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dhall') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dhall', 'ftplugin/dhall.vim') finish endif diff --git a/ftplugin/dictconf.vim b/ftplugin/dictconf.vim index 706b4a48..e2d1a785 100644 --- a/ftplugin/dictconf.vim +++ b/ftplugin/dictconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dictconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dictconf', 'ftplugin/dictconf.vim') finish endif diff --git a/ftplugin/dictdconf.vim b/ftplugin/dictdconf.vim index 224ad104..a4e84f12 100644 --- a/ftplugin/dictdconf.vim +++ b/ftplugin/dictdconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dictdconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dictdconf', 'ftplugin/dictdconf.vim') finish endif diff --git a/ftplugin/diff.vim b/ftplugin/diff.vim index 66ec4179..c7d8cefc 100644 --- a/ftplugin/diff.vim +++ b/ftplugin/diff.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'diff') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'diff', 'ftplugin/diff.vim') finish endif diff --git a/ftplugin/dircolors.vim b/ftplugin/dircolors.vim index 207d30ec..9d57e19b 100644 --- a/ftplugin/dircolors.vim +++ b/ftplugin/dircolors.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dircolors') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dircolors', 'ftplugin/dircolors.vim') finish endif diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim index 7d5a1e48..40f8a43f 100644 --- a/ftplugin/docker-compose.vim +++ b/ftplugin/docker-compose.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'docker-compose') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'docker-compose', 'ftplugin/docker-compose.vim') finish endif diff --git a/ftplugin/dockerfile.vim b/ftplugin/dockerfile.vim index f99dd989..5b8052be 100644 --- a/ftplugin/dockerfile.vim +++ b/ftplugin/dockerfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dockerfile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dockerfile', 'ftplugin/dockerfile.vim') finish endif diff --git a/ftplugin/dosbatch.vim b/ftplugin/dosbatch.vim index 25d0676d..bf59baf7 100644 --- a/ftplugin/dosbatch.vim +++ b/ftplugin/dosbatch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dosbatch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dosbatch', 'ftplugin/dosbatch.vim') finish endif diff --git a/ftplugin/dosini.vim b/ftplugin/dosini.vim index fbacecc0..fc739a01 100644 --- a/ftplugin/dosini.vim +++ b/ftplugin/dosini.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dosini') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dosini', 'ftplugin/dosini.vim') finish endif diff --git a/ftplugin/dtd.vim b/ftplugin/dtd.vim index 1ceb1b77..783d73b0 100644 --- a/ftplugin/dtd.vim +++ b/ftplugin/dtd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dtd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dtd', 'ftplugin/dtd.vim') finish endif diff --git a/ftplugin/dune.vim b/ftplugin/dune.vim index 92c471f4..9d86d0a5 100644 --- a/ftplugin/dune.vim +++ b/ftplugin/dune.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'ftplugin/dune.vim') finish endif diff --git a/ftplugin/ecrystal.vim b/ftplugin/ecrystal.vim index a8c249c0..e5e06949 100644 --- a/ftplugin/ecrystal.vim +++ b/ftplugin/ecrystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'ftplugin/ecrystal.vim') finish endif diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index cda21c9b..6e1d13fd 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'ftplugin/eelixir.vim') finish endif diff --git a/ftplugin/elinks.vim b/ftplugin/elinks.vim index 7a4c75a5..6d04cfd4 100644 --- a/ftplugin/elinks.vim +++ b/ftplugin/elinks.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elinks') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elinks', 'ftplugin/elinks.vim') finish endif diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim index 9a273567..4ab896db 100644 --- a/ftplugin/elixir.vim +++ b/ftplugin/elixir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'ftplugin/elixir.vim') finish endif diff --git a/ftplugin/embeddedpuppet.vim b/ftplugin/embeddedpuppet.vim index 4e6a0849..7a2621fb 100644 --- a/ftplugin/embeddedpuppet.vim +++ b/ftplugin/embeddedpuppet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'ftplugin/embeddedpuppet.vim') finish endif diff --git a/ftplugin/ember-script.vim b/ftplugin/ember-script.vim index d80653e1..62015611 100644 --- a/ftplugin/ember-script.vim +++ b/ftplugin/ember-script.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'emberscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'emberscript', 'ftplugin/ember-script.vim') finish endif diff --git a/ftplugin/emblem.vim b/ftplugin/emblem.vim index d612566d..54cb4696 100644 --- a/ftplugin/emblem.vim +++ b/ftplugin/emblem.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'emblem') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'emblem', 'ftplugin/emblem.vim') finish endif diff --git a/ftplugin/erlang.vim b/ftplugin/erlang.vim index b9720484..f23ba875 100644 --- a/ftplugin/erlang.vim +++ b/ftplugin/erlang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'erlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'erlang', 'ftplugin/erlang.vim') finish endif diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim index 5a7b4ca5..7ea19dea 100644 --- a/ftplugin/eruby.vim +++ b/ftplugin/eruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'ftplugin/eruby.vim') finish endif diff --git a/ftplugin/eterm.vim b/ftplugin/eterm.vim index 15c3b0e2..313b2478 100644 --- a/ftplugin/eterm.vim +++ b/ftplugin/eterm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'eterm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'eterm', 'ftplugin/eterm.vim') finish endif diff --git a/ftplugin/falcon.vim b/ftplugin/falcon.vim index 9911b507..5f09b804 100644 --- a/ftplugin/falcon.vim +++ b/ftplugin/falcon.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'falcon') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'falcon', 'ftplugin/falcon.vim') finish endif diff --git a/ftplugin/fennel.vim b/ftplugin/fennel.vim index ac905f27..92b6edea 100644 --- a/ftplugin/fennel.vim +++ b/ftplugin/fennel.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fennel') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fennel', 'ftplugin/fennel.vim') finish endif diff --git a/ftplugin/fetchmail.vim b/ftplugin/fetchmail.vim index 63609942..ce8a3cbd 100644 --- a/ftplugin/fetchmail.vim +++ b/ftplugin/fetchmail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fetchmail') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fetchmail', 'ftplugin/fetchmail.vim') finish endif diff --git a/ftplugin/fish.vim b/ftplugin/fish.vim index 19fa5c38..52f75591 100644 --- a/ftplugin/fish.vim +++ b/ftplugin/fish.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fish') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fish', 'ftplugin/fish.vim') finish endif diff --git a/ftplugin/fortran.vim b/ftplugin/fortran.vim index fdf77db5..3c2ebc87 100644 --- a/ftplugin/fortran.vim +++ b/ftplugin/fortran.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fortran') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fortran', 'ftplugin/fortran.vim') finish endif diff --git a/ftplugin/framescript.vim b/ftplugin/framescript.vim index 5361536d..9ec58b5f 100644 --- a/ftplugin/framescript.vim +++ b/ftplugin/framescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'framescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'framescript', 'ftplugin/framescript.vim') finish endif diff --git a/ftplugin/fvwm.vim b/ftplugin/fvwm.vim index b3f3e135..488fa500 100644 --- a/ftplugin/fvwm.vim +++ b/ftplugin/fvwm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fvwm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fvwm', 'ftplugin/fvwm.vim') finish endif diff --git a/ftplugin/gdb.vim b/ftplugin/gdb.vim index c08787fa..3d3ed103 100644 --- a/ftplugin/gdb.vim +++ b/ftplugin/gdb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gdb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gdb', 'ftplugin/gdb.vim') finish endif diff --git a/ftplugin/git.vim b/ftplugin/git.vim index d4ffec78..072859ed 100644 --- a/ftplugin/git.vim +++ b/ftplugin/git.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'ftplugin/git.vim') finish endif diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim index d6947f32..caa96db8 100644 --- a/ftplugin/gitcommit.vim +++ b/ftplugin/gitcommit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'ftplugin/gitcommit.vim') finish endif diff --git a/ftplugin/gitconfig.vim b/ftplugin/gitconfig.vim index d6017ea5..d8d76240 100644 --- a/ftplugin/gitconfig.vim +++ b/ftplugin/gitconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'ftplugin/gitconfig.vim') finish endif diff --git a/ftplugin/gitignore.vim b/ftplugin/gitignore.vim index c58811b0..c2236b75 100644 --- a/ftplugin/gitignore.vim +++ b/ftplugin/gitignore.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gitignore') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gitignore', 'ftplugin/gitignore.vim') finish endif diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim index 29bedf43..7163f916 100644 --- a/ftplugin/gitrebase.vim +++ b/ftplugin/gitrebase.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'ftplugin/gitrebase.vim') finish endif diff --git a/ftplugin/gitsendemail.vim b/ftplugin/gitsendemail.vim index c30d3657..b6098bd5 100644 --- a/ftplugin/gitsendemail.vim +++ b/ftplugin/gitsendemail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'ftplugin/gitsendemail.vim') finish endif diff --git a/ftplugin/gleam.vim b/ftplugin/gleam.vim index 58f39f03..00ad4d1f 100644 --- a/ftplugin/gleam.vim +++ b/ftplugin/gleam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gleam') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gleam', 'ftplugin/gleam.vim') finish endif diff --git a/ftplugin/gpg.vim b/ftplugin/gpg.vim index f1213d7e..12114584 100644 --- a/ftplugin/gpg.vim +++ b/ftplugin/gpg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gpg') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gpg', 'ftplugin/gpg.vim') finish endif diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim index 9b66c5c7..f0615552 100644 --- a/ftplugin/graphql.vim +++ b/ftplugin/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'ftplugin/graphql.vim') finish endif diff --git a/ftplugin/groovy.vim b/ftplugin/groovy.vim index 93b70aee..5c7c0eef 100644 --- a/ftplugin/groovy.vim +++ b/ftplugin/groovy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'groovy') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'groovy', 'ftplugin/groovy.vim') finish endif diff --git a/ftplugin/group.vim b/ftplugin/group.vim index 9a6d1e87..52adcb7a 100644 --- a/ftplugin/group.vim +++ b/ftplugin/group.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'group') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'group', 'ftplugin/group.vim') finish endif diff --git a/ftplugin/grub.vim b/ftplugin/grub.vim index d7805a5b..9fedac24 100644 --- a/ftplugin/grub.vim +++ b/ftplugin/grub.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'grub') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'grub', 'ftplugin/grub.vim') finish endif diff --git a/ftplugin/haml.vim b/ftplugin/haml.vim index b747fe68..ec6f249d 100644 --- a/ftplugin/haml.vim +++ b/ftplugin/haml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haml', 'ftplugin/haml.vim') finish endif diff --git a/ftplugin/hamster.vim b/ftplugin/hamster.vim index 3bfb9fd9..c72a8657 100644 --- a/ftplugin/hamster.vim +++ b/ftplugin/hamster.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hamster') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hamster', 'ftplugin/hamster.vim') finish endif diff --git a/ftplugin/handlebars.vim b/ftplugin/handlebars.vim index d769f1e5..c548f28f 100644 --- a/ftplugin/handlebars.vim +++ b/ftplugin/handlebars.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'handlebars') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'handlebars', 'ftplugin/handlebars.vim') finish endif diff --git a/ftplugin/hcl.vim b/ftplugin/hcl.vim index 7cd2a8a7..58dc67e4 100644 --- a/ftplugin/hcl.vim +++ b/ftplugin/hcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hcl', 'ftplugin/hcl.vim') finish endif diff --git a/ftplugin/help.vim b/ftplugin/help.vim index 47e203fe..7096523a 100644 --- a/ftplugin/help.vim +++ b/ftplugin/help.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'help') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'help', 'ftplugin/help.vim') finish endif diff --git a/ftplugin/hgcommit.vim b/ftplugin/hgcommit.vim index e4d13298..efb5c605 100644 --- a/ftplugin/hgcommit.vim +++ b/ftplugin/hgcommit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hgcommit') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hgcommit', 'ftplugin/hgcommit.vim') finish endif diff --git a/ftplugin/hive.vim b/ftplugin/hive.vim index dd1b8445..fdd95d01 100644 --- a/ftplugin/hive.vim +++ b/ftplugin/hive.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hive') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hive', 'ftplugin/hive.vim') finish endif diff --git a/ftplugin/hog.vim b/ftplugin/hog.vim index b3844023..046f7a3a 100644 --- a/ftplugin/hog.vim +++ b/ftplugin/hog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hog', 'ftplugin/hog.vim') finish endif diff --git a/ftplugin/hostconf.vim b/ftplugin/hostconf.vim index 56c67899..a2625b1f 100644 --- a/ftplugin/hostconf.vim +++ b/ftplugin/hostconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hostconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hostconf', 'ftplugin/hostconf.vim') finish endif diff --git a/ftplugin/hostsaccess.vim b/ftplugin/hostsaccess.vim index 312b9145..c731c8ae 100644 --- a/ftplugin/hostsaccess.vim +++ b/ftplugin/hostsaccess.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hostsaccess') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hostsaccess', 'ftplugin/hostsaccess.vim') finish endif diff --git a/ftplugin/html.vim b/ftplugin/html.vim index 5ec0bb22..7664383b 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html', 'ftplugin/html.vim') finish endif diff --git a/ftplugin/htmldjango.vim b/ftplugin/htmldjango.vim index a8b23cd4..41d992d8 100644 --- a/ftplugin/htmldjango.vim +++ b/ftplugin/htmldjango.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'htmldjango') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'htmldjango', 'ftplugin/htmldjango.vim') finish endif diff --git a/ftplugin/i3config.vim b/ftplugin/i3config.vim index 80e63b01..6fb69a18 100644 --- a/ftplugin/i3config.vim +++ b/ftplugin/i3config.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'i3') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'i3', 'ftplugin/i3config.vim') finish endif diff --git a/ftplugin/idris.vim b/ftplugin/idris.vim index 05d7a1af..eb023f48 100644 --- a/ftplugin/idris.vim +++ b/ftplugin/idris.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris', 'ftplugin/idris.vim') finish endif diff --git a/ftplugin/idris2.vim b/ftplugin/idris2.vim index 9a09fada..d3fa7bc9 100644 --- a/ftplugin/idris2.vim +++ b/ftplugin/idris2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris2', 'ftplugin/idris2.vim') finish endif diff --git a/ftplugin/indent.vim b/ftplugin/indent.vim index 0c0b4311..89a779c4 100644 --- a/ftplugin/indent.vim +++ b/ftplugin/indent.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'indent') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'indent', 'ftplugin/indent.vim') finish endif diff --git a/ftplugin/ion.vim b/ftplugin/ion.vim index 8bf4a19a..6f2c1ce2 100644 --- a/ftplugin/ion.vim +++ b/ftplugin/ion.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ion') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ion', 'ftplugin/ion.vim') finish endif diff --git a/ftplugin/j.vim b/ftplugin/j.vim index 78df3a37..1fd01161 100644 --- a/ftplugin/j.vim +++ b/ftplugin/j.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'j') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'j', 'ftplugin/j.vim') finish endif diff --git a/ftplugin/java.vim b/ftplugin/java.vim index c5001786..c94ff1fa 100644 --- a/ftplugin/java.vim +++ b/ftplugin/java.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'java') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'java', 'ftplugin/java.vim') finish endif diff --git a/ftplugin/jproperties.vim b/ftplugin/jproperties.vim index 6860366e..9d3076ab 100644 --- a/ftplugin/jproperties.vim +++ b/ftplugin/jproperties.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jproperties') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jproperties', 'ftplugin/jproperties.vim') finish endif diff --git a/ftplugin/jq.vim b/ftplugin/jq.vim index 30c3c99e..f2c14aff 100644 --- a/ftplugin/jq.vim +++ b/ftplugin/jq.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jq') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jq', 'ftplugin/jq.vim') finish endif diff --git a/ftplugin/json.vim b/ftplugin/json.vim index 5c09f13d..ed4bd8ba 100644 --- a/ftplugin/json.vim +++ b/ftplugin/json.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'json') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'json', 'ftplugin/json.vim') finish endif diff --git a/ftplugin/jsonnet.vim b/ftplugin/jsonnet.vim index 781965e5..500787a0 100644 --- a/ftplugin/jsonnet.vim +++ b/ftplugin/jsonnet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsonnet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsonnet', 'ftplugin/jsonnet.vim') finish endif diff --git a/ftplugin/jsp.vim b/ftplugin/jsp.vim index 6ee9329e..353cecfd 100644 --- a/ftplugin/jsp.vim +++ b/ftplugin/jsp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsp', 'ftplugin/jsp.vim') finish endif diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim index e507dcab..618e16d8 100644 --- a/ftplugin/julia.vim +++ b/ftplugin/julia.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'ftplugin/julia.vim') finish endif diff --git a/ftplugin/juliadoc.vim b/ftplugin/juliadoc.vim index 0ae6deb4..5b80149c 100644 --- a/ftplugin/juliadoc.vim +++ b/ftplugin/juliadoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'ftplugin/juliadoc.vim') finish endif diff --git a/ftplugin/kconfig.vim b/ftplugin/kconfig.vim index a9a5201f..836a7b88 100644 --- a/ftplugin/kconfig.vim +++ b/ftplugin/kconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kconfig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kconfig', 'ftplugin/kconfig.vim') finish endif diff --git a/ftplugin/kotlin.vim b/ftplugin/kotlin.vim index b5345bfc..e06ce043 100644 --- a/ftplugin/kotlin.vim +++ b/ftplugin/kotlin.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kotlin') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kotlin', 'ftplugin/kotlin.vim') finish endif diff --git a/ftplugin/kwt.vim b/ftplugin/kwt.vim index ec369046..f173ce33 100644 --- a/ftplugin/kwt.vim +++ b/ftplugin/kwt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kwt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kwt', 'ftplugin/kwt.vim') finish endif diff --git a/ftplugin/ld.vim b/ftplugin/ld.vim index d9bc8d46..41c72680 100644 --- a/ftplugin/ld.vim +++ b/ftplugin/ld.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ld') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ld', 'ftplugin/ld.vim') finish endif diff --git a/ftplugin/less.vim b/ftplugin/less.vim index c5fc4c50..ca6ce7db 100644 --- a/ftplugin/less.vim +++ b/ftplugin/less.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'less') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'less', 'ftplugin/less.vim') finish endif diff --git a/ftplugin/lftp.vim b/ftplugin/lftp.vim index 23e1fe59..00ab99d2 100644 --- a/ftplugin/lftp.vim +++ b/ftplugin/lftp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lftp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lftp', 'ftplugin/lftp.vim') finish endif diff --git a/ftplugin/libao.vim b/ftplugin/libao.vim index 48073e7e..0be39f2e 100644 --- a/ftplugin/libao.vim +++ b/ftplugin/libao.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'libao') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'libao', 'ftplugin/libao.vim') finish endif diff --git a/ftplugin/lilypond.vim b/ftplugin/lilypond.vim index 3f4f9c78..ed2d1cdb 100644 --- a/ftplugin/lilypond.vim +++ b/ftplugin/lilypond.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lilypond') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'ftplugin/lilypond.vim') finish endif diff --git a/ftplugin/limits.vim b/ftplugin/limits.vim index 316abdd0..f5c80eb6 100644 --- a/ftplugin/limits.vim +++ b/ftplugin/limits.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'limits') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'limits', 'ftplugin/limits.vim') finish endif diff --git a/ftplugin/liquid.vim b/ftplugin/liquid.vim index 4d181349..2b7f92fc 100644 --- a/ftplugin/liquid.vim +++ b/ftplugin/liquid.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'liquid') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'liquid', 'ftplugin/liquid.vim') finish endif diff --git a/ftplugin/lisp.vim b/ftplugin/lisp.vim index 838139b0..365a26b8 100644 --- a/ftplugin/lisp.vim +++ b/ftplugin/lisp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lisp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lisp', 'ftplugin/lisp.vim') finish endif diff --git a/ftplugin/litcoffee.vim b/ftplugin/litcoffee.vim index d9bd72dc..08eddc18 100644 --- a/ftplugin/litcoffee.vim +++ b/ftplugin/litcoffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'ftplugin/litcoffee.vim') finish endif diff --git a/ftplugin/llvm.vim b/ftplugin/llvm.vim index 19cab5d2..1b20c7cc 100644 --- a/ftplugin/llvm.vim +++ b/ftplugin/llvm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'llvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'ftplugin/llvm.vim') finish endif diff --git a/ftplugin/logcheck.vim b/ftplugin/logcheck.vim index 3ad3567c..eb4af4cc 100644 --- a/ftplugin/logcheck.vim +++ b/ftplugin/logcheck.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'logcheck') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'logcheck', 'ftplugin/logcheck.vim') finish endif diff --git a/ftplugin/loginaccess.vim b/ftplugin/loginaccess.vim index e4cf1edd..c7150d49 100644 --- a/ftplugin/loginaccess.vim +++ b/ftplugin/loginaccess.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'loginaccess') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'loginaccess', 'ftplugin/loginaccess.vim') finish endif diff --git a/ftplugin/logindefs.vim b/ftplugin/logindefs.vim index 15bb751a..d2e0b4eb 100644 --- a/ftplugin/logindefs.vim +++ b/ftplugin/logindefs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'logindefs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'logindefs', 'ftplugin/logindefs.vim') finish endif diff --git a/ftplugin/logtalk.vim b/ftplugin/logtalk.vim index 56e883d7..6d4f129a 100644 --- a/ftplugin/logtalk.vim +++ b/ftplugin/logtalk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'logtalk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'logtalk', 'ftplugin/logtalk.vim') finish endif diff --git a/ftplugin/lprolog.vim b/ftplugin/lprolog.vim index e1e7e3e6..d8804cef 100644 --- a/ftplugin/lprolog.vim +++ b/ftplugin/lprolog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lprolog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lprolog', 'ftplugin/lprolog.vim') finish endif diff --git a/ftplugin/ls.vim b/ftplugin/ls.vim index 425bb6f6..9808b919 100644 --- a/ftplugin/ls.vim +++ b/ftplugin/ls.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'livescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'livescript', 'ftplugin/ls.vim') finish endif diff --git a/ftplugin/m4.vim b/ftplugin/m4.vim index 538e0885..1efcacf3 100644 --- a/ftplugin/m4.vim +++ b/ftplugin/m4.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'm4') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'm4', 'ftplugin/m4.vim') finish endif diff --git a/ftplugin/mail.vim b/ftplugin/mail.vim index 4c8c1600..6e4e9a4f 100644 --- a/ftplugin/mail.vim +++ b/ftplugin/mail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mail') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mail', 'ftplugin/mail.vim') finish endif diff --git a/ftplugin/mailaliases.vim b/ftplugin/mailaliases.vim index 01d2b653..4db6e3c1 100644 --- a/ftplugin/mailaliases.vim +++ b/ftplugin/mailaliases.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mailaliases') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mailaliases', 'ftplugin/mailaliases.vim') finish endif diff --git a/ftplugin/mailcap.vim b/ftplugin/mailcap.vim index 641d9939..1c435630 100644 --- a/ftplugin/mailcap.vim +++ b/ftplugin/mailcap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mailcap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mailcap', 'ftplugin/mailcap.vim') finish endif diff --git a/ftplugin/make.vim b/ftplugin/make.vim index ee4157f1..42b45700 100644 --- a/ftplugin/make.vim +++ b/ftplugin/make.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'make') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'make', 'ftplugin/make.vim') finish endif diff --git a/ftplugin/mako.vim b/ftplugin/mako.vim index 6496d659..4ff58f34 100644 --- a/ftplugin/mako.vim +++ b/ftplugin/mako.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mako') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mako', 'ftplugin/mako.vim') finish endif diff --git a/ftplugin/manconf.vim b/ftplugin/manconf.vim index ff87f8bf..daca7be1 100644 --- a/ftplugin/manconf.vim +++ b/ftplugin/manconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'manconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'manconf', 'ftplugin/manconf.vim') finish endif diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index a334d1d9..cb5edc8d 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'markdown') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'markdown', 'ftplugin/markdown.vim') finish endif diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim index 6753a8a9..6074dbd3 100644 --- a/ftplugin/meson.vim +++ b/ftplugin/meson.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'meson') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'meson', 'ftplugin/meson.vim') finish endif diff --git a/ftplugin/mf.vim b/ftplugin/mf.vim index cdb644c8..26704968 100644 --- a/ftplugin/mf.vim +++ b/ftplugin/mf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mf', 'ftplugin/mf.vim') finish endif diff --git a/ftplugin/mma.vim b/ftplugin/mma.vim index e9c91dc0..dffaa211 100644 --- a/ftplugin/mma.vim +++ b/ftplugin/mma.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mathematica') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mathematica', 'ftplugin/mma.vim') finish endif diff --git a/ftplugin/modconf.vim b/ftplugin/modconf.vim index c8f8f5e2..cca93104 100644 --- a/ftplugin/modconf.vim +++ b/ftplugin/modconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'modconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'modconf', 'ftplugin/modconf.vim') finish endif diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim index ab70250a..86e63c44 100644 --- a/ftplugin/moon.vim +++ b/ftplugin/moon.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'moonscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'moonscript', 'ftplugin/moon.vim') finish endif diff --git a/ftplugin/mp.vim b/ftplugin/mp.vim index ea33ddda..a379d6e0 100644 --- a/ftplugin/mp.vim +++ b/ftplugin/mp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mp', 'ftplugin/mp.vim') finish endif diff --git a/ftplugin/mplayerconf.vim b/ftplugin/mplayerconf.vim index 7e7b63b0..22bd2874 100644 --- a/ftplugin/mplayerconf.vim +++ b/ftplugin/mplayerconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mplayerconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mplayerconf', 'ftplugin/mplayerconf.vim') finish endif diff --git a/ftplugin/mrxvtrc.vim b/ftplugin/mrxvtrc.vim index a5af89f4..71c9c17d 100644 --- a/ftplugin/mrxvtrc.vim +++ b/ftplugin/mrxvtrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mrxvtrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mrxvtrc', 'ftplugin/mrxvtrc.vim') finish endif diff --git a/ftplugin/mustache.vim b/ftplugin/mustache.vim index 5bed7ac3..92b97891 100644 --- a/ftplugin/mustache.vim +++ b/ftplugin/mustache.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'handlebars') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'handlebars', 'ftplugin/mustache.vim') finish endif diff --git a/ftplugin/muttrc.vim b/ftplugin/muttrc.vim index 320c7463..82c783ce 100644 --- a/ftplugin/muttrc.vim +++ b/ftplugin/muttrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'muttrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'muttrc', 'ftplugin/muttrc.vim') finish endif diff --git a/ftplugin/nanorc.vim b/ftplugin/nanorc.vim index 0812ebf5..2ee97369 100644 --- a/ftplugin/nanorc.vim +++ b/ftplugin/nanorc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nanorc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nanorc', 'ftplugin/nanorc.vim') finish endif diff --git a/ftplugin/neomuttrc.vim b/ftplugin/neomuttrc.vim index 5488c255..a5a19ac2 100644 --- a/ftplugin/neomuttrc.vim +++ b/ftplugin/neomuttrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'neomuttrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'neomuttrc', 'ftplugin/neomuttrc.vim') finish endif diff --git a/ftplugin/netrc.vim b/ftplugin/netrc.vim index db858772..55cee784 100644 --- a/ftplugin/netrc.vim +++ b/ftplugin/netrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'netrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'netrc', 'ftplugin/netrc.vim') finish endif diff --git a/ftplugin/nginx.vim b/ftplugin/nginx.vim index 39ff7a5d..45442242 100644 --- a/ftplugin/nginx.vim +++ b/ftplugin/nginx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nginx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nginx', 'ftplugin/nginx.vim') finish endif diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim index 457f4443..75bbd1a4 100644 --- a/ftplugin/nix.vim +++ b/ftplugin/nix.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nix') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nix', 'ftplugin/nix.vim') finish endif diff --git a/ftplugin/nroff.vim b/ftplugin/nroff.vim index ac3dce4d..967b358f 100644 --- a/ftplugin/nroff.vim +++ b/ftplugin/nroff.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nroff') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nroff', 'ftplugin/nroff.vim') finish endif diff --git a/ftplugin/nsis.vim b/ftplugin/nsis.vim index 833259f3..ab54e5d3 100644 --- a/ftplugin/nsis.vim +++ b/ftplugin/nsis.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nsis') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nsis', 'ftplugin/nsis.vim') finish endif diff --git a/ftplugin/oasis.vim b/ftplugin/oasis.vim index 6dfe76ad..ad7dd1a5 100644 --- a/ftplugin/oasis.vim +++ b/ftplugin/oasis.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'ftplugin/oasis.vim') finish endif diff --git a/ftplugin/objc.vim b/ftplugin/objc.vim index 906ae2bf..4e47eedd 100644 --- a/ftplugin/objc.vim +++ b/ftplugin/objc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'objc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'objc', 'ftplugin/objc.vim') finish endif diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim index 84be233e..6babcef8 100644 --- a/ftplugin/ocaml.vim +++ b/ftplugin/ocaml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'ftplugin/ocaml.vim') finish endif diff --git a/ftplugin/ocamlbuild_tags.vim b/ftplugin/ocamlbuild_tags.vim index 6dfe76ad..5e83406d 100644 --- a/ftplugin/ocamlbuild_tags.vim +++ b/ftplugin/ocamlbuild_tags.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'ftplugin/ocamlbuild_tags.vim') finish endif diff --git a/ftplugin/occam.vim b/ftplugin/occam.vim index 3f5992b9..ea4973d0 100644 --- a/ftplugin/occam.vim +++ b/ftplugin/occam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'occam') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'occam', 'ftplugin/occam.vim') finish endif diff --git a/ftplugin/omake.vim b/ftplugin/omake.vim index 73cc17ae..59e11101 100644 --- a/ftplugin/omake.vim +++ b/ftplugin/omake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'ftplugin/omake.vim') finish endif diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim index 9beac952..03bca6b9 100644 --- a/ftplugin/opencl.vim +++ b/ftplugin/opencl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'opencl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'opencl', 'ftplugin/opencl.vim') finish endif diff --git a/ftplugin/pamconf.vim b/ftplugin/pamconf.vim index 1d3344c9..fcaa87d4 100644 --- a/ftplugin/pamconf.vim +++ b/ftplugin/pamconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pamconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pamconf', 'ftplugin/pamconf.vim') finish endif diff --git a/ftplugin/pascal.vim b/ftplugin/pascal.vim index ec8581d7..db3da051 100644 --- a/ftplugin/pascal.vim +++ b/ftplugin/pascal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pascal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pascal', 'ftplugin/pascal.vim') finish endif diff --git a/ftplugin/passwd.vim b/ftplugin/passwd.vim index a4bfaf92..d36ba53a 100644 --- a/ftplugin/passwd.vim +++ b/ftplugin/passwd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'passwd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'passwd', 'ftplugin/passwd.vim') finish endif diff --git a/ftplugin/pdf.vim b/ftplugin/pdf.vim index fec98a68..c36cc19b 100644 --- a/ftplugin/pdf.vim +++ b/ftplugin/pdf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pdf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pdf', 'ftplugin/pdf.vim') finish endif diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim index 7c8ff3bc..a0e54a05 100644 --- a/ftplugin/perl.vim +++ b/ftplugin/perl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'ftplugin/perl.vim') finish endif diff --git a/ftplugin/pest.vim b/ftplugin/pest.vim index 09ad3583..b3a1c374 100644 --- a/ftplugin/pest.vim +++ b/ftplugin/pest.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pest') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pest', 'ftplugin/pest.vim') finish endif diff --git a/ftplugin/pinfo.vim b/ftplugin/pinfo.vim index a32382a1..d81b88c9 100644 --- a/ftplugin/pinfo.vim +++ b/ftplugin/pinfo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pinfo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pinfo', 'ftplugin/pinfo.vim') finish endif diff --git a/ftplugin/plantuml.vim b/ftplugin/plantuml.vim index 8f0449e7..9f525dc3 100644 --- a/ftplugin/plantuml.vim +++ b/ftplugin/plantuml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'plantuml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'plantuml', 'ftplugin/plantuml.vim') finish endif diff --git a/ftplugin/pony.vim b/ftplugin/pony.vim index 03f94cc3..901109f0 100644 --- a/ftplugin/pony.vim +++ b/ftplugin/pony.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pony') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pony', 'ftplugin/pony.vim') finish endif diff --git a/ftplugin/postscr.vim b/ftplugin/postscr.vim index be2d347c..614898fc 100644 --- a/ftplugin/postscr.vim +++ b/ftplugin/postscr.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'postscr') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'postscr', 'ftplugin/postscr.vim') finish endif diff --git a/ftplugin/procmail.vim b/ftplugin/procmail.vim index ee9ea710..b1e25b78 100644 --- a/ftplugin/procmail.vim +++ b/ftplugin/procmail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'procmail') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'procmail', 'ftplugin/procmail.vim') finish endif diff --git a/ftplugin/prolog.vim b/ftplugin/prolog.vim index 56d17127..785cf7ff 100644 --- a/ftplugin/prolog.vim +++ b/ftplugin/prolog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'prolog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'prolog', 'ftplugin/prolog.vim') finish endif diff --git a/ftplugin/protocols.vim b/ftplugin/protocols.vim index 22cd52b3..ac62f693 100644 --- a/ftplugin/protocols.vim +++ b/ftplugin/protocols.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'protocols') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'protocols', 'ftplugin/protocols.vim') finish endif diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim index b88077d1..e7c1a853 100644 --- a/ftplugin/ps1.vim +++ b/ftplugin/ps1.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'powershell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'powershell', 'ftplugin/ps1.vim') finish endif diff --git a/ftplugin/ps1xml.vim b/ftplugin/ps1xml.vim index 4bd65c44..50ac3733 100644 --- a/ftplugin/ps1xml.vim +++ b/ftplugin/ps1xml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'powershell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'powershell', 'ftplugin/ps1xml.vim') finish endif diff --git a/ftplugin/pug.vim b/ftplugin/pug.vim index 8613bf4e..74d91afd 100644 --- a/ftplugin/pug.vim +++ b/ftplugin/pug.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pug') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pug', 'ftplugin/pug.vim') finish endif diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim index cd936ae4..0d461238 100644 --- a/ftplugin/puppet.vim +++ b/ftplugin/puppet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'ftplugin/puppet.vim') finish endif diff --git a/ftplugin/puppet_tagbar.vim b/ftplugin/puppet_tagbar.vim index afdbad6f..4e87669e 100644 --- a/ftplugin/puppet_tagbar.vim +++ b/ftplugin/puppet_tagbar.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'ftplugin/puppet_tagbar.vim') finish endif diff --git a/ftplugin/purescript.vim b/ftplugin/purescript.vim index 1a43b333..6097b02a 100644 --- a/ftplugin/purescript.vim +++ b/ftplugin/purescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'purescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'purescript', 'ftplugin/purescript.vim') finish endif diff --git a/ftplugin/pyrex.vim b/ftplugin/pyrex.vim index f312251e..9ea0af52 100644 --- a/ftplugin/pyrex.vim +++ b/ftplugin/pyrex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pyrex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pyrex', 'ftplugin/pyrex.vim') finish endif diff --git a/ftplugin/qml.vim b/ftplugin/qml.vim index 5184074a..fed105a3 100644 --- a/ftplugin/qml.vim +++ b/ftplugin/qml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'qml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'qml', 'ftplugin/qml.vim') finish endif diff --git a/ftplugin/quake.vim b/ftplugin/quake.vim index 621b71f7..78f8eec8 100644 --- a/ftplugin/quake.vim +++ b/ftplugin/quake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'quake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'quake', 'ftplugin/quake.vim') finish endif diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim index 06899bd1..8dd74d7f 100644 --- a/ftplugin/racket.vim +++ b/ftplugin/racket.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'racket') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'racket', 'ftplugin/racket.vim') finish endif diff --git a/ftplugin/raku.vim b/ftplugin/raku.vim index 4805a5c7..423dd786 100644 --- a/ftplugin/raku.vim +++ b/ftplugin/raku.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'raku') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'raku', 'ftplugin/raku.vim') finish endif diff --git a/ftplugin/raml.vim b/ftplugin/raml.vim index 3006f04a..53e1ecbc 100644 --- a/ftplugin/raml.vim +++ b/ftplugin/raml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'raml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'raml', 'ftplugin/raml.vim') finish endif diff --git a/ftplugin/razor.vim b/ftplugin/razor.vim index a7e62b6c..e1afeec3 100644 --- a/ftplugin/razor.vim +++ b/ftplugin/razor.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'razor') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'razor', 'ftplugin/razor.vim') finish endif diff --git a/ftplugin/readline.vim b/ftplugin/readline.vim index 21d0eb01..67e9f288 100644 --- a/ftplugin/readline.vim +++ b/ftplugin/readline.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'readline') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'readline', 'ftplugin/readline.vim') finish endif diff --git a/ftplugin/reva.vim b/ftplugin/reva.vim index b172720d..84534842 100644 --- a/ftplugin/reva.vim +++ b/ftplugin/reva.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'reva') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'reva', 'ftplugin/reva.vim') finish endif diff --git a/ftplugin/rmd.vim b/ftplugin/rmd.vim index bba9116f..c2fe0c2b 100644 --- a/ftplugin/rmd.vim +++ b/ftplugin/rmd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rmd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rmd', 'ftplugin/rmd.vim') finish endif diff --git a/ftplugin/rnc.vim b/ftplugin/rnc.vim index ba50c0d0..aacdfc1f 100644 --- a/ftplugin/rnc.vim +++ b/ftplugin/rnc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rnc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rnc', 'ftplugin/rnc.vim') finish endif diff --git a/ftplugin/rnoweb.vim b/ftplugin/rnoweb.vim index f7532ac9..13b68ef7 100644 --- a/ftplugin/rnoweb.vim +++ b/ftplugin/rnoweb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rnoweb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rnoweb', 'ftplugin/rnoweb.vim') finish endif diff --git a/ftplugin/rpl.vim b/ftplugin/rpl.vim index 6cd1d575..3d2d98d3 100644 --- a/ftplugin/rpl.vim +++ b/ftplugin/rpl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rpl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rpl', 'ftplugin/rpl.vim') finish endif diff --git a/ftplugin/rrst.vim b/ftplugin/rrst.vim index 98784843..68661a65 100644 --- a/ftplugin/rrst.vim +++ b/ftplugin/rrst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rrst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rrst', 'ftplugin/rrst.vim') finish endif diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim index ffb5e8ff..7c4a82a6 100644 --- a/ftplugin/rst.vim +++ b/ftplugin/rst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rst', 'ftplugin/rst.vim') finish endif diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 6edeab38..1c6f828f 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'ftplugin/ruby.vim') finish endif diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index c2256090..a131a1d1 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'ftplugin/rust.vim') finish endif diff --git a/ftplugin/rust/tagbar.vim b/ftplugin/rust/tagbar.vim index 0a020ed7..32a0564c 100644 --- a/ftplugin/rust/tagbar.vim +++ b/ftplugin/rust/tagbar.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'ftplugin/rust/tagbar.vim') finish endif diff --git a/ftplugin/sass.vim b/ftplugin/sass.vim index 166c651b..be0ef93c 100644 --- a/ftplugin/sass.vim +++ b/ftplugin/sass.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sass') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sass', 'ftplugin/sass.vim') finish endif diff --git a/ftplugin/sbt.vim b/ftplugin/sbt.vim index 73df97ca..95b01520 100644 --- a/ftplugin/sbt.vim +++ b/ftplugin/sbt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sbt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sbt', 'ftplugin/sbt.vim') finish endif diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim index 61d799de..4b633849 100644 --- a/ftplugin/scala.vim +++ b/ftplugin/scala.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scala', 'ftplugin/scala.vim') finish endif diff --git a/ftplugin/scala.xpt.vim b/ftplugin/scala.xpt.vim index 900aaaea..db0d08fe 100644 --- a/ftplugin/scala.xpt.vim +++ b/ftplugin/scala.xpt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scala', 'ftplugin/scala.xpt.vim') finish endif diff --git a/ftplugin/scala/tagbar.vim b/ftplugin/scala/tagbar.vim index 9ec4164d..d50c7783 100644 --- a/ftplugin/scala/tagbar.vim +++ b/ftplugin/scala/tagbar.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scala', 'ftplugin/scala/tagbar.vim') finish endif diff --git a/ftplugin/scheme.vim b/ftplugin/scheme.vim index 8b7ebd86..a5506d3a 100644 --- a/ftplugin/scheme.vim +++ b/ftplugin/scheme.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scheme') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scheme', 'ftplugin/scheme.vim') finish endif diff --git a/ftplugin/screen.vim b/ftplugin/screen.vim index 7ce75fd9..51ff65cc 100644 --- a/ftplugin/screen.vim +++ b/ftplugin/screen.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'screen') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'screen', 'ftplugin/screen.vim') finish endif diff --git a/ftplugin/scss.vim b/ftplugin/scss.vim index a8031454..14e024fe 100644 --- a/ftplugin/scss.vim +++ b/ftplugin/scss.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scss') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scss', 'ftplugin/scss.vim') finish endif diff --git a/ftplugin/sensors.vim b/ftplugin/sensors.vim index 50a54a10..778b9a3d 100644 --- a/ftplugin/sensors.vim +++ b/ftplugin/sensors.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sensors') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sensors', 'ftplugin/sensors.vim') finish endif diff --git a/ftplugin/services.vim b/ftplugin/services.vim index 3889c46e..ea86defb 100644 --- a/ftplugin/services.vim +++ b/ftplugin/services.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'services') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'services', 'ftplugin/services.vim') finish endif diff --git a/ftplugin/setserial.vim b/ftplugin/setserial.vim index d1651344..b1ccf991 100644 --- a/ftplugin/setserial.vim +++ b/ftplugin/setserial.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'setserial') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'setserial', 'ftplugin/setserial.vim') finish endif diff --git a/ftplugin/sexplib.vim b/ftplugin/sexplib.vim index 7b36d631..d98f2d15 100644 --- a/ftplugin/sexplib.vim +++ b/ftplugin/sexplib.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'ftplugin/sexplib.vim') finish endif diff --git a/ftplugin/sieve.vim b/ftplugin/sieve.vim index f4f4457c..11de9701 100644 --- a/ftplugin/sieve.vim +++ b/ftplugin/sieve.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sieve') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sieve', 'ftplugin/sieve.vim') finish endif diff --git a/ftplugin/slim.vim b/ftplugin/slim.vim index 0456fcb6..022397e5 100644 --- a/ftplugin/slim.vim +++ b/ftplugin/slim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slim', 'ftplugin/slim.vim') finish endif diff --git a/ftplugin/slpconf.vim b/ftplugin/slpconf.vim index d23a123c..c8b47e9c 100644 --- a/ftplugin/slpconf.vim +++ b/ftplugin/slpconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slpconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slpconf', 'ftplugin/slpconf.vim') finish endif diff --git a/ftplugin/slpreg.vim b/ftplugin/slpreg.vim index f43279d6..7c986b6a 100644 --- a/ftplugin/slpreg.vim +++ b/ftplugin/slpreg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slpreg') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slpreg', 'ftplugin/slpreg.vim') finish endif diff --git a/ftplugin/slpspi.vim b/ftplugin/slpspi.vim index eb87fb69..e7d80197 100644 --- a/ftplugin/slpspi.vim +++ b/ftplugin/slpspi.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slpspi') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slpspi', 'ftplugin/slpspi.vim') finish endif diff --git a/ftplugin/smt2.vim b/ftplugin/smt2.vim index 2ba33b9e..d6cfa5ec 100644 --- a/ftplugin/smt2.vim +++ b/ftplugin/smt2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'smt2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'smt2', 'ftplugin/smt2.vim') finish endif diff --git a/ftplugin/solidity.vim b/ftplugin/solidity.vim index d5f2903d..f081a7dd 100644 --- a/ftplugin/solidity.vim +++ b/ftplugin/solidity.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'solidity') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'solidity', 'ftplugin/solidity.vim') finish endif diff --git a/ftplugin/spec.vim b/ftplugin/spec.vim index fad900f9..a86610cf 100644 --- a/ftplugin/spec.vim +++ b/ftplugin/spec.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'spec') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'spec', 'ftplugin/spec.vim') finish endif diff --git a/ftplugin/sql.vim b/ftplugin/sql.vim index 22d92699..578d4ab0 100644 --- a/ftplugin/sql.vim +++ b/ftplugin/sql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sql', 'ftplugin/sql.vim') finish endif diff --git a/ftplugin/sshconfig.vim b/ftplugin/sshconfig.vim index 6198240a..6e0ede21 100644 --- a/ftplugin/sshconfig.vim +++ b/ftplugin/sshconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sshconfig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sshconfig', 'ftplugin/sshconfig.vim') finish endif diff --git a/ftplugin/stylus.vim b/ftplugin/stylus.vim index d0b49d36..e24bea01 100644 --- a/ftplugin/stylus.vim +++ b/ftplugin/stylus.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'stylus') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'stylus', 'ftplugin/stylus.vim') finish endif diff --git a/ftplugin/sudoers.vim b/ftplugin/sudoers.vim index db3012c9..45aa0763 100644 --- a/ftplugin/sudoers.vim +++ b/ftplugin/sudoers.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sudoers') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sudoers', 'ftplugin/sudoers.vim') finish endif diff --git a/ftplugin/svelte.vim b/ftplugin/svelte.vim index 977ee905..cf32ef5b 100644 --- a/ftplugin/svelte.vim +++ b/ftplugin/svelte.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'svelte') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'svelte', 'ftplugin/svelte.vim') finish endif diff --git a/ftplugin/swift.vim b/ftplugin/swift.vim index e09ff832..f670b7c4 100644 --- a/ftplugin/swift.vim +++ b/ftplugin/swift.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'swift') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'swift', 'ftplugin/swift.vim') finish endif diff --git a/ftplugin/swiftgyb.vim b/ftplugin/swiftgyb.vim index 3684574e..46a87ecb 100644 --- a/ftplugin/swiftgyb.vim +++ b/ftplugin/swiftgyb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'swiftgyb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'swiftgyb', 'ftplugin/swiftgyb.vim') finish endif diff --git a/ftplugin/sxhkdrc.vim b/ftplugin/sxhkdrc.vim index 4814c5c1..b58baa1f 100644 --- a/ftplugin/sxhkdrc.vim +++ b/ftplugin/sxhkdrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sxhkd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sxhkd', 'ftplugin/sxhkdrc.vim') finish endif diff --git a/ftplugin/sysctl.vim b/ftplugin/sysctl.vim index b70f590a..bcddd17e 100644 --- a/ftplugin/sysctl.vim +++ b/ftplugin/sysctl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sysctl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sysctl', 'ftplugin/sysctl.vim') finish endif diff --git a/ftplugin/systemd.vim b/ftplugin/systemd.vim index 1479f683..f6500b14 100644 --- a/ftplugin/systemd.vim +++ b/ftplugin/systemd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'systemd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'systemd', 'ftplugin/systemd.vim') finish endif diff --git a/ftplugin/systemverilog.vim b/ftplugin/systemverilog.vim index f2df69e0..c0959e48 100644 --- a/ftplugin/systemverilog.vim +++ b/ftplugin/systemverilog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'systemverilog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'systemverilog', 'ftplugin/systemverilog.vim') finish endif diff --git a/ftplugin/tablegen.vim b/ftplugin/tablegen.vim index 1796d2d5..e3490178 100644 --- a/ftplugin/tablegen.vim +++ b/ftplugin/tablegen.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'llvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'ftplugin/tablegen.vim') finish endif diff --git a/ftplugin/tcl.vim b/ftplugin/tcl.vim index a70cfc27..c57c5623 100644 --- a/ftplugin/tcl.vim +++ b/ftplugin/tcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tcl', 'ftplugin/tcl.vim') finish endif diff --git a/ftplugin/terminfo.vim b/ftplugin/terminfo.vim index 3ea64a55..9f928eae 100644 --- a/ftplugin/terminfo.vim +++ b/ftplugin/terminfo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'terminfo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'terminfo', 'ftplugin/terminfo.vim') finish endif diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim index 0ef25d30..36b42dbc 100644 --- a/ftplugin/terraform.vim +++ b/ftplugin/terraform.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'terraform') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'terraform', 'ftplugin/terraform.vim') finish endif diff --git a/ftplugin/text.vim b/ftplugin/text.vim index 7ec4d83f..1c7a2edb 100644 --- a/ftplugin/text.vim +++ b/ftplugin/text.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'text') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'text', 'ftplugin/text.vim') finish endif diff --git a/ftplugin/textile.vim b/ftplugin/textile.vim index 47a20067..7e5cb387 100644 --- a/ftplugin/textile.vim +++ b/ftplugin/textile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'textile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'textile', 'ftplugin/textile.vim') finish endif diff --git a/ftplugin/tmux.vim b/ftplugin/tmux.vim index a8c1669b..ff0e39a0 100644 --- a/ftplugin/tmux.vim +++ b/ftplugin/tmux.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tmux') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tmux', 'ftplugin/tmux.vim') finish endif diff --git a/ftplugin/toml.vim b/ftplugin/toml.vim index b5003f47..8d45ea77 100644 --- a/ftplugin/toml.vim +++ b/ftplugin/toml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'toml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'toml', 'ftplugin/toml.vim') finish endif diff --git a/ftplugin/treetop.vim b/ftplugin/treetop.vim index 190f24b1..ca80c62e 100644 --- a/ftplugin/treetop.vim +++ b/ftplugin/treetop.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'treetop') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'treetop', 'ftplugin/treetop.vim') finish endif diff --git a/ftplugin/tt2html.vim b/ftplugin/tt2html.vim index 05613ce6..013fcf9f 100644 --- a/ftplugin/tt2html.vim +++ b/ftplugin/tt2html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'ftplugin/tt2html.vim') finish endif diff --git a/ftplugin/twig.vim b/ftplugin/twig.vim index 1380d1c3..621a592c 100644 --- a/ftplugin/twig.vim +++ b/ftplugin/twig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'twig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'twig', 'ftplugin/twig.vim') finish endif diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim index ec06e34d..fe0c7b8d 100644 --- a/ftplugin/typescript.vim +++ b/ftplugin/typescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'ftplugin/typescript.vim') finish endif diff --git a/ftplugin/typescriptreact.vim b/ftplugin/typescriptreact.vim index a1e59699..c13fc996 100644 --- a/ftplugin/typescriptreact.vim +++ b/ftplugin/typescriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'ftplugin/typescriptreact.vim') finish endif diff --git a/ftplugin/udevconf.vim b/ftplugin/udevconf.vim index 24b870c1..58016594 100644 --- a/ftplugin/udevconf.vim +++ b/ftplugin/udevconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'udevconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'udevconf', 'ftplugin/udevconf.vim') finish endif diff --git a/ftplugin/udevperm.vim b/ftplugin/udevperm.vim index 4775b3e3..0b2944d6 100644 --- a/ftplugin/udevperm.vim +++ b/ftplugin/udevperm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'udevperm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'udevperm', 'ftplugin/udevperm.vim') finish endif diff --git a/ftplugin/updatedb.vim b/ftplugin/updatedb.vim index 4b15b1d7..159651f9 100644 --- a/ftplugin/updatedb.vim +++ b/ftplugin/updatedb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'updatedb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'updatedb', 'ftplugin/updatedb.vim') finish endif diff --git a/ftplugin/vala.vim b/ftplugin/vala.vim index ffbf427e..7e8fcc09 100644 --- a/ftplugin/vala.vim +++ b/ftplugin/vala.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vala', 'ftplugin/vala.vim') finish endif diff --git a/ftplugin/vb.vim b/ftplugin/vb.vim index f2c41f6f..0b5763f2 100644 --- a/ftplugin/vb.vim +++ b/ftplugin/vb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'visual-basic') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'visual-basic', 'ftplugin/vb.vim') finish endif diff --git a/ftplugin/verilog.vim b/ftplugin/verilog.vim index 16899218..5c62644d 100644 --- a/ftplugin/verilog.vim +++ b/ftplugin/verilog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'verilog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'verilog', 'ftplugin/verilog.vim') finish endif diff --git a/ftplugin/vhdl.vim b/ftplugin/vhdl.vim index e351ea5c..cad03b5a 100644 --- a/ftplugin/vhdl.vim +++ b/ftplugin/vhdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vhdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vhdl', 'ftplugin/vhdl.vim') finish endif diff --git a/ftplugin/vlang.vim b/ftplugin/vlang.vim index 88e4003e..cda16cba 100644 --- a/ftplugin/vlang.vim +++ b/ftplugin/vlang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'v') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'v', 'ftplugin/vlang.vim') finish endif diff --git a/ftplugin/vroom.vim b/ftplugin/vroom.vim index 3ebc49ce..9f99a4e6 100644 --- a/ftplugin/vroom.vim +++ b/ftplugin/vroom.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vroom') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vroom', 'ftplugin/vroom.vim') finish endif diff --git a/ftplugin/vue.vim b/ftplugin/vue.vim index 7babb058..96566638 100644 --- a/ftplugin/vue.vim +++ b/ftplugin/vue.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vue') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vue', 'ftplugin/vue.vim') finish endif diff --git a/ftplugin/wast.vim b/ftplugin/wast.vim index ac9ec8e6..4888e801 100644 --- a/ftplugin/wast.vim +++ b/ftplugin/wast.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wast') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wast', 'ftplugin/wast.vim') finish endif diff --git a/ftplugin/xdefaults.vim b/ftplugin/xdefaults.vim index 73491e1e..ec544434 100644 --- a/ftplugin/xdefaults.vim +++ b/ftplugin/xdefaults.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xdefaults') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xdefaults', 'ftplugin/xdefaults.vim') finish endif diff --git a/ftplugin/xf86conf.vim b/ftplugin/xf86conf.vim index 47870d19..0f689392 100644 --- a/ftplugin/xf86conf.vim +++ b/ftplugin/xf86conf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xf86conf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xf86conf', 'ftplugin/xf86conf.vim') finish endif diff --git a/ftplugin/xhtml.vim b/ftplugin/xhtml.vim index f7fae2f8..1e54f348 100644 --- a/ftplugin/xhtml.vim +++ b/ftplugin/xhtml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xhtml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xhtml', 'ftplugin/xhtml.vim') finish endif diff --git a/ftplugin/xinetd.vim b/ftplugin/xinetd.vim index a28129ea..afbdeacf 100644 --- a/ftplugin/xinetd.vim +++ b/ftplugin/xinetd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xinetd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xinetd', 'ftplugin/xinetd.vim') finish endif diff --git a/ftplugin/xmodmap.vim b/ftplugin/xmodmap.vim index 05640272..e4186764 100644 --- a/ftplugin/xmodmap.vim +++ b/ftplugin/xmodmap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xmodmap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xmodmap', 'ftplugin/xmodmap.vim') finish endif diff --git a/ftplugin/xs.vim b/ftplugin/xs.vim index 29ad519a..c93409d4 100644 --- a/ftplugin/xs.vim +++ b/ftplugin/xs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'ftplugin/xs.vim') finish endif diff --git a/ftplugin/xsd.vim b/ftplugin/xsd.vim index 6199d82b..0b551124 100644 --- a/ftplugin/xsd.vim +++ b/ftplugin/xsd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xsd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xsd', 'ftplugin/xsd.vim') finish endif diff --git a/ftplugin/xslt.vim b/ftplugin/xslt.vim index ee5b4044..176c5108 100644 --- a/ftplugin/xslt.vim +++ b/ftplugin/xslt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xslt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xslt', 'ftplugin/xslt.vim') finish endif diff --git a/ftplugin/yaml.vim b/ftplugin/yaml.vim index b10e4433..71c7308d 100644 --- a/ftplugin/yaml.vim +++ b/ftplugin/yaml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'yaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'yaml', 'ftplugin/yaml.vim') finish endif diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim index f16f24a8..3b88372c 100644 --- a/ftplugin/zig.vim +++ b/ftplugin/zig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'ftplugin/zig.vim') finish endif diff --git a/ftplugin/zimbu.vim b/ftplugin/zimbu.vim index bdcaacd1..a16fe8c0 100644 --- a/ftplugin/zimbu.vim +++ b/ftplugin/zimbu.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zimbu') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zimbu', 'ftplugin/zimbu.vim') finish endif diff --git a/indent/Jenkinsfile.vim b/indent/Jenkinsfile.vim index dc280b90..e0f5407d 100644 --- a/indent/Jenkinsfile.vim +++ b/indent/Jenkinsfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jenkins') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jenkins', 'indent/Jenkinsfile.vim') finish endif diff --git a/indent/aap.vim b/indent/aap.vim index 4ea024ab..d149f998 100644 --- a/indent/aap.vim +++ b/indent/aap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aap', 'indent/aap.vim') finish endif diff --git a/indent/ada.vim b/indent/ada.vim index 1e8f7f7e..1127ca11 100644 --- a/indent/ada.vim +++ b/indent/ada.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ada') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ada', 'indent/ada.vim') finish endif diff --git a/indent/ansible.vim b/indent/ansible.vim index 4a8afea7..65a51a64 100644 --- a/indent/ansible.vim +++ b/indent/ansible.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ansible') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ansible', 'indent/ansible.vim') finish endif diff --git a/indent/ant.vim b/indent/ant.vim index 5dbf0f7b..51de9c9e 100644 --- a/indent/ant.vim +++ b/indent/ant.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ant') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ant', 'indent/ant.vim') finish endif diff --git a/indent/applescript.vim b/indent/applescript.vim index 418b61d0..d25342b9 100644 --- a/indent/applescript.vim +++ b/indent/applescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'applescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'applescript', 'indent/applescript.vim') finish endif diff --git a/indent/arduino.vim b/indent/arduino.vim index 660bf68b..87fa1653 100644 --- a/indent/arduino.vim +++ b/indent/arduino.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'arduino') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'arduino', 'indent/arduino.vim') finish endif diff --git a/indent/autohotkey.vim b/indent/autohotkey.vim index a4011a5f..cd97cd65 100644 --- a/indent/autohotkey.vim +++ b/indent/autohotkey.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'autohotkey') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'autohotkey', 'indent/autohotkey.vim') finish endif diff --git a/indent/automake.vim b/indent/automake.vim index 65253ae7..afb67e9d 100644 --- a/indent/automake.vim +++ b/indent/automake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'automake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'automake', 'indent/automake.vim') finish endif diff --git a/indent/awk.vim b/indent/awk.vim index eb322da9..3b598407 100644 --- a/indent/awk.vim +++ b/indent/awk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'awk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'awk', 'indent/awk.vim') finish endif diff --git a/indent/bib.vim b/indent/bib.vim index f0746fe3..5c61348a 100644 --- a/indent/bib.vim +++ b/indent/bib.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bib') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bib', 'indent/bib.vim') finish endif diff --git a/indent/blade.vim b/indent/blade.vim index 69198b0f..c44d83f8 100644 --- a/indent/blade.vim +++ b/indent/blade.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'blade') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'blade', 'indent/blade.vim') finish endif diff --git a/indent/bst.vim b/indent/bst.vim index 31b62039..5a60bdc0 100644 --- a/indent/bst.vim +++ b/indent/bst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bst', 'indent/bst.vim') finish endif diff --git a/indent/bzl.vim b/indent/bzl.vim index a1ea53cf..8780cc54 100644 --- a/indent/bzl.vim +++ b/indent/bzl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bzl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bzl', 'indent/bzl.vim') finish endif diff --git a/indent/cabal.vim b/indent/cabal.vim index 526d9b4e..28afe40c 100644 --- a/indent/cabal.vim +++ b/indent/cabal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haskell', 'indent/cabal.vim') finish endif diff --git a/indent/caddyfile.vim b/indent/caddyfile.vim index fd31408a..ded21ebd 100644 --- a/indent/caddyfile.vim +++ b/indent/caddyfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'caddyfile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'caddyfile', 'indent/caddyfile.vim') finish endif diff --git a/indent/cdl.vim b/indent/cdl.vim index 3519c04a..9c261276 100644 --- a/indent/cdl.vim +++ b/indent/cdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cdl', 'indent/cdl.vim') finish endif diff --git a/indent/ch.vim b/indent/ch.vim index cb077413..d3b0c17c 100644 --- a/indent/ch.vim +++ b/indent/ch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ch', 'indent/ch.vim') finish endif diff --git a/indent/chaiscript.vim b/indent/chaiscript.vim index e01b3b16..a09b8ad9 100644 --- a/indent/chaiscript.vim +++ b/indent/chaiscript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'chaiscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'chaiscript', 'indent/chaiscript.vim') finish endif diff --git a/indent/clojure.vim b/indent/clojure.vim index 9934ce0d..0ff1ea7e 100644 --- a/indent/clojure.vim +++ b/indent/clojure.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'clojure') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'clojure', 'indent/clojure.vim') finish endif diff --git a/indent/cmake.vim b/indent/cmake.vim index 2449143f..b15bbb0b 100644 --- a/indent/cmake.vim +++ b/indent/cmake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cmake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cmake', 'indent/cmake.vim') finish endif diff --git a/indent/cobol.vim b/indent/cobol.vim index c4eba951..7a0b7f07 100644 --- a/indent/cobol.vim +++ b/indent/cobol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cobol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cobol', 'indent/cobol.vim') finish endif diff --git a/indent/coffee.vim b/indent/coffee.vim index 620574b9..94e96749 100644 --- a/indent/coffee.vim +++ b/indent/coffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'indent/coffee.vim') finish endif diff --git a/indent/config.vim b/indent/config.vim index 7bdeac18..986b8c4d 100644 --- a/indent/config.vim +++ b/indent/config.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'config') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'config', 'indent/config.vim') finish endif diff --git a/indent/crystal.vim b/indent/crystal.vim index 724f9611..b0fe3045 100644 --- a/indent/crystal.vim +++ b/indent/crystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'indent/crystal.vim') finish endif diff --git a/indent/cs.vim b/indent/cs.vim index b69407ec..88dcd603 100644 --- a/indent/cs.vim +++ b/indent/cs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cs', 'indent/cs.vim') finish endif diff --git a/indent/css.vim b/indent/css.vim index 27366aec..b383d448 100644 --- a/indent/css.vim +++ b/indent/css.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'css') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'css', 'indent/css.vim') finish endif diff --git a/indent/cucumber.vim b/indent/cucumber.vim index ad473be6..cf85c575 100644 --- a/indent/cucumber.vim +++ b/indent/cucumber.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cucumber') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cucumber', 'indent/cucumber.vim') finish endif diff --git a/indent/cuda.vim b/indent/cuda.vim index c0b93fad..ea384d8e 100644 --- a/indent/cuda.vim +++ b/indent/cuda.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cuda') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cuda', 'indent/cuda.vim') finish endif diff --git a/indent/cython.vim b/indent/cython.vim index c650165e..3aaae865 100644 --- a/indent/cython.vim +++ b/indent/cython.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'python-indent') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'python-indent', 'indent/cython.vim') finish endif diff --git a/indent/d.vim b/indent/d.vim index 4a630961..ca1994c5 100644 --- a/indent/d.vim +++ b/indent/d.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dlang', 'indent/d.vim') finish endif diff --git a/indent/dart.vim b/indent/dart.vim index 882ac763..4f08a36f 100644 --- a/indent/dart.vim +++ b/indent/dart.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dart') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dart', 'indent/dart.vim') finish endif diff --git a/indent/dictconf.vim b/indent/dictconf.vim index 06f2abb2..fa022ad4 100644 --- a/indent/dictconf.vim +++ b/indent/dictconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dictconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dictconf', 'indent/dictconf.vim') finish endif diff --git a/indent/dictdconf.vim b/indent/dictdconf.vim index 6aed3f50..8b12b18a 100644 --- a/indent/dictdconf.vim +++ b/indent/dictdconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dictdconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dictdconf', 'indent/dictdconf.vim') finish endif diff --git a/indent/dosbatch.vim b/indent/dosbatch.vim index 5c815bde..a98c3886 100644 --- a/indent/dosbatch.vim +++ b/indent/dosbatch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dosbatch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dosbatch', 'indent/dosbatch.vim') finish endif diff --git a/indent/dtd.vim b/indent/dtd.vim index c8470bd9..7faa9483 100644 --- a/indent/dtd.vim +++ b/indent/dtd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dtd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dtd', 'indent/dtd.vim') finish endif diff --git a/indent/dune.vim b/indent/dune.vim index 0a658da4..5dbe9d30 100644 --- a/indent/dune.vim +++ b/indent/dune.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'indent/dune.vim') finish endif diff --git a/indent/dylan.vim b/indent/dylan.vim index d7a4fc4f..4e83a51d 100644 --- a/indent/dylan.vim +++ b/indent/dylan.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dylan') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dylan', 'indent/dylan.vim') finish endif diff --git a/indent/ecrystal.vim b/indent/ecrystal.vim index ba846906..dcb7a971 100644 --- a/indent/ecrystal.vim +++ b/indent/ecrystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'indent/ecrystal.vim') finish endif diff --git a/indent/eelixir.vim b/indent/eelixir.vim index 6485af7b..368d05f6 100644 --- a/indent/eelixir.vim +++ b/indent/eelixir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'indent/eelixir.vim') finish endif diff --git a/indent/elixir.vim b/indent/elixir.vim index df146ade..4ff1257a 100644 --- a/indent/elixir.vim +++ b/indent/elixir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'indent/elixir.vim') finish endif diff --git a/indent/elm.vim b/indent/elm.vim index 65253b0b..ffdcdacd 100644 --- a/indent/elm.vim +++ b/indent/elm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elm', 'indent/elm.vim') finish endif diff --git a/indent/ember-script.vim b/indent/ember-script.vim index 207c2183..fd184bd0 100644 --- a/indent/ember-script.vim +++ b/indent/ember-script.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'emberscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'emberscript', 'indent/ember-script.vim') finish endif diff --git a/indent/emblem.vim b/indent/emblem.vim index 7c1db44b..393ffd2b 100644 --- a/indent/emblem.vim +++ b/indent/emblem.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'emblem') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'emblem', 'indent/emblem.vim') finish endif diff --git a/indent/erlang.vim b/indent/erlang.vim index 907130ed..1636cc57 100644 --- a/indent/erlang.vim +++ b/indent/erlang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'erlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'erlang', 'indent/erlang.vim') finish endif diff --git a/indent/eruby.vim b/indent/eruby.vim index a762019a..74cd1d2f 100644 --- a/indent/eruby.vim +++ b/indent/eruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'indent/eruby.vim') finish endif diff --git a/indent/eterm.vim b/indent/eterm.vim index abdf120f..88502cf4 100644 --- a/indent/eterm.vim +++ b/indent/eterm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'eterm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'eterm', 'indent/eterm.vim') finish endif diff --git a/indent/falcon.vim b/indent/falcon.vim index fbff060c..eb1b6f18 100644 --- a/indent/falcon.vim +++ b/indent/falcon.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'falcon') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'falcon', 'indent/falcon.vim') finish endif diff --git a/indent/fennel.vim b/indent/fennel.vim index 920ac614..70d29f31 100644 --- a/indent/fennel.vim +++ b/indent/fennel.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fennel') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fennel', 'indent/fennel.vim') finish endif diff --git a/indent/fish.vim b/indent/fish.vim index 2fa1c1a7..b91f9945 100644 --- a/indent/fish.vim +++ b/indent/fish.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fish') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fish', 'indent/fish.vim') finish endif diff --git a/indent/fortran.vim b/indent/fortran.vim index 4a7c71fd..0f08a996 100644 --- a/indent/fortran.vim +++ b/indent/fortran.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fortran') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fortran', 'indent/fortran.vim') finish endif diff --git a/indent/framescript.vim b/indent/framescript.vim index 9457dbe8..883f4a4d 100644 --- a/indent/framescript.vim +++ b/indent/framescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'framescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'framescript', 'indent/framescript.vim') finish endif diff --git a/indent/fsharp.vim b/indent/fsharp.vim index ede28f33..c9d6ad49 100644 --- a/indent/fsharp.vim +++ b/indent/fsharp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fsharp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fsharp', 'indent/fsharp.vim') finish endif diff --git a/indent/gdscript3.vim b/indent/gdscript3.vim index fcac563a..8d69ed1b 100644 --- a/indent/gdscript3.vim +++ b/indent/gdscript3.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gdscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gdscript', 'indent/gdscript3.vim') finish endif diff --git a/indent/gitconfig.vim b/indent/gitconfig.vim index 83ae8357..fbbbde92 100644 --- a/indent/gitconfig.vim +++ b/indent/gitconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'indent/gitconfig.vim') finish endif diff --git a/indent/gitolite.vim b/indent/gitolite.vim index 0386107f..a9816e97 100644 --- a/indent/gitolite.vim +++ b/indent/gitolite.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gitolite') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gitolite', 'indent/gitolite.vim') finish endif diff --git a/indent/glsl.vim b/indent/glsl.vim index 889bb0fd..b16fec47 100644 --- a/indent/glsl.vim +++ b/indent/glsl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'glsl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'glsl', 'indent/glsl.vim') finish endif diff --git a/indent/go.vim b/indent/go.vim index e175c8e7..b1894d48 100644 --- a/indent/go.vim +++ b/indent/go.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'indent/go.vim') finish endif diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim index c29f4e47..59e1eb84 100644 --- a/indent/gohtmltmpl.vim +++ b/indent/gohtmltmpl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'indent/gohtmltmpl.vim') finish endif diff --git a/indent/graphql.vim b/indent/graphql.vim index c64d446a..97c56309 100644 --- a/indent/graphql.vim +++ b/indent/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'indent/graphql.vim') finish endif diff --git a/indent/haml.vim b/indent/haml.vim index ef0318d6..f0efff18 100644 --- a/indent/haml.vim +++ b/indent/haml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haml', 'indent/haml.vim') finish endif diff --git a/indent/hamster.vim b/indent/hamster.vim index b2f8af96..86f86bf8 100644 --- a/indent/hamster.vim +++ b/indent/hamster.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hamster') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hamster', 'indent/hamster.vim') finish endif diff --git a/indent/handlebars.vim b/indent/handlebars.vim index 7c2ea7b1..41dad4cc 100644 --- a/indent/handlebars.vim +++ b/indent/handlebars.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'handlebars') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'handlebars', 'indent/handlebars.vim') finish endif diff --git a/indent/haskell.vim b/indent/haskell.vim index c652ad36..cefa0845 100644 --- a/indent/haskell.vim +++ b/indent/haskell.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haskell', 'indent/haskell.vim') finish endif diff --git a/indent/hcl.vim b/indent/hcl.vim index 855afcb9..346e8585 100644 --- a/indent/hcl.vim +++ b/indent/hcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hcl', 'indent/hcl.vim') finish endif diff --git a/indent/hog.vim b/indent/hog.vim index 8f32e6b7..a712f525 100644 --- a/indent/hog.vim +++ b/indent/hog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hog', 'indent/hog.vim') finish endif diff --git a/indent/html.vim b/indent/html.vim index 25e306f3..07c6aa6f 100644 --- a/indent/html.vim +++ b/indent/html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html', 'indent/html.vim') finish endif diff --git a/indent/htmldjango.vim b/indent/htmldjango.vim index 33be44c3..abe66f87 100644 --- a/indent/htmldjango.vim +++ b/indent/htmldjango.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'htmldjango') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'htmldjango', 'indent/htmldjango.vim') finish endif diff --git a/indent/idris.vim b/indent/idris.vim index efdfd7ce..c4e41c21 100644 --- a/indent/idris.vim +++ b/indent/idris.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris', 'indent/idris.vim') finish endif diff --git a/indent/idris2.vim b/indent/idris2.vim index f497f5b9..e99d09d8 100644 --- a/indent/idris2.vim +++ b/indent/idris2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris2', 'indent/idris2.vim') finish endif diff --git a/indent/j.vim b/indent/j.vim index 939bb98d..fd00886b 100644 --- a/indent/j.vim +++ b/indent/j.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'j') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'j', 'indent/j.vim') finish endif diff --git a/indent/java.vim b/indent/java.vim index 389c47dd..19f377b2 100644 --- a/indent/java.vim +++ b/indent/java.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'java') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'java', 'indent/java.vim') finish endif diff --git a/indent/javascript.vim b/indent/javascript.vim index 28e77658..0a3b3bc2 100644 --- a/indent/javascript.vim +++ b/indent/javascript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript', 'indent/javascript.vim') finish endif diff --git a/indent/json.vim b/indent/json.vim index 43116a60..26c32100 100644 --- a/indent/json.vim +++ b/indent/json.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'json') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'json', 'indent/json.vim') finish endif diff --git a/indent/jsonc.vim b/indent/jsonc.vim index baffdae8..2aed4652 100644 --- a/indent/jsonc.vim +++ b/indent/jsonc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsonc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsonc', 'indent/jsonc.vim') finish endif diff --git a/indent/jsp.vim b/indent/jsp.vim index 2a80514f..b0da23fa 100644 --- a/indent/jsp.vim +++ b/indent/jsp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsp', 'indent/jsp.vim') finish endif diff --git a/indent/jst.vim b/indent/jst.vim index 7b37bc03..89e8004b 100644 --- a/indent/jst.vim +++ b/indent/jst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jst', 'indent/jst.vim') finish endif diff --git a/indent/julia.vim b/indent/julia.vim index f5b6dc40..c2a55922 100644 --- a/indent/julia.vim +++ b/indent/julia.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'indent/julia.vim') finish endif diff --git a/indent/kotlin.vim b/indent/kotlin.vim index 121a56df..8fdb2f85 100644 --- a/indent/kotlin.vim +++ b/indent/kotlin.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kotlin') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kotlin', 'indent/kotlin.vim') finish endif diff --git a/indent/ld.vim b/indent/ld.vim index 01745f1b..339c1542 100644 --- a/indent/ld.vim +++ b/indent/ld.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ld') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ld', 'indent/ld.vim') finish endif diff --git a/indent/ledger.vim b/indent/ledger.vim index 5f9e4e86..74c0eaed 100644 --- a/indent/ledger.vim +++ b/indent/ledger.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ledger') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ledger', 'indent/ledger.vim') finish endif diff --git a/indent/less.vim b/indent/less.vim index 0949e5f3..a3c8682a 100644 --- a/indent/less.vim +++ b/indent/less.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'less') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'less', 'indent/less.vim') finish endif diff --git a/indent/lifelines.vim b/indent/lifelines.vim index 1cbc8418..960a01b3 100644 --- a/indent/lifelines.vim +++ b/indent/lifelines.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lifelines') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lifelines', 'indent/lifelines.vim') finish endif diff --git a/indent/lilypond.vim b/indent/lilypond.vim index a307779e..3d3edb05 100644 --- a/indent/lilypond.vim +++ b/indent/lilypond.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lilypond') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'indent/lilypond.vim') finish endif diff --git a/indent/liquid.vim b/indent/liquid.vim index d708001a..c02140e2 100644 --- a/indent/liquid.vim +++ b/indent/liquid.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'liquid') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'liquid', 'indent/liquid.vim') finish endif diff --git a/indent/lisp.vim b/indent/lisp.vim index fc7d5090..c6439725 100644 --- a/indent/lisp.vim +++ b/indent/lisp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lisp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lisp', 'indent/lisp.vim') finish endif diff --git a/indent/litcoffee.vim b/indent/litcoffee.vim index 35c6b295..fe378b9b 100644 --- a/indent/litcoffee.vim +++ b/indent/litcoffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'indent/litcoffee.vim') finish endif diff --git a/indent/llvm.vim b/indent/llvm.vim index dd57c393..bd5ce305 100644 --- a/indent/llvm.vim +++ b/indent/llvm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'llvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'indent/llvm.vim') finish endif diff --git a/indent/logtalk.vim b/indent/logtalk.vim index c834bce7..8684d1e1 100644 --- a/indent/logtalk.vim +++ b/indent/logtalk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'logtalk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'logtalk', 'indent/logtalk.vim') finish endif diff --git a/indent/ls.vim b/indent/ls.vim index a65c4e44..8bba7d77 100644 --- a/indent/ls.vim +++ b/indent/ls.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'livescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'livescript', 'indent/ls.vim') finish endif diff --git a/indent/lua.vim b/indent/lua.vim index 755135b9..7391ea2b 100644 --- a/indent/lua.vim +++ b/indent/lua.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lua') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lua', 'indent/lua.vim') finish endif diff --git a/indent/mail.vim b/indent/mail.vim index 8369ac8e..633a2da5 100644 --- a/indent/mail.vim +++ b/indent/mail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mail') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mail', 'indent/mail.vim') finish endif diff --git a/indent/make.vim b/indent/make.vim index 313896ca..2fef5846 100644 --- a/indent/make.vim +++ b/indent/make.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'make') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'make', 'indent/make.vim') finish endif diff --git a/indent/mako.vim b/indent/mako.vim index f48a4121..fdc9735f 100644 --- a/indent/mako.vim +++ b/indent/mako.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mako') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mako', 'indent/mako.vim') finish endif diff --git a/indent/markdown.vim b/indent/markdown.vim index 6d1673c9..dd8888f4 100644 --- a/indent/markdown.vim +++ b/indent/markdown.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'markdown') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'markdown', 'indent/markdown.vim') finish endif diff --git a/indent/meson.vim b/indent/meson.vim index 4d0f3415..5480770f 100644 --- a/indent/meson.vim +++ b/indent/meson.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'meson') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'meson', 'indent/meson.vim') finish endif diff --git a/indent/mf.vim b/indent/mf.vim index 9bb9f3de..47a21542 100644 --- a/indent/mf.vim +++ b/indent/mf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mf', 'indent/mf.vim') finish endif diff --git a/indent/moon.vim b/indent/moon.vim index 709459e1..11f89895 100644 --- a/indent/moon.vim +++ b/indent/moon.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'moonscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'moonscript', 'indent/moon.vim') finish endif diff --git a/indent/mp.vim b/indent/mp.vim index a5c7bb8d..b616b29c 100644 --- a/indent/mp.vim +++ b/indent/mp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mp', 'indent/mp.vim') finish endif diff --git a/indent/mustache.vim b/indent/mustache.vim index 242a2170..bdf4d04d 100644 --- a/indent/mustache.vim +++ b/indent/mustache.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'handlebars') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'handlebars', 'indent/mustache.vim') finish endif diff --git a/indent/nginx.vim b/indent/nginx.vim index 0e094855..e9335e7a 100644 --- a/indent/nginx.vim +++ b/indent/nginx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nginx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nginx', 'indent/nginx.vim') finish endif diff --git a/indent/nim.vim b/indent/nim.vim index 0292a7f9..0c2b4f6e 100644 --- a/indent/nim.vim +++ b/indent/nim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nim', 'indent/nim.vim') finish endif diff --git a/indent/nix.vim b/indent/nix.vim index cf8a1960..08ff3f0e 100644 --- a/indent/nix.vim +++ b/indent/nix.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nix') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nix', 'indent/nix.vim') finish endif diff --git a/indent/nsis.vim b/indent/nsis.vim index 886ee4b7..d6e65634 100644 --- a/indent/nsis.vim +++ b/indent/nsis.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nsis') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nsis', 'indent/nsis.vim') finish endif diff --git a/indent/ocaml.vim b/indent/ocaml.vim index c902d8db..82e5825e 100644 --- a/indent/ocaml.vim +++ b/indent/ocaml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'indent/ocaml.vim') finish endif diff --git a/indent/occam.vim b/indent/occam.vim index cc94f2d6..c9949c3f 100644 --- a/indent/occam.vim +++ b/indent/occam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'occam') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'occam', 'indent/occam.vim') finish endif diff --git a/indent/octave.vim b/indent/octave.vim index 89614f20..0e34be55 100644 --- a/indent/octave.vim +++ b/indent/octave.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'octave') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'octave', 'indent/octave.vim') finish endif diff --git a/indent/odin.vim b/indent/odin.vim index f0a4cba0..279d39ef 100644 --- a/indent/odin.vim +++ b/indent/odin.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'odin') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'odin', 'indent/odin.vim') finish endif diff --git a/indent/omake.vim b/indent/omake.vim index 5c1cc446..7fd4bb2b 100644 --- a/indent/omake.vim +++ b/indent/omake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'indent/omake.vim') finish endif diff --git a/indent/opencl.vim b/indent/opencl.vim index 2fa56d7d..65ed1fa6 100644 --- a/indent/opencl.vim +++ b/indent/opencl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'opencl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'opencl', 'indent/opencl.vim') finish endif diff --git a/indent/pascal.vim b/indent/pascal.vim index 96817120..9e1c3e96 100644 --- a/indent/pascal.vim +++ b/indent/pascal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pascal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pascal', 'indent/pascal.vim') finish endif diff --git a/indent/perl.vim b/indent/perl.vim index c6c879a8..26c129e0 100644 --- a/indent/perl.vim +++ b/indent/perl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'indent/perl.vim') finish endif diff --git a/indent/pgsql.vim b/indent/pgsql.vim index e1823c01..8c65c668 100644 --- a/indent/pgsql.vim +++ b/indent/pgsql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pgsql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pgsql', 'indent/pgsql.vim') finish endif diff --git a/indent/plantuml.vim b/indent/plantuml.vim index 318090d8..71af587c 100644 --- a/indent/plantuml.vim +++ b/indent/plantuml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'plantuml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'plantuml', 'indent/plantuml.vim') finish endif diff --git a/indent/pony.vim b/indent/pony.vim index 718bf695..21035eb9 100644 --- a/indent/pony.vim +++ b/indent/pony.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pony') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pony', 'indent/pony.vim') finish endif diff --git a/indent/postscr.vim b/indent/postscr.vim index e0700673..e3ba7942 100644 --- a/indent/postscr.vim +++ b/indent/postscr.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'postscr') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'postscr', 'indent/postscr.vim') finish endif diff --git a/indent/pov.vim b/indent/pov.vim index cccc6858..ae2d15e8 100644 --- a/indent/pov.vim +++ b/indent/pov.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pov') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pov', 'indent/pov.vim') finish endif diff --git a/indent/prolog.vim b/indent/prolog.vim index 6568797d..d23510a7 100644 --- a/indent/prolog.vim +++ b/indent/prolog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'prolog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'prolog', 'indent/prolog.vim') finish endif diff --git a/indent/proto.vim b/indent/proto.vim index 3ec88be7..10567d83 100644 --- a/indent/proto.vim +++ b/indent/proto.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'protobuf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'protobuf', 'indent/proto.vim') finish endif diff --git a/indent/ps1.vim b/indent/ps1.vim index edc5b3b0..668ecbe3 100644 --- a/indent/ps1.vim +++ b/indent/ps1.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'powershell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'powershell', 'indent/ps1.vim') finish endif diff --git a/indent/pug.vim b/indent/pug.vim index b9b8e5a3..07c45140 100644 --- a/indent/pug.vim +++ b/indent/pug.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pug') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pug', 'indent/pug.vim') finish endif diff --git a/indent/puppet.vim b/indent/puppet.vim index 46176648..cabde843 100644 --- a/indent/puppet.vim +++ b/indent/puppet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'indent/puppet.vim') finish endif diff --git a/indent/purescript.vim b/indent/purescript.vim index e3028bc1..048c1e80 100644 --- a/indent/purescript.vim +++ b/indent/purescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'purescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'purescript', 'indent/purescript.vim') finish endif diff --git a/indent/pyrex.vim b/indent/pyrex.vim index a2bd93d0..412088e3 100644 --- a/indent/pyrex.vim +++ b/indent/pyrex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pyrex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pyrex', 'indent/pyrex.vim') finish endif diff --git a/indent/python.vim b/indent/python.vim index c650165e..aa7f39a7 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'python-indent') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'python-indent', 'indent/python.vim') finish endif diff --git a/indent/qml.vim b/indent/qml.vim index 19ccbf56..b91fe848 100644 --- a/indent/qml.vim +++ b/indent/qml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'qml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'qml', 'indent/qml.vim') finish endif diff --git a/indent/racket.vim b/indent/racket.vim index 18d75452..141171b6 100644 --- a/indent/racket.vim +++ b/indent/racket.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'racket') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'racket', 'indent/racket.vim') finish endif diff --git a/indent/raku.vim b/indent/raku.vim index 7dbbabf2..be46bac6 100644 --- a/indent/raku.vim +++ b/indent/raku.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'raku') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'raku', 'indent/raku.vim') finish endif diff --git a/indent/razor.vim b/indent/razor.vim index 38d479b7..89062a3b 100644 --- a/indent/razor.vim +++ b/indent/razor.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'razor') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'razor', 'indent/razor.vim') finish endif diff --git a/indent/readline.vim b/indent/readline.vim index 7b7ba832..100878fa 100644 --- a/indent/readline.vim +++ b/indent/readline.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'readline') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'readline', 'indent/readline.vim') finish endif diff --git a/indent/reason.vim b/indent/reason.vim index df655235..3515fb8b 100644 --- a/indent/reason.vim +++ b/indent/reason.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'reason') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'reason', 'indent/reason.vim') finish endif diff --git a/indent/rmd.vim b/indent/rmd.vim index 108e862e..77e3e51d 100644 --- a/indent/rmd.vim +++ b/indent/rmd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rmd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rmd', 'indent/rmd.vim') finish endif diff --git a/indent/rnoweb.vim b/indent/rnoweb.vim index f0ae543b..6be0c3b3 100644 --- a/indent/rnoweb.vim +++ b/indent/rnoweb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rnoweb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rnoweb', 'indent/rnoweb.vim') finish endif diff --git a/indent/rpl.vim b/indent/rpl.vim index b6180e7c..b9d27f83 100644 --- a/indent/rpl.vim +++ b/indent/rpl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rpl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rpl', 'indent/rpl.vim') finish endif diff --git a/indent/rrst.vim b/indent/rrst.vim index 90609477..c8e377ce 100644 --- a/indent/rrst.vim +++ b/indent/rrst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rrst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rrst', 'indent/rrst.vim') finish endif diff --git a/indent/rst.vim b/indent/rst.vim index 469bf660..fb64e2bc 100644 --- a/indent/rst.vim +++ b/indent/rst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rst', 'indent/rst.vim') finish endif diff --git a/indent/ruby.vim b/indent/ruby.vim index fbddf463..d061edfb 100644 --- a/indent/ruby.vim +++ b/indent/ruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'indent/ruby.vim') finish endif diff --git a/indent/rust.vim b/indent/rust.vim index fe2030d5..8be1cc03 100644 --- a/indent/rust.vim +++ b/indent/rust.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'indent/rust.vim') finish endif diff --git a/indent/sas.vim b/indent/sas.vim index b454fa70..ddd8b76d 100644 --- a/indent/sas.vim +++ b/indent/sas.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sas') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sas', 'indent/sas.vim') finish endif diff --git a/indent/sass.vim b/indent/sass.vim index ddff0224..1f3a9d94 100644 --- a/indent/sass.vim +++ b/indent/sass.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sass') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sass', 'indent/sass.vim') finish endif diff --git a/indent/scala.vim b/indent/scala.vim index 4cffc8bc..4ff04daa 100644 --- a/indent/scala.vim +++ b/indent/scala.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scala', 'indent/scala.vim') finish endif diff --git a/indent/scheme.vim b/indent/scheme.vim index 02502a6f..f7b16c49 100644 --- a/indent/scheme.vim +++ b/indent/scheme.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scheme') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scheme', 'indent/scheme.vim') finish endif diff --git a/indent/scss.vim b/indent/scss.vim index 195f6cf4..4accb81c 100644 --- a/indent/scss.vim +++ b/indent/scss.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scss') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scss', 'indent/scss.vim') finish endif diff --git a/indent/sdl.vim b/indent/sdl.vim index 563a4e7b..19c9d264 100644 --- a/indent/sdl.vim +++ b/indent/sdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sdl', 'indent/sdl.vim') finish endif diff --git a/indent/slim.vim b/indent/slim.vim index 3ac105cf..e52bf536 100644 --- a/indent/slim.vim +++ b/indent/slim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slim', 'indent/slim.vim') finish endif diff --git a/indent/slime.vim b/indent/slime.vim index 6b3835db..09052748 100644 --- a/indent/slime.vim +++ b/indent/slime.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slime') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slime', 'indent/slime.vim') finish endif diff --git a/indent/sml.vim b/indent/sml.vim index daf6f683..f99529c9 100644 --- a/indent/sml.vim +++ b/indent/sml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sml', 'indent/sml.vim') finish endif diff --git a/indent/solidity.vim b/indent/solidity.vim index 6191199f..7744f7a7 100644 --- a/indent/solidity.vim +++ b/indent/solidity.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'solidity') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'solidity', 'indent/solidity.vim') finish endif diff --git a/indent/sql.vim b/indent/sql.vim index 2c96ac85..689e6c00 100644 --- a/indent/sql.vim +++ b/indent/sql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sql', 'indent/sql.vim') finish endif diff --git a/indent/sshconfig.vim b/indent/sshconfig.vim index b17f2432..94bdf765 100644 --- a/indent/sshconfig.vim +++ b/indent/sshconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sshconfig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sshconfig', 'indent/sshconfig.vim') finish endif diff --git a/indent/stylus.vim b/indent/stylus.vim index eeb3fa0d..1254ebc3 100644 --- a/indent/stylus.vim +++ b/indent/stylus.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'stylus') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'stylus', 'indent/stylus.vim') finish endif diff --git a/indent/svelte.vim b/indent/svelte.vim index 64383fcf..fa01f563 100644 --- a/indent/svelte.vim +++ b/indent/svelte.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'svelte') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'svelte', 'indent/svelte.vim') finish endif diff --git a/indent/svg.vim b/indent/svg.vim index 804a3883..0b61e7d9 100644 --- a/indent/svg.vim +++ b/indent/svg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'svg-indent') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'svg-indent', 'indent/svg.vim') finish endif diff --git a/indent/swift.vim b/indent/swift.vim index 80b70531..00b2344a 100644 --- a/indent/swift.vim +++ b/indent/swift.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'swift') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'swift', 'indent/swift.vim') finish endif diff --git a/indent/systemverilog.vim b/indent/systemverilog.vim index 554cff08..0f8321b5 100644 --- a/indent/systemverilog.vim +++ b/indent/systemverilog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'systemverilog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'systemverilog', 'indent/systemverilog.vim') finish endif diff --git a/indent/tcl.vim b/indent/tcl.vim index 7d475546..47fdb84f 100644 --- a/indent/tcl.vim +++ b/indent/tcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tcl', 'indent/tcl.vim') finish endif diff --git a/indent/teraterm.vim b/indent/teraterm.vim index 69381cad..c1239038 100644 --- a/indent/teraterm.vim +++ b/indent/teraterm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'teraterm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'teraterm', 'indent/teraterm.vim') finish endif diff --git a/indent/terraform.vim b/indent/terraform.vim index 32222842..32c194ef 100644 --- a/indent/terraform.vim +++ b/indent/terraform.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'terraform') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'terraform', 'indent/terraform.vim') finish endif diff --git a/indent/tf.vim b/indent/tf.vim index 758e471e..16d103a7 100644 --- a/indent/tf.vim +++ b/indent/tf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tf', 'indent/tf.vim') finish endif diff --git a/indent/tilde.vim b/indent/tilde.vim index 5472e1da..13b53822 100644 --- a/indent/tilde.vim +++ b/indent/tilde.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tilde') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tilde', 'indent/tilde.vim') finish endif diff --git a/indent/treetop.vim b/indent/treetop.vim index b18bd398..269be1b5 100644 --- a/indent/treetop.vim +++ b/indent/treetop.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'treetop') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'treetop', 'indent/treetop.vim') finish endif diff --git a/indent/twig.vim b/indent/twig.vim index 83f15fe3..0a3fc15e 100644 --- a/indent/twig.vim +++ b/indent/twig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'twig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'twig', 'indent/twig.vim') finish endif diff --git a/indent/typescript.vim b/indent/typescript.vim index d372f992..9697e304 100644 --- a/indent/typescript.vim +++ b/indent/typescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'indent/typescript.vim') finish endif diff --git a/indent/typescriptreact.vim b/indent/typescriptreact.vim index 9a640523..8564f612 100644 --- a/indent/typescriptreact.vim +++ b/indent/typescriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'indent/typescriptreact.vim') finish endif diff --git a/indent/vala.vim b/indent/vala.vim index 60afaac6..218cabe3 100644 --- a/indent/vala.vim +++ b/indent/vala.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vala', 'indent/vala.vim') finish endif diff --git a/indent/vb.vim b/indent/vb.vim index db49efd5..9ef7ef1c 100644 --- a/indent/vb.vim +++ b/indent/vb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'visual-basic') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'visual-basic', 'indent/vb.vim') finish endif diff --git a/indent/velocity.vim b/indent/velocity.vim index 64aad906..27262acb 100644 --- a/indent/velocity.vim +++ b/indent/velocity.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'velocity') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'velocity', 'indent/velocity.vim') finish endif diff --git a/indent/verilog.vim b/indent/verilog.vim index b07a912f..77065208 100644 --- a/indent/verilog.vim +++ b/indent/verilog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'verilog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'verilog', 'indent/verilog.vim') finish endif diff --git a/indent/vhdl.vim b/indent/vhdl.vim index aa691d7d..fb0f8770 100644 --- a/indent/vhdl.vim +++ b/indent/vhdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vhdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vhdl', 'indent/vhdl.vim') finish endif diff --git a/indent/vlang.vim b/indent/vlang.vim index a12cff1b..f301c208 100644 --- a/indent/vlang.vim +++ b/indent/vlang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'v') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'v', 'indent/vlang.vim') finish endif diff --git a/indent/vroom.vim b/indent/vroom.vim index c2793053..a70fae02 100644 --- a/indent/vroom.vim +++ b/indent/vroom.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vroom') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vroom', 'indent/vroom.vim') finish endif diff --git a/indent/vue.vim b/indent/vue.vim index 83391a48..bff66ec8 100644 --- a/indent/vue.vim +++ b/indent/vue.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vue') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vue', 'indent/vue.vim') finish endif diff --git a/indent/wast.vim b/indent/wast.vim index bbd0be56..f11c13ec 100644 --- a/indent/wast.vim +++ b/indent/wast.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wast') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wast', 'indent/wast.vim') finish endif diff --git a/indent/xf86conf.vim b/indent/xf86conf.vim index 9b31cc8c..eb511d2e 100644 --- a/indent/xf86conf.vim +++ b/indent/xf86conf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xf86conf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xf86conf', 'indent/xf86conf.vim') finish endif diff --git a/indent/xhtml.vim b/indent/xhtml.vim index 67d0fdb8..23da26d6 100644 --- a/indent/xhtml.vim +++ b/indent/xhtml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xhtml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xhtml', 'indent/xhtml.vim') finish endif diff --git a/indent/xinetd.vim b/indent/xinetd.vim index 7463da52..2f8d1480 100644 --- a/indent/xinetd.vim +++ b/indent/xinetd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xinetd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xinetd', 'indent/xinetd.vim') finish endif diff --git a/indent/xsd.vim b/indent/xsd.vim index d30d56b2..3f2c2d86 100644 --- a/indent/xsd.vim +++ b/indent/xsd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xsd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xsd', 'indent/xsd.vim') finish endif diff --git a/indent/xslt.vim b/indent/xslt.vim index b443803f..d58bb299 100644 --- a/indent/xslt.vim +++ b/indent/xslt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xslt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xslt', 'indent/xslt.vim') finish endif diff --git a/indent/yacc.vim b/indent/yacc.vim index 1c5cc5ae..2814d172 100644 --- a/indent/yacc.vim +++ b/indent/yacc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'yacc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'yacc', 'indent/yacc.vim') finish endif diff --git a/indent/yaml.vim b/indent/yaml.vim index b2622e9c..f19e7684 100644 --- a/indent/yaml.vim +++ b/indent/yaml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'yaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'yaml', 'indent/yaml.vim') finish endif diff --git a/indent/zig.vim b/indent/zig.vim index c28c8b70..f4e2cda7 100644 --- a/indent/zig.vim +++ b/indent/zig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'indent/zig.vim') finish endif diff --git a/indent/zimbu.vim b/indent/zimbu.vim index c80a5f9d..51416adc 100644 --- a/indent/zimbu.vim +++ b/indent/zimbu.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zimbu') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zimbu', 'indent/zimbu.vim') finish endif diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim index bfd9c1a0..50060973 100644 --- a/plugin/polyglot.vim +++ b/plugin/polyglot.vim @@ -1,3 +1,5 @@ +call polyglot#init#init() + " Turn on filetype plugins (:help filetype-plugin). if has('autocmd') && !(exists("did_load_filetypes") && exists("did_indent_on")) filetype plugin indent on @@ -17,7 +19,7 @@ endif " and (mostly comments) from https://github.com/sheerun/vimrc " " Only settings that matter for proper editing are left -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == -1 +if !has_key(g:polyglot_is_disabled, 'sensible') " Allow backspace in insert mode. if &backspace == "" set backspace=indent,eol,start diff --git a/scripts/build b/scripts/build index 0ffa2039..23bfb33c 100755 --- a/scripts/build +++ b/scripts/build @@ -7,6 +7,9 @@ require 'fileutils' require 'set' require 'json' require 'tsort' +require 'pathname' + +BASE_DIR = Pathname.new(File.expand_path('../..', __FILE__)) Dir.chdir(File.dirname(__dir__)) @@ -48,7 +51,7 @@ def verify(packages, heuristics) extensions = packages.flat_map { |e| e["filetypes"] || [] } .flat_map { |e| e["extensions"].map { |e| "*." + e } } native_filetypes = detect_filetypes_str( - File.read('ftdetect/polyglot.vim').match(/" DO NOT EDIT CODE ABOVE.*/m)[0] + File.read('autoload/polyglot/init.vim').match(/" DO NOT EDIT CODE ABOVE.*/m)[0] ).flat_map { |e| expand_all(e) } for e in (native_filetypes & extensions) @@ -295,7 +298,7 @@ def copy_file(name, src, dest) open(dest, "w") do |output| if dest.match?(/\.vim$/) output << <<~EOF - if has_key(g:polyglot_is_disabled, '#{name}') + if polyglot#init#is_disabled(expand('<sfile>:p'), '#{name}', '#{dest}') finish endif @@ -688,7 +691,7 @@ def generate_ftdetect(packages, heuristics) show_warnings(all_filetypes, expected_filetypes) - inject_code('ftdetect/polyglot.vim', output) + inject_code('autoload/polyglot/init.vim', output) output = [] diff --git a/syntax/8th.vim b/syntax/8th.vim index 517d3573..f297dc54 100644 --- a/syntax/8th.vim +++ b/syntax/8th.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, '8th') +if polyglot#init#is_disabled(expand('<sfile>:p'), '8th', 'syntax/8th.vim') finish endif diff --git a/syntax/Jenkinsfile.vim b/syntax/Jenkinsfile.vim index 57869fc0..99b8707e 100644 --- a/syntax/Jenkinsfile.vim +++ b/syntax/Jenkinsfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jenkins') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jenkins', 'syntax/Jenkinsfile.vim') finish endif diff --git a/syntax/a2ps.vim b/syntax/a2ps.vim index 52fa0c49..d9f845f5 100644 --- a/syntax/a2ps.vim +++ b/syntax/a2ps.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'a2ps') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'a2ps', 'syntax/a2ps.vim') finish endif diff --git a/syntax/a65.vim b/syntax/a65.vim index fc281d67..c40729b3 100644 --- a/syntax/a65.vim +++ b/syntax/a65.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'a65') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'a65', 'syntax/a65.vim') finish endif diff --git a/syntax/aap.vim b/syntax/aap.vim index a3ea8957..47ce8c1e 100644 --- a/syntax/aap.vim +++ b/syntax/aap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aap', 'syntax/aap.vim') finish endif diff --git a/syntax/abap.vim b/syntax/abap.vim index 3596e384..ed10cce9 100644 --- a/syntax/abap.vim +++ b/syntax/abap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'abap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'abap', 'syntax/abap.vim') finish endif diff --git a/syntax/abaqus.vim b/syntax/abaqus.vim index 5d468d2e..d7bc1907 100644 --- a/syntax/abaqus.vim +++ b/syntax/abaqus.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'abaqus') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'abaqus', 'syntax/abaqus.vim') finish endif diff --git a/syntax/abc.vim b/syntax/abc.vim index 5798534c..d81c9f48 100644 --- a/syntax/abc.vim +++ b/syntax/abc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'abc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'abc', 'syntax/abc.vim') finish endif diff --git a/syntax/abel.vim b/syntax/abel.vim index c97156c7..26ee20c7 100644 --- a/syntax/abel.vim +++ b/syntax/abel.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'abel') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'abel', 'syntax/abel.vim') finish endif diff --git a/syntax/acedb.vim b/syntax/acedb.vim index 88544cef..705cff1c 100644 --- a/syntax/acedb.vim +++ b/syntax/acedb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'acedb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'acedb', 'syntax/acedb.vim') finish endif diff --git a/syntax/ada.vim b/syntax/ada.vim index b5e94a64..87a3ad7b 100644 --- a/syntax/ada.vim +++ b/syntax/ada.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ada') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ada', 'syntax/ada.vim') finish endif diff --git a/syntax/ahdl.vim b/syntax/ahdl.vim index b1061f25..feaeb0fe 100644 --- a/syntax/ahdl.vim +++ b/syntax/ahdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ahdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ahdl', 'syntax/ahdl.vim') finish endif diff --git a/syntax/aidl.vim b/syntax/aidl.vim index b271535b..524a8938 100644 --- a/syntax/aidl.vim +++ b/syntax/aidl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aidl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aidl', 'syntax/aidl.vim') finish endif diff --git a/syntax/alsaconf.vim b/syntax/alsaconf.vim index b5fcfdfd..e3673a22 100644 --- a/syntax/alsaconf.vim +++ b/syntax/alsaconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'alsaconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'alsaconf', 'syntax/alsaconf.vim') finish endif diff --git a/syntax/aml.vim b/syntax/aml.vim index 5b381447..34a9f3d5 100644 --- a/syntax/aml.vim +++ b/syntax/aml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aml', 'syntax/aml.vim') finish endif diff --git a/syntax/ampl.vim b/syntax/ampl.vim index 69c3d2d0..59f33cb1 100644 --- a/syntax/ampl.vim +++ b/syntax/ampl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ampl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ampl', 'syntax/ampl.vim') finish endif diff --git a/syntax/ansible.vim b/syntax/ansible.vim index 4b9e49d2..70f59021 100644 --- a/syntax/ansible.vim +++ b/syntax/ansible.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ansible') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ansible', 'syntax/ansible.vim') finish endif diff --git a/syntax/ansible_hosts.vim b/syntax/ansible_hosts.vim index a3af8f10..dcf1de8e 100644 --- a/syntax/ansible_hosts.vim +++ b/syntax/ansible_hosts.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ansible') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ansible', 'syntax/ansible_hosts.vim') finish endif diff --git a/syntax/ant.vim b/syntax/ant.vim index d3ec3849..c1729e0e 100644 --- a/syntax/ant.vim +++ b/syntax/ant.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ant') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ant', 'syntax/ant.vim') finish endif diff --git a/syntax/apache.vim b/syntax/apache.vim index 3bba1bbb..3dc07a7f 100644 --- a/syntax/apache.vim +++ b/syntax/apache.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'apache') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'apache', 'syntax/apache.vim') finish endif diff --git a/syntax/apachestyle.vim b/syntax/apachestyle.vim index e523ba77..5d3fe210 100644 --- a/syntax/apachestyle.vim +++ b/syntax/apachestyle.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'apachestyle') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'apachestyle', 'syntax/apachestyle.vim') finish endif diff --git a/syntax/apiblueprint.vim b/syntax/apiblueprint.vim index ba83eb44..08f29b44 100644 --- a/syntax/apiblueprint.vim +++ b/syntax/apiblueprint.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'apiblueprint') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'apiblueprint', 'syntax/apiblueprint.vim') finish endif diff --git a/syntax/applescript.vim b/syntax/applescript.vim index 2e72959e..d261caea 100644 --- a/syntax/applescript.vim +++ b/syntax/applescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'applescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'applescript', 'syntax/applescript.vim') finish endif diff --git a/syntax/aptconf.vim b/syntax/aptconf.vim index 046a543e..309b8faa 100644 --- a/syntax/aptconf.vim +++ b/syntax/aptconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aptconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aptconf', 'syntax/aptconf.vim') finish endif diff --git a/syntax/arch.vim b/syntax/arch.vim index b0156e79..c0ef6187 100644 --- a/syntax/arch.vim +++ b/syntax/arch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'arch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'arch', 'syntax/arch.vim') finish endif diff --git a/syntax/arduino.vim b/syntax/arduino.vim index ceb5f1fc..5c04d6c6 100644 --- a/syntax/arduino.vim +++ b/syntax/arduino.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'arduino') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'arduino', 'syntax/arduino.vim') finish endif diff --git a/syntax/art.vim b/syntax/art.vim index 45e5e5c2..50122217 100644 --- a/syntax/art.vim +++ b/syntax/art.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'art') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'art', 'syntax/art.vim') finish endif diff --git a/syntax/asciidoc.vim b/syntax/asciidoc.vim index ab305305..05338d44 100644 --- a/syntax/asciidoc.vim +++ b/syntax/asciidoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'asciidoc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'asciidoc', 'syntax/asciidoc.vim') finish endif diff --git a/syntax/asl.vim b/syntax/asl.vim index 14a83a54..d9eea367 100644 --- a/syntax/asl.vim +++ b/syntax/asl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'acpiasl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'acpiasl', 'syntax/asl.vim') finish endif diff --git a/syntax/asn.vim b/syntax/asn.vim index f767df05..eab1ac4a 100644 --- a/syntax/asn.vim +++ b/syntax/asn.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'asn') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'asn', 'syntax/asn.vim') finish endif diff --git a/syntax/aspperl.vim b/syntax/aspperl.vim index fa83b622..1858e256 100644 --- a/syntax/aspperl.vim +++ b/syntax/aspperl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aspperl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aspperl', 'syntax/aspperl.vim') finish endif diff --git a/syntax/aspvbs.vim b/syntax/aspvbs.vim index 456f0881..8af43626 100644 --- a/syntax/aspvbs.vim +++ b/syntax/aspvbs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'aspvbs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'aspvbs', 'syntax/aspvbs.vim') finish endif diff --git a/syntax/asterisk.vim b/syntax/asterisk.vim index 6f351d7c..14eebdfe 100644 --- a/syntax/asterisk.vim +++ b/syntax/asterisk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'asterisk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'asterisk', 'syntax/asterisk.vim') finish endif diff --git a/syntax/asteriskvm.vim b/syntax/asteriskvm.vim index a90b27b3..0551b0ca 100644 --- a/syntax/asteriskvm.vim +++ b/syntax/asteriskvm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'asteriskvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'asteriskvm', 'syntax/asteriskvm.vim') finish endif diff --git a/syntax/atlas.vim b/syntax/atlas.vim index 4efcdce7..4e8ecfa7 100644 --- a/syntax/atlas.vim +++ b/syntax/atlas.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'atlas') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'atlas', 'syntax/atlas.vim') finish endif diff --git a/syntax/autodoc.vim b/syntax/autodoc.vim index fe9a7109..4c8c915f 100644 --- a/syntax/autodoc.vim +++ b/syntax/autodoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'autodoc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'autodoc', 'syntax/autodoc.vim') finish endif diff --git a/syntax/autoit.vim b/syntax/autoit.vim index 6474cdfb..705aff02 100644 --- a/syntax/autoit.vim +++ b/syntax/autoit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'autoit') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'autoit', 'syntax/autoit.vim') finish endif diff --git a/syntax/automake.vim b/syntax/automake.vim index 7f247934..6f7f299a 100644 --- a/syntax/automake.vim +++ b/syntax/automake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'automake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'automake', 'syntax/automake.vim') finish endif diff --git a/syntax/ave.vim b/syntax/ave.vim index f2f5ad70..3ba6d753 100644 --- a/syntax/ave.vim +++ b/syntax/ave.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ave') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ave', 'syntax/ave.vim') finish endif diff --git a/syntax/awk.vim b/syntax/awk.vim index ea1d760f..9dc05279 100644 --- a/syntax/awk.vim +++ b/syntax/awk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'awk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'awk', 'syntax/awk.vim') finish endif diff --git a/syntax/b.vim b/syntax/b.vim index ff300595..d55b8069 100644 --- a/syntax/b.vim +++ b/syntax/b.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'b') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'b', 'syntax/b.vim') finish endif diff --git a/syntax/basic.vim b/syntax/basic.vim index 645c46ac..1b98eb8d 100644 --- a/syntax/basic.vim +++ b/syntax/basic.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'basic') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'basic', 'syntax/basic.vim') finish endif diff --git a/syntax/basic/class.vim b/syntax/basic/class.vim index cc5104e2..d4343db0 100644 --- a/syntax/basic/class.vim +++ b/syntax/basic/class.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/class.vim') finish endif diff --git a/syntax/basic/cluster.vim b/syntax/basic/cluster.vim index 7fc81e14..cbe0424b 100644 --- a/syntax/basic/cluster.vim +++ b/syntax/basic/cluster.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/cluster.vim') finish endif diff --git a/syntax/basic/decorator.vim b/syntax/basic/decorator.vim index 51c02ff6..02d93218 100644 --- a/syntax/basic/decorator.vim +++ b/syntax/basic/decorator.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/decorator.vim') finish endif diff --git a/syntax/basic/doc.vim b/syntax/basic/doc.vim index 3d623f36..996e7e3d 100644 --- a/syntax/basic/doc.vim +++ b/syntax/basic/doc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/doc.vim') finish endif diff --git a/syntax/basic/function.vim b/syntax/basic/function.vim index aed182a7..88dc901f 100644 --- a/syntax/basic/function.vim +++ b/syntax/basic/function.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/function.vim') finish endif diff --git a/syntax/basic/identifiers.vim b/syntax/basic/identifiers.vim index 36b6d29c..f85b2d15 100644 --- a/syntax/basic/identifiers.vim +++ b/syntax/basic/identifiers.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/identifiers.vim') finish endif diff --git a/syntax/basic/keyword.vim b/syntax/basic/keyword.vim index b14bece1..6bd1668a 100644 --- a/syntax/basic/keyword.vim +++ b/syntax/basic/keyword.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/keyword.vim') finish endif diff --git a/syntax/basic/literal.vim b/syntax/basic/literal.vim index f7d3cd60..81bbef96 100644 --- a/syntax/basic/literal.vim +++ b/syntax/basic/literal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/literal.vim') finish endif diff --git a/syntax/basic/members.vim b/syntax/basic/members.vim index 69d311ef..46b8350b 100644 --- a/syntax/basic/members.vim +++ b/syntax/basic/members.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/members.vim') finish endif diff --git a/syntax/basic/object.vim b/syntax/basic/object.vim index d9d49013..3c614e1a 100644 --- a/syntax/basic/object.vim +++ b/syntax/basic/object.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/object.vim') finish endif diff --git a/syntax/basic/patch.vim b/syntax/basic/patch.vim index 2156f8d8..d3250087 100644 --- a/syntax/basic/patch.vim +++ b/syntax/basic/patch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/patch.vim') finish endif diff --git a/syntax/basic/reserved.vim b/syntax/basic/reserved.vim index 7989f9e0..c75851f2 100644 --- a/syntax/basic/reserved.vim +++ b/syntax/basic/reserved.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/reserved.vim') finish endif diff --git a/syntax/basic/symbols.vim b/syntax/basic/symbols.vim index ce59de23..c88c9210 100644 --- a/syntax/basic/symbols.vim +++ b/syntax/basic/symbols.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/symbols.vim') finish endif diff --git a/syntax/basic/type.vim b/syntax/basic/type.vim index 5dc0f2bf..770d3e0d 100644 --- a/syntax/basic/type.vim +++ b/syntax/basic/type.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/basic/type.vim') finish endif diff --git a/syntax/bc.vim b/syntax/bc.vim index ae88e3c0..fa4fa96a 100644 --- a/syntax/bc.vim +++ b/syntax/bc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bc', 'syntax/bc.vim') finish endif diff --git a/syntax/bdf.vim b/syntax/bdf.vim index f6bba304..f1ff85b1 100644 --- a/syntax/bdf.vim +++ b/syntax/bdf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bdf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bdf', 'syntax/bdf.vim') finish endif diff --git a/syntax/bib.vim b/syntax/bib.vim index daf3b6ec..69995d6e 100644 --- a/syntax/bib.vim +++ b/syntax/bib.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bib') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bib', 'syntax/bib.vim') finish endif diff --git a/syntax/bindzone.vim b/syntax/bindzone.vim index e0f7f63e..cc9d0d84 100644 --- a/syntax/bindzone.vim +++ b/syntax/bindzone.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bindzone') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bindzone', 'syntax/bindzone.vim') finish endif diff --git a/syntax/blade.vim b/syntax/blade.vim index 8203218d..d52dc2f3 100644 --- a/syntax/blade.vim +++ b/syntax/blade.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'blade') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'blade', 'syntax/blade.vim') finish endif diff --git a/syntax/blank.vim b/syntax/blank.vim index 8368357c..de8ccfe1 100644 --- a/syntax/blank.vim +++ b/syntax/blank.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'blank') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'blank', 'syntax/blank.vim') finish endif diff --git a/syntax/brewfile.vim b/syntax/brewfile.vim index 22720327..ad0fbf8d 100644 --- a/syntax/brewfile.vim +++ b/syntax/brewfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'brewfile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'brewfile', 'syntax/brewfile.vim') finish endif diff --git a/syntax/bsdl.vim b/syntax/bsdl.vim index 83fc478e..fd0a8a59 100644 --- a/syntax/bsdl.vim +++ b/syntax/bsdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bsdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bsdl', 'syntax/bsdl.vim') finish endif diff --git a/syntax/bst.vim b/syntax/bst.vim index dd6176e4..4fa88f8e 100644 --- a/syntax/bst.vim +++ b/syntax/bst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bst', 'syntax/bst.vim') finish endif diff --git a/syntax/bzl.vim b/syntax/bzl.vim index 65357b07..1af768a2 100644 --- a/syntax/bzl.vim +++ b/syntax/bzl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bzl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bzl', 'syntax/bzl.vim') finish endif diff --git a/syntax/bzr.vim b/syntax/bzr.vim index 26ad6c8e..15762ce1 100644 --- a/syntax/bzr.vim +++ b/syntax/bzr.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'bzr') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'bzr', 'syntax/bzr.vim') finish endif diff --git a/syntax/c.vim b/syntax/c.vim index a1b52a65..cb52a22f 100644 --- a/syntax/c.vim +++ b/syntax/c.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'c/c++') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'c/c++', 'syntax/c.vim') finish endif diff --git a/syntax/cabal-1.vim b/syntax/cabal-1.vim index e7ca72f7..c473800a 100644 --- a/syntax/cabal-1.vim +++ b/syntax/cabal-1.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haskell', 'syntax/cabal.vim') finish endif diff --git a/syntax/cabal-2.vim b/syntax/cabal-2.vim index 1d765988..f71cb4a5 100644 --- a/syntax/cabal-2.vim +++ b/syntax/cabal-2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cabal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cabal', 'syntax/cabal-2.vim') finish endif diff --git a/syntax/caddyfile.vim b/syntax/caddyfile.vim index 771a8614..ab0c24d1 100644 --- a/syntax/caddyfile.vim +++ b/syntax/caddyfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'caddyfile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'caddyfile', 'syntax/caddyfile.vim') finish endif diff --git a/syntax/calendar.vim b/syntax/calendar.vim index e4fe1ee5..7f581c22 100644 --- a/syntax/calendar.vim +++ b/syntax/calendar.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'calendar') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'calendar', 'syntax/calendar.vim') finish endif diff --git a/syntax/carp.vim b/syntax/carp.vim index 149a7922..a3f11c66 100644 --- a/syntax/carp.vim +++ b/syntax/carp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'carp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'carp', 'syntax/carp.vim') finish endif diff --git a/syntax/catalog.vim b/syntax/catalog.vim index 64ae4a95..c9b54a71 100644 --- a/syntax/catalog.vim +++ b/syntax/catalog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'catalog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'catalog', 'syntax/catalog.vim') finish endif diff --git a/syntax/cdl.vim b/syntax/cdl.vim index 7ecb9f7e..10b5cc61 100644 --- a/syntax/cdl.vim +++ b/syntax/cdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cdl', 'syntax/cdl.vim') finish endif diff --git a/syntax/cdrdaoconf.vim b/syntax/cdrdaoconf.vim index 7401027e..a083fe2b 100644 --- a/syntax/cdrdaoconf.vim +++ b/syntax/cdrdaoconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cdrdaoconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cdrdaoconf', 'syntax/cdrdaoconf.vim') finish endif diff --git a/syntax/cdrtoc.vim b/syntax/cdrtoc.vim index 3efc3d3f..8fa0aee9 100644 --- a/syntax/cdrtoc.vim +++ b/syntax/cdrtoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cdrtoc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cdrtoc', 'syntax/cdrtoc.vim') finish endif diff --git a/syntax/cf.vim b/syntax/cf.vim index 2e04a546..92c2ca15 100644 --- a/syntax/cf.vim +++ b/syntax/cf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cf', 'syntax/cf.vim') finish endif diff --git a/syntax/cfg.vim b/syntax/cfg.vim index 412b62ae..ad81bb05 100644 --- a/syntax/cfg.vim +++ b/syntax/cfg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cfg') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cfg', 'syntax/cfg.vim') finish endif diff --git a/syntax/ch.vim b/syntax/ch.vim index f322b471..79eeaac8 100644 --- a/syntax/ch.vim +++ b/syntax/ch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ch', 'syntax/ch.vim') finish endif diff --git a/syntax/chaiscript.vim b/syntax/chaiscript.vim index 182ca63f..8b2e1152 100644 --- a/syntax/chaiscript.vim +++ b/syntax/chaiscript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'chaiscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'chaiscript', 'syntax/chaiscript.vim') finish endif diff --git a/syntax/chaskell.vim b/syntax/chaskell.vim index 546e2ae2..754a415c 100644 --- a/syntax/chaskell.vim +++ b/syntax/chaskell.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'chaskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'chaskell', 'syntax/chaskell.vim') finish endif diff --git a/syntax/chill.vim b/syntax/chill.vim index 6f530b28..2adc0137 100644 --- a/syntax/chill.vim +++ b/syntax/chill.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'chill') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'chill', 'syntax/chill.vim') finish endif diff --git a/syntax/chordpro.vim b/syntax/chordpro.vim index 65efbce4..ff8a9302 100644 --- a/syntax/chordpro.vim +++ b/syntax/chordpro.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'chordpro') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'chordpro', 'syntax/chordpro.vim') finish endif diff --git a/syntax/cl.vim b/syntax/cl.vim index c53c90ab..796abec7 100644 --- a/syntax/cl.vim +++ b/syntax/cl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cl', 'syntax/cl.vim') finish endif diff --git a/syntax/clean.vim b/syntax/clean.vim index 287edeb4..e6590160 100644 --- a/syntax/clean.vim +++ b/syntax/clean.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'clean') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'clean', 'syntax/clean.vim') finish endif diff --git a/syntax/clojure.vim b/syntax/clojure.vim index d647b9ea..46b43ea2 100644 --- a/syntax/clojure.vim +++ b/syntax/clojure.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'clojure') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'clojure', 'syntax/clojure.vim') finish endif diff --git a/syntax/cmake.vim b/syntax/cmake.vim index 7df2f660..28a7aed1 100644 --- a/syntax/cmake.vim +++ b/syntax/cmake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cmake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cmake', 'syntax/cmake.vim') finish endif diff --git a/syntax/cmod.vim b/syntax/cmod.vim index 2af91271..3e807342 100644 --- a/syntax/cmod.vim +++ b/syntax/cmod.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cmod') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cmod', 'syntax/cmod.vim') finish endif diff --git a/syntax/cmusrc.vim b/syntax/cmusrc.vim index 0ef355d6..2b611bcf 100644 --- a/syntax/cmusrc.vim +++ b/syntax/cmusrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cmusrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cmusrc', 'syntax/cmusrc.vim') finish endif diff --git a/syntax/cobol.vim b/syntax/cobol.vim index d771969c..10d4f960 100644 --- a/syntax/cobol.vim +++ b/syntax/cobol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cobol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cobol', 'syntax/cobol.vim') finish endif diff --git a/syntax/coco.vim b/syntax/coco.vim index 4f78d7af..d983c7c2 100644 --- a/syntax/coco.vim +++ b/syntax/coco.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coco') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coco', 'syntax/coco.vim') finish endif diff --git a/syntax/coffee.vim b/syntax/coffee.vim index 3b7c05b6..76f28b76 100644 --- a/syntax/coffee.vim +++ b/syntax/coffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'syntax/coffee.vim') finish endif diff --git a/syntax/common.vim b/syntax/common.vim index e1174b96..62f7a374 100644 --- a/syntax/common.vim +++ b/syntax/common.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/common.vim') finish endif diff --git a/syntax/conaryrecipe.vim b/syntax/conaryrecipe.vim index 41801934..9d702af5 100644 --- a/syntax/conaryrecipe.vim +++ b/syntax/conaryrecipe.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'conaryrecipe') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'conaryrecipe', 'syntax/conaryrecipe.vim') finish endif diff --git a/syntax/conf.vim b/syntax/conf.vim index 39ccfb68..0479cc53 100644 --- a/syntax/conf.vim +++ b/syntax/conf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'conf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'conf', 'syntax/conf.vim') finish endif diff --git a/syntax/config.vim b/syntax/config.vim index 3ba8138e..711006e2 100644 --- a/syntax/config.vim +++ b/syntax/config.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'config') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'config', 'syntax/config.vim') finish endif diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 99197583..0fd0acc2 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'c/c++') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'c/c++', 'syntax/cpp.vim') finish endif diff --git a/syntax/cql.vim b/syntax/cql.vim index 8ae5109d..8e5002e9 100644 --- a/syntax/cql.vim +++ b/syntax/cql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cql', 'syntax/cql.vim') finish endif diff --git a/syntax/crm.vim b/syntax/crm.vim index 64ef72c8..105a6591 100644 --- a/syntax/crm.vim +++ b/syntax/crm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crm', 'syntax/crm.vim') finish endif diff --git a/syntax/crontab.vim b/syntax/crontab.vim index f4d434c4..9bb0db17 100644 --- a/syntax/crontab.vim +++ b/syntax/crontab.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crontab') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crontab', 'syntax/crontab.vim') finish endif diff --git a/syntax/cryptol.vim b/syntax/cryptol.vim index e1cef5a2..8cb7804d 100644 --- a/syntax/cryptol.vim +++ b/syntax/cryptol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cryptol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cryptol', 'syntax/cryptol.vim') finish endif diff --git a/syntax/crystal.vim b/syntax/crystal.vim index 49143103..7dfdf507 100644 --- a/syntax/crystal.vim +++ b/syntax/crystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'syntax/crystal.vim') finish endif diff --git a/syntax/cs.vim b/syntax/cs.vim index 7d758eb3..ca799561 100644 --- a/syntax/cs.vim +++ b/syntax/cs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cs', 'syntax/cs.vim') finish endif diff --git a/syntax/csc.vim b/syntax/csc.vim index bcd6b9ce..1d775e06 100644 --- a/syntax/csc.vim +++ b/syntax/csc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'csc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'csc', 'syntax/csc.vim') finish endif diff --git a/syntax/csdl.vim b/syntax/csdl.vim index 2625a07a..289e0e44 100644 --- a/syntax/csdl.vim +++ b/syntax/csdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'csdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'csdl', 'syntax/csdl.vim') finish endif diff --git a/syntax/csp.vim b/syntax/csp.vim index f1b34ed5..888dbf95 100644 --- a/syntax/csp.vim +++ b/syntax/csp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'csp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'csp', 'syntax/csp.vim') finish endif diff --git a/syntax/css.vim b/syntax/css.vim index 2d47b251..ba7f4595 100644 --- a/syntax/css.vim +++ b/syntax/css.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'css') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'css', 'syntax/css.vim') finish endif diff --git a/syntax/csv.vim b/syntax/csv.vim index 630337e2..5cc16dfa 100644 --- a/syntax/csv.vim +++ b/syntax/csv.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'csv') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'csv', 'syntax/csv.vim') finish endif diff --git a/syntax/cterm.vim b/syntax/cterm.vim index 26379dd8..9bb9b3da 100644 --- a/syntax/cterm.vim +++ b/syntax/cterm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cterm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cterm', 'syntax/cterm.vim') finish endif diff --git a/syntax/cucumber.vim b/syntax/cucumber.vim index 6c51dcc0..20edd2d9 100644 --- a/syntax/cucumber.vim +++ b/syntax/cucumber.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cucumber') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cucumber', 'syntax/cucumber.vim') finish endif diff --git a/syntax/cuda.vim b/syntax/cuda.vim index 1fc1fdef..bbac1c4a 100644 --- a/syntax/cuda.vim +++ b/syntax/cuda.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cuda') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cuda', 'syntax/cuda.vim') finish endif diff --git a/syntax/cuesheet.vim b/syntax/cuesheet.vim index aa80b215..b0e87e41 100644 --- a/syntax/cuesheet.vim +++ b/syntax/cuesheet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cue') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cue', 'syntax/cuesheet.vim') finish endif diff --git a/syntax/cupl.vim b/syntax/cupl.vim index a713304e..8ad97a81 100644 --- a/syntax/cupl.vim +++ b/syntax/cupl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cupl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cupl', 'syntax/cupl.vim') finish endif diff --git a/syntax/cuplsim.vim b/syntax/cuplsim.vim index 97926791..189b3e34 100644 --- a/syntax/cuplsim.vim +++ b/syntax/cuplsim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cuplsim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cuplsim', 'syntax/cuplsim.vim') finish endif diff --git a/syntax/cvs.vim b/syntax/cvs.vim index c3354515..219341bc 100644 --- a/syntax/cvs.vim +++ b/syntax/cvs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cvs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cvs', 'syntax/cvs.vim') finish endif diff --git a/syntax/cvsrc.vim b/syntax/cvsrc.vim index c685912d..80fcd587 100644 --- a/syntax/cvsrc.vim +++ b/syntax/cvsrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cvsrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cvsrc', 'syntax/cvsrc.vim') finish endif diff --git a/syntax/cynpp.vim b/syntax/cynpp.vim index bcf1d2ae..1de37e7c 100644 --- a/syntax/cynpp.vim +++ b/syntax/cynpp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'cynpp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'cynpp', 'syntax/cynpp.vim') finish endif diff --git a/syntax/d.vim b/syntax/d.vim index 0d8c096a..108dbd22 100644 --- a/syntax/d.vim +++ b/syntax/d.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dlang', 'syntax/d.vim') finish endif diff --git a/syntax/dart.vim b/syntax/dart.vim index 3400ae7a..b91d7a68 100644 --- a/syntax/dart.vim +++ b/syntax/dart.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dart') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dart', 'syntax/dart.vim') finish endif diff --git a/syntax/datascript.vim b/syntax/datascript.vim index 2fb545f4..32c02a45 100644 --- a/syntax/datascript.vim +++ b/syntax/datascript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'datascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'datascript', 'syntax/datascript.vim') finish endif diff --git a/syntax/dcd.vim b/syntax/dcd.vim index e2c1f03b..a37cd8d1 100644 --- a/syntax/dcd.vim +++ b/syntax/dcd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dcd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dcd', 'syntax/dcd.vim') finish endif diff --git a/syntax/dcov.vim b/syntax/dcov.vim index 14b99882..0a646a63 100644 --- a/syntax/dcov.vim +++ b/syntax/dcov.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dlang', 'syntax/dcov.vim') finish endif diff --git a/syntax/dd.vim b/syntax/dd.vim index a289b552..e24cd372 100644 --- a/syntax/dd.vim +++ b/syntax/dd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dlang', 'syntax/dd.vim') finish endif diff --git a/syntax/ddoc.vim b/syntax/ddoc.vim index b8e74680..52a9a382 100644 --- a/syntax/ddoc.vim +++ b/syntax/ddoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dlang', 'syntax/ddoc.vim') finish endif diff --git a/syntax/debchangelog.vim b/syntax/debchangelog.vim index 11eaf359..174d86d7 100644 --- a/syntax/debchangelog.vim +++ b/syntax/debchangelog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'debchangelog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'debchangelog', 'syntax/debchangelog.vim') finish endif diff --git a/syntax/debcontrol.vim b/syntax/debcontrol.vim index 70f85d7e..67f98588 100644 --- a/syntax/debcontrol.vim +++ b/syntax/debcontrol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'debcontrol') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'debcontrol', 'syntax/debcontrol.vim') finish endif diff --git a/syntax/debcopyright.vim b/syntax/debcopyright.vim index 82c4f1fa..0cb60cfb 100644 --- a/syntax/debcopyright.vim +++ b/syntax/debcopyright.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'debcopyright') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'debcopyright', 'syntax/debcopyright.vim') finish endif diff --git a/syntax/debsources.vim b/syntax/debsources.vim index caeb50ae..6ea0bcb1 100644 --- a/syntax/debsources.vim +++ b/syntax/debsources.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'debsources') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'debsources', 'syntax/debsources.vim') finish endif diff --git a/syntax/def.vim b/syntax/def.vim index f4a4719b..40995786 100644 --- a/syntax/def.vim +++ b/syntax/def.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'def') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'def', 'syntax/def.vim') finish endif diff --git a/syntax/denyhosts.vim b/syntax/denyhosts.vim index e4958937..2a4aa721 100644 --- a/syntax/denyhosts.vim +++ b/syntax/denyhosts.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'denyhosts') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'denyhosts', 'syntax/denyhosts.vim') finish endif diff --git a/syntax/desc.vim b/syntax/desc.vim index 1912b88c..8002fc91 100644 --- a/syntax/desc.vim +++ b/syntax/desc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'desc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'desc', 'syntax/desc.vim') finish endif diff --git a/syntax/desktop.vim b/syntax/desktop.vim index f676005d..94964e3d 100644 --- a/syntax/desktop.vim +++ b/syntax/desktop.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'desktop') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'desktop', 'syntax/desktop.vim') finish endif diff --git a/syntax/dhall.vim b/syntax/dhall.vim index d3ad098a..5cea85b8 100644 --- a/syntax/dhall.vim +++ b/syntax/dhall.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dhall') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dhall', 'syntax/dhall.vim') finish endif diff --git a/syntax/dictconf.vim b/syntax/dictconf.vim index 6d8e51ae..0cbf2f6f 100644 --- a/syntax/dictconf.vim +++ b/syntax/dictconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dictconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dictconf', 'syntax/dictconf.vim') finish endif diff --git a/syntax/dictdconf.vim b/syntax/dictdconf.vim index e7e6ad81..67f6bbd9 100644 --- a/syntax/dictdconf.vim +++ b/syntax/dictdconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dictdconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dictdconf', 'syntax/dictdconf.vim') finish endif diff --git a/syntax/diff.vim b/syntax/diff.vim index c3eefbb7..6e1306dc 100644 --- a/syntax/diff.vim +++ b/syntax/diff.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'diff') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'diff', 'syntax/diff.vim') finish endif diff --git a/syntax/dircolors.vim b/syntax/dircolors.vim index 004da62c..9a0e1cda 100644 --- a/syntax/dircolors.vim +++ b/syntax/dircolors.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dircolors') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dircolors', 'syntax/dircolors.vim') finish endif diff --git a/syntax/django.vim b/syntax/django.vim index 8e30c58b..82e50070 100644 --- a/syntax/django.vim +++ b/syntax/django.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'htmldjango') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'htmldjango', 'syntax/django.vim') finish endif diff --git a/syntax/dnsmasq.vim b/syntax/dnsmasq.vim index 6661e7a0..39cbabf6 100644 --- a/syntax/dnsmasq.vim +++ b/syntax/dnsmasq.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dnsmasq') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dnsmasq', 'syntax/dnsmasq.vim') finish endif diff --git a/syntax/docker-compose.vim b/syntax/docker-compose.vim index 4f42848f..a44ded51 100644 --- a/syntax/docker-compose.vim +++ b/syntax/docker-compose.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'docker-compose') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'docker-compose', 'syntax/docker-compose.vim') finish endif diff --git a/syntax/dockerfile.vim b/syntax/dockerfile.vim index b96adbf1..6f09d4fd 100644 --- a/syntax/dockerfile.vim +++ b/syntax/dockerfile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dockerfile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dockerfile', 'syntax/dockerfile.vim') finish endif diff --git a/syntax/dosbatch.vim b/syntax/dosbatch.vim index 55ac9556..ce7bfed7 100644 --- a/syntax/dosbatch.vim +++ b/syntax/dosbatch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dosbatch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dosbatch', 'syntax/dosbatch.vim') finish endif diff --git a/syntax/dosini.vim b/syntax/dosini.vim index 434bf6c2..361fbe56 100644 --- a/syntax/dosini.vim +++ b/syntax/dosini.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dosini') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dosini', 'syntax/dosini.vim') finish endif diff --git a/syntax/dot.vim b/syntax/dot.vim index 2c7226c1..1bb1032b 100644 --- a/syntax/dot.vim +++ b/syntax/dot.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dot') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dot', 'syntax/dot.vim') finish endif diff --git a/syntax/dracula.vim b/syntax/dracula.vim index eec9bd45..66d6b655 100644 --- a/syntax/dracula.vim +++ b/syntax/dracula.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dracula') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dracula', 'syntax/dracula.vim') finish endif diff --git a/syntax/dsdl.vim b/syntax/dsdl.vim index 93a1f72e..cec8fba9 100644 --- a/syntax/dsdl.vim +++ b/syntax/dsdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dlang', 'syntax/dsdl.vim') finish endif diff --git a/syntax/dsl.vim b/syntax/dsl.vim index b0ba3ae6..1464533f 100644 --- a/syntax/dsl.vim +++ b/syntax/dsl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dsl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dsl', 'syntax/dsl.vim') finish endif diff --git a/syntax/dtd.vim b/syntax/dtd.vim index 17ca5125..061b5f10 100644 --- a/syntax/dtd.vim +++ b/syntax/dtd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dtd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dtd', 'syntax/dtd.vim') finish endif diff --git a/syntax/dts.vim b/syntax/dts.vim index 278b8c28..26b1456f 100644 --- a/syntax/dts.vim +++ b/syntax/dts.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dts') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dts', 'syntax/dts.vim') finish endif diff --git a/syntax/dune.vim b/syntax/dune.vim index 68695a22..c42ce81e 100644 --- a/syntax/dune.vim +++ b/syntax/dune.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/dune.vim') finish endif diff --git a/syntax/dylan.vim b/syntax/dylan.vim index 8b61f3bf..998117ee 100644 --- a/syntax/dylan.vim +++ b/syntax/dylan.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dylan') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dylan', 'syntax/dylan.vim') finish endif diff --git a/syntax/dylanintr.vim b/syntax/dylanintr.vim index 66c6ac58..8bc64b33 100644 --- a/syntax/dylanintr.vim +++ b/syntax/dylanintr.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dylanintr') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dylanintr', 'syntax/dylanintr.vim') finish endif diff --git a/syntax/dylanlid.vim b/syntax/dylanlid.vim index f96fbe19..e3424b76 100644 --- a/syntax/dylanlid.vim +++ b/syntax/dylanlid.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'dylanlid') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'dylanlid', 'syntax/dylanlid.vim') finish endif diff --git a/syntax/ecd.vim b/syntax/ecd.vim index 0348673e..db973d18 100644 --- a/syntax/ecd.vim +++ b/syntax/ecd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ecd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ecd', 'syntax/ecd.vim') finish endif diff --git a/syntax/ecrystal.vim b/syntax/ecrystal.vim index 4e69fd76..264fd78f 100644 --- a/syntax/ecrystal.vim +++ b/syntax/ecrystal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'crystal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'crystal', 'syntax/ecrystal.vim') finish endif diff --git a/syntax/edif.vim b/syntax/edif.vim index 9b2150f3..4c7b9585 100644 --- a/syntax/edif.vim +++ b/syntax/edif.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'edif') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'edif', 'syntax/edif.vim') finish endif diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim index 6682756e..e30a51c9 100644 --- a/syntax/eelixir.vim +++ b/syntax/eelixir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'syntax/eelixir.vim') finish endif diff --git a/syntax/elf.vim b/syntax/elf.vim index 44343c55..7898851a 100644 --- a/syntax/elf.vim +++ b/syntax/elf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elf', 'syntax/elf.vim') finish endif diff --git a/syntax/elinks.vim b/syntax/elinks.vim index 39543ede..3642338d 100644 --- a/syntax/elinks.vim +++ b/syntax/elinks.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elinks') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elinks', 'syntax/elinks.vim') finish endif diff --git a/syntax/elixir.vim b/syntax/elixir.vim index 02e71a42..871a4157 100644 --- a/syntax/elixir.vim +++ b/syntax/elixir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elixir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elixir', 'syntax/elixir.vim') finish endif diff --git a/syntax/elm.vim b/syntax/elm.vim index 37a3e433..31b9d057 100644 --- a/syntax/elm.vim +++ b/syntax/elm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elm', 'syntax/elm.vim') finish endif diff --git a/syntax/elmfilt.vim b/syntax/elmfilt.vim index 6198ac5d..b9a380f8 100644 --- a/syntax/elmfilt.vim +++ b/syntax/elmfilt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'elmfilt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'elmfilt', 'syntax/elmfilt.vim') finish endif diff --git a/syntax/embeddedpuppet.vim b/syntax/embeddedpuppet.vim index 3dd97d30..dad9e1fb 100644 --- a/syntax/embeddedpuppet.vim +++ b/syntax/embeddedpuppet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'syntax/embeddedpuppet.vim') finish endif diff --git a/syntax/ember-script.vim b/syntax/ember-script.vim index 585fa835..e56fb9de 100644 --- a/syntax/ember-script.vim +++ b/syntax/ember-script.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'emberscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'emberscript', 'syntax/ember-script.vim') finish endif diff --git a/syntax/emblem.vim b/syntax/emblem.vim index fb11af97..f6a2dafb 100644 --- a/syntax/emblem.vim +++ b/syntax/emblem.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'emblem') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'emblem', 'syntax/emblem.vim') finish endif diff --git a/syntax/erlang.vim b/syntax/erlang.vim index 78480821..473c0606 100644 --- a/syntax/erlang.vim +++ b/syntax/erlang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'erlang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'erlang', 'syntax/erlang.vim') finish endif diff --git a/syntax/eruby.vim b/syntax/eruby.vim index 76776a0e..d695d60f 100644 --- a/syntax/eruby.vim +++ b/syntax/eruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'syntax/eruby.vim') finish endif diff --git a/syntax/esmtprc.vim b/syntax/esmtprc.vim index 5f6f65f4..243bec9c 100644 --- a/syntax/esmtprc.vim +++ b/syntax/esmtprc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'esmtprc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'esmtprc', 'syntax/esmtprc.vim') finish endif diff --git a/syntax/esqlc.vim b/syntax/esqlc.vim index 9fd8465c..f16a11d4 100644 --- a/syntax/esqlc.vim +++ b/syntax/esqlc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'esqlc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'esqlc', 'syntax/esqlc.vim') finish endif diff --git a/syntax/esterel.vim b/syntax/esterel.vim index 0f2e8be1..da76335b 100644 --- a/syntax/esterel.vim +++ b/syntax/esterel.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'esterel') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'esterel', 'syntax/esterel.vim') finish endif diff --git a/syntax/eterm.vim b/syntax/eterm.vim index 160f6874..426a45ec 100644 --- a/syntax/eterm.vim +++ b/syntax/eterm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'eterm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'eterm', 'syntax/eterm.vim') finish endif diff --git a/syntax/exim.vim b/syntax/exim.vim index ccdf857d..ab58e1a1 100644 --- a/syntax/exim.vim +++ b/syntax/exim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'exim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'exim', 'syntax/exim.vim') finish endif diff --git a/syntax/expect.vim b/syntax/expect.vim index 95a38e25..495ab6bc 100644 --- a/syntax/expect.vim +++ b/syntax/expect.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'expect') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'expect', 'syntax/expect.vim') finish endif diff --git a/syntax/exports.vim b/syntax/exports.vim index 0a89ee80..c2c13a3f 100644 --- a/syntax/exports.vim +++ b/syntax/exports.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'exports') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'exports', 'syntax/exports.vim') finish endif diff --git a/syntax/falcon.vim b/syntax/falcon.vim index 212c7740..697a51a5 100644 --- a/syntax/falcon.vim +++ b/syntax/falcon.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'falcon') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'falcon', 'syntax/falcon.vim') finish endif diff --git a/syntax/fan.vim b/syntax/fan.vim index 845fa9ec..5608716c 100644 --- a/syntax/fan.vim +++ b/syntax/fan.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fan') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fan', 'syntax/fan.vim') finish endif diff --git a/syntax/fbs.vim b/syntax/fbs.vim index 69b7a43e..384f19e4 100644 --- a/syntax/fbs.vim +++ b/syntax/fbs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'flatbuffers') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'flatbuffers', 'syntax/fbs.vim') finish endif diff --git a/syntax/fennel.vim b/syntax/fennel.vim index 4a427f45..e9cbe746 100644 --- a/syntax/fennel.vim +++ b/syntax/fennel.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fennel') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fennel', 'syntax/fennel.vim') finish endif diff --git a/syntax/ferm.vim b/syntax/ferm.vim index 1e642ed7..d6cec269 100644 --- a/syntax/ferm.vim +++ b/syntax/ferm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ferm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ferm', 'syntax/ferm.vim') finish endif diff --git a/syntax/fetchmail.vim b/syntax/fetchmail.vim index 4c3bdff1..741ef469 100644 --- a/syntax/fetchmail.vim +++ b/syntax/fetchmail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fetchmail') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fetchmail', 'syntax/fetchmail.vim') finish endif diff --git a/syntax/fgl.vim b/syntax/fgl.vim index 61284d6c..cc5fd520 100644 --- a/syntax/fgl.vim +++ b/syntax/fgl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fgl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fgl', 'syntax/fgl.vim') finish endif diff --git a/syntax/fish.vim b/syntax/fish.vim index 6ea51a82..21bcbb94 100644 --- a/syntax/fish.vim +++ b/syntax/fish.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fish') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fish', 'syntax/fish.vim') finish endif diff --git a/syntax/flow.vim b/syntax/flow.vim index 120bc3e4..ed17b9d5 100644 --- a/syntax/flow.vim +++ b/syntax/flow.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript', 'syntax/flow.vim') finish endif diff --git a/syntax/focexec.vim b/syntax/focexec.vim index cbe6bd06..c2ae774a 100644 --- a/syntax/focexec.vim +++ b/syntax/focexec.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'focexec') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'focexec', 'syntax/focexec.vim') finish endif diff --git a/syntax/forth.vim b/syntax/forth.vim index 5f2a5e0e..4090be42 100644 --- a/syntax/forth.vim +++ b/syntax/forth.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'forth') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'forth', 'syntax/forth.vim') finish endif diff --git a/syntax/fortran.vim b/syntax/fortran.vim index 10f2a2dc..6085268b 100644 --- a/syntax/fortran.vim +++ b/syntax/fortran.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fortran') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fortran', 'syntax/fortran.vim') finish endif diff --git a/syntax/framescript.vim b/syntax/framescript.vim index 95dd6b90..17bff388 100644 --- a/syntax/framescript.vim +++ b/syntax/framescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'framescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'framescript', 'syntax/framescript.vim') finish endif diff --git a/syntax/freebasic.vim b/syntax/freebasic.vim index feb1f974..6cb26f26 100644 --- a/syntax/freebasic.vim +++ b/syntax/freebasic.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'freebasic') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'freebasic', 'syntax/freebasic.vim') finish endif diff --git a/syntax/fsharp.vim b/syntax/fsharp.vim index 954e5a25..4dcca3c1 100644 --- a/syntax/fsharp.vim +++ b/syntax/fsharp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fsharp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fsharp', 'syntax/fsharp.vim') finish endif diff --git a/syntax/fstab.vim b/syntax/fstab.vim index 70b47c75..d87a2ee4 100644 --- a/syntax/fstab.vim +++ b/syntax/fstab.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fstab') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fstab', 'syntax/fstab.vim') finish endif diff --git a/syntax/fvwm.vim b/syntax/fvwm.vim index 393e6409..9367d2e8 100644 --- a/syntax/fvwm.vim +++ b/syntax/fvwm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'fvwm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'fvwm', 'syntax/fvwm.vim') finish endif diff --git a/syntax/gdb.vim b/syntax/gdb.vim index 58846d49..587274fd 100644 --- a/syntax/gdb.vim +++ b/syntax/gdb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gdb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gdb', 'syntax/gdb.vim') finish endif diff --git a/syntax/gdmo.vim b/syntax/gdmo.vim index 1fade76f..63411142 100644 --- a/syntax/gdmo.vim +++ b/syntax/gdmo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gdmo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gdmo', 'syntax/gdmo.vim') finish endif diff --git a/syntax/gdscript3.vim b/syntax/gdscript3.vim index 4edae304..cabfdfbd 100644 --- a/syntax/gdscript3.vim +++ b/syntax/gdscript3.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gdscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gdscript', 'syntax/gdscript3.vim') finish endif diff --git a/syntax/gedcom.vim b/syntax/gedcom.vim index d2345adb..151f31d7 100644 --- a/syntax/gedcom.vim +++ b/syntax/gedcom.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gedcom') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gedcom', 'syntax/gedcom.vim') finish endif diff --git a/syntax/git.vim b/syntax/git.vim index 94ca7d04..695566f0 100644 --- a/syntax/git.vim +++ b/syntax/git.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'syntax/git.vim') finish endif diff --git a/syntax/gitcommit.vim b/syntax/gitcommit.vim index b0f9c371..1469bcbc 100644 --- a/syntax/gitcommit.vim +++ b/syntax/gitcommit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'syntax/gitcommit.vim') finish endif diff --git a/syntax/gitconfig.vim b/syntax/gitconfig.vim index f8781c9d..411af591 100644 --- a/syntax/gitconfig.vim +++ b/syntax/gitconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'syntax/gitconfig.vim') finish endif diff --git a/syntax/gitignore.vim b/syntax/gitignore.vim index b93fe0e1..b9d837ff 100644 --- a/syntax/gitignore.vim +++ b/syntax/gitignore.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gitignore') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gitignore', 'syntax/gitignore.vim') finish endif diff --git a/syntax/gitolite.vim b/syntax/gitolite.vim index ac47f74f..05abcdef 100644 --- a/syntax/gitolite.vim +++ b/syntax/gitolite.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gitolite') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gitolite', 'syntax/gitolite.vim') finish endif diff --git a/syntax/gitrebase.vim b/syntax/gitrebase.vim index 0d224926..da5f01e8 100644 --- a/syntax/gitrebase.vim +++ b/syntax/gitrebase.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'syntax/gitrebase.vim') finish endif diff --git a/syntax/gitsendemail.vim b/syntax/gitsendemail.vim index 5bd39586..1f44e7ea 100644 --- a/syntax/gitsendemail.vim +++ b/syntax/gitsendemail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'git') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'git', 'syntax/gitsendemail.vim') finish endif diff --git a/syntax/gkrellmrc.vim b/syntax/gkrellmrc.vim index b9a591f8..f26254e5 100644 --- a/syntax/gkrellmrc.vim +++ b/syntax/gkrellmrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gkrellmrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gkrellmrc', 'syntax/gkrellmrc.vim') finish endif diff --git a/syntax/gleam.vim b/syntax/gleam.vim index cc667893..c10877f0 100644 --- a/syntax/gleam.vim +++ b/syntax/gleam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gleam') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gleam', 'syntax/gleam.vim') finish endif diff --git a/syntax/glsl.vim b/syntax/glsl.vim index 0760f46e..eee593f1 100644 --- a/syntax/glsl.vim +++ b/syntax/glsl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'glsl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'glsl', 'syntax/glsl.vim') finish endif diff --git a/syntax/gmpl.vim b/syntax/gmpl.vim index 9d8968ed..65289ac3 100644 --- a/syntax/gmpl.vim +++ b/syntax/gmpl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gmpl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gmpl', 'syntax/gmpl.vim') finish endif diff --git a/syntax/gnash.vim b/syntax/gnash.vim index d3de61d4..f585d0fe 100644 --- a/syntax/gnash.vim +++ b/syntax/gnash.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gnash') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gnash', 'syntax/gnash.vim') finish endif diff --git a/syntax/gnuplot.vim b/syntax/gnuplot.vim index f66c87d4..a9cd02ac 100644 --- a/syntax/gnuplot.vim +++ b/syntax/gnuplot.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gnuplot') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gnuplot', 'syntax/gnuplot.vim') finish endif diff --git a/syntax/go.vim b/syntax/go.vim index de92c5d6..4630f0eb 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/go.vim') finish endif diff --git a/syntax/godebugoutput.vim b/syntax/godebugoutput.vim index 02ea81fd..badc512d 100644 --- a/syntax/godebugoutput.vim +++ b/syntax/godebugoutput.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/godebugoutput.vim') finish endif diff --git a/syntax/godebugstacktrace.vim b/syntax/godebugstacktrace.vim index 890b895f..d2ffb4ce 100644 --- a/syntax/godebugstacktrace.vim +++ b/syntax/godebugstacktrace.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/godebugstacktrace.vim') finish endif diff --git a/syntax/godebugvariables.vim b/syntax/godebugvariables.vim index 9ab2fc3c..341ad0a0 100644 --- a/syntax/godebugvariables.vim +++ b/syntax/godebugvariables.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/godebugvariables.vim') finish endif diff --git a/syntax/godefstack.vim b/syntax/godefstack.vim index bb277ac5..aa52464f 100644 --- a/syntax/godefstack.vim +++ b/syntax/godefstack.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/godefstack.vim') finish endif diff --git a/syntax/gohtmltmpl.vim b/syntax/gohtmltmpl.vim index 590d5b74..271ba5ac 100644 --- a/syntax/gohtmltmpl.vim +++ b/syntax/gohtmltmpl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/gohtmltmpl.vim') finish endif diff --git a/syntax/gomod.vim b/syntax/gomod.vim index 358e3b51..0de3d9d9 100644 --- a/syntax/gomod.vim +++ b/syntax/gomod.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/gomod.vim') finish endif diff --git a/syntax/gosum.vim b/syntax/gosum.vim index 07130ca2..55973430 100644 --- a/syntax/gosum.vim +++ b/syntax/gosum.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/gosum.vim') finish endif diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim index 72d72ac1..cd29987a 100644 --- a/syntax/gotexttmpl.vim +++ b/syntax/gotexttmpl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/gotexttmpl.vim') finish endif diff --git a/syntax/gp.vim b/syntax/gp.vim index 3dd08aef..3e95009a 100644 --- a/syntax/gp.vim +++ b/syntax/gp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gp', 'syntax/gp.vim') finish endif diff --git a/syntax/gpg.vim b/syntax/gpg.vim index 99743183..67768744 100644 --- a/syntax/gpg.vim +++ b/syntax/gpg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gpg') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gpg', 'syntax/gpg.vim') finish endif diff --git a/syntax/grads.vim b/syntax/grads.vim index 23caea21..542283df 100644 --- a/syntax/grads.vim +++ b/syntax/grads.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'grads') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'grads', 'syntax/grads.vim') finish endif diff --git a/syntax/graphql.vim b/syntax/graphql.vim index a5351b08..b2266cef 100644 --- a/syntax/graphql.vim +++ b/syntax/graphql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'graphql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'graphql', 'syntax/graphql.vim') finish endif diff --git a/syntax/gretl.vim b/syntax/gretl.vim index 26f28c65..5cd3b577 100644 --- a/syntax/gretl.vim +++ b/syntax/gretl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gretl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gretl', 'syntax/gretl.vim') finish endif diff --git a/syntax/groovy.vim b/syntax/groovy.vim index 8f644431..fdadca90 100644 --- a/syntax/groovy.vim +++ b/syntax/groovy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'groovy') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'groovy', 'syntax/groovy.vim') finish endif diff --git a/syntax/group.vim b/syntax/group.vim index f9c62683..b689f77b 100644 --- a/syntax/group.vim +++ b/syntax/group.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'group') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'group', 'syntax/group.vim') finish endif diff --git a/syntax/grub.vim b/syntax/grub.vim index 1af73eb0..56c5537d 100644 --- a/syntax/grub.vim +++ b/syntax/grub.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'grub') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'grub', 'syntax/grub.vim') finish endif diff --git a/syntax/gsl.vim b/syntax/gsl.vim index b3bfb9bf..1c8407be 100644 --- a/syntax/gsl.vim +++ b/syntax/gsl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gdscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gdscript', 'syntax/gsl.vim') finish endif diff --git a/syntax/gsp.vim b/syntax/gsp.vim index fa9f8dfa..a390e768 100644 --- a/syntax/gsp.vim +++ b/syntax/gsp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gsp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gsp', 'syntax/gsp.vim') finish endif diff --git a/syntax/gtkrc.vim b/syntax/gtkrc.vim index 852203bd..42d0c5f6 100644 --- a/syntax/gtkrc.vim +++ b/syntax/gtkrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'gtkrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'gtkrc', 'syntax/gtkrc.vim') finish endif diff --git a/syntax/haml.vim b/syntax/haml.vim index 9585fdcf..0861ed33 100644 --- a/syntax/haml.vim +++ b/syntax/haml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haml', 'syntax/haml.vim') finish endif diff --git a/syntax/hamster.vim b/syntax/hamster.vim index 70cf2da0..dda5dd48 100644 --- a/syntax/hamster.vim +++ b/syntax/hamster.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hamster') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hamster', 'syntax/hamster.vim') finish endif diff --git a/syntax/handlebars.vim b/syntax/handlebars.vim index f41927c7..1486da2b 100644 --- a/syntax/handlebars.vim +++ b/syntax/handlebars.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'handlebars') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'handlebars', 'syntax/handlebars.vim') finish endif diff --git a/syntax/haproxy.vim b/syntax/haproxy.vim index 81777b3c..41a3803c 100644 --- a/syntax/haproxy.vim +++ b/syntax/haproxy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haproxy') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haproxy', 'syntax/haproxy.vim') finish endif diff --git a/syntax/haskell.vim b/syntax/haskell.vim index 97b36074..52c33190 100644 --- a/syntax/haskell.vim +++ b/syntax/haskell.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haskell', 'syntax/haskell.vim') finish endif diff --git a/syntax/haste.vim b/syntax/haste.vim index 8f29eacb..893fab68 100644 --- a/syntax/haste.vim +++ b/syntax/haste.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haste') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haste', 'syntax/haste.vim') finish endif diff --git a/syntax/hastepreproc.vim b/syntax/hastepreproc.vim index 31b44ee6..835960ae 100644 --- a/syntax/hastepreproc.vim +++ b/syntax/hastepreproc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hastepreproc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hastepreproc', 'syntax/hastepreproc.vim') finish endif diff --git a/syntax/haxe.vim b/syntax/haxe.vim index 495ff6c7..0afda805 100644 --- a/syntax/haxe.vim +++ b/syntax/haxe.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'haxe') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'haxe', 'syntax/haxe.vim') finish endif diff --git a/syntax/hb.vim b/syntax/hb.vim index 987f85ec..25000a33 100644 --- a/syntax/hb.vim +++ b/syntax/hb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hb', 'syntax/hb.vim') finish endif diff --git a/syntax/hcl.vim b/syntax/hcl.vim index c0b004d5..d11c031b 100644 --- a/syntax/hcl.vim +++ b/syntax/hcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hcl', 'syntax/hcl.vim') finish endif diff --git a/syntax/helm.vim b/syntax/helm.vim index 79e02dad..85d82edc 100644 --- a/syntax/helm.vim +++ b/syntax/helm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'helm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'helm', 'syntax/helm.vim') finish endif diff --git a/syntax/help.vim b/syntax/help.vim index 52e34dce..1bb74a15 100644 --- a/syntax/help.vim +++ b/syntax/help.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'help') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'help', 'syntax/help.vim') finish endif diff --git a/syntax/hercules.vim b/syntax/hercules.vim index 671c8a0b..33657e32 100644 --- a/syntax/hercules.vim +++ b/syntax/hercules.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hercules') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hercules', 'syntax/hercules.vim') finish endif diff --git a/syntax/hex.vim b/syntax/hex.vim index 6808720b..7a6cfc3a 100644 --- a/syntax/hex.vim +++ b/syntax/hex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hex', 'syntax/hex.vim') finish endif diff --git a/syntax/hgcommit.vim b/syntax/hgcommit.vim index eda6d63e..af82c6cb 100644 --- a/syntax/hgcommit.vim +++ b/syntax/hgcommit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hgcommit') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hgcommit', 'syntax/hgcommit.vim') finish endif diff --git a/syntax/hive.vim b/syntax/hive.vim index e2358f36..8561795e 100644 --- a/syntax/hive.vim +++ b/syntax/hive.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hive') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hive', 'syntax/hive.vim') finish endif diff --git a/syntax/hog.vim b/syntax/hog.vim index b967ad7f..47af8f19 100644 --- a/syntax/hog.vim +++ b/syntax/hog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hog', 'syntax/hog.vim') finish endif diff --git a/syntax/hollywood.vim b/syntax/hollywood.vim index c44676e6..e801d11a 100644 --- a/syntax/hollywood.vim +++ b/syntax/hollywood.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hollywood') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hollywood', 'syntax/hollywood.vim') finish endif diff --git a/syntax/hostconf.vim b/syntax/hostconf.vim index 56a6a69f..e96b3917 100644 --- a/syntax/hostconf.vim +++ b/syntax/hostconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hostconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hostconf', 'syntax/hostconf.vim') finish endif diff --git a/syntax/hostsaccess.vim b/syntax/hostsaccess.vim index 43f45e9a..3a2182e0 100644 --- a/syntax/hostsaccess.vim +++ b/syntax/hostsaccess.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'hostsaccess') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'hostsaccess', 'syntax/hostsaccess.vim') finish endif diff --git a/syntax/html.vim b/syntax/html.vim index 37c03c45..c823d362 100644 --- a/syntax/html.vim +++ b/syntax/html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'html') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'html', 'syntax/html.vim') finish endif diff --git a/syntax/htmldjango.vim b/syntax/htmldjango.vim index d7060757..f4b4f676 100644 --- a/syntax/htmldjango.vim +++ b/syntax/htmldjango.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'htmldjango') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'htmldjango', 'syntax/htmldjango.vim') finish endif diff --git a/syntax/htmlm4.vim b/syntax/htmlm4.vim index b2c8002a..be53419a 100644 --- a/syntax/htmlm4.vim +++ b/syntax/htmlm4.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'htmlm4') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'htmlm4', 'syntax/htmlm4.vim') finish endif diff --git a/syntax/i3config.vim b/syntax/i3config.vim index f14cec52..8228f931 100644 --- a/syntax/i3config.vim +++ b/syntax/i3config.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'i3') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'i3', 'syntax/i3config.vim') finish endif diff --git a/syntax/ibasic.vim b/syntax/ibasic.vim index c7a36432..793a1de2 100644 --- a/syntax/ibasic.vim +++ b/syntax/ibasic.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ibasic') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ibasic', 'syntax/ibasic.vim') finish endif diff --git a/syntax/icalendar.vim b/syntax/icalendar.vim index 30a70183..09aca898 100644 --- a/syntax/icalendar.vim +++ b/syntax/icalendar.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'icalendar') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'icalendar', 'syntax/icalendar.vim') finish endif diff --git a/syntax/icemenu.vim b/syntax/icemenu.vim index 0e93a656..cdc7a28b 100644 --- a/syntax/icemenu.vim +++ b/syntax/icemenu.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'icemenu') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'icemenu', 'syntax/icemenu.vim') finish endif diff --git a/syntax/icon.vim b/syntax/icon.vim index c19f5b52..ba420eaa 100644 --- a/syntax/icon.vim +++ b/syntax/icon.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'icon') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'icon', 'syntax/icon.vim') finish endif diff --git a/syntax/idris.vim b/syntax/idris.vim index b909adb5..7a59c8e5 100644 --- a/syntax/idris.vim +++ b/syntax/idris.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris', 'syntax/idris.vim') finish endif diff --git a/syntax/idris2.vim b/syntax/idris2.vim index 65856380..8a135c73 100644 --- a/syntax/idris2.vim +++ b/syntax/idris2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris2', 'syntax/idris2.vim') finish endif diff --git a/syntax/indent.vim b/syntax/indent.vim index 141eabf9..14785ca6 100644 --- a/syntax/indent.vim +++ b/syntax/indent.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'indent') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'indent', 'syntax/indent.vim') finish endif diff --git a/syntax/inform.vim b/syntax/inform.vim index 0ae47e48..847e7dac 100644 --- a/syntax/inform.vim +++ b/syntax/inform.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'inform') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'inform', 'syntax/inform.vim') finish endif diff --git a/syntax/initng.vim b/syntax/initng.vim index 34deba5d..ecab2243 100644 --- a/syntax/initng.vim +++ b/syntax/initng.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'initng') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'initng', 'syntax/initng.vim') finish endif diff --git a/syntax/inittab.vim b/syntax/inittab.vim index aef4453c..31e02a46 100644 --- a/syntax/inittab.vim +++ b/syntax/inittab.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'inittab') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'inittab', 'syntax/inittab.vim') finish endif diff --git a/syntax/ion.vim b/syntax/ion.vim index b5d70f09..58db5b1e 100644 --- a/syntax/ion.vim +++ b/syntax/ion.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ion') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ion', 'syntax/ion.vim') finish endif diff --git a/syntax/ipfilter.vim b/syntax/ipfilter.vim index 153a2f91..09062ebc 100644 --- a/syntax/ipfilter.vim +++ b/syntax/ipfilter.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ipfilter') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ipfilter', 'syntax/ipfilter.vim') finish endif diff --git a/syntax/iss.vim b/syntax/iss.vim index 72eaaab0..5c82ae34 100644 --- a/syntax/iss.vim +++ b/syntax/iss.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'iss') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'iss', 'syntax/iss.vim') finish endif diff --git a/syntax/ist.vim b/syntax/ist.vim index 6b17a355..1938dedf 100644 --- a/syntax/ist.vim +++ b/syntax/ist.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ist') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ist', 'syntax/ist.vim') finish endif diff --git a/syntax/j.vim b/syntax/j.vim index 3021824c..0b8ed98c 100644 --- a/syntax/j.vim +++ b/syntax/j.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'j') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'j', 'syntax/j.vim') finish endif diff --git a/syntax/jal.vim b/syntax/jal.vim index 2205161c..6e7da6ed 100644 --- a/syntax/jal.vim +++ b/syntax/jal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jal', 'syntax/jal.vim') finish endif diff --git a/syntax/jam.vim b/syntax/jam.vim index 218a2e19..abdbf3f1 100644 --- a/syntax/jam.vim +++ b/syntax/jam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jam') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jam', 'syntax/jam.vim') finish endif diff --git a/syntax/java.vim b/syntax/java.vim index 410d2c0e..c445e00e 100644 --- a/syntax/java.vim +++ b/syntax/java.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'java') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'java', 'syntax/java.vim') finish endif diff --git a/syntax/javacc.vim b/syntax/javacc.vim index 417a3fb7..e4920035 100644 --- a/syntax/javacc.vim +++ b/syntax/javacc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javacc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javacc', 'syntax/javacc.vim') finish endif diff --git a/syntax/javascript.vim b/syntax/javascript.vim index f68fa056..dbd1c4ed 100644 --- a/syntax/javascript.vim +++ b/syntax/javascript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'javascript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'javascript', 'syntax/javascript.vim') finish endif diff --git a/syntax/jess.vim b/syntax/jess.vim index 00d3938f..c812bff1 100644 --- a/syntax/jess.vim +++ b/syntax/jess.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jess') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jess', 'syntax/jess.vim') finish endif diff --git a/syntax/jgraph.vim b/syntax/jgraph.vim index 68131379..4b8a06bc 100644 --- a/syntax/jgraph.vim +++ b/syntax/jgraph.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jgraph') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jgraph', 'syntax/jgraph.vim') finish endif diff --git a/syntax/jinja2.vim b/syntax/jinja2.vim index fda258bc..fe081f25 100644 --- a/syntax/jinja2.vim +++ b/syntax/jinja2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ansible') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ansible', 'syntax/jinja2.vim') finish endif diff --git a/syntax/jovial.vim b/syntax/jovial.vim index 9411e250..7e77f123 100644 --- a/syntax/jovial.vim +++ b/syntax/jovial.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jovial') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jovial', 'syntax/jovial.vim') finish endif diff --git a/syntax/jproperties.vim b/syntax/jproperties.vim index 3a044855..7b334c8c 100644 --- a/syntax/jproperties.vim +++ b/syntax/jproperties.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jproperties') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jproperties', 'syntax/jproperties.vim') finish endif diff --git a/syntax/jq.vim b/syntax/jq.vim index 78c260b2..8bf8bb60 100644 --- a/syntax/jq.vim +++ b/syntax/jq.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jq') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jq', 'syntax/jq.vim') finish endif diff --git a/syntax/json.vim b/syntax/json.vim index b41bd307..fb010416 100644 --- a/syntax/json.vim +++ b/syntax/json.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'json') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'json', 'syntax/json.vim') finish endif diff --git a/syntax/json5.vim b/syntax/json5.vim index 3ed1e37a..2432e556 100644 --- a/syntax/json5.vim +++ b/syntax/json5.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'json5') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'json5', 'syntax/json5.vim') finish endif diff --git a/syntax/jsonc.vim b/syntax/jsonc.vim index 49c14bcc..059cd332 100644 --- a/syntax/jsonc.vim +++ b/syntax/jsonc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsonc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsonc', 'syntax/jsonc.vim') finish endif diff --git a/syntax/jsonnet.vim b/syntax/jsonnet.vim index 6f23fe2e..62476cfb 100644 --- a/syntax/jsonnet.vim +++ b/syntax/jsonnet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsonnet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsonnet', 'syntax/jsonnet.vim') finish endif diff --git a/syntax/jsp.vim b/syntax/jsp.vim index 7c2a9241..46d872f8 100644 --- a/syntax/jsp.vim +++ b/syntax/jsp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jsp', 'syntax/jsp.vim') finish endif diff --git a/syntax/jst.vim b/syntax/jst.vim index 4a601f9f..9979327a 100644 --- a/syntax/jst.vim +++ b/syntax/jst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'jst', 'syntax/jst.vim') finish endif diff --git a/syntax/julia.vim b/syntax/julia.vim index 3ce275c8..056df9c4 100644 --- a/syntax/julia.vim +++ b/syntax/julia.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'syntax/julia.vim') finish endif diff --git a/syntax/juliadoc.vim b/syntax/juliadoc.vim index 051a934b..c4dbfdbd 100644 --- a/syntax/juliadoc.vim +++ b/syntax/juliadoc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'julia') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'julia', 'syntax/juliadoc.vim') finish endif diff --git a/syntax/kconfig.vim b/syntax/kconfig.vim index 156168ec..be84d64d 100644 --- a/syntax/kconfig.vim +++ b/syntax/kconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kconfig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kconfig', 'syntax/kconfig.vim') finish endif diff --git a/syntax/kivy.vim b/syntax/kivy.vim index 0b5f4a14..2ebfbad0 100644 --- a/syntax/kivy.vim +++ b/syntax/kivy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kivy') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kivy', 'syntax/kivy.vim') finish endif diff --git a/syntax/kix.vim b/syntax/kix.vim index 0f39c838..4bdf400c 100644 --- a/syntax/kix.vim +++ b/syntax/kix.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kix') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kix', 'syntax/kix.vim') finish endif diff --git a/syntax/kotlin.vim b/syntax/kotlin.vim index 03c1f351..92362eb5 100644 --- a/syntax/kotlin.vim +++ b/syntax/kotlin.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kotlin') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kotlin', 'syntax/kotlin.vim') finish endif diff --git a/syntax/kscript.vim b/syntax/kscript.vim index 46b1a222..d270f972 100644 --- a/syntax/kscript.vim +++ b/syntax/kscript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kscript', 'syntax/kscript.vim') finish endif diff --git a/syntax/kwt.vim b/syntax/kwt.vim index 2f990d21..22abf68d 100644 --- a/syntax/kwt.vim +++ b/syntax/kwt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'kwt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'kwt', 'syntax/kwt.vim') finish endif diff --git a/syntax/lace.vim b/syntax/lace.vim index e09e9438..ce04cf4d 100644 --- a/syntax/lace.vim +++ b/syntax/lace.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lace') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lace', 'syntax/lace.vim') finish endif diff --git a/syntax/latte.vim b/syntax/latte.vim index f1fb4d83..82ae72d6 100644 --- a/syntax/latte.vim +++ b/syntax/latte.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'latte') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'latte', 'syntax/latte.vim') finish endif diff --git a/syntax/ld.vim b/syntax/ld.vim index 5043b7b2..bcfd2b3a 100644 --- a/syntax/ld.vim +++ b/syntax/ld.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ld') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ld', 'syntax/ld.vim') finish endif diff --git a/syntax/ldif.vim b/syntax/ldif.vim index 79c1480f..c854a22a 100644 --- a/syntax/ldif.vim +++ b/syntax/ldif.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ldif') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ldif', 'syntax/ldif.vim') finish endif diff --git a/syntax/ledger.vim b/syntax/ledger.vim index dc42a01a..3f76282f 100644 --- a/syntax/ledger.vim +++ b/syntax/ledger.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ledger') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ledger', 'syntax/ledger.vim') finish endif diff --git a/syntax/less.vim b/syntax/less.vim index 47829612..f2af1eae 100644 --- a/syntax/less.vim +++ b/syntax/less.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'less') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'less', 'syntax/less.vim') finish endif diff --git a/syntax/lex.vim b/syntax/lex.vim index 144f0deb..d077c209 100644 --- a/syntax/lex.vim +++ b/syntax/lex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lex', 'syntax/lex.vim') finish endif diff --git a/syntax/lftp.vim b/syntax/lftp.vim index 1dea9fcf..1fc69b4c 100644 --- a/syntax/lftp.vim +++ b/syntax/lftp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lftp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lftp', 'syntax/lftp.vim') finish endif diff --git a/syntax/lhaskell.vim b/syntax/lhaskell.vim index d7d56f12..9dd6e6f5 100644 --- a/syntax/lhaskell.vim +++ b/syntax/lhaskell.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lhaskell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lhaskell', 'syntax/lhaskell.vim') finish endif diff --git a/syntax/libao.vim b/syntax/libao.vim index 3bdefe4b..3bb820bc 100644 --- a/syntax/libao.vim +++ b/syntax/libao.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'libao') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'libao', 'syntax/libao.vim') finish endif diff --git a/syntax/lidris.vim b/syntax/lidris.vim index df6c03c9..369cbe8b 100644 --- a/syntax/lidris.vim +++ b/syntax/lidris.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris', 'syntax/lidris.vim') finish endif diff --git a/syntax/lidris2.vim b/syntax/lidris2.vim index 3b37a490..c884c435 100644 --- a/syntax/lidris2.vim +++ b/syntax/lidris2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'idris2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'idris2', 'syntax/lidris2.vim') finish endif diff --git a/syntax/lifelines.vim b/syntax/lifelines.vim index 295c0060..1b9383fb 100644 --- a/syntax/lifelines.vim +++ b/syntax/lifelines.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lifelines') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lifelines', 'syntax/lifelines.vim') finish endif diff --git a/syntax/lilo.vim b/syntax/lilo.vim index 88f14ff7..78493e27 100644 --- a/syntax/lilo.vim +++ b/syntax/lilo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lilo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilo', 'syntax/lilo.vim') finish endif diff --git a/syntax/lilypond-words.vim b/syntax/lilypond-words.vim index 8806554f..5d3c5a90 100644 --- a/syntax/lilypond-words.vim +++ b/syntax/lilypond-words.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lilypond') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'syntax/lilypond-words.vim') finish endif diff --git a/syntax/lilypond.vim b/syntax/lilypond.vim index ada3a9ac..c8ea6d46 100644 --- a/syntax/lilypond.vim +++ b/syntax/lilypond.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lilypond') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'syntax/lilypond.vim') finish endif diff --git a/syntax/limits.vim b/syntax/limits.vim index 90a464c2..ff14b956 100644 --- a/syntax/limits.vim +++ b/syntax/limits.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'limits') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'limits', 'syntax/limits.vim') finish endif diff --git a/syntax/liquid.vim b/syntax/liquid.vim index 97b10c2e..2a062b1f 100644 --- a/syntax/liquid.vim +++ b/syntax/liquid.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'liquid') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'liquid', 'syntax/liquid.vim') finish endif diff --git a/syntax/lisp.vim b/syntax/lisp.vim index ada26dc9..d8dd9ca8 100644 --- a/syntax/lisp.vim +++ b/syntax/lisp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lisp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lisp', 'syntax/lisp.vim') finish endif diff --git a/syntax/litcoffee.vim b/syntax/litcoffee.vim index cf642b62..608587ca 100644 --- a/syntax/litcoffee.vim +++ b/syntax/litcoffee.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'coffee-script') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'coffee-script', 'syntax/litcoffee.vim') finish endif diff --git a/syntax/lite.vim b/syntax/lite.vim index 9b57ecac..7917299e 100644 --- a/syntax/lite.vim +++ b/syntax/lite.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lite') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lite', 'syntax/lite.vim') finish endif diff --git a/syntax/litestep.vim b/syntax/litestep.vim index 254124cb..a6334a91 100644 --- a/syntax/litestep.vim +++ b/syntax/litestep.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'litestep') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'litestep', 'syntax/litestep.vim') finish endif diff --git a/syntax/llvm.vim b/syntax/llvm.vim index 73c1a5fe..57bb3d6f 100644 --- a/syntax/llvm.vim +++ b/syntax/llvm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'llvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'syntax/llvm.vim') finish endif diff --git a/syntax/log.vim b/syntax/log.vim index 6e658fe0..5d843f83 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'log') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'log', 'syntax/log.vim') finish endif diff --git a/syntax/loginaccess.vim b/syntax/loginaccess.vim index fd7d36e7..dbd056a8 100644 --- a/syntax/loginaccess.vim +++ b/syntax/loginaccess.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'loginaccess') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'loginaccess', 'syntax/loginaccess.vim') finish endif diff --git a/syntax/logindefs.vim b/syntax/logindefs.vim index 21659376..47286f1f 100644 --- a/syntax/logindefs.vim +++ b/syntax/logindefs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'logindefs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'logindefs', 'syntax/logindefs.vim') finish endif diff --git a/syntax/logtalk.vim b/syntax/logtalk.vim index 7716e33e..ad35a2ae 100644 --- a/syntax/logtalk.vim +++ b/syntax/logtalk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'logtalk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'logtalk', 'syntax/logtalk.vim') finish endif diff --git a/syntax/lotos.vim b/syntax/lotos.vim index 7270727f..8c08f2db 100644 --- a/syntax/lotos.vim +++ b/syntax/lotos.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lotos') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lotos', 'syntax/lotos.vim') finish endif diff --git a/syntax/lout.vim b/syntax/lout.vim index a7927044..64399e5b 100644 --- a/syntax/lout.vim +++ b/syntax/lout.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lout') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lout', 'syntax/lout.vim') finish endif diff --git a/syntax/lpc.vim b/syntax/lpc.vim index 5df61f96..f2a501c8 100644 --- a/syntax/lpc.vim +++ b/syntax/lpc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lpc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lpc', 'syntax/lpc.vim') finish endif diff --git a/syntax/lprolog.vim b/syntax/lprolog.vim index 39368dc3..aab3ba48 100644 --- a/syntax/lprolog.vim +++ b/syntax/lprolog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lprolog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lprolog', 'syntax/lprolog.vim') finish endif diff --git a/syntax/ls.vim b/syntax/ls.vim index e65a7603..19ad49a1 100644 --- a/syntax/ls.vim +++ b/syntax/ls.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'livescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'livescript', 'syntax/ls.vim') finish endif diff --git a/syntax/lsl.vim b/syntax/lsl.vim index 30ad9185..3a579f0b 100644 --- a/syntax/lsl.vim +++ b/syntax/lsl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lsl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lsl', 'syntax/lsl.vim') finish endif diff --git a/syntax/lss.vim b/syntax/lss.vim index 8c08f704..a57a7a60 100644 --- a/syntax/lss.vim +++ b/syntax/lss.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lss') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lss', 'syntax/lss.vim') finish endif diff --git a/syntax/lua.vim b/syntax/lua.vim index ca58a8da..2546f656 100644 --- a/syntax/lua.vim +++ b/syntax/lua.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lua') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lua', 'syntax/lua.vim') finish endif diff --git a/syntax/lynx.vim b/syntax/lynx.vim index f23a06d8..ad33387f 100644 --- a/syntax/lynx.vim +++ b/syntax/lynx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'lynx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'lynx', 'syntax/lynx.vim') finish endif diff --git a/syntax/m4.vim b/syntax/m4.vim index f2156447..6bfd3c79 100644 --- a/syntax/m4.vim +++ b/syntax/m4.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'm4') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'm4', 'syntax/m4.vim') finish endif diff --git a/syntax/mail.vim b/syntax/mail.vim index f4cb01d6..270e7e10 100644 --- a/syntax/mail.vim +++ b/syntax/mail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mail') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mail', 'syntax/mail.vim') finish endif diff --git a/syntax/mailaliases.vim b/syntax/mailaliases.vim index 1638dfd8..f450f166 100644 --- a/syntax/mailaliases.vim +++ b/syntax/mailaliases.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mailaliases') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mailaliases', 'syntax/mailaliases.vim') finish endif diff --git a/syntax/mailcap.vim b/syntax/mailcap.vim index b917a9ed..6570b436 100644 --- a/syntax/mailcap.vim +++ b/syntax/mailcap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mailcap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mailcap', 'syntax/mailcap.vim') finish endif diff --git a/syntax/make.vim b/syntax/make.vim index 0be719b6..1c5262af 100644 --- a/syntax/make.vim +++ b/syntax/make.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'make') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'make', 'syntax/make.vim') finish endif diff --git a/syntax/mako.vim b/syntax/mako.vim index cb454b8a..6754cfc9 100644 --- a/syntax/mako.vim +++ b/syntax/mako.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mako') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mako', 'syntax/mako.vim') finish endif diff --git a/syntax/mallard.vim b/syntax/mallard.vim index 979dada4..6ddf2fb8 100644 --- a/syntax/mallard.vim +++ b/syntax/mallard.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mallard') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mallard', 'syntax/mallard.vim') finish endif diff --git a/syntax/manconf.vim b/syntax/manconf.vim index 7c81525a..d5e7ab1e 100644 --- a/syntax/manconf.vim +++ b/syntax/manconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'manconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'manconf', 'syntax/manconf.vim') finish endif diff --git a/syntax/maple.vim b/syntax/maple.vim index cece9837..891df301 100644 --- a/syntax/maple.vim +++ b/syntax/maple.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'maple') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'maple', 'syntax/maple.vim') finish endif diff --git a/syntax/markdown.vim b/syntax/markdown.vim index ef9b8c8d..eeda03da 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'markdown') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'markdown', 'syntax/markdown.vim') finish endif diff --git a/syntax/mason.vim b/syntax/mason.vim index 41a3ad4e..e32630bc 100644 --- a/syntax/mason.vim +++ b/syntax/mason.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/mason.vim') finish endif diff --git a/syntax/master.vim b/syntax/master.vim index 4a06aac1..f9b28b96 100644 --- a/syntax/master.vim +++ b/syntax/master.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'master') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'master', 'syntax/master.vim') finish endif diff --git a/syntax/mel.vim b/syntax/mel.vim index 54ff4ab6..8d386b53 100644 --- a/syntax/mel.vim +++ b/syntax/mel.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mel') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mel', 'syntax/mel.vim') finish endif diff --git a/syntax/merlin.vim b/syntax/merlin.vim index e3fdbd09..8768cf10 100644 --- a/syntax/merlin.vim +++ b/syntax/merlin.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'reason') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'reason', 'syntax/merlin.vim') finish endif diff --git a/syntax/meson.vim b/syntax/meson.vim index 0dbbbaa6..28eab3ea 100644 --- a/syntax/meson.vim +++ b/syntax/meson.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'meson') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'meson', 'syntax/meson.vim') finish endif diff --git a/syntax/messages.vim b/syntax/messages.vim index 7448f4e0..a66dbe63 100644 --- a/syntax/messages.vim +++ b/syntax/messages.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'messages') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'messages', 'syntax/messages.vim') finish endif diff --git a/syntax/mf.vim b/syntax/mf.vim index 1d589edd..bb2eefc0 100644 --- a/syntax/mf.vim +++ b/syntax/mf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mf', 'syntax/mf.vim') finish endif diff --git a/syntax/mgl.vim b/syntax/mgl.vim index 631af500..89c87a35 100644 --- a/syntax/mgl.vim +++ b/syntax/mgl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mgl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mgl', 'syntax/mgl.vim') finish endif diff --git a/syntax/mgp.vim b/syntax/mgp.vim index 00c77a1d..6aa74060 100644 --- a/syntax/mgp.vim +++ b/syntax/mgp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mgp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mgp', 'syntax/mgp.vim') finish endif diff --git a/syntax/mib.vim b/syntax/mib.vim index 8f67db38..57eaea8e 100644 --- a/syntax/mib.vim +++ b/syntax/mib.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mib') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mib', 'syntax/mib.vim') finish endif diff --git a/syntax/mint.vim b/syntax/mint.vim index 2b71a692..efb16be0 100644 --- a/syntax/mint.vim +++ b/syntax/mint.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mint') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mint', 'syntax/mint.vim') finish endif diff --git a/syntax/mix.vim b/syntax/mix.vim index b2a9f84e..b19dea28 100644 --- a/syntax/mix.vim +++ b/syntax/mix.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mix') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mix', 'syntax/mix.vim') finish endif diff --git a/syntax/mma.vim b/syntax/mma.vim index 7cfa8661..7ff6aa2f 100644 --- a/syntax/mma.vim +++ b/syntax/mma.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mathematica') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mathematica', 'syntax/mma.vim') finish endif diff --git a/syntax/mmp.vim b/syntax/mmp.vim index 7acec663..32113634 100644 --- a/syntax/mmp.vim +++ b/syntax/mmp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mmp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mmp', 'syntax/mmp.vim') finish endif diff --git a/syntax/modconf.vim b/syntax/modconf.vim index 147d9630..5433e44d 100644 --- a/syntax/modconf.vim +++ b/syntax/modconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'modconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'modconf', 'syntax/modconf.vim') finish endif diff --git a/syntax/modula2.vim b/syntax/modula2.vim index d0fa5d83..0bdce065 100644 --- a/syntax/modula2.vim +++ b/syntax/modula2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'modula2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'modula2', 'syntax/modula2.vim') finish endif diff --git a/syntax/modula3.vim b/syntax/modula3.vim index a1f22ebb..7ebb966e 100644 --- a/syntax/modula3.vim +++ b/syntax/modula3.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'modula3') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'modula3', 'syntax/modula3.vim') finish endif diff --git a/syntax/monk.vim b/syntax/monk.vim index c1770643..1538a7fa 100644 --- a/syntax/monk.vim +++ b/syntax/monk.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'monk') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'monk', 'syntax/monk.vim') finish endif diff --git a/syntax/moo.vim b/syntax/moo.vim index 5cffa07e..8037605d 100644 --- a/syntax/moo.vim +++ b/syntax/moo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'moo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'moo', 'syntax/moo.vim') finish endif diff --git a/syntax/moon.vim b/syntax/moon.vim index 6771213f..7d1f63c5 100644 --- a/syntax/moon.vim +++ b/syntax/moon.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'moonscript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'moonscript', 'syntax/moon.vim') finish endif diff --git a/syntax/mp.vim b/syntax/mp.vim index 3f52854a..39b632b3 100644 --- a/syntax/mp.vim +++ b/syntax/mp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mp', 'syntax/mp.vim') finish endif diff --git a/syntax/mplayerconf.vim b/syntax/mplayerconf.vim index 3d979f61..b09bf018 100644 --- a/syntax/mplayerconf.vim +++ b/syntax/mplayerconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mplayerconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mplayerconf', 'syntax/mplayerconf.vim') finish endif diff --git a/syntax/mrxvtrc.vim b/syntax/mrxvtrc.vim index cc77dc66..0cc9806c 100644 --- a/syntax/mrxvtrc.vim +++ b/syntax/mrxvtrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mrxvtrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mrxvtrc', 'syntax/mrxvtrc.vim') finish endif diff --git a/syntax/msidl.vim b/syntax/msidl.vim index 71708303..2bf497f8 100644 --- a/syntax/msidl.vim +++ b/syntax/msidl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'msidl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'msidl', 'syntax/msidl.vim') finish endif diff --git a/syntax/msql.vim b/syntax/msql.vim index 3d188837..5a9298e6 100644 --- a/syntax/msql.vim +++ b/syntax/msql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'msql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'msql', 'syntax/msql.vim') finish endif diff --git a/syntax/mupad.vim b/syntax/mupad.vim index 8bd4a4f5..0b3be7a7 100644 --- a/syntax/mupad.vim +++ b/syntax/mupad.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mupad') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mupad', 'syntax/mupad.vim') finish endif diff --git a/syntax/murphi.vim b/syntax/murphi.vim index b97876c3..305101c0 100644 --- a/syntax/murphi.vim +++ b/syntax/murphi.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'murphi') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'murphi', 'syntax/murphi.vim') finish endif diff --git a/syntax/mush.vim b/syntax/mush.vim index a5024e97..eae36369 100644 --- a/syntax/mush.vim +++ b/syntax/mush.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mush') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mush', 'syntax/mush.vim') finish endif diff --git a/syntax/mustache.vim b/syntax/mustache.vim index 25ec16b6..1b477c7f 100644 --- a/syntax/mustache.vim +++ b/syntax/mustache.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'handlebars') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'handlebars', 'syntax/mustache.vim') finish endif diff --git a/syntax/muttrc.vim b/syntax/muttrc.vim index a776a84e..e4cbac44 100644 --- a/syntax/muttrc.vim +++ b/syntax/muttrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'muttrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'muttrc', 'syntax/muttrc.vim') finish endif diff --git a/syntax/mysql.vim b/syntax/mysql.vim index 3b2323ee..5541c960 100644 --- a/syntax/mysql.vim +++ b/syntax/mysql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'mysql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'mysql', 'syntax/mysql.vim') finish endif diff --git a/syntax/n1ql.vim b/syntax/n1ql.vim index eb018c24..8e3f8d10 100644 --- a/syntax/n1ql.vim +++ b/syntax/n1ql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'n1ql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'n1ql', 'syntax/n1ql.vim') finish endif diff --git a/syntax/named.vim b/syntax/named.vim index efc82f00..6d032d55 100644 --- a/syntax/named.vim +++ b/syntax/named.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'named') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'named', 'syntax/named.vim') finish endif diff --git a/syntax/nanorc.vim b/syntax/nanorc.vim index 2c51ddb1..e79fb15e 100644 --- a/syntax/nanorc.vim +++ b/syntax/nanorc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nanorc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nanorc', 'syntax/nanorc.vim') finish endif diff --git a/syntax/natural.vim b/syntax/natural.vim index 48a2caf9..6739e530 100644 --- a/syntax/natural.vim +++ b/syntax/natural.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'natural') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'natural', 'syntax/natural.vim') finish endif diff --git a/syntax/ncf.vim b/syntax/ncf.vim index e9df3256..10f833f6 100644 --- a/syntax/ncf.vim +++ b/syntax/ncf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ncf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ncf', 'syntax/ncf.vim') finish endif diff --git a/syntax/neomuttrc.vim b/syntax/neomuttrc.vim index 60e0eb96..e1d386c4 100644 --- a/syntax/neomuttrc.vim +++ b/syntax/neomuttrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'neomuttrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'neomuttrc', 'syntax/neomuttrc.vim') finish endif diff --git a/syntax/netrc.vim b/syntax/netrc.vim index 1e9933c0..24069e22 100644 --- a/syntax/netrc.vim +++ b/syntax/netrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'netrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'netrc', 'syntax/netrc.vim') finish endif diff --git a/syntax/nginx.vim b/syntax/nginx.vim index e1cfa777..9c657fe3 100644 --- a/syntax/nginx.vim +++ b/syntax/nginx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nginx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nginx', 'syntax/nginx.vim') finish endif diff --git a/syntax/nim.vim b/syntax/nim.vim index 138b1c90..c3aa7b3f 100644 --- a/syntax/nim.vim +++ b/syntax/nim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nim', 'syntax/nim.vim') finish endif diff --git a/syntax/ninja.vim b/syntax/ninja.vim index 6825cadd..51f2dfea 100644 --- a/syntax/ninja.vim +++ b/syntax/ninja.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ninja') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ninja', 'syntax/ninja.vim') finish endif diff --git a/syntax/nix.vim b/syntax/nix.vim index a8c382e6..87c83fed 100644 --- a/syntax/nix.vim +++ b/syntax/nix.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nix') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nix', 'syntax/nix.vim') finish endif diff --git a/syntax/nqc.vim b/syntax/nqc.vim index 5d310d9d..648bbfd6 100644 --- a/syntax/nqc.vim +++ b/syntax/nqc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nqc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nqc', 'syntax/nqc.vim') finish endif diff --git a/syntax/nroff.vim b/syntax/nroff.vim index 2681d4c9..c848ecf9 100644 --- a/syntax/nroff.vim +++ b/syntax/nroff.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nroff') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nroff', 'syntax/nroff.vim') finish endif diff --git a/syntax/nsis.vim b/syntax/nsis.vim index 959999cb..76a338f6 100644 --- a/syntax/nsis.vim +++ b/syntax/nsis.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'nsis') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nsis', 'syntax/nsis.vim') finish endif diff --git a/syntax/oasis.vim b/syntax/oasis.vim index 15af3903..b935ed6d 100644 --- a/syntax/oasis.vim +++ b/syntax/oasis.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/oasis.vim') finish endif diff --git a/syntax/obj.vim b/syntax/obj.vim index 6ea9b23a..0b9089ad 100644 --- a/syntax/obj.vim +++ b/syntax/obj.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'obj') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'obj', 'syntax/obj.vim') finish endif diff --git a/syntax/ocaml.vim b/syntax/ocaml.vim index b858cf02..032c133d 100644 --- a/syntax/ocaml.vim +++ b/syntax/ocaml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/ocaml.vim') finish endif diff --git a/syntax/ocamlbuild_tags.vim b/syntax/ocamlbuild_tags.vim index aea91307..43ce2aeb 100644 --- a/syntax/ocamlbuild_tags.vim +++ b/syntax/ocamlbuild_tags.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/ocamlbuild_tags.vim') finish endif diff --git a/syntax/occam.vim b/syntax/occam.vim index 98b762eb..5b867cfa 100644 --- a/syntax/occam.vim +++ b/syntax/occam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'occam') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'occam', 'syntax/occam.vim') finish endif diff --git a/syntax/ocpbuild.vim b/syntax/ocpbuild.vim index 7e5dad16..ffecb511 100644 --- a/syntax/ocpbuild.vim +++ b/syntax/ocpbuild.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/ocpbuild.vim') finish endif diff --git a/syntax/ocpbuildroot.vim b/syntax/ocpbuildroot.vim index 34740a3f..9f7dde3e 100644 --- a/syntax/ocpbuildroot.vim +++ b/syntax/ocpbuildroot.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/ocpbuildroot.vim') finish endif diff --git a/syntax/octave.vim b/syntax/octave.vim index f3c91642..3f1fa561 100644 --- a/syntax/octave.vim +++ b/syntax/octave.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'octave') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'octave', 'syntax/octave.vim') finish endif diff --git a/syntax/odin.vim b/syntax/odin.vim index e6960574..6597aeda 100644 --- a/syntax/odin.vim +++ b/syntax/odin.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'odin') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'odin', 'syntax/odin.vim') finish endif diff --git a/syntax/omake.vim b/syntax/omake.vim index 54c3f467..f37db782 100644 --- a/syntax/omake.vim +++ b/syntax/omake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/omake.vim') finish endif diff --git a/syntax/omnimark.vim b/syntax/omnimark.vim index 3e38b43b..85a860b9 100644 --- a/syntax/omnimark.vim +++ b/syntax/omnimark.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'omnimark') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'omnimark', 'syntax/omnimark.vim') finish endif diff --git a/syntax/opam.vim b/syntax/opam.vim index 5bcaaaf7..21ffb0ff 100644 --- a/syntax/opam.vim +++ b/syntax/opam.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/opam.vim') finish endif diff --git a/syntax/opencl.vim b/syntax/opencl.vim index ab77292f..b1436700 100644 --- a/syntax/opencl.vim +++ b/syntax/opencl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'opencl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'opencl', 'syntax/opencl.vim') finish endif diff --git a/syntax/openroad.vim b/syntax/openroad.vim index fcfe17e7..c7a13ce3 100644 --- a/syntax/openroad.vim +++ b/syntax/openroad.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'openroad') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'openroad', 'syntax/openroad.vim') finish endif diff --git a/syntax/opl.vim b/syntax/opl.vim index 3908574c..516c1c91 100644 --- a/syntax/opl.vim +++ b/syntax/opl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'opl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'opl', 'syntax/opl.vim') finish endif diff --git a/syntax/ora.vim b/syntax/ora.vim index d91958be..ffadce7c 100644 --- a/syntax/ora.vim +++ b/syntax/ora.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ora') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ora', 'syntax/ora.vim') finish endif diff --git a/syntax/pamconf.vim b/syntax/pamconf.vim index 7577a4f6..5710b516 100644 --- a/syntax/pamconf.vim +++ b/syntax/pamconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pamconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pamconf', 'syntax/pamconf.vim') finish endif diff --git a/syntax/pamenv.vim b/syntax/pamenv.vim index a89c7fc4..34319825 100644 --- a/syntax/pamenv.vim +++ b/syntax/pamenv.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pamenv') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pamenv', 'syntax/pamenv.vim') finish endif diff --git a/syntax/papp.vim b/syntax/papp.vim index 879eb04e..c6186a58 100644 --- a/syntax/papp.vim +++ b/syntax/papp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'papp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'papp', 'syntax/papp.vim') finish endif diff --git a/syntax/pascal.vim b/syntax/pascal.vim index 6fb0717e..cd401cc1 100644 --- a/syntax/pascal.vim +++ b/syntax/pascal.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pascal') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pascal', 'syntax/pascal.vim') finish endif diff --git a/syntax/passwd.vim b/syntax/passwd.vim index d33ed4db..5955a2a9 100644 --- a/syntax/passwd.vim +++ b/syntax/passwd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'passwd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'passwd', 'syntax/passwd.vim') finish endif diff --git a/syntax/pccts.vim b/syntax/pccts.vim index accfd78c..09120dd8 100644 --- a/syntax/pccts.vim +++ b/syntax/pccts.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pccts') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pccts', 'syntax/pccts.vim') finish endif diff --git a/syntax/pdf.vim b/syntax/pdf.vim index 6d9d8771..88178546 100644 --- a/syntax/pdf.vim +++ b/syntax/pdf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pdf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pdf', 'syntax/pdf.vim') finish endif diff --git a/syntax/perl.vim b/syntax/perl.vim index cee3a8b7..42339a7a 100644 --- a/syntax/perl.vim +++ b/syntax/perl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/perl.vim') finish endif diff --git a/syntax/pest.vim b/syntax/pest.vim index 03f66979..eb9e7e33 100644 --- a/syntax/pest.vim +++ b/syntax/pest.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pest') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pest', 'syntax/pest.vim') finish endif diff --git a/syntax/pf.vim b/syntax/pf.vim index e3aab6b5..faedcdc4 100644 --- a/syntax/pf.vim +++ b/syntax/pf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pf', 'syntax/pf.vim') finish endif diff --git a/syntax/pfmain.vim b/syntax/pfmain.vim index 62d6ba9d..d257a2e5 100644 --- a/syntax/pfmain.vim +++ b/syntax/pfmain.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pfmain') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pfmain', 'syntax/pfmain.vim') finish endif diff --git a/syntax/pgsql.vim b/syntax/pgsql.vim index f9bfca26..81acfd2b 100644 --- a/syntax/pgsql.vim +++ b/syntax/pgsql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pgsql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pgsql', 'syntax/pgsql.vim') finish endif diff --git a/syntax/php.vim b/syntax/php.vim index 8b38f778..270d6c1a 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'php') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'php', 'syntax/php.vim') finish endif diff --git a/syntax/pike.vim b/syntax/pike.vim index abf0fc81..0749b9fe 100644 --- a/syntax/pike.vim +++ b/syntax/pike.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pike') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pike', 'syntax/pike.vim') finish endif diff --git a/syntax/pilrc.vim b/syntax/pilrc.vim index 5485c6e8..485a238f 100644 --- a/syntax/pilrc.vim +++ b/syntax/pilrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pilrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pilrc', 'syntax/pilrc.vim') finish endif diff --git a/syntax/pine.vim b/syntax/pine.vim index 5e2c111b..15239ffe 100644 --- a/syntax/pine.vim +++ b/syntax/pine.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pine') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pine', 'syntax/pine.vim') finish endif diff --git a/syntax/pinfo.vim b/syntax/pinfo.vim index 6edb0887..ab4efb45 100644 --- a/syntax/pinfo.vim +++ b/syntax/pinfo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pinfo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pinfo', 'syntax/pinfo.vim') finish endif diff --git a/syntax/plantuml.vim b/syntax/plantuml.vim index 60ba9923..c562bb82 100644 --- a/syntax/plantuml.vim +++ b/syntax/plantuml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'plantuml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'plantuml', 'syntax/plantuml.vim') finish endif diff --git a/syntax/pli.vim b/syntax/pli.vim index 95c23ca2..f981cf15 100644 --- a/syntax/pli.vim +++ b/syntax/pli.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pli') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pli', 'syntax/pli.vim') finish endif diff --git a/syntax/plm.vim b/syntax/plm.vim index 301cb938..508f967c 100644 --- a/syntax/plm.vim +++ b/syntax/plm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'plm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'plm', 'syntax/plm.vim') finish endif diff --git a/syntax/plp.vim b/syntax/plp.vim index 993a703c..79388313 100644 --- a/syntax/plp.vim +++ b/syntax/plp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'plp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'plp', 'syntax/plp.vim') finish endif diff --git a/syntax/plsql.vim b/syntax/plsql.vim index f13a6fe2..0276f3d9 100644 --- a/syntax/plsql.vim +++ b/syntax/plsql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'plsql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'plsql', 'syntax/plsql.vim') finish endif diff --git a/syntax/po.vim b/syntax/po.vim index 3539d1b0..5872d8ad 100644 --- a/syntax/po.vim +++ b/syntax/po.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'po') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'po', 'syntax/po.vim') finish endif diff --git a/syntax/pod.vim b/syntax/pod.vim index 09eef133..9370ece0 100644 --- a/syntax/pod.vim +++ b/syntax/pod.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/pod.vim') finish endif diff --git a/syntax/pony.vim b/syntax/pony.vim index 01968ed8..da4f9e3f 100644 --- a/syntax/pony.vim +++ b/syntax/pony.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pony') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pony', 'syntax/pony.vim') finish endif diff --git a/syntax/postscr.vim b/syntax/postscr.vim index c581fb26..2a2b5a8f 100644 --- a/syntax/postscr.vim +++ b/syntax/postscr.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'postscr') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'postscr', 'syntax/postscr.vim') finish endif diff --git a/syntax/pov.vim b/syntax/pov.vim index 5cadffbf..96249fcc 100644 --- a/syntax/pov.vim +++ b/syntax/pov.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pov') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pov', 'syntax/pov.vim') finish endif diff --git a/syntax/povini.vim b/syntax/povini.vim index 782c37be..58cae3f1 100644 --- a/syntax/povini.vim +++ b/syntax/povini.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'povini') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'povini', 'syntax/povini.vim') finish endif diff --git a/syntax/ppd.vim b/syntax/ppd.vim index b1f84cbb..ecf45104 100644 --- a/syntax/ppd.vim +++ b/syntax/ppd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ppd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ppd', 'syntax/ppd.vim') finish endif diff --git a/syntax/ppwiz.vim b/syntax/ppwiz.vim index 8707ee7e..685ccc76 100644 --- a/syntax/ppwiz.vim +++ b/syntax/ppwiz.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ppwiz') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ppwiz', 'syntax/ppwiz.vim') finish endif diff --git a/syntax/privoxy.vim b/syntax/privoxy.vim index 44728108..2870c3cd 100644 --- a/syntax/privoxy.vim +++ b/syntax/privoxy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'privoxy') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'privoxy', 'syntax/privoxy.vim') finish endif diff --git a/syntax/procmail.vim b/syntax/procmail.vim index b483cca7..65efd795 100644 --- a/syntax/procmail.vim +++ b/syntax/procmail.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'procmail') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'procmail', 'syntax/procmail.vim') finish endif diff --git a/syntax/prolog.vim b/syntax/prolog.vim index 25ef2b94..c7c9dab4 100644 --- a/syntax/prolog.vim +++ b/syntax/prolog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'prolog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'prolog', 'syntax/prolog.vim') finish endif diff --git a/syntax/promela.vim b/syntax/promela.vim index 6d66bbbe..84c1c721 100644 --- a/syntax/promela.vim +++ b/syntax/promela.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'promela') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'promela', 'syntax/promela.vim') finish endif diff --git a/syntax/proto.vim b/syntax/proto.vim index 68c70eb7..80ce7e5e 100644 --- a/syntax/proto.vim +++ b/syntax/proto.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'protobuf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'protobuf', 'syntax/proto.vim') finish endif diff --git a/syntax/protocols.vim b/syntax/protocols.vim index 3bc2c0e8..e1c1eadb 100644 --- a/syntax/protocols.vim +++ b/syntax/protocols.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'protocols') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'protocols', 'syntax/protocols.vim') finish endif diff --git a/syntax/ps1.vim b/syntax/ps1.vim index 20cd36fc..2d5d1f32 100644 --- a/syntax/ps1.vim +++ b/syntax/ps1.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'powershell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'powershell', 'syntax/ps1.vim') finish endif diff --git a/syntax/ps1xml.vim b/syntax/ps1xml.vim index dd8cf365..fe943888 100644 --- a/syntax/ps1xml.vim +++ b/syntax/ps1xml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'powershell') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'powershell', 'syntax/ps1xml.vim') finish endif diff --git a/syntax/psf.vim b/syntax/psf.vim index 64c8b0fb..4136db3b 100644 --- a/syntax/psf.vim +++ b/syntax/psf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'psf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'psf', 'syntax/psf.vim') finish endif diff --git a/syntax/pug.vim b/syntax/pug.vim index a0cc3bae..eeec5f58 100644 --- a/syntax/pug.vim +++ b/syntax/pug.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pug') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pug', 'syntax/pug.vim') finish endif diff --git a/syntax/puppet.vim b/syntax/puppet.vim index 881b2992..2b9b09c9 100644 --- a/syntax/puppet.vim +++ b/syntax/puppet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'puppet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'puppet', 'syntax/puppet.vim') finish endif diff --git a/syntax/purescript.vim b/syntax/purescript.vim index b4e6f438..e315d581 100644 --- a/syntax/purescript.vim +++ b/syntax/purescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'purescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'purescript', 'syntax/purescript.vim') finish endif diff --git a/syntax/pyrex.vim b/syntax/pyrex.vim index ce09728f..08f3e471 100644 --- a/syntax/pyrex.vim +++ b/syntax/pyrex.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'pyrex') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'pyrex', 'syntax/pyrex.vim') finish endif diff --git a/syntax/python.vim b/syntax/python.vim index 6b5c3904..a9e7801d 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'python') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'python', 'syntax/python.vim') finish endif diff --git a/syntax/qmake.vim b/syntax/qmake.vim index c791daa8..730a74ff 100644 --- a/syntax/qmake.vim +++ b/syntax/qmake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'qmake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'qmake', 'syntax/qmake.vim') finish endif diff --git a/syntax/qml.vim b/syntax/qml.vim index 4c367f1f..73540c7c 100644 --- a/syntax/qml.vim +++ b/syntax/qml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'qml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'qml', 'syntax/qml.vim') finish endif diff --git a/syntax/quake.vim b/syntax/quake.vim index 14954d0b..0b271cb7 100644 --- a/syntax/quake.vim +++ b/syntax/quake.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'quake') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'quake', 'syntax/quake.vim') finish endif diff --git a/syntax/racket.vim b/syntax/racket.vim index c4f0a422..fecccabb 100644 --- a/syntax/racket.vim +++ b/syntax/racket.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'racket') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'racket', 'syntax/racket.vim') finish endif diff --git a/syntax/radiance.vim b/syntax/radiance.vim index 19febfae..65b1dd01 100644 --- a/syntax/radiance.vim +++ b/syntax/radiance.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'radiance') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'radiance', 'syntax/radiance.vim') finish endif diff --git a/syntax/ragel.vim b/syntax/ragel.vim index 9ad261ae..9d838bc1 100644 --- a/syntax/ragel.vim +++ b/syntax/ragel.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ragel') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ragel', 'syntax/ragel.vim') finish endif diff --git a/syntax/raku.vim b/syntax/raku.vim index 3177f97e..18784e9d 100644 --- a/syntax/raku.vim +++ b/syntax/raku.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'raku') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'raku', 'syntax/raku.vim') finish endif diff --git a/syntax/raml.vim b/syntax/raml.vim index 5e3db72b..e2b246dd 100644 --- a/syntax/raml.vim +++ b/syntax/raml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'raml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'raml', 'syntax/raml.vim') finish endif diff --git a/syntax/ratpoison.vim b/syntax/ratpoison.vim index 4348511a..1a452d4a 100644 --- a/syntax/ratpoison.vim +++ b/syntax/ratpoison.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ratpoison') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ratpoison', 'syntax/ratpoison.vim') finish endif diff --git a/syntax/razor.vim b/syntax/razor.vim index c80ef5bf..5c9819fe 100644 --- a/syntax/razor.vim +++ b/syntax/razor.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'razor') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'razor', 'syntax/razor.vim') finish endif diff --git a/syntax/rc.vim b/syntax/rc.vim index 8acbb817..7d85d60a 100644 --- a/syntax/rc.vim +++ b/syntax/rc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rc', 'syntax/rc.vim') finish endif diff --git a/syntax/rcs.vim b/syntax/rcs.vim index 55a36bd2..8b1fde98 100644 --- a/syntax/rcs.vim +++ b/syntax/rcs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rcs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rcs', 'syntax/rcs.vim') finish endif diff --git a/syntax/readline.vim b/syntax/readline.vim index 7c0b9ebe..b3f8075e 100644 --- a/syntax/readline.vim +++ b/syntax/readline.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'readline') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'readline', 'syntax/readline.vim') finish endif diff --git a/syntax/reason.vim b/syntax/reason.vim index a5fb4eac..ed43224f 100644 --- a/syntax/reason.vim +++ b/syntax/reason.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'reason') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'reason', 'syntax/reason.vim') finish endif diff --git a/syntax/rego.vim b/syntax/rego.vim index 01896288..dcf4bece 100644 --- a/syntax/rego.vim +++ b/syntax/rego.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rego') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rego', 'syntax/rego.vim') finish endif diff --git a/syntax/remind.vim b/syntax/remind.vim index cf0a09e9..1fa21776 100644 --- a/syntax/remind.vim +++ b/syntax/remind.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'remind') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'remind', 'syntax/remind.vim') finish endif diff --git a/syntax/requirements.vim b/syntax/requirements.vim index c534727e..48331f48 100644 --- a/syntax/requirements.vim +++ b/syntax/requirements.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'requirements') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'requirements', 'syntax/requirements.vim') finish endif diff --git a/syntax/resolv.vim b/syntax/resolv.vim index d19e1df3..9121a6c4 100644 --- a/syntax/resolv.vim +++ b/syntax/resolv.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'resolv') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'resolv', 'syntax/resolv.vim') finish endif diff --git a/syntax/reva.vim b/syntax/reva.vim index 6b13b213..d97d9a43 100644 --- a/syntax/reva.vim +++ b/syntax/reva.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'reva') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'reva', 'syntax/reva.vim') finish endif diff --git a/syntax/rexx.vim b/syntax/rexx.vim index 88c21ef6..e0cea65b 100644 --- a/syntax/rexx.vim +++ b/syntax/rexx.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rexx') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rexx', 'syntax/rexx.vim') finish endif diff --git a/syntax/rhelp.vim b/syntax/rhelp.vim index 63f8f386..5142d1bb 100644 --- a/syntax/rhelp.vim +++ b/syntax/rhelp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'r-lang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'r-lang', 'syntax/rhelp.vim') finish endif diff --git a/syntax/rib.vim b/syntax/rib.vim index 4b8b3e18..96aa33ce 100644 --- a/syntax/rib.vim +++ b/syntax/rib.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rib') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rib', 'syntax/rib.vim') finish endif diff --git a/syntax/rmd.vim b/syntax/rmd.vim index 43e79af2..93e5a7f5 100644 --- a/syntax/rmd.vim +++ b/syntax/rmd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rmd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rmd', 'syntax/rmd.vim') finish endif diff --git a/syntax/rnc.vim b/syntax/rnc.vim index 2f01f15e..8ebc2488 100644 --- a/syntax/rnc.vim +++ b/syntax/rnc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rnc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rnc', 'syntax/rnc.vim') finish endif diff --git a/syntax/rng.vim b/syntax/rng.vim index ce663d74..b46f4449 100644 --- a/syntax/rng.vim +++ b/syntax/rng.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rng') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rng', 'syntax/rng.vim') finish endif diff --git a/syntax/rnoweb-1.vim b/syntax/rnoweb-1.vim index edda324f..71ead83d 100644 --- a/syntax/rnoweb-1.vim +++ b/syntax/rnoweb-1.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'r-lang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'r-lang', 'syntax/rnoweb.vim') finish endif diff --git a/syntax/rnoweb-2.vim b/syntax/rnoweb-2.vim index 49aa841a..5e82bbae 100644 --- a/syntax/rnoweb-2.vim +++ b/syntax/rnoweb-2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rnoweb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rnoweb', 'syntax/rnoweb-2.vim') finish endif diff --git a/syntax/robots.vim b/syntax/robots.vim index 667423d7..3b20260e 100644 --- a/syntax/robots.vim +++ b/syntax/robots.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'robots') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'robots', 'syntax/robots.vim') finish endif diff --git a/syntax/rpcgen.vim b/syntax/rpcgen.vim index 1990f7a4..3714ec7f 100644 --- a/syntax/rpcgen.vim +++ b/syntax/rpcgen.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rpcgen') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rpcgen', 'syntax/rpcgen.vim') finish endif diff --git a/syntax/rpl.vim b/syntax/rpl.vim index 7a4d3fc8..eed21700 100644 --- a/syntax/rpl.vim +++ b/syntax/rpl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rpl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rpl', 'syntax/rpl.vim') finish endif diff --git a/syntax/rrst.vim b/syntax/rrst.vim index 426df72b..99da4cfd 100644 --- a/syntax/rrst.vim +++ b/syntax/rrst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rrst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rrst', 'syntax/rrst.vim') finish endif diff --git a/syntax/rst.vim b/syntax/rst.vim index 08517f72..22b6ac59 100644 --- a/syntax/rst.vim +++ b/syntax/rst.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rst') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rst', 'syntax/rst.vim') finish endif diff --git a/syntax/rtf.vim b/syntax/rtf.vim index b3f01274..a860a5f0 100644 --- a/syntax/rtf.vim +++ b/syntax/rtf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rtf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rtf', 'syntax/rtf.vim') finish endif diff --git a/syntax/ruby.vim b/syntax/ruby.vim index 54dc11ac..4b962fa1 100644 --- a/syntax/ruby.vim +++ b/syntax/ruby.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ruby') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ruby', 'syntax/ruby.vim') finish endif diff --git a/syntax/rust.vim b/syntax/rust.vim index a0d01d53..05cd8f09 100644 --- a/syntax/rust.vim +++ b/syntax/rust.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'rust') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'rust', 'syntax/rust.vim') finish endif diff --git a/syntax/samba.vim b/syntax/samba.vim index 68fedc1c..a0f23381 100644 --- a/syntax/samba.vim +++ b/syntax/samba.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'samba') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'samba', 'syntax/samba.vim') finish endif diff --git a/syntax/sas.vim b/syntax/sas.vim index 505c1129..b4969b0d 100644 --- a/syntax/sas.vim +++ b/syntax/sas.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sas') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sas', 'syntax/sas.vim') finish endif diff --git a/syntax/sass.vim b/syntax/sass.vim index 12b82eb1..c07a3e92 100644 --- a/syntax/sass.vim +++ b/syntax/sass.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sass') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sass', 'syntax/sass.vim') finish endif diff --git a/syntax/sather.vim b/syntax/sather.vim index c9666be3..c5f37455 100644 --- a/syntax/sather.vim +++ b/syntax/sather.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sather') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sather', 'syntax/sather.vim') finish endif diff --git a/syntax/sbt.vim b/syntax/sbt.vim index f8dd9a0e..10588827 100644 --- a/syntax/sbt.vim +++ b/syntax/sbt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sbt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sbt', 'syntax/sbt.vim') finish endif diff --git a/syntax/scala.vim b/syntax/scala.vim index 5188cefa..6f802f3c 100644 --- a/syntax/scala.vim +++ b/syntax/scala.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scala', 'syntax/scala.vim') finish endif diff --git a/syntax/scheme.vim b/syntax/scheme.vim index 63ffe7a6..8e991aa9 100644 --- a/syntax/scheme.vim +++ b/syntax/scheme.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scheme') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scheme', 'syntax/scheme.vim') finish endif diff --git a/syntax/scilab.vim b/syntax/scilab.vim index b82bf316..366b390d 100644 --- a/syntax/scilab.vim +++ b/syntax/scilab.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scilab') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scilab', 'syntax/scilab.vim') finish endif diff --git a/syntax/screen.vim b/syntax/screen.vim index 156ab486..3f0abc52 100644 --- a/syntax/screen.vim +++ b/syntax/screen.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'screen') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'screen', 'syntax/screen.vim') finish endif diff --git a/syntax/scss.vim b/syntax/scss.vim index 18f6ca26..6b638bf7 100644 --- a/syntax/scss.vim +++ b/syntax/scss.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'scss') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'scss', 'syntax/scss.vim') finish endif diff --git a/syntax/sd.vim b/syntax/sd.vim index 7d93112f..3e87c2d2 100644 --- a/syntax/sd.vim +++ b/syntax/sd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sd', 'syntax/sd.vim') finish endif diff --git a/syntax/sdc.vim b/syntax/sdc.vim index 3d055fb5..fbac4b76 100644 --- a/syntax/sdc.vim +++ b/syntax/sdc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sdc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sdc', 'syntax/sdc.vim') finish endif diff --git a/syntax/sdl.vim b/syntax/sdl.vim index 5531cfe0..172dffd0 100644 --- a/syntax/sdl.vim +++ b/syntax/sdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sdl', 'syntax/sdl.vim') finish endif diff --git a/syntax/sed.vim b/syntax/sed.vim index d5ccb5be..875c3f89 100644 --- a/syntax/sed.vim +++ b/syntax/sed.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sed') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sed', 'syntax/sed.vim') finish endif diff --git a/syntax/sensors.vim b/syntax/sensors.vim index 21a9d5c9..fd9d0f2f 100644 --- a/syntax/sensors.vim +++ b/syntax/sensors.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sensors') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sensors', 'syntax/sensors.vim') finish endif diff --git a/syntax/services.vim b/syntax/services.vim index 70a93527..98bb60d6 100644 --- a/syntax/services.vim +++ b/syntax/services.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'services') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'services', 'syntax/services.vim') finish endif diff --git a/syntax/setserial.vim b/syntax/setserial.vim index 94b78fa0..86eaffc9 100644 --- a/syntax/setserial.vim +++ b/syntax/setserial.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'setserial') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'setserial', 'syntax/setserial.vim') finish endif diff --git a/syntax/sexplib.vim b/syntax/sexplib.vim index 14e02b6d..cc706736 100644 --- a/syntax/sexplib.vim +++ b/syntax/sexplib.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'ocaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'ocaml', 'syntax/sexplib.vim') finish endif diff --git a/syntax/sh.vim b/syntax/sh.vim index 8be86a84..7292ec5d 100644 --- a/syntax/sh.vim +++ b/syntax/sh.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sh') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sh', 'syntax/sh.vim') finish endif diff --git a/syntax/sieve.vim b/syntax/sieve.vim index 4924e30a..baacb27a 100644 --- a/syntax/sieve.vim +++ b/syntax/sieve.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sieve') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sieve', 'syntax/sieve.vim') finish endif diff --git a/syntax/sil.vim b/syntax/sil.vim index 70884ddc..e0f874fe 100644 --- a/syntax/sil.vim +++ b/syntax/sil.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sil') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sil', 'syntax/sil.vim') finish endif diff --git a/syntax/simula.vim b/syntax/simula.vim index 4ed4b65c..065e33a4 100644 --- a/syntax/simula.vim +++ b/syntax/simula.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'simula') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'simula', 'syntax/simula.vim') finish endif diff --git a/syntax/sinda.vim b/syntax/sinda.vim index 48ea26e2..4f9c9947 100644 --- a/syntax/sinda.vim +++ b/syntax/sinda.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sinda') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sinda', 'syntax/sinda.vim') finish endif diff --git a/syntax/sisu.vim b/syntax/sisu.vim index e858ad58..b372cb09 100644 --- a/syntax/sisu.vim +++ b/syntax/sisu.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sisu') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sisu', 'syntax/sisu.vim') finish endif diff --git a/syntax/skill.vim b/syntax/skill.vim index ae10e3c5..c8fe9e21 100644 --- a/syntax/skill.vim +++ b/syntax/skill.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'skill') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'skill', 'syntax/skill.vim') finish endif diff --git a/syntax/slang.vim b/syntax/slang.vim index 54ed5f2c..eef4985f 100644 --- a/syntax/slang.vim +++ b/syntax/slang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slang') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slang', 'syntax/slang.vim') finish endif diff --git a/syntax/slice.vim b/syntax/slice.vim index 5588cd56..c6fbc4c8 100644 --- a/syntax/slice.vim +++ b/syntax/slice.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slice') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slice', 'syntax/slice.vim') finish endif diff --git a/syntax/slim.vim b/syntax/slim.vim index bf09698a..99f51004 100644 --- a/syntax/slim.vim +++ b/syntax/slim.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slim') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slim', 'syntax/slim.vim') finish endif diff --git a/syntax/slime.vim b/syntax/slime.vim index 169b20c7..f8d77b58 100644 --- a/syntax/slime.vim +++ b/syntax/slime.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slime') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slime', 'syntax/slime.vim') finish endif diff --git a/syntax/slpconf.vim b/syntax/slpconf.vim index 9484c333..e7777ba9 100644 --- a/syntax/slpconf.vim +++ b/syntax/slpconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slpconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slpconf', 'syntax/slpconf.vim') finish endif diff --git a/syntax/slpreg.vim b/syntax/slpreg.vim index ffee9bf8..efbb1f65 100644 --- a/syntax/slpreg.vim +++ b/syntax/slpreg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slpreg') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slpreg', 'syntax/slpreg.vim') finish endif diff --git a/syntax/slpspi.vim b/syntax/slpspi.vim index f8cbde48..32412bdf 100644 --- a/syntax/slpspi.vim +++ b/syntax/slpspi.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slpspi') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slpspi', 'syntax/slpspi.vim') finish endif diff --git a/syntax/slrnrc.vim b/syntax/slrnrc.vim index 37d91d71..0fa14388 100644 --- a/syntax/slrnrc.vim +++ b/syntax/slrnrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slrnrc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slrnrc', 'syntax/slrnrc.vim') finish endif diff --git a/syntax/slrnsc.vim b/syntax/slrnsc.vim index 9fa8b57e..2b1ca816 100644 --- a/syntax/slrnsc.vim +++ b/syntax/slrnsc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'slrnsc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'slrnsc', 'syntax/slrnsc.vim') finish endif diff --git a/syntax/sm.vim b/syntax/sm.vim index 0180b59f..b2b3b58b 100644 --- a/syntax/sm.vim +++ b/syntax/sm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sm', 'syntax/sm.vim') finish endif diff --git a/syntax/smarty.vim b/syntax/smarty.vim index f90cab63..90584cff 100644 --- a/syntax/smarty.vim +++ b/syntax/smarty.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'smarty') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'smarty', 'syntax/smarty.vim') finish endif diff --git a/syntax/smcl.vim b/syntax/smcl.vim index 8f844578..851e9906 100644 --- a/syntax/smcl.vim +++ b/syntax/smcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'smcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'smcl', 'syntax/smcl.vim') finish endif diff --git a/syntax/smhl.vim b/syntax/smhl.vim index 060aa0e7..b990d21e 100644 --- a/syntax/smhl.vim +++ b/syntax/smhl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/smhl.vim') finish endif diff --git a/syntax/smith.vim b/syntax/smith.vim index 6dd679e2..c2eef022 100644 --- a/syntax/smith.vim +++ b/syntax/smith.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'smith') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'smith', 'syntax/smith.vim') finish endif diff --git a/syntax/sml.vim b/syntax/sml.vim index 283f5339..10bca3ba 100644 --- a/syntax/sml.vim +++ b/syntax/sml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sml', 'syntax/sml.vim') finish endif diff --git a/syntax/smt2.vim b/syntax/smt2.vim index adb88d28..eb89e375 100644 --- a/syntax/smt2.vim +++ b/syntax/smt2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'smt2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'smt2', 'syntax/smt2.vim') finish endif diff --git a/syntax/snobol4.vim b/syntax/snobol4.vim index cadcafb8..a74af9de 100644 --- a/syntax/snobol4.vim +++ b/syntax/snobol4.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'snobol4') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'snobol4', 'syntax/snobol4.vim') finish endif diff --git a/syntax/solidity.vim b/syntax/solidity.vim index 3be7ed15..49ef7a31 100644 --- a/syntax/solidity.vim +++ b/syntax/solidity.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'solidity') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'solidity', 'syntax/solidity.vim') finish endif diff --git a/syntax/spec.vim b/syntax/spec.vim index 17b5a2b8..5d7b1efc 100644 --- a/syntax/spec.vim +++ b/syntax/spec.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'spec') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'spec', 'syntax/spec.vim') finish endif diff --git a/syntax/spice.vim b/syntax/spice.vim index d530fbbd..4107cc5d 100644 --- a/syntax/spice.vim +++ b/syntax/spice.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'spice') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'spice', 'syntax/spice.vim') finish endif diff --git a/syntax/spup.vim b/syntax/spup.vim index 7b25c2be..943e0e55 100644 --- a/syntax/spup.vim +++ b/syntax/spup.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'spup') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'spup', 'syntax/spup.vim') finish endif diff --git a/syntax/spyce.vim b/syntax/spyce.vim index 5a60aedb..2aa8bce5 100644 --- a/syntax/spyce.vim +++ b/syntax/spyce.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'spyce') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'spyce', 'syntax/spyce.vim') finish endif diff --git a/syntax/sql.vim b/syntax/sql.vim index a9eb4517..dcc61a93 100644 --- a/syntax/sql.vim +++ b/syntax/sql.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sql', 'syntax/sql.vim') finish endif diff --git a/syntax/sqlj.vim b/syntax/sqlj.vim index f44a696f..8b19efed 100644 --- a/syntax/sqlj.vim +++ b/syntax/sqlj.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sqlj') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sqlj', 'syntax/sqlj.vim') finish endif diff --git a/syntax/sqloracle.vim b/syntax/sqloracle.vim index ee6276ca..a3f32d12 100644 --- a/syntax/sqloracle.vim +++ b/syntax/sqloracle.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sql') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sql', 'syntax/sqloracle.vim') finish endif diff --git a/syntax/sqr.vim b/syntax/sqr.vim index a4f022a2..c837a797 100644 --- a/syntax/sqr.vim +++ b/syntax/sqr.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sqr') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sqr', 'syntax/sqr.vim') finish endif diff --git a/syntax/squid.vim b/syntax/squid.vim index e23d1884..0928d163 100644 --- a/syntax/squid.vim +++ b/syntax/squid.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'squid') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'squid', 'syntax/squid.vim') finish endif diff --git a/syntax/srec.vim b/syntax/srec.vim index e8b80804..6ca99e35 100644 --- a/syntax/srec.vim +++ b/syntax/srec.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'srec') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'srec', 'syntax/srec.vim') finish endif diff --git a/syntax/sshconfig.vim b/syntax/sshconfig.vim index 0a70e501..2c7bc896 100644 --- a/syntax/sshconfig.vim +++ b/syntax/sshconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sshconfig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sshconfig', 'syntax/sshconfig.vim') finish endif diff --git a/syntax/sshdconfig.vim b/syntax/sshdconfig.vim index 0ae86bab..ffd50dae 100644 --- a/syntax/sshdconfig.vim +++ b/syntax/sshdconfig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sshdconfig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sshdconfig', 'syntax/sshdconfig.vim') finish endif diff --git a/syntax/st.vim b/syntax/st.vim index 70c0d9cc..5ad026bf 100644 --- a/syntax/st.vim +++ b/syntax/st.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'st') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'st', 'syntax/st.vim') finish endif diff --git a/syntax/stata.vim b/syntax/stata.vim index 26098449..4b87ad72 100644 --- a/syntax/stata.vim +++ b/syntax/stata.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'stata') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'stata', 'syntax/stata.vim') finish endif diff --git a/syntax/stp.vim b/syntax/stp.vim index 53236246..36da7bb5 100644 --- a/syntax/stp.vim +++ b/syntax/stp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'stp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'stp', 'syntax/stp.vim') finish endif diff --git a/syntax/stylus.vim b/syntax/stylus.vim index d66a6037..9ddb4b82 100644 --- a/syntax/stylus.vim +++ b/syntax/stylus.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'stylus') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'stylus', 'syntax/stylus.vim') finish endif diff --git a/syntax/sudoers.vim b/syntax/sudoers.vim index 3e4f823f..1d65f011 100644 --- a/syntax/sudoers.vim +++ b/syntax/sudoers.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sudoers') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sudoers', 'syntax/sudoers.vim') finish endif diff --git a/syntax/svelte.vim b/syntax/svelte.vim index 3a5360f8..ce454db0 100644 --- a/syntax/svelte.vim +++ b/syntax/svelte.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'svelte') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'svelte', 'syntax/svelte.vim') finish endif diff --git a/syntax/svg.vim b/syntax/svg.vim index 931b259f..e4724259 100644 --- a/syntax/svg.vim +++ b/syntax/svg.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'svg') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'svg', 'syntax/svg.vim') finish endif diff --git a/syntax/svn.vim b/syntax/svn.vim index 4780a2ef..cab1922f 100644 --- a/syntax/svn.vim +++ b/syntax/svn.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'svn') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'svn', 'syntax/svn.vim') finish endif diff --git a/syntax/swift.vim b/syntax/swift.vim index 4290139d..122c9ec8 100644 --- a/syntax/swift.vim +++ b/syntax/swift.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'swift') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'swift', 'syntax/swift.vim') finish endif diff --git a/syntax/swiftgyb.vim b/syntax/swiftgyb.vim index 6927a669..c9ea345b 100644 --- a/syntax/swiftgyb.vim +++ b/syntax/swiftgyb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'swiftgyb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'swiftgyb', 'syntax/swiftgyb.vim') finish endif diff --git a/syntax/sxhkdrc.vim b/syntax/sxhkdrc.vim index 6b4e3fae..b72b8600 100644 --- a/syntax/sxhkdrc.vim +++ b/syntax/sxhkdrc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sxhkd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sxhkd', 'syntax/sxhkdrc.vim') finish endif diff --git a/syntax/sysctl.vim b/syntax/sysctl.vim index 79ddba0c..74692c75 100644 --- a/syntax/sysctl.vim +++ b/syntax/sysctl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sysctl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sysctl', 'syntax/sysctl.vim') finish endif diff --git a/syntax/systemd.vim b/syntax/systemd.vim index 8c7aed27..ab9c4cac 100644 --- a/syntax/systemd.vim +++ b/syntax/systemd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'systemd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'systemd', 'syntax/systemd.vim') finish endif diff --git a/syntax/systemverilog.vim b/syntax/systemverilog.vim index 9c9a8249..83715406 100644 --- a/syntax/systemverilog.vim +++ b/syntax/systemverilog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'systemverilog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'systemverilog', 'syntax/systemverilog.vim') finish endif diff --git a/syntax/tablegen.vim b/syntax/tablegen.vim index 6eee4378..43d9cc62 100644 --- a/syntax/tablegen.vim +++ b/syntax/tablegen.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'llvm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'syntax/tablegen.vim') finish endif diff --git a/syntax/tads.vim b/syntax/tads.vim index 8cd1ef44..9baf6658 100644 --- a/syntax/tads.vim +++ b/syntax/tads.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tads') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tads', 'syntax/tads.vim') finish endif diff --git a/syntax/tags.vim b/syntax/tags.vim index 4db68929..b32424bf 100644 --- a/syntax/tags.vim +++ b/syntax/tags.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tags') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tags', 'syntax/tags.vim') finish endif diff --git a/syntax/tak.vim b/syntax/tak.vim index 5a58401d..1bd4612c 100644 --- a/syntax/tak.vim +++ b/syntax/tak.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tak') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tak', 'syntax/tak.vim') finish endif diff --git a/syntax/tap.vim b/syntax/tap.vim index a7ed6d82..974bd27a 100644 --- a/syntax/tap.vim +++ b/syntax/tap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/tap.vim') finish endif diff --git a/syntax/taskdata.vim b/syntax/taskdata.vim index 0f1a4ef9..f2a03a75 100644 --- a/syntax/taskdata.vim +++ b/syntax/taskdata.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'taskdata') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'taskdata', 'syntax/taskdata.vim') finish endif diff --git a/syntax/taskedit.vim b/syntax/taskedit.vim index 25304b3f..f8e2d501 100644 --- a/syntax/taskedit.vim +++ b/syntax/taskedit.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'taskedit') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'taskedit', 'syntax/taskedit.vim') finish endif diff --git a/syntax/tcl.vim b/syntax/tcl.vim index 73a9cf40..73d1e607 100644 --- a/syntax/tcl.vim +++ b/syntax/tcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tcl', 'syntax/tcl.vim') finish endif diff --git a/syntax/template.vim b/syntax/template.vim index f0146c3d..fd49d5b0 100644 --- a/syntax/template.vim +++ b/syntax/template.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'template') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'template', 'syntax/template.vim') finish endif diff --git a/syntax/teraterm.vim b/syntax/teraterm.vim index 12e055a8..5ba95d31 100644 --- a/syntax/teraterm.vim +++ b/syntax/teraterm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'teraterm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'teraterm', 'syntax/teraterm.vim') finish endif diff --git a/syntax/terminfo.vim b/syntax/terminfo.vim index 98256c80..9fc3ae68 100644 --- a/syntax/terminfo.vim +++ b/syntax/terminfo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'terminfo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'terminfo', 'syntax/terminfo.vim') finish endif diff --git a/syntax/terraform.vim b/syntax/terraform.vim index 7acb8512..35beb58f 100644 --- a/syntax/terraform.vim +++ b/syntax/terraform.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'terraform') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'terraform', 'syntax/terraform.vim') finish endif diff --git a/syntax/texinfo.vim b/syntax/texinfo.vim index b10a4eb7..fa5659ad 100644 --- a/syntax/texinfo.vim +++ b/syntax/texinfo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'texinfo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'texinfo', 'syntax/texinfo.vim') finish endif diff --git a/syntax/texmf.vim b/syntax/texmf.vim index 7023714d..2ecde7bd 100644 --- a/syntax/texmf.vim +++ b/syntax/texmf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'texmf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'texmf', 'syntax/texmf.vim') finish endif diff --git a/syntax/textile.vim b/syntax/textile.vim index 8153f21a..dfd82f93 100644 --- a/syntax/textile.vim +++ b/syntax/textile.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'textile') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'textile', 'syntax/textile.vim') finish endif diff --git a/syntax/tf.vim b/syntax/tf.vim index f033c4c6..91c0622a 100644 --- a/syntax/tf.vim +++ b/syntax/tf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tf', 'syntax/tf.vim') finish endif diff --git a/syntax/thrift.vim b/syntax/thrift.vim index f3e8a20e..ebc44a47 100644 --- a/syntax/thrift.vim +++ b/syntax/thrift.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'thrift') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'thrift', 'syntax/thrift.vim') finish endif diff --git a/syntax/tidy.vim b/syntax/tidy.vim index 437e5493..94f1a63a 100644 --- a/syntax/tidy.vim +++ b/syntax/tidy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tidy') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tidy', 'syntax/tidy.vim') finish endif diff --git a/syntax/tilde.vim b/syntax/tilde.vim index 3e70d934..c5a19268 100644 --- a/syntax/tilde.vim +++ b/syntax/tilde.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tilde') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tilde', 'syntax/tilde.vim') finish endif diff --git a/syntax/tli.vim b/syntax/tli.vim index e8d6a65e..5b790a94 100644 --- a/syntax/tli.vim +++ b/syntax/tli.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tli') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tli', 'syntax/tli.vim') finish endif diff --git a/syntax/tmux.vim b/syntax/tmux.vim index 46336f25..4bdd3e9d 100644 --- a/syntax/tmux.vim +++ b/syntax/tmux.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tmux') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tmux', 'syntax/tmux.vim') finish endif diff --git a/syntax/toml.vim b/syntax/toml.vim index cf2dfd68..9540d2c5 100644 --- a/syntax/toml.vim +++ b/syntax/toml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'toml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'toml', 'syntax/toml.vim') finish endif diff --git a/syntax/tpp.vim b/syntax/tpp.vim index 9916af80..f9503e21 100644 --- a/syntax/tpp.vim +++ b/syntax/tpp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tpp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tpp', 'syntax/tpp.vim') finish endif diff --git a/syntax/tptp.vim b/syntax/tptp.vim index 70224eee..c0a010fa 100644 --- a/syntax/tptp.vim +++ b/syntax/tptp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tptp') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tptp', 'syntax/tptp.vim') finish endif diff --git a/syntax/trasys.vim b/syntax/trasys.vim index 959d13f2..d3fd5770 100644 --- a/syntax/trasys.vim +++ b/syntax/trasys.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'trasys') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'trasys', 'syntax/trasys.vim') finish endif diff --git a/syntax/treetop.vim b/syntax/treetop.vim index 2728e07c..a2f7df79 100644 --- a/syntax/treetop.vim +++ b/syntax/treetop.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'treetop') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'treetop', 'syntax/treetop.vim') finish endif diff --git a/syntax/trustees.vim b/syntax/trustees.vim index 316cf791..aec627e2 100644 --- a/syntax/trustees.vim +++ b/syntax/trustees.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'trustees') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'trustees', 'syntax/trustees.vim') finish endif diff --git a/syntax/tsalt.vim b/syntax/tsalt.vim index 37bb8140..65bec6f0 100644 --- a/syntax/tsalt.vim +++ b/syntax/tsalt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tsalt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tsalt', 'syntax/tsalt.vim') finish endif diff --git a/syntax/tsscl.vim b/syntax/tsscl.vim index d12ec648..cbcb6d53 100644 --- a/syntax/tsscl.vim +++ b/syntax/tsscl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tsscl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tsscl', 'syntax/tsscl.vim') finish endif diff --git a/syntax/tssgm.vim b/syntax/tssgm.vim index f478b6c3..f1ca5f73 100644 --- a/syntax/tssgm.vim +++ b/syntax/tssgm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tssgm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tssgm', 'syntax/tssgm.vim') finish endif diff --git a/syntax/tssop.vim b/syntax/tssop.vim index 1991abc6..786ce998 100644 --- a/syntax/tssop.vim +++ b/syntax/tssop.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'tssop') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'tssop', 'syntax/tssop.vim') finish endif diff --git a/syntax/tt2.vim b/syntax/tt2.vim index 0dbc4ffc..4bce48c4 100644 --- a/syntax/tt2.vim +++ b/syntax/tt2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/tt2.vim') finish endif diff --git a/syntax/tt2html.vim b/syntax/tt2html.vim index 1cbd5cae..987b4aee 100644 --- a/syntax/tt2html.vim +++ b/syntax/tt2html.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/tt2html.vim') finish endif diff --git a/syntax/tt2js.vim b/syntax/tt2js.vim index cf260af1..2222be14 100644 --- a/syntax/tt2js.vim +++ b/syntax/tt2js.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/tt2js.vim') finish endif diff --git a/syntax/twig.vim b/syntax/twig.vim index 4f93de08..43c7d43e 100644 --- a/syntax/twig.vim +++ b/syntax/twig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'twig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'twig', 'syntax/twig.vim') finish endif diff --git a/syntax/typescript.vim b/syntax/typescript.vim index 27a63d07..284abf00 100644 --- a/syntax/typescript.vim +++ b/syntax/typescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/typescript.vim') finish endif diff --git a/syntax/typescriptreact.vim b/syntax/typescriptreact.vim index 8cf19f54..123b4caf 100644 --- a/syntax/typescriptreact.vim +++ b/syntax/typescriptreact.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/typescriptreact.vim') finish endif diff --git a/syntax/uc.vim b/syntax/uc.vim index 1f204af3..b7982fcc 100644 --- a/syntax/uc.vim +++ b/syntax/uc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'uc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'uc', 'syntax/uc.vim') finish endif diff --git a/syntax/udevconf.vim b/syntax/udevconf.vim index a1e8dd5a..105e38b7 100644 --- a/syntax/udevconf.vim +++ b/syntax/udevconf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'udevconf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'udevconf', 'syntax/udevconf.vim') finish endif diff --git a/syntax/udevperm.vim b/syntax/udevperm.vim index b80463e3..abdc122f 100644 --- a/syntax/udevperm.vim +++ b/syntax/udevperm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'udevperm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'udevperm', 'syntax/udevperm.vim') finish endif diff --git a/syntax/uil.vim b/syntax/uil.vim index 248d8332..99d277bb 100644 --- a/syntax/uil.vim +++ b/syntax/uil.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'uil') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'uil', 'syntax/uil.vim') finish endif diff --git a/syntax/unison.vim b/syntax/unison.vim index 5fea116d..0fe4030e 100644 --- a/syntax/unison.vim +++ b/syntax/unison.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'unison') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'unison', 'syntax/unison.vim') finish endif diff --git a/syntax/updatedb.vim b/syntax/updatedb.vim index c3d0626b..de8e7d74 100644 --- a/syntax/updatedb.vim +++ b/syntax/updatedb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'updatedb') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'updatedb', 'syntax/updatedb.vim') finish endif diff --git a/syntax/upstart.vim b/syntax/upstart.vim index 8b53ff59..e2be61d1 100644 --- a/syntax/upstart.vim +++ b/syntax/upstart.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'upstart') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'upstart', 'syntax/upstart.vim') finish endif diff --git a/syntax/upstreamdat.vim b/syntax/upstreamdat.vim index f4c55e4c..29dc0206 100644 --- a/syntax/upstreamdat.vim +++ b/syntax/upstreamdat.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'upstreamdat') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'upstreamdat', 'syntax/upstreamdat.vim') finish endif diff --git a/syntax/upstreaminstalllog.vim b/syntax/upstreaminstalllog.vim index 64abc788..11d52846 100644 --- a/syntax/upstreaminstalllog.vim +++ b/syntax/upstreaminstalllog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'upstreaminstalllog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'upstreaminstalllog', 'syntax/upstreaminstalllog.vim') finish endif diff --git a/syntax/upstreamlog.vim b/syntax/upstreamlog.vim index 0f9431dd..f4c2dc82 100644 --- a/syntax/upstreamlog.vim +++ b/syntax/upstreamlog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'upstreamlog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'upstreamlog', 'syntax/upstreamlog.vim') finish endif diff --git a/syntax/usserverlog.vim b/syntax/usserverlog.vim index 891e91e0..a36219cf 100644 --- a/syntax/usserverlog.vim +++ b/syntax/usserverlog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'usserverlog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'usserverlog', 'syntax/usserverlog.vim') finish endif diff --git a/syntax/usw2kagtlog.vim b/syntax/usw2kagtlog.vim index 8cb5370f..e50d2f8a 100644 --- a/syntax/usw2kagtlog.vim +++ b/syntax/usw2kagtlog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'usw2kagtlog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'usw2kagtlog', 'syntax/usw2kagtlog.vim') finish endif diff --git a/syntax/vala.vim b/syntax/vala.vim index 75b26974..9e7d2cfe 100644 --- a/syntax/vala.vim +++ b/syntax/vala.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vala') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vala', 'syntax/vala.vim') finish endif diff --git a/syntax/vb.vim b/syntax/vb.vim index b2c4b94c..0641dc1e 100644 --- a/syntax/vb.vim +++ b/syntax/vb.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'visual-basic') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'visual-basic', 'syntax/vb.vim') finish endif diff --git a/syntax/vbnet.vim b/syntax/vbnet.vim index 8acc93c3..80bdd393 100644 --- a/syntax/vbnet.vim +++ b/syntax/vbnet.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vbnet') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vbnet', 'syntax/vbnet.vim') finish endif diff --git a/syntax/vcl.vim b/syntax/vcl.vim index dfe04931..19d80de8 100644 --- a/syntax/vcl.vim +++ b/syntax/vcl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vcl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vcl', 'syntax/vcl.vim') finish endif diff --git a/syntax/velocity.vim b/syntax/velocity.vim index 6a074de5..b96aea50 100644 --- a/syntax/velocity.vim +++ b/syntax/velocity.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'velocity') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'velocity', 'syntax/velocity.vim') finish endif diff --git a/syntax/vera.vim b/syntax/vera.vim index b8027bc8..09a6b846 100644 --- a/syntax/vera.vim +++ b/syntax/vera.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vera') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vera', 'syntax/vera.vim') finish endif diff --git a/syntax/verilog.vim b/syntax/verilog.vim index fec47f6e..15b55c21 100644 --- a/syntax/verilog.vim +++ b/syntax/verilog.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'verilog') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'verilog', 'syntax/verilog.vim') finish endif diff --git a/syntax/verilogams.vim b/syntax/verilogams.vim index aa81b468..fde28020 100644 --- a/syntax/verilogams.vim +++ b/syntax/verilogams.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'verilogams') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'verilogams', 'syntax/verilogams.vim') finish endif diff --git a/syntax/vgrindefs.vim b/syntax/vgrindefs.vim index 5c0a03e0..4ecf946b 100644 --- a/syntax/vgrindefs.vim +++ b/syntax/vgrindefs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vgrindefs') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vgrindefs', 'syntax/vgrindefs.vim') finish endif diff --git a/syntax/vhdl.vim b/syntax/vhdl.vim index 3b1e258e..32c4d8d7 100644 --- a/syntax/vhdl.vim +++ b/syntax/vhdl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vhdl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vhdl', 'syntax/vhdl.vim') finish endif diff --git a/syntax/vimgo.vim b/syntax/vimgo.vim index d67b1023..66b9f182 100644 --- a/syntax/vimgo.vim +++ b/syntax/vimgo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'go') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'go', 'syntax/vimgo.vim') finish endif diff --git a/syntax/viminfo.vim b/syntax/viminfo.vim index 1eada7ff..b5b91f0f 100644 --- a/syntax/viminfo.vim +++ b/syntax/viminfo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'viminfo') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'viminfo', 'syntax/viminfo.vim') finish endif diff --git a/syntax/vlang.vim b/syntax/vlang.vim index 77578445..2304ba52 100644 --- a/syntax/vlang.vim +++ b/syntax/vlang.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'v') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'v', 'syntax/vlang.vim') finish endif diff --git a/syntax/vmasm.vim b/syntax/vmasm.vim index 1e66acb8..e59630a0 100644 --- a/syntax/vmasm.vim +++ b/syntax/vmasm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vmasm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vmasm', 'syntax/vmasm.vim') finish endif diff --git a/syntax/voscm.vim b/syntax/voscm.vim index d640b608..cdc99628 100644 --- a/syntax/voscm.vim +++ b/syntax/voscm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'voscm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'voscm', 'syntax/voscm.vim') finish endif diff --git a/syntax/vrml.vim b/syntax/vrml.vim index 7c1b8907..720c6f61 100644 --- a/syntax/vrml.vim +++ b/syntax/vrml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vrml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vrml', 'syntax/vrml.vim') finish endif diff --git a/syntax/vroom.vim b/syntax/vroom.vim index 7a3047ba..b7e26e20 100644 --- a/syntax/vroom.vim +++ b/syntax/vroom.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vroom') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vroom', 'syntax/vroom.vim') finish endif diff --git a/syntax/vue.vim b/syntax/vue.vim index 1f3d5d67..0dbb2de9 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'vue') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'vue', 'syntax/vue.vim') finish endif diff --git a/syntax/wast.vim b/syntax/wast.vim index 4d200a94..db81895a 100644 --- a/syntax/wast.vim +++ b/syntax/wast.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wast') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wast', 'syntax/wast.vim') finish endif diff --git a/syntax/webmacro.vim b/syntax/webmacro.vim index df4fa69e..f6f8f2b3 100644 --- a/syntax/webmacro.vim +++ b/syntax/webmacro.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'webmacro') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'webmacro', 'syntax/webmacro.vim') finish endif diff --git a/syntax/wget.vim b/syntax/wget.vim index 3179eb48..a52d7d85 100644 --- a/syntax/wget.vim +++ b/syntax/wget.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wget') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wget', 'syntax/wget.vim') finish endif diff --git a/syntax/winbatch.vim b/syntax/winbatch.vim index 16052fd0..d6d68cc3 100644 --- a/syntax/winbatch.vim +++ b/syntax/winbatch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'winbatch') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'winbatch', 'syntax/winbatch.vim') finish endif diff --git a/syntax/wml.vim b/syntax/wml.vim index ff61af84..7de17842 100644 --- a/syntax/wml.vim +++ b/syntax/wml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wml', 'syntax/wml.vim') finish endif diff --git a/syntax/wsh.vim b/syntax/wsh.vim index 363407e6..9dadb3c5 100644 --- a/syntax/wsh.vim +++ b/syntax/wsh.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wsh') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wsh', 'syntax/wsh.vim') finish endif diff --git a/syntax/wsml.vim b/syntax/wsml.vim index 669ea8fb..ee9b1709 100644 --- a/syntax/wsml.vim +++ b/syntax/wsml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wsml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wsml', 'syntax/wsml.vim') finish endif diff --git a/syntax/wvdial.vim b/syntax/wvdial.vim index 41884b2b..939114b4 100644 --- a/syntax/wvdial.vim +++ b/syntax/wvdial.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'wvdial') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'wvdial', 'syntax/wvdial.vim') finish endif diff --git a/syntax/xdc.vim b/syntax/xdc.vim index 382658ad..c951d3e7 100644 --- a/syntax/xdc.vim +++ b/syntax/xdc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xdc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xdc', 'syntax/xdc.vim') finish endif diff --git a/syntax/xdefaults.vim b/syntax/xdefaults.vim index 492beb82..41d23494 100644 --- a/syntax/xdefaults.vim +++ b/syntax/xdefaults.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xdefaults') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xdefaults', 'syntax/xdefaults.vim') finish endif diff --git a/syntax/xf86conf.vim b/syntax/xf86conf.vim index e12bf47b..ef2bee2b 100644 --- a/syntax/xf86conf.vim +++ b/syntax/xf86conf.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xf86conf') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xf86conf', 'syntax/xf86conf.vim') finish endif diff --git a/syntax/xhtml.vim b/syntax/xhtml.vim index ae8be9b1..fff29b4d 100644 --- a/syntax/xhtml.vim +++ b/syntax/xhtml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xhtml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xhtml', 'syntax/xhtml.vim') finish endif diff --git a/syntax/xinetd.vim b/syntax/xinetd.vim index b5e26cd7..ac724fd2 100644 --- a/syntax/xinetd.vim +++ b/syntax/xinetd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xinetd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xinetd', 'syntax/xinetd.vim') finish endif diff --git a/syntax/xmath.vim b/syntax/xmath.vim index 19ff4d5b..60834dd0 100644 --- a/syntax/xmath.vim +++ b/syntax/xmath.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xmath') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xmath', 'syntax/xmath.vim') finish endif diff --git a/syntax/xml.vim b/syntax/xml.vim index de19c797..9232403a 100644 --- a/syntax/xml.vim +++ b/syntax/xml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xml', 'syntax/xml.vim') finish endif diff --git a/syntax/xmodmap.vim b/syntax/xmodmap.vim index c9bf7f89..7d35aedb 100644 --- a/syntax/xmodmap.vim +++ b/syntax/xmodmap.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xmodmap') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xmodmap', 'syntax/xmodmap.vim') finish endif diff --git a/syntax/xpm.vim b/syntax/xpm.vim index 123b4e0e..dfc326b0 100644 --- a/syntax/xpm.vim +++ b/syntax/xpm.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xpm') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xpm', 'syntax/xpm.vim') finish endif diff --git a/syntax/xpm2.vim b/syntax/xpm2.vim index 8ed589ae..cd97b0be 100644 --- a/syntax/xpm2.vim +++ b/syntax/xpm2.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xpm2') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xpm2', 'syntax/xpm2.vim') finish endif diff --git a/syntax/xquery.vim b/syntax/xquery.vim index dbb668d3..152ceb1c 100644 --- a/syntax/xquery.vim +++ b/syntax/xquery.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xquery') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xquery', 'syntax/xquery.vim') finish endif diff --git a/syntax/xs.vim b/syntax/xs.vim index d3d33d29..a678cdb8 100644 --- a/syntax/xs.vim +++ b/syntax/xs.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'perl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'perl', 'syntax/xs.vim') finish endif diff --git a/syntax/xsd.vim b/syntax/xsd.vim index e88c8817..2da9e06a 100644 --- a/syntax/xsd.vim +++ b/syntax/xsd.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xsd') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xsd', 'syntax/xsd.vim') finish endif diff --git a/syntax/xsl.vim b/syntax/xsl.vim index 7dc4ccae..568626be 100644 --- a/syntax/xsl.vim +++ b/syntax/xsl.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xsl') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xsl', 'syntax/xsl.vim') finish endif diff --git a/syntax/xslt.vim b/syntax/xslt.vim index c451fdea..b2a8fe54 100644 --- a/syntax/xslt.vim +++ b/syntax/xslt.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'xslt') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'xslt', 'syntax/xslt.vim') finish endif diff --git a/syntax/yacc.vim b/syntax/yacc.vim index 90b2c597..4228e65c 100644 --- a/syntax/yacc.vim +++ b/syntax/yacc.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'yacc') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'yacc', 'syntax/yacc.vim') finish endif diff --git a/syntax/yaml.vim b/syntax/yaml.vim index 1c4a93fd..c0476c0b 100644 --- a/syntax/yaml.vim +++ b/syntax/yaml.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'yaml') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'yaml', 'syntax/yaml.vim') finish endif diff --git a/syntax/yats.vim b/syntax/yats.vim index 5b1a869e..9ab89e52 100644 --- a/syntax/yats.vim +++ b/syntax/yats.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats.vim') finish endif diff --git a/syntax/yats/css.vim b/syntax/yats/css.vim index 3af02cae..1c38cabe 100644 --- a/syntax/yats/css.vim +++ b/syntax/yats/css.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/css.vim') finish endif diff --git a/syntax/yats/dom-document.vim b/syntax/yats/dom-document.vim index 1c6bba99..9e801ba5 100644 --- a/syntax/yats/dom-document.vim +++ b/syntax/yats/dom-document.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/dom-document.vim') finish endif diff --git a/syntax/yats/dom-elem.vim b/syntax/yats/dom-elem.vim index 9de61f66..1ef78462 100644 --- a/syntax/yats/dom-elem.vim +++ b/syntax/yats/dom-elem.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/dom-elem.vim') finish endif diff --git a/syntax/yats/dom-event.vim b/syntax/yats/dom-event.vim index 462c3063..121fd78f 100644 --- a/syntax/yats/dom-event.vim +++ b/syntax/yats/dom-event.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/dom-event.vim') finish endif diff --git a/syntax/yats/dom-form.vim b/syntax/yats/dom-form.vim index d8aae416..9a774c65 100644 --- a/syntax/yats/dom-form.vim +++ b/syntax/yats/dom-form.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/dom-form.vim') finish endif diff --git a/syntax/yats/dom-node.vim b/syntax/yats/dom-node.vim index 21953136..7c603cfb 100644 --- a/syntax/yats/dom-node.vim +++ b/syntax/yats/dom-node.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/dom-node.vim') finish endif diff --git a/syntax/yats/dom-storage.vim b/syntax/yats/dom-storage.vim index f3909a9b..1343cf35 100644 --- a/syntax/yats/dom-storage.vim +++ b/syntax/yats/dom-storage.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/dom-storage.vim') finish endif diff --git a/syntax/yats/ecma-402.vim b/syntax/yats/ecma-402.vim index 8624b5d8..cf03891b 100644 --- a/syntax/yats/ecma-402.vim +++ b/syntax/yats/ecma-402.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/ecma-402.vim') finish endif diff --git a/syntax/yats/es6-array.vim b/syntax/yats/es6-array.vim index 8c8f5255..23009b43 100644 --- a/syntax/yats/es6-array.vim +++ b/syntax/yats/es6-array.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-array.vim') finish endif diff --git a/syntax/yats/es6-date.vim b/syntax/yats/es6-date.vim index 441f6204..db97bcd2 100644 --- a/syntax/yats/es6-date.vim +++ b/syntax/yats/es6-date.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-date.vim') finish endif diff --git a/syntax/yats/es6-function.vim b/syntax/yats/es6-function.vim index cb9bffe7..7466a032 100644 --- a/syntax/yats/es6-function.vim +++ b/syntax/yats/es6-function.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-function.vim') finish endif diff --git a/syntax/yats/es6-json.vim b/syntax/yats/es6-json.vim index 5e10a03a..0969cf95 100644 --- a/syntax/yats/es6-json.vim +++ b/syntax/yats/es6-json.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-json.vim') finish endif diff --git a/syntax/yats/es6-map.vim b/syntax/yats/es6-map.vim index c51f0510..8ed7c0e5 100644 --- a/syntax/yats/es6-map.vim +++ b/syntax/yats/es6-map.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-map.vim') finish endif diff --git a/syntax/yats/es6-math.vim b/syntax/yats/es6-math.vim index 44a11dd1..f3b0180b 100644 --- a/syntax/yats/es6-math.vim +++ b/syntax/yats/es6-math.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-math.vim') finish endif diff --git a/syntax/yats/es6-number.vim b/syntax/yats/es6-number.vim index 09287148..5434e7bc 100644 --- a/syntax/yats/es6-number.vim +++ b/syntax/yats/es6-number.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-number.vim') finish endif diff --git a/syntax/yats/es6-object.vim b/syntax/yats/es6-object.vim index 605d0a86..40dc5806 100644 --- a/syntax/yats/es6-object.vim +++ b/syntax/yats/es6-object.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-object.vim') finish endif diff --git a/syntax/yats/es6-promise.vim b/syntax/yats/es6-promise.vim index 89c6da6e..3c9d0ffc 100644 --- a/syntax/yats/es6-promise.vim +++ b/syntax/yats/es6-promise.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-promise.vim') finish endif diff --git a/syntax/yats/es6-proxy.vim b/syntax/yats/es6-proxy.vim index f74b0471..da059ce1 100644 --- a/syntax/yats/es6-proxy.vim +++ b/syntax/yats/es6-proxy.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-proxy.vim') finish endif diff --git a/syntax/yats/es6-reflect.vim b/syntax/yats/es6-reflect.vim index d83d2f44..60c04d5c 100644 --- a/syntax/yats/es6-reflect.vim +++ b/syntax/yats/es6-reflect.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-reflect.vim') finish endif diff --git a/syntax/yats/es6-regexp.vim b/syntax/yats/es6-regexp.vim index 233d98ff..34e0a207 100644 --- a/syntax/yats/es6-regexp.vim +++ b/syntax/yats/es6-regexp.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-regexp.vim') finish endif diff --git a/syntax/yats/es6-set.vim b/syntax/yats/es6-set.vim index 657d7f8d..4585a370 100644 --- a/syntax/yats/es6-set.vim +++ b/syntax/yats/es6-set.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-set.vim') finish endif diff --git a/syntax/yats/es6-string.vim b/syntax/yats/es6-string.vim index 7db646e0..c9954121 100644 --- a/syntax/yats/es6-string.vim +++ b/syntax/yats/es6-string.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-string.vim') finish endif diff --git a/syntax/yats/es6-symbol.vim b/syntax/yats/es6-symbol.vim index 5f52425a..f90fd7b2 100644 --- a/syntax/yats/es6-symbol.vim +++ b/syntax/yats/es6-symbol.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-symbol.vim') finish endif diff --git a/syntax/yats/event.vim b/syntax/yats/event.vim index 3f9cf8e4..c2e8d326 100644 --- a/syntax/yats/event.vim +++ b/syntax/yats/event.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/event.vim') finish endif diff --git a/syntax/yats/node.vim b/syntax/yats/node.vim index d2e8a4f4..16933398 100644 --- a/syntax/yats/node.vim +++ b/syntax/yats/node.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/node.vim') finish endif diff --git a/syntax/yats/test.vim b/syntax/yats/test.vim index 3a38ef3b..1085939b 100644 --- a/syntax/yats/test.vim +++ b/syntax/yats/test.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/test.vim') finish endif diff --git a/syntax/yats/typescript.vim b/syntax/yats/typescript.vim index 7865168a..411f877d 100644 --- a/syntax/yats/typescript.vim +++ b/syntax/yats/typescript.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/typescript.vim') finish endif diff --git a/syntax/yats/web-blob.vim b/syntax/yats/web-blob.vim index 034a58b2..baf754b5 100644 --- a/syntax/yats/web-blob.vim +++ b/syntax/yats/web-blob.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-blob.vim') finish endif diff --git a/syntax/yats/web-console.vim b/syntax/yats/web-console.vim index 4dc269df..f6b7aef5 100644 --- a/syntax/yats/web-console.vim +++ b/syntax/yats/web-console.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-console.vim') finish endif diff --git a/syntax/yats/web-crypto.vim b/syntax/yats/web-crypto.vim index 07b28a38..4582cc28 100644 --- a/syntax/yats/web-crypto.vim +++ b/syntax/yats/web-crypto.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-crypto.vim') finish endif diff --git a/syntax/yats/web-encoding.vim b/syntax/yats/web-encoding.vim index 99100caf..2fa66a7f 100644 --- a/syntax/yats/web-encoding.vim +++ b/syntax/yats/web-encoding.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-encoding.vim') finish endif diff --git a/syntax/yats/web-fetch.vim b/syntax/yats/web-fetch.vim index ef884a0c..f0615e0b 100644 --- a/syntax/yats/web-fetch.vim +++ b/syntax/yats/web-fetch.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-fetch.vim') finish endif diff --git a/syntax/yats/web-geo.vim b/syntax/yats/web-geo.vim index 1e651787..fd660e6d 100644 --- a/syntax/yats/web-geo.vim +++ b/syntax/yats/web-geo.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-geo.vim') finish endif diff --git a/syntax/yats/web-history.vim b/syntax/yats/web-history.vim index d77ff159..54c98550 100644 --- a/syntax/yats/web-history.vim +++ b/syntax/yats/web-history.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-history.vim') finish endif diff --git a/syntax/yats/web-location.vim b/syntax/yats/web-location.vim index 2837de25..3aa89519 100644 --- a/syntax/yats/web-location.vim +++ b/syntax/yats/web-location.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-location.vim') finish endif diff --git a/syntax/yats/web-navigator.vim b/syntax/yats/web-navigator.vim index 82c4dccd..53323ed5 100644 --- a/syntax/yats/web-navigator.vim +++ b/syntax/yats/web-navigator.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-navigator.vim') finish endif diff --git a/syntax/yats/web-network.vim b/syntax/yats/web-network.vim index 5f4b6658..0d2e5c45 100644 --- a/syntax/yats/web-network.vim +++ b/syntax/yats/web-network.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-network.vim') finish endif diff --git a/syntax/yats/web-payment.vim b/syntax/yats/web-payment.vim index a88234df..8a0d7194 100644 --- a/syntax/yats/web-payment.vim +++ b/syntax/yats/web-payment.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-payment.vim') finish endif diff --git a/syntax/yats/web-service-worker.vim b/syntax/yats/web-service-worker.vim index 48a307f3..df20a16e 100644 --- a/syntax/yats/web-service-worker.vim +++ b/syntax/yats/web-service-worker.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-service-worker.vim') finish endif diff --git a/syntax/yats/web-window.vim b/syntax/yats/web-window.vim index 329f0ac9..f078bd4d 100644 --- a/syntax/yats/web-window.vim +++ b/syntax/yats/web-window.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-window.vim') finish endif diff --git a/syntax/yats/web-xhr.vim b/syntax/yats/web-xhr.vim index 0864ee5f..40699b6e 100644 --- a/syntax/yats/web-xhr.vim +++ b/syntax/yats/web-xhr.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web-xhr.vim') finish endif diff --git a/syntax/yats/web.vim b/syntax/yats/web.vim index a41007f8..295643af 100644 --- a/syntax/yats/web.vim +++ b/syntax/yats/web.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'typescript') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/web.vim') finish endif diff --git a/syntax/z8a.vim b/syntax/z8a.vim index c8e66f58..ce676bb1 100644 --- a/syntax/z8a.vim +++ b/syntax/z8a.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'z8a') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'z8a', 'syntax/z8a.vim') finish endif diff --git a/syntax/zephir.vim b/syntax/zephir.vim index e2732879..9f5ebf99 100644 --- a/syntax/zephir.vim +++ b/syntax/zephir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zephir') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zephir', 'syntax/zephir.vim') finish endif diff --git a/syntax/zig.vim b/syntax/zig.vim index 7eb59fab..9b4854ed 100644 --- a/syntax/zig.vim +++ b/syntax/zig.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'syntax/zig.vim') finish endif diff --git a/syntax/zimbu.vim b/syntax/zimbu.vim index 39a633cf..6f2d69e4 100644 --- a/syntax/zimbu.vim +++ b/syntax/zimbu.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zimbu') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zimbu', 'syntax/zimbu.vim') finish endif diff --git a/syntax/zir.vim b/syntax/zir.vim index 50b2be0e..1ff6bc97 100644 --- a/syntax/zir.vim +++ b/syntax/zir.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'zig') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'zig', 'syntax/zir.vim') finish endif diff --git a/syntax/zsh.vim b/syntax/zsh.vim index 8be86a84..ebdc6cc3 100644 --- a/syntax/zsh.vim +++ b/syntax/zsh.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'sh') +if polyglot#init#is_disabled(expand('<sfile>:p'), 'sh', 'syntax/zsh.vim') finish endif |