diff options
Diffstat (limited to 'after')
34 files changed, 70 insertions, 0 deletions
diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim index 8e485bbd..8009502d 100644 --- a/after/ftplugin/cabal.vim +++ b/after/ftplugin/cabal.vim @@ -1,5 +1,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 + setlocal comments=s1fl:{-,mb:-,ex:-},:-- setlocal iskeyword+=-,.,* setlocal commentstring=--\ %s + endif diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim index 2e3f7170..27c00bcb 100644 --- a/after/ftplugin/coffee.vim +++ b/after/ftplugin/coffee.vim @@ -1,7 +1,9 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 + if exists("loaded_matchit") let b:match_ignorecase = 0 let b:match_words = '(:),\[:\],{:},<:>,' . \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' endif + endif diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim index 0255bdd7..a617329c 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -1,4 +1,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 + setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:-- setlocal iskeyword+=' + endif diff --git a/after/ftplugin/idris.vim b/after/ftplugin/idris.vim index c006b7ab..6c6815d5 100644 --- a/after/ftplugin/idris.vim +++ b/after/ftplugin/idris.vim @@ -1,3 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 + setlocal iskeyword+=' + endif diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim index 55cb0411..4c1549a8 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + " Vim filetype plugin file " Language: JavaScript " Maintainer: vim-javascript community @@ -11,8 +12,10 @@ if exists('b:undo_ftplugin') else let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<' endif + endif if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim ftplugin file " @@ -44,4 +47,5 @@ augroup jsx_comment augroup end setlocal suffixesadd+=.jsx + endif diff --git a/after/ftplugin/llvm.vim b/after/ftplugin/llvm.vim index ece9019f..d67c94b5 100644 --- a/after/ftplugin/llvm.vim +++ b/after/ftplugin/llvm.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 + " Copyright (c) 2018 rhysd " " Permission is hereby granted, free of charge, to any person obtaining a copy @@ -472,4 +473,5 @@ endfunction if !exists(':LLI') command! -buffer -nargs=? -bar -complete=file LLI call <SID>run_lli(<f-args>) endif + endif diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim index f78ebb80..6ddb64e0 100644 --- a/after/ftplugin/puppet.vim +++ b/after/ftplugin/puppet.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + if !exists('g:puppet_align_hashes') let g:puppet_align_hashes = 1 endif @@ -6,4 +7,5 @@ endif if g:puppet_align_hashes inoremap <buffer> <silent> => =><Esc>:call puppet#align#AlignHashrockets()<CR>$a endif + endif diff --git a/after/ftplugin/typescript.vim b/after/ftplugin/typescript.vim index ab1aedc8..b5deef84 100644 --- a/after/ftplugin/typescript.vim +++ b/after/ftplugin/typescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) + " modified from html.vim " For matchit plugin if exists("loaded_matchit") @@ -22,4 +23,5 @@ augroup jsx_comment augroup end setlocal suffixesadd+=.tsx + endif diff --git a/after/ftplugin/yaml.vim b/after/ftplugin/yaml.vim index 1b631079..db608fa4 100644 --- a/after/ftplugin/yaml.vim +++ b/after/ftplugin/yaml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 + " Vim indent file " Language: Yaml " Author: Henrique Barcelos @@ -6,4 +7,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 " URL: https://github.com/hjpbarcelos setlocal autoindent sw=2 ts=2 expandtab " vim:set sw=2: + endif diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim index ea149c78..ffbbc97a 100644 --- a/after/indent/javascript.vim +++ b/after/indent/javascript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -28,4 +29,5 @@ endfunction let &cpo = s:keepcpo unlet s:keepcpo + endif diff --git a/after/indent/objc.vim b/after/indent/objc.vim index 9c64da42..081e7033 100644 --- a/after/indent/objc.vim +++ b/after/indent/objc.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 + " Vim indent file " Language: Objective-C " Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com> @@ -92,4 +93,5 @@ endfunction " Restore 'cpo' options let &cpo = s:save_cpo unlet s:save_cpo + endif diff --git a/after/indent/typescript.vim b/after/indent/typescript.vim index f5e6cb59..cc722f15 100644 --- a/after/indent/typescript.vim +++ b/after/indent/typescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -29,4 +30,5 @@ endfunction let &cpo = s:keepcpo unlet s:keepcpo + endif diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 48446d7d..105b0268 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 + " Vim syntax file " Language: C Additions " Maintainer: Jon Haggblad <jon@haeggblad.com> @@ -303,4 +304,5 @@ hi def link cBoolean Boolean "hi def link cDelimiter Delimiter " foldmethod=syntax fix, courtesy of Ivan Freitas "hi def link cBraces Delimiter + endif diff --git a/after/syntax/coffee.vim b/after/syntax/coffee.vim index bd48541e..fde51eb4 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 + if exists('b:current_syntax') let s:current_syntax=b:current_syntax unlet b:current_syntax @@ -26,4 +27,5 @@ hi def link cjsxTagName Function hi def link cjsxEntity Statement hi def link cjsxEntityPunct Type hi def link cjsxAttribProperty Type + endif diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index b85c63bd..874561c8 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 + " Vim syntax file " Language: C++ Additions " Maintainer: Jon Haggblad <jon@haeggblad.com> @@ -2100,4 +2101,5 @@ if version >= 508 || !exists("did_cpp_syntax_inits") HiLink cppRawDelimiter Delimiter delcommand HiLink endif + endif diff --git a/after/syntax/haskell.vim b/after/syntax/haskell.vim index 03a26e88..ac175298 100644 --- a/after/syntax/haskell.vim +++ b/after/syntax/haskell.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1 + " store and remove current syntax value let old_syntax = b:current_syntax unlet b:current_syntax @@ -12,4 +13,5 @@ hi def link quasiQuote Underlined " restore current syntax value let b:current_syntax = old_syntax + endif diff --git a/after/syntax/help.vim b/after/syntax/help.vim index 4c0dc3d3..16c46b29 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 + " Extends standard help syntax with highlighting of Scala code. " " Place code between !sc! and !/sc! delimiters. These will be hidden if Vim is @@ -13,4 +14,5 @@ if has('conceal') else syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode endif + endif diff --git a/after/syntax/html.vim b/after/syntax/html.vim index 4fd6e593..bc7e8eed 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + " Vim syntax file " Language: HTML (version 5.1) " Last Change: 2017 Feb 15 @@ -11,4 +12,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " https://github.com/w3c/html/issues/694 syntax region htmlComment start=+<!--+ end=+-->+ contains=@Spell syntax region htmlComment start=+<!DOCTYPE+ keepend end=+>+ + endif diff --git a/after/syntax/idris.vim b/after/syntax/idris.vim index 3acdcbec..29d35632 100644 --- a/after/syntax/idris.vim +++ b/after/syntax/idris.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 + " This script allows for unicode concealing of certain characters " For instance -> goes to → " @@ -77,4 +78,5 @@ hi link idrNiceOperator Operator hi! link Conceal Operator setlocal conceallevel=2 + endif diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim index c36b1f21..ab027d41 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim syntax file " @@ -57,4 +58,5 @@ let b:current_syntax = 'javascript.jsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo + endif diff --git a/after/syntax/javascript/graphql.vim b/after/syntax/javascript/graphql.vim index e9a0ff3a..bf3ee41d 100644 --- a/after/syntax/javascript/graphql.vim +++ b/after/syntax/javascript/graphql.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 + if exists('b:current_syntax') let s:current_syntax = b:current_syntax unlet b:current_syntax @@ -22,4 +23,5 @@ hi def link graphqlTemplateExpression jsTemplateExpression syn cluster jsExpression add=graphqlTaggedTemplate syn cluster graphqlTaggedTemplate add=graphqlTemplateString + endif diff --git a/after/syntax/jsx_pretty.vim b/after/syntax/jsx_pretty.vim index d2f5d383..fd5c9bde 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) + let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0) " <tag id="sample"> @@ -211,4 +212,5 @@ if s:vim_jsx_pretty_colorful_config == 1 highlight def link jsFuncArgs Type endif + endif diff --git a/after/syntax/llvm.vim b/after/syntax/llvm.vim index 18767d57..04d234a2 100644 --- a/after/syntax/llvm.vim +++ b/after/syntax/llvm.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 + " Copyright (c) 2018 rhysd " " Permission is hereby granted, free of charge, to any person obtaining a copy @@ -21,4 +22,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 syn keyword llvmKeyword attributes syn match llvmNoName /#\d\+\>/ + endif diff --git a/after/syntax/mdx.vim b/after/syntax/mdx.vim index 68caa276..5538f881 100644 --- a/after/syntax/mdx.vim +++ b/after/syntax/mdx.vim @@ -1,5 +1,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1 + " based on mxw/vim-jsx if exists('b:current_syntax') @@ -40,4 +41,5 @@ syn cluster jsExpression add=jsxRegion " Allow jsxRegion to contain reserved words. syn cluster javascriptNoReserved add=jsxRegion + endif diff --git a/after/syntax/mma.vim b/after/syntax/mma.vim index c2ab7b76..45c5c428 100644 --- a/after/syntax/mma.vim +++ b/after/syntax/mma.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 + "Vim conceal file " Language: Mathematica " Maintainer: Voldikss <dyzplus@gmail.com> @@ -1445,4 +1446,5 @@ endif hi! link Conceal Normal setlocal conceallevel=2 + endif diff --git a/after/syntax/objc.vim b/after/syntax/objc.vim index cebedf20..093688b1 100644 --- a/after/syntax/objc.vim +++ b/after/syntax/objc.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 + " ARC type modifiers syn keyword objcTypeModifier __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak __unsafe_unretained @@ -18,4 +19,5 @@ syn match objcDirective "@property\|@synthesize\|@dynamic\|@package" " Highlight property attributes as if they were type modifiers hi def link objcPropertyAttribute objcTypeModifier + endif diff --git a/after/syntax/reason.vim b/after/syntax/reason.vim index 7615be2b..3be39690 100644 --- a/after/syntax/reason.vim +++ b/after/syntax/reason.vim @@ -1,2 +1,4 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1 + + endif diff --git a/after/syntax/rspec.vim b/after/syntax/rspec.vim index bd447957..1287970a 100644 --- a/after/syntax/rspec.vim +++ b/after/syntax/rspec.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1 + " " An rspec syntax file " Originally from http://www.vim.org/scripts/script.php?script_id=2286 @@ -31,4 +32,5 @@ syntax keyword rspecMessageExpectation advise any_args any_number_of_times anyth highlight link rspecMessageExpectation Function let b:current_syntax = 'rspec' + endif diff --git a/after/syntax/ruby.vim b/after/syntax/ruby.vim index 551969c9..00cd07d9 100644 --- a/after/syntax/ruby.vim +++ b/after/syntax/ruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1 + " Ruby syntax extensions for highlighting YARD documentation. " " Author: Joel Holdbrooks <https://github.com/noprompt> @@ -125,4 +126,5 @@ hi def link yardParametricType yardComment hi def link yardArrow yardComment hi def link yardHashAngle yardComment hi def link yardHashCurly yardComment + endif diff --git a/after/syntax/rust.vim b/after/syntax/rust.vim index 8210c9f1..0a54e2fc 100644 --- a/after/syntax/rust.vim +++ b/after/syntax/rust.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + scriptencoding utf-8 if !get(g:, 'rust_conceal', 0) || !has('conceal') || &encoding !=# 'utf-8' @@ -40,4 +41,5 @@ if !get(g:, 'rust_conceal_mod_path', 0) endif " vim: set et sw=4 sts=4 ts=8: + endif diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim index fd515891..f549de30 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " adds support for cleverref package " \Cref, \cref, \cpageref, \labelcref, \labelcpageref syn region texRefZone matchgroup=texStatement start="\\Cref{" end="}\|%stopzone\>" contains=@texRefGroup @@ -8,4 +9,5 @@ syn region texRefZone matchgroup=texStatement start="\\\(label\|\)c\(page\|\)re syn region texZone start="\\begin{lstlisting}" end="\\end{lstlisting}\|%stopzone\>" syn match texInputFile "\\lstinputlisting\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt syn match texZone "\\lstinline\s*\(\[.*\]\)\={.\{-}}" + endif diff --git a/after/syntax/typescript.vim b/after/syntax/typescript.vim index 359c1b55..ba90c5d5 100644 --- a/after/syntax/typescript.vim +++ b/after/syntax/typescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim syntax file " @@ -45,4 +46,5 @@ let b:current_syntax = 'typescript.tsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo + endif diff --git a/after/syntax/typescript/graphql.vim b/after/syntax/typescript/graphql.vim index 23f28e93..a5d6a9ce 100644 --- a/after/syntax/typescript/graphql.vim +++ b/after/syntax/typescript/graphql.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 + if exists('b:current_syntax') let s:current_syntax = b:current_syntax unlet b:current_syntax @@ -21,4 +22,5 @@ hi def link graphqlTemplateExpression typescriptTemplateSubstitution syn cluster typescriptExpression add=graphqlTaggedTemplate syn cluster graphqlTaggedTemplate add=graphqlTemplateString + endif diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim index 20cd2fb5..4dd2c4e9 100644 --- a/after/syntax/yaml.vim +++ b/after/syntax/yaml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 + " To make this file do stuff, add something like the following (without the " leading ") to your ~/.vimrc: " au BufNewFile,BufRead *.yaml,*.yml so ~/src/PyYaml/YAML.vim @@ -60,4 +61,5 @@ hi link yamlInline Operator hi link yamlBlock Operator hi link yamlString String hi link yamlEscape Special + endif |