diff options
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/c.vim | 6 | ||||
-rw-r--r-- | after/syntax/coffee.vim | 6 | ||||
-rw-r--r-- | after/syntax/cpp.vim | 6 | ||||
-rw-r--r-- | after/syntax/haskell.vim | 6 | ||||
-rw-r--r-- | after/syntax/help.vim | 6 | ||||
-rw-r--r-- | after/syntax/html.vim | 6 | ||||
-rw-r--r-- | after/syntax/idris.vim | 6 | ||||
-rw-r--r-- | after/syntax/javascript.vim | 10 | ||||
-rw-r--r-- | after/syntax/javascript/graphql.vim | 6 | ||||
-rw-r--r-- | after/syntax/jsx_pretty.vim | 6 | ||||
-rw-r--r-- | after/syntax/llvm.vim | 6 | ||||
-rw-r--r-- | after/syntax/mdx.vim | 6 | ||||
-rw-r--r-- | after/syntax/mma.vim | 6 | ||||
-rw-r--r-- | after/syntax/objc.vim | 6 | ||||
-rw-r--r-- | after/syntax/reason.vim | 4 | ||||
-rw-r--r-- | after/syntax/rspec.vim | 6 | ||||
-rw-r--r-- | after/syntax/ruby.vim | 6 | ||||
-rw-r--r-- | after/syntax/rust.vim | 6 | ||||
-rw-r--r-- | after/syntax/tex.vim | 6 | ||||
-rw-r--r-- | after/syntax/typescript.vim | 10 | ||||
-rw-r--r-- | after/syntax/typescript/graphql.vim | 6 | ||||
-rw-r--r-- | after/syntax/yaml.vim | 6 |
22 files changed, 45 insertions, 93 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 4b801734..48446d7d 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 " Vim syntax file " Language: C Additions " Maintainer: Jon Haggblad <jon@haeggblad.com> @@ -306,3 +303,4 @@ 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 4ee795f0..bd48541e 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cjsx') != -1 - finish -endif - +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 @@ -29,3 +26,4 @@ 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 ae11705e..b85c63bd 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 " Vim syntax file " Language: C++ Additions " Maintainer: Jon Haggblad <jon@haeggblad.com> @@ -2103,3 +2100,4 @@ 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 db454f2f..03a26e88 100644 --- a/after/syntax/haskell.vim +++ b/after/syntax/haskell.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dhall') != -1 - finish -endif - +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 @@ -15,3 +12,4 @@ 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 a4bc0bc7..4c0dc3d3 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1 - finish -endif - +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 @@ -16,3 +13,4 @@ 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 fcb7fd51..4fd6e593 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file " Language: HTML (version 5.1) " Last Change: 2017 Feb 15 @@ -14,3 +11,4 @@ endif " 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 bef36f62..3acdcbec 100644 --- a/after/syntax/idris.vim +++ b/after/syntax/idris.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 " This script allows for unicode concealing of certain characters " For instance -> goes to → " @@ -80,3 +77,4 @@ 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 1d2064b5..50a22712 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -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 syntax file " @@ -60,10 +57,8 @@ let b:current_syntax = 'javascript.jsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 " Vim syntax file " Language: styled-components (js/ts) " Maintainer: Karl Fleischmann <fleischmann.karl@gmail.com> @@ -259,3 +254,4 @@ hi def link styledXmlRegion String if exists("s:current_syntax") let b:current_syntax=s:current_syntax endif +endif diff --git a/after/syntax/javascript/graphql.vim b/after/syntax/javascript/graphql.vim index edc8eea1..e9a0ff3a 100644 --- a/after/syntax/javascript/graphql.vim +++ b/after/syntax/javascript/graphql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1 - finish -endif - +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 @@ -25,3 +22,4 @@ 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 f37a084b..d2f5d383 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +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"> @@ -214,3 +211,4 @@ 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 aae8711c..18767d57 100644 --- a/after/syntax/llvm.vim +++ b/after/syntax/llvm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1 - finish -endif - +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 @@ -24,3 +21,4 @@ endif syn keyword llvmKeyword attributes syn match llvmNoName /#\d\+\>/ +endif diff --git a/after/syntax/mdx.vim b/after/syntax/mdx.vim index 46f73946..68caa276 100644 --- a/after/syntax/mdx.vim +++ b/after/syntax/mdx.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mdx') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1 " based on mxw/vim-jsx @@ -43,3 +40,4 @@ 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 f8e7a271..c2ab7b76 100644 --- a/after/syntax/mma.vim +++ b/after/syntax/mma.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mathematica') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 "Vim conceal file " Language: Mathematica " Maintainer: Voldikss <dyzplus@gmail.com> @@ -1448,3 +1445,4 @@ endif hi! link Conceal Normal setlocal conceallevel=2 +endif diff --git a/after/syntax/objc.vim b/after/syntax/objc.vim index d9874e20..cebedf20 100644 --- a/after/syntax/objc.vim +++ b/after/syntax/objc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1 - finish -endif - +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 @@ -21,3 +18,4 @@ 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 14d5abfe..7615be2b 100644 --- a/after/syntax/reason.vim +++ b/after/syntax/reason.vim @@ -1,4 +1,2 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'reason') != -1 - finish +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 653f7d63..bd447957 100644 --- a/after/syntax/rspec.vim +++ b/after/syntax/rspec.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rspec') != -1 - finish -endif - +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 @@ -34,3 +31,4 @@ 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 a9d2ea31..551969c9 100644 --- a/after/syntax/ruby.vim +++ b/after/syntax/ruby.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yard') != -1 - finish -endif - +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> @@ -128,3 +125,4 @@ 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 ace3ea20..8210c9f1 100644 --- a/after/syntax/rust.vim +++ b/after/syntax/rust.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +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' @@ -43,3 +40,4 @@ 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 444dabda..fd515891 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +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 @@ -11,3 +8,4 @@ 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 df500404..86719158 100644 --- a/after/syntax/typescript.vim +++ b/after/syntax/typescript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -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 syntax file " @@ -48,10 +45,8 @@ let b:current_syntax = 'typescript.tsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 runtime! syntax/javascript.vim " define custom API section, that contains typescript annotations @@ -114,3 +109,4 @@ syn cluster typescriptValue add=styledPrefix,jsFuncCall,styledTypescriptPrefix syn match typescriptIdentifierName extend \ "\<css\>\|\<keyframes\>\|\<injectGlobal\>\|\<fontFace\>\|\<createGlobalStyle\>" \ nextgroup=styledDefinition +endif diff --git a/after/syntax/typescript/graphql.vim b/after/syntax/typescript/graphql.vim index fc070daa..23f28e93 100644 --- a/after/syntax/typescript/graphql.vim +++ b/after/syntax/typescript/graphql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1 - finish -endif - +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 @@ -24,3 +21,4 @@ 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 5a9e7c37..20cd2fb5 100644 --- a/after/syntax/yaml.vim +++ b/after/syntax/yaml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yaml') != -1 - finish -endif - +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 @@ -63,3 +60,4 @@ hi link yamlInline Operator hi link yamlBlock Operator hi link yamlString String hi link yamlEscape Special +endif |