summaryrefslogtreecommitdiffstats
path: root/after/syntax
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-12 14:33:21 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-12 15:08:44 +0200
commit4f3df59be709bf0d5c5c67dc804fde49abdc2700 (patch)
tree71b86b1d2c678dd2bb8411c61f83fd1cd3ec691d /after/syntax
parent26790941f6d4ceedbf6324eb3712949eb614908f (diff)
downloadvim-polyglot-4.0.3.tar.gz
vim-polyglot-4.0.3.zip
Improve guard so it works for no eof new linev4.0.3
Diffstat (limited to 'after/syntax')
-rw-r--r--after/syntax/c.vim2
-rw-r--r--after/syntax/coffee.vim2
-rw-r--r--after/syntax/cpp.vim2
-rw-r--r--after/syntax/haskell.vim2
-rw-r--r--after/syntax/help.vim2
-rw-r--r--after/syntax/html.vim2
-rw-r--r--after/syntax/idris.vim2
-rw-r--r--after/syntax/javascript.vim2
-rw-r--r--after/syntax/javascript/graphql.vim2
-rw-r--r--after/syntax/jsx_pretty.vim2
-rw-r--r--after/syntax/llvm.vim2
-rw-r--r--after/syntax/mdx.vim2
-rw-r--r--after/syntax/mma.vim2
-rw-r--r--after/syntax/objc.vim2
-rw-r--r--after/syntax/reason.vim2
-rw-r--r--after/syntax/rspec.vim2
-rw-r--r--after/syntax/ruby.vim2
-rw-r--r--after/syntax/rust.vim2
-rw-r--r--after/syntax/tex.vim2
-rw-r--r--after/syntax/typescript.vim2
-rw-r--r--after/syntax/typescript/graphql.vim2
-rw-r--r--after/syntax/yaml.vim2
22 files changed, 44 insertions, 0 deletions
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