Compare commits

...

49 Commits

Author SHA1 Message Date
Adam Stankiewicz
0626cc90a2 Change fish provider, closes #626 2020-12-30 12:16:03 +01:00
Adam Stankiewicz
8af4f8e6c0 Add jsonc, closes #635 2020-12-30 12:13:50 +01:00
Adam Stankiewicz
e5668602cc Enable again swapfiles, fixes #638 2020-12-30 09:58:20 +01:00
Adam Stankiewicz
6783bd0df9 Revert "Check changes for focus event, improves #638"
It's because it additionally changes cursor to vertical bar.
I need to disable this behavior and make it compatible with
plugins that enable vertical cursor...

This reverts commit 44e79fc935.
2020-12-30 08:36:48 +01:00
Adam Stankiewicz
dc786b7641 Try to fix tests 2020-12-30 01:04:40 +01:00
Adam Stankiewicz
3f9ce1c6cf Add link to actions 2020-12-30 01:00:14 +01:00
Adam Stankiewicz
44e79fc935 Check changes for focus event, improves #638 2020-12-30 00:48:12 +01:00
Adam Stankiewicz
2fcb15afa0 Add terraform to list of packages, fixes #625 2020-12-30 00:05:20 +01:00
Adam Stankiewicz
1150adc4db Fix detecting conf filetype, closes #641 2020-12-29 23:40:05 +01:00
Adam Stankiewicz
47dcae9131 Do not mention vim-sensible, as only tiny part of it is included 2020-12-29 20:45:36 +01:00
Adam Stankiewicz
4b54ae9cd9 Move setting default tabstop to sensible part 2020-12-29 20:42:17 +01:00
Adam Stankiewicz
c5625ffedd Set shiftwidth to tabstop if greather, fixes #648
Also should fix situations like in #654
2020-12-29 20:33:47 +01:00
Adam Stankiewicz
45f2f94975 Add mint-language, closes #653
Co-authored-by: NICHTJ3 <nicholsontrent@gmail.com>
2020-12-29 20:18:29 +01:00
Adam Stankiewicz
cec808bc19 Use maxdepth instead of depth in makefile, closes #652 2020-12-29 20:08:51 +01:00
Adam Stankiewicz
95d82fdb66 Update 2020-12-29 19:44:40 +01:00
Carl-Philipp Jung
73c5187177 Removes set incsearch which was copied from vim-sensible (#640) 2020-11-27 16:10:29 +01:00
Adam Stankiewicz
ab0ff253f6 Update plugins, closes #627 2020-11-20 13:00:38 +01:00
Adam Stankiewicz
c228e993ad Update 2020-11-18 20:33:42 +01:00
Dawid Potocki
da18fe6851 Fix neovim :Tutor filetype detection (#631) 2020-11-17 16:58:46 +01:00
Adam Stankiewicz
4af1321588 Revert "Rename cpo_save variable to prevent conflicts, fixes #619"
This reverts commit d96f11bcd8.
2020-11-04 00:44:02 +01:00
Fabien RAJAONARISON
cd76812402 fix undefined cpo_save (#623) 2020-11-02 19:46:24 +01:00
Cookies
ff35c02445 Restore cpoptions before recursive ftdetect read, fixes #619 (#621) 2020-11-02 18:48:59 +01:00
Adam Stankiewicz
32f5e90737 Do not use [0:-1] syntax, fixes #616 2020-11-02 18:32:43 +01:00
Adam Stankiewicz
d96f11bcd8 Rename cpo_save variable to prevent conflicts, fixes #619 2020-11-02 18:21:43 +01:00
Adam Stankiewicz
0738ad654d Update 2020-11-02 18:19:15 +01:00
Sinos
05e21a9e25 Add support for PEG syntax (#615)
* feat: add pest syntax

* feat: add pest into packages

* feat: increase the package count
2020-10-27 12:02:41 +01:00
Adam Stankiewicz
683286b3d7 Add all paths, fixes #612 2020-10-26 16:25:24 +01:00
Adam Stankiewicz
740a60811c Use nroff filetype for man pages, closes #611 2020-10-26 08:45:34 +01:00
Adam Stankiewicz
2838800832 Fix conditions, #608 2020-10-25 21:08:27 +01:00
Adam Stankiewicz
ba3fe9e1ae Fix loading when vim8 packages are used 2020-10-25 20:40:49 +01:00
Adam Stankiewicz
45a7512dea Preserve loading order of plugins, fixes #608 2020-10-25 20:33:44 +01:00
Adam Stankiewicz
81ada1101e Remove debugging code, closes #607 2020-10-25 11:11:53 +01:00
ichizok
48d0bc7556 Fix the filter of 'rtp' (#606)
On Windows, should handle both slash and backslash as the path separator
in checking a path in 'rtp'.
2020-10-25 11:10:44 +01:00
Adam Stankiewicz
cbde2571d4 Respect symlinks for resolving vim-polyglot as fallback, closes #605 2020-10-25 03:19:58 +01:00
Adam Stankiewicz
d73c4d1562 Fix recursive loading, closes #605 2020-10-24 23:50:54 +02:00
Adam Stankiewicz
20b31f5337 Fix warning in command line window, closes #604 2020-10-24 21:46:04 +02:00
Adam Stankiewicz
8e61708b45 Use vim-polyglot only as fallback to other plugins, fixes #580 2020-10-24 18:52:18 +02:00
Adam Stankiewicz
3c148e9ef5 Do not set checktime if already set 2020-10-24 17:46:15 +02:00
Adam Stankiewicz
739102e06d Make editing same file in multiple vim instances seamless 2020-10-24 17:32:39 +02:00
Adam Stankiewicz
f52f6b9519 Allow to override incsearch, #603 2020-10-24 17:19:54 +02:00
Adam Stankiewicz
b6654c85b2 Fix shortcuts in plugins, fixes #566 2020-10-24 16:54:55 +02:00
Adam Stankiewicz
e3609fed6b Fix disabling sensible settings, closes #602 2020-10-24 16:37:45 +02:00
Adam Stankiewicz
7324528984 Fix detecting shell filetypes, closes #603 2020-10-24 16:34:29 +02:00
Adam Stankiewicz
0a2f2cc04d Fix old nvim, closes #592 2020-10-23 21:57:54 +02:00
Adam Stankiewicz
6422a5a479 Count all multiplies for given indent, fixes #592 2020-10-23 02:36:02 +02:00
Adam Stankiewicz
113f9b8949 Respect shiftwidth if set by user or plugin 2020-10-23 01:30:33 +02:00
Adam Stankiewicz
f828912a7f Set softtabstop to -1 to allow chaging shiftwidth 2020-10-23 01:22:31 +02:00
Adam Stankiewicz
2522ad2029 Set softtabstop to -1 to allow easy sw configuraton 2020-10-23 01:16:32 +02:00
Adam Stankiewicz
50a9a7345f Update 2020-10-23 01:13:09 +02:00
1312 changed files with 8059 additions and 5749 deletions

View File

@@ -7,4 +7,4 @@ test:
@ scripts/test @ scripts/test
dev: dev:
@ find scripts autoload/polyglot ftdetect tests . -type f -depth 1 | DEV=1 entr bash -c 'make && make test' @ find scripts autoload/polyglot ftdetect tests . -type f -maxdepth 1 | DEV=1 entr bash -c 'make'

View File

@@ -1,17 +1,16 @@
![vim-polyglot](https://i.imgur.com/9RxQK6k.png) ![vim-polyglot](https://i.imgur.com/9RxQK6k.png)
![build](https://github.com/sheerun/vim-polyglot/workflows/Vim%20Polyglot%20CI/badge.svg) [![Maintenance](https://img.shields.io/badge/maintained%20since-2013-yes)]() [![build](https://github.com/sheerun/vim-polyglot/workflows/Vim%20Polyglot%20CI/badge.svg)](https://github.com/sheerun/vim-polyglot/actions) [![Maintenance](https://img.shields.io/badge/maintained%20since-2013-yes)]()
A collection of language packs for Vim. A collection of language packs for Vim.
> One to rule them all, one to find them, one to bring them all and in the darkness bind them. > One to rule them all, one to find them, one to bring them all and in the darkness bind them.
- It **won't affect your startup time**, as scripts are loaded only on demand\*. - It **won't affect your startup time**, as scripts are loaded only on demand\*.
- It **installs and updates 120+ times faster** than the <!--Package Count-->598<!--/Package Count--> packages it consists of. - It **installs and updates 120+ times faster** than the <!--Package Count-->601<!--/Package Count--> packages it consists of.
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot) - It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
- Best syntax and indentation support (no other features). Hand-selected language packs. - Best syntax and indentation support (no other features). Hand-selected language packs.
- Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled) - Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled)
- Includes some defaults from [vim-sensible](https://github.com/tpope/vim-sensible), which are usually necessary for editing in any language (can be disabled)
\*To be completely honest, optimized `ftdetect` script takes around `10ms` to load. \*To be completely honest, optimized `ftdetect` script takes around `10ms` to load.
@@ -72,14 +71,14 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [dhall](https://github.com/vmchale/dhall-vim) (Dhall syntax highlighting for dhall files) - [dhall](https://github.com/vmchale/dhall-vim) (Dhall syntax highlighting for dhall files)
- [dlang](https://github.com/JesseKPhillips/d.vim) (D syntax highlighting for d, di, lst, dd, ddoc and sdl files) - [dlang](https://github.com/JesseKPhillips/d.vim) (D syntax highlighting for d, di, lst, dd, ddoc and sdl files)
- [docker-compose](https://github.com/ekalinin/Dockerfile.vim) - [docker-compose](https://github.com/ekalinin/Dockerfile.vim)
- [elixir](https://github.com/elixir-lang/vim-elixir) (Elixir and HTML+EEX syntax highlighting for ex, exs, eex and leex files) - [elixir](https://github.com/elixir-lang/vim-elixir) (Elixir and HTML+EEX syntax highlighting for ex, exs, eex, html.leex and leex files)
- [elm](https://github.com/andys8/vim-elm-syntax) (Elm syntax highlighting for elm files) - [elm](https://github.com/andys8/vim-elm-syntax) (Elm syntax highlighting for elm files)
- [emberscript](https://github.com/yalesov/vim-ember-script) (EmberScript syntax highlighting for em and emberscript files) - [emberscript](https://github.com/yalesov/vim-ember-script) (EmberScript syntax highlighting for em and emberscript files)
- [emblem](https://github.com/yalesov/vim-emblem) (Syntax highlighting for emblem and em files) - [emblem](https://github.com/yalesov/vim-emblem) (Syntax highlighting for emblem and em files)
- [erlang](https://github.com/vim-erlang/vim-erlang-runtime) (Erlang syntax highlighting for erl, app.src, es, escript, hrl, xrl, yrl, app and yaws files) - [erlang](https://github.com/vim-erlang/vim-erlang-runtime) (Erlang syntax highlighting for erl, app.src, es, escript, hrl, xrl, yrl, app and yaws files)
- [fennel](https://github.com/bakpakin/fennel.vim) (Syntax highlighting for fnl files) - [fennel](https://github.com/bakpakin/fennel.vim) (Syntax highlighting for fnl files)
- [ferm](https://github.com/vim-scripts/ferm.vim) (Syntax highlighting for ferm files) - [ferm](https://github.com/vim-scripts/ferm.vim) (Syntax highlighting for ferm files)
- [fish](https://github.com/georgewitteman/vim-fish) (fish syntax highlighting for fish files) - [fish](https://github.com/blankname/vim-fish) (fish syntax highlighting for fish files)
- [flatbuffers](https://github.com/dcharbon/vim-flatbuffers) (Syntax highlighting for fbs files) - [flatbuffers](https://github.com/dcharbon/vim-flatbuffers) (Syntax highlighting for fbs files)
- [fsharp](https://github.com/ionide/Ionide-vim) (F# syntax highlighting for fs, fsi and fsx files) - [fsharp](https://github.com/ionide/Ionide-vim) (F# syntax highlighting for fs, fsi and fsx files)
- [gdscript](https://github.com/calviken/vim-gdscript3) (GDScript syntax highlighting for gd files) - [gdscript](https://github.com/calviken/vim-gdscript3) (GDScript syntax highlighting for gd files)
@@ -112,6 +111,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [jq](https://github.com/vito-c/jq.vim) (JSONiq syntax highlighting for jq files) - [jq](https://github.com/vito-c/jq.vim) (JSONiq syntax highlighting for jq files)
- [json5](https://github.com/GutenYe/json5.vim) (JSON5 syntax highlighting for json5 files) - [json5](https://github.com/GutenYe/json5.vim) (JSON5 syntax highlighting for json5 files)
- [json](https://github.com/elzr/vim-json) (JSON syntax highlighting for json, avsc, geojson, gltf, har and 13 more files) - [json](https://github.com/elzr/vim-json) (JSON syntax highlighting for json, avsc, geojson, gltf, har and 13 more files)
- [jsonc](https://github.com/neoclide/jsonc.vim) (Syntax highlighting for cjson and jsonc files)
- [jsonnet](https://github.com/google/vim-jsonnet) (Jsonnet syntax highlighting for jsonnet and libsonnet files) - [jsonnet](https://github.com/google/vim-jsonnet) (Jsonnet syntax highlighting for jsonnet and libsonnet files)
- [jst](https://github.com/briancollins/vim-jst) (EJS syntax highlighting for ejs, ect and jst files) - [jst](https://github.com/briancollins/vim-jst) (EJS syntax highlighting for ejs, ect and jst files)
- [jsx](https://github.com/MaxMEllon/vim-jsx-pretty) (JSX syntax highlighting for jsx files) - [jsx](https://github.com/MaxMEllon/vim-jsx-pretty) (JSX syntax highlighting for jsx files)
@@ -128,6 +128,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [mathematica](https://github.com/voldikss/vim-mma) (Mathematica syntax highlighting for mathematica, cdf, m, ma, mt and 6 more files) - [mathematica](https://github.com/voldikss/vim-mma) (Mathematica syntax highlighting for mathematica, cdf, m, ma, mt and 6 more files)
- [mdx](https://github.com/jxnblk/vim-mdx-js) (Syntax highlighting for mdx files) - [mdx](https://github.com/jxnblk/vim-mdx-js) (Syntax highlighting for mdx files)
- [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files) - [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files)
- [mint](https://github.com/IrenejMarc/vim-mint) (Syntax highlighting for mint files)
- [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files) - [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files)
- [nginx](https://github.com/chr4/nginx.vim) (Nginx syntax highlighting for nginx, nginxconf and vhost files) - [nginx](https://github.com/chr4/nginx.vim) (Nginx syntax highlighting for nginx, nginxconf and vhost files)
- [nim](https://github.com/zah/nim.vim) (Nim syntax highlighting for nim, nim.cfg, nimble, nimrod and nims files) - [nim](https://github.com/zah/nim.vim) (Nim syntax highlighting for nim, nim.cfg, nimble, nimrod and nims files)
@@ -138,6 +139,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [odin](https://github.com/Tetralux/odin.vim) (Odin syntax highlighting for odin files) - [odin](https://github.com/Tetralux/odin.vim) (Odin syntax highlighting for odin files)
- [opencl](https://github.com/petRUShka/vim-opencl) (OpenCL syntax highlighting for cl and opencl files) - [opencl](https://github.com/petRUShka/vim-opencl) (OpenCL syntax highlighting for cl and opencl files)
- [perl](https://github.com/vim-perl/vim-perl) (Perl syntax highlighting for pl, al, cgi, fcgi, perl and 12 more files) - [perl](https://github.com/vim-perl/vim-perl) (Perl syntax highlighting for pl, al, cgi, fcgi, perl and 12 more files)
- [pest](https://github.com/pest-parser/pest.vim) (Syntax highlighting for pest files)
- [pgsql](https://github.com/lifepillar/pgsql.vim) (PLpgSQL syntax highlighting for pgsql files) - [pgsql](https://github.com/lifepillar/pgsql.vim) (PLpgSQL syntax highlighting for pgsql files)
- [php](https://github.com/StanAngeloff/php.vim) (PHP syntax highlighting for php, aw, ctp, fcgi, inc and 7 more files) - [php](https://github.com/StanAngeloff/php.vim) (PHP syntax highlighting for php, aw, ctp, fcgi, inc and 7 more files)
- [plantuml](https://github.com/aklt/plantuml-syntax) (PlantUML syntax highlighting for puml, iuml, plantuml, uml and pu files) - [plantuml](https://github.com/aklt/plantuml-syntax) (PlantUML syntax highlighting for puml, iuml, plantuml, uml and pu files)
@@ -178,6 +180,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [swift](https://github.com/keith/swift.vim) (Swift syntax highlighting for swift files) - [swift](https://github.com/keith/swift.vim) (Swift syntax highlighting for swift files)
- [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (Syntax highlighting for sxhkdrc files) - [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (Syntax highlighting for sxhkdrc files)
- [systemd](https://github.com/wgwoods/vim-systemd-syntax) (Syntax highlighting for automount, dnssd, link, mount, netdev and 9 more files) - [systemd](https://github.com/wgwoods/vim-systemd-syntax) (Syntax highlighting for automount, dnssd, link, mount, netdev and 9 more files)
- [terraform](https://github.com/hashivim/vim-terraform) (Syntax highlighting for tf and tfvars files)
- [textile](https://github.com/timcharper/textile.vim) (Textile syntax highlighting for textile files) - [textile](https://github.com/timcharper/textile.vim) (Textile syntax highlighting for textile files)
- [thrift](https://github.com/solarnz/thrift.vim) (Thrift syntax highlighting for thrift files) - [thrift](https://github.com/solarnz/thrift.vim) (Thrift syntax highlighting for thrift files)
- [tmux](https://github.com/ericpruitt/tmux.vim/tree/master/vim) - [tmux](https://github.com/ericpruitt/tmux.vim/tree/master/vim)
@@ -193,7 +196,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [velocity](https://github.com/lepture/vim-velocity) (Syntax highlighting for vm files) - [velocity](https://github.com/lepture/vim-velocity) (Syntax highlighting for vm files)
- [vue](https://github.com/posva/vim-vue) (Vue syntax highlighting for vue and wpy files) - [vue](https://github.com/posva/vim-vue) (Vue syntax highlighting for vue and wpy files)
- [xdc](https://github.com/amal-khailtash/vim-xdc-syntax) (Syntax highlighting for xdc files) - [xdc](https://github.com/amal-khailtash/vim-xdc-syntax) (Syntax highlighting for xdc files)
- [xml](https://github.com/amadeus/vim-xml) (XML syntax highlighting for xml, adml, admx, ant, axml and 93 more files) - [xml](https://github.com/amadeus/vim-xml) (XML syntax highlighting for xml, adml, admx, ant, axml and 94 more files)
- [xsl](https://github.com/vim-scripts/XSLT-syntax) (XSLT syntax highlighting for xslt and xsl files) - [xsl](https://github.com/vim-scripts/XSLT-syntax) (XSLT syntax highlighting for xslt and xsl files)
- [yard](https://github.com/noprompt/vim-yardoc) - [yard](https://github.com/noprompt/vim-yardoc)
- [zephir](https://github.com/xwsoul/vim-zephir) (Zephir syntax highlighting for zep files) - [zephir](https://github.com/xwsoul/vim-zephir) (Zephir syntax highlighting for zep files)

View File

@@ -1,7 +1,7 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 if has_key(g:polyglot_is_disabled, 'haskell')
finish
endif
setlocal comments=s1fl:{-,mb:-,ex:-},:-- setlocal comments=s1fl:{-,mb:-,ex:-},:--
setlocal iskeyword+=-,.,* setlocal iskeyword+=-,.,*
setlocal commentstring=--\ %s setlocal commentstring=--\ %s
endif

View File

@@ -1,9 +1,9 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 if has_key(g:polyglot_is_disabled, 'cjsx')
finish
endif
if exists("loaded_matchit") if exists("loaded_matchit")
let b:match_ignorecase = 0 let b:match_ignorecase = 0
let b:match_words = '(:),\[:\],{:},<:>,' . let b:match_words = '(:),\[:\],{:},<:>,' .
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
endif endif
endif

View File

@@ -1,6 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 if has_key(g:polyglot_is_disabled, 'haskell')
finish
endif
setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:-- setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--
setlocal iskeyword+=' setlocal iskeyword+='
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Maintainer: othree <othree@gmail.com> " Maintainer: othree <othree@gmail.com>
" URL: http://github.com/othree/html5.vim " URL: http://github.com/othree/html5.vim
@@ -9,5 +11,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
" setlocal iskeyword+=- " setlocal iskeyword+=-
setlocal commentstring=<!--%s--> setlocal commentstring=<!--%s-->
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 if has_key(g:polyglot_is_disabled, 'idris')
finish
endif
setlocal iskeyword+=' setlocal iskeyword+='
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris2') == -1 if has_key(g:polyglot_is_disabled, 'idris2')
finish
endif
setlocal iskeyword+=' setlocal iskeyword+='
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 if has_key(g:polyglot_is_disabled, 'javascript')
finish
endif
" Vim filetype plugin file " Vim filetype plugin file
" Language: JavaScript " Language: JavaScript
@@ -12,5 +14,3 @@ if exists('b:undo_ftplugin')
else else
let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<' let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<'
endif endif
endif

View File

@@ -1,9 +1,9 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
if get(g:, 'vim_jsx_pretty_disable_js', 0) if get(g:, 'vim_jsx_pretty_disable_js', 0)
finish finish
endif endif
source <sfile>:h/jsx.vim source <sfile>:h/jsx.vim
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
source <sfile>:h/jsx.vim source <sfile>:h/jsx.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim ftplugin file " Vim ftplugin file
@@ -31,5 +33,3 @@ augroup jsx_comment
augroup end augroup end
setlocal suffixesadd+=.jsx setlocal suffixesadd+=.jsx
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 if has_key(g:polyglot_is_disabled, 'llvm')
finish
endif
" Copyright (c) 2018 rhysd " Copyright (c) 2018 rhysd
" "
@@ -483,5 +485,3 @@ endfunction
if !exists(':LLI') if !exists(':LLI')
command! -buffer -nargs=? -bar -complete=file LLI call <SID>run_lli(<f-args>) command! -buffer -nargs=? -bar -complete=file LLI call <SID>run_lli(<f-args>)
endif endif
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if has_key(g:polyglot_is_disabled, 'puppet')
finish
endif
if !exists('g:puppet_align_hashes') if !exists('g:puppet_align_hashes')
let g:puppet_align_hashes = 1 let g:puppet_align_hashes = 1
@@ -7,5 +9,3 @@ endif
if g:puppet_align_hashes if g:puppet_align_hashes
inoremap <buffer> <silent> => =><Esc>:call puppet#align#AlignHashrockets()<CR>$a inoremap <buffer> <silent> => =><Esc>:call puppet#align#AlignHashrockets()<CR>$a
endif endif
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
" modified from html.vim " modified from html.vim
" For matchit plugin " For matchit plugin
@@ -28,5 +30,3 @@ augroup jsx_comment
augroup end augroup end
setlocal suffixesadd+=.tsx setlocal suffixesadd+=.tsx
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
source <sfile>:h/tsx.vim source <sfile>:h/tsx.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Vim indent script for HTML " Vim indent script for HTML
" Header: "{{{ " Header: "{{{
@@ -1060,5 +1062,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save unlet s:cpo_save
" vim: fdm=marker ts=8 sw=2 tw=78 " vim: fdm=marker ts=8 sw=2 tw=78
endif

View File

@@ -1,9 +1,9 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
if get(g:, 'vim_jsx_pretty_disable_js', 0) if get(g:, 'vim_jsx_pretty_disable_js', 0)
finish finish
endif endif
source <sfile>:h/jsx.vim source <sfile>:h/jsx.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org> " Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
" "
@@ -36,11 +38,9 @@ setlocal indentexpr=GetJavascriptGraphQLIndent()
function GetJavascriptGraphQLIndent() function GetJavascriptGraphQLIndent()
let l:stack = map(synstack(v:lnum, 1), "synIDattr(v:val, 'name')") let l:stack = map(synstack(v:lnum, 1), "synIDattr(v:val, 'name')")
if get(l:stack, 0) ==# 'graphqlTemplateString' if get(l:stack, 0, '') ==# 'graphqlTemplateString'
return GetGraphQLIndent() return GetGraphQLIndent()
endif endif
return eval(b:indentexpr_base) return eval(b:indentexpr_base)
endfunction endfunction
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
source <sfile>:h/jsx.vim source <sfile>:h/jsx.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim indent file " Vim indent file
@@ -29,5 +31,3 @@ endfunction
let &cpo = s:keepcpo let &cpo = s:keepcpo
unlet s:keepcpo unlet s:keepcpo
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 if has_key(g:polyglot_is_disabled, 'objc')
finish
endif
" Vim indent file " Vim indent file
" Language: Objective-C " Language: Objective-C
@@ -93,5 +95,3 @@ endfunction
" Restore 'cpo' options " Restore 'cpo' options
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo
endif

46
after/indent/php.vim Normal file
View File

@@ -0,0 +1,46 @@
if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
"
" Permission is hereby granted, free of charge, to any person obtaining a copy
" of this software and associated documentation files (the "Software"), to
" deal in the Software without restriction, including without limitation the
" rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
" sell copies of the Software, and to permit persons to whom the Software is
" furnished to do so, subject to the following conditions:
"
" The above copyright notice and this permission notice shall be included in
" all copies or substantial portions of the Software.
"
" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
" IN THE SOFTWARE.
"
" Language: GraphQL
" Maintainer: Jon Parise <jon@indelible.org>
if exists('*GetPHPGraphQLIndent') && !empty(&indentexpr)
finish
endif
runtime! indent/graphql.vim
" Set the indentexpr with our own version that will call GetGraphQLIndent when
" we're inside of a GraphQL string and otherwise defer to the base function.
let b:indentexpr_base = &indentexpr
setlocal indentexpr=GetPHPGraphQLIndent()
function GetPHPGraphQLIndent()
let l:stack = map(synstack(v:lnum, 1), "synIDattr(v:val, 'name')")
if get(l:stack, 0, '') ==# 'phpRegion' && count(l:stack, 'graphqlFold') > 0
return GetGraphQLIndent()
endif
return eval(b:indentexpr_base)
endfunction

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim indent file " Vim indent file
@@ -36,5 +38,3 @@ endfunction
let &cpo = s:keepcpo let &cpo = s:keepcpo
unlet s:keepcpo unlet s:keepcpo
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org> " Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
" "
@@ -36,11 +38,9 @@ setlocal indentexpr=GetTypescriptGraphQLIndent()
function GetTypescriptGraphQLIndent() function GetTypescriptGraphQLIndent()
let l:stack = map(synstack(v:lnum, 1), "synIDattr(v:val, 'name')") let l:stack = map(synstack(v:lnum, 1), "synIDattr(v:val, 'name')")
if get(l:stack, 0) ==# 'graphqlTemplateString' if get(l:stack, 0, '') ==# 'graphqlTemplateString'
return GetGraphQLIndent() return GetGraphQLIndent()
endif endif
return eval(b:indentexpr_base) return eval(b:indentexpr_base)
endfunction endfunction
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
source <sfile>:h/tsx.vim source <sfile>:h/tsx.vim
endif

View File

@@ -1,16 +1,14 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') == -1 if has_key(g:polyglot_is_disabled, 'cpp-modern')
finish
endif
" ============================================================================== " ==============================================================================
" Vim syntax file " Vim syntax file
" Language: C Additions " Language: C Additions
" Original Author: Mikhail Wolfson <mywolfson@gmail.com> " Original Author: Mikhail Wolfson <mywolfson@gmail.com>
" http://www.vim.org/scripts/script.php?script_id=3064 " Maintainer: bfrg <https://github.com/bfrg>
" Maintainer: bfrg <bfrg@users.noreply.github.com>
" Website: https://github.com/bfrg/vim-cpp-modern " Website: https://github.com/bfrg/vim-cpp-modern
" Last Change: Oct 17, 2020 " Last Change: Nov 23, 2020
"
" Extended C syntax highlighting including highlighting of user-defined
" functions.
" "
" This syntax file is based on: " This syntax file is based on:
" https://github.com/octol/vim-cpp-enhanced-highlight " https://github.com/octol/vim-cpp-enhanced-highlight
@@ -34,6 +32,7 @@ if get(g:, 'cpp_member_highlight', 0)
syn match cStructMember "\<\h\w*\>\%((\|<\)\@!" contained syn match cStructMember "\<\h\w*\>\%((\|<\)\@!" contained
syn cluster cParenGroup add=cStructMember syn cluster cParenGroup add=cStructMember
syn cluster cPreProcGroup add=cStructMember syn cluster cPreProcGroup add=cStructMember
syn cluster cMultiGroup add=cStructMember
hi def link cStructMember Identifier hi def link cStructMember Identifier
if &filetype ==# 'cpp' if &filetype ==# 'cpp'
@@ -60,9 +59,8 @@ hi def link cAnsiName Identifier
" Highlight all standard C keywords as Statement " Highlight all standard C keywords as Statement
" This is very similar to what other IDEs and editors do " This is very similar to what other IDEs and editors do
if get(g:, 'cpp_simple_highlight', 0) if get(g:, 'cpp_simple_highlight', 0)
hi link cStorageClass Statement hi! def link cStorageClass Statement
hi link cStructure Statement hi! def link cStructure Statement
hi link cLabel Statement hi! def link cTypedef Statement
endif hi! def link cLabel Statement
endif endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 if has_key(g:polyglot_is_disabled, 'cjsx')
finish
endif
if exists('b:current_syntax') if exists('b:current_syntax')
let s:current_syntax=b:current_syntax let s:current_syntax=b:current_syntax
@@ -27,5 +29,3 @@ hi def link cjsxTagName Function
hi def link cjsxEntity Statement hi def link cjsxEntity Statement
hi def link cjsxEntityPunct Type hi def link cjsxEntityPunct Type
hi def link cjsxAttribProperty Type hi def link cjsxAttribProperty Type
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') == -1 if has_key(g:polyglot_is_disabled, 'cpp-modern')
finish
endif
" ============================================================================== " ==============================================================================
" Vim syntax file " Vim syntax file
@@ -6,7 +8,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') ==
" Original Author: Jon Haggblad <https://github.com/octol> " Original Author: Jon Haggblad <https://github.com/octol>
" Maintainer: bfrg <https://github.com/bfrg> " Maintainer: bfrg <https://github.com/bfrg>
" Website: https://github.com/bfrg/vim-cpp-modern " Website: https://github.com/bfrg/vim-cpp-modern
" Last Change: Oct 8, 2020 " Last Change: Nov 23, 2020
" "
" This syntax file is based on: " This syntax file is based on:
" https://github.com/octol/vim-cpp-enhanced-highlight " https://github.com/octol/vim-cpp-enhanced-highlight
@@ -199,14 +201,12 @@ hi def link cppSTLvariable Identifier
" The keywords {inline, virtual, explicit, export, override, final} are " The keywords {inline, virtual, explicit, export, override, final} are
" standard C++ keywords and NOT types! " standard C++ keywords and NOT types!
hi link cppModifier Statement hi! def link cppModifier Statement
" Highlight all standard C++ keywords as Statement " Highlight all standard C++ keywords as Statement
if get(g:, 'cpp_simple_highlight', 0) if get(g:, 'cpp_simple_highlight', 0)
hi link cppStructure Statement hi! def link cppStructure Statement
hi link cppExceptions Statement hi! def link cppExceptions Statement
hi link cppStorageClass Statement hi! def link cppStorageClass Statement
endif
endif endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1 if has_key(g:polyglot_is_disabled, 'dhall')
finish
endif
" store and remove current syntax value " store and remove current syntax value
let old_syntax = b:current_syntax let old_syntax = b:current_syntax
@@ -13,5 +15,3 @@ hi def link quasiQuote Underlined
" restore current syntax value " restore current syntax value
let b:current_syntax = old_syntax let b:current_syntax = old_syntax
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 if has_key(g:polyglot_is_disabled, 'scala')
finish
endif
" Extends standard help syntax with highlighting of Scala code. " Extends standard help syntax with highlighting of Scala code.
" "
@@ -14,5 +16,3 @@ if has('conceal')
else else
syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode
endif endif
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Vim syntax file " Vim syntax file
" Language: HTML (version 5.1) " Language: HTML (version 5.1)
@@ -196,5 +198,3 @@ syn keyword htmlArg contained veryverythickmathspace veryverythinmathspace voffs
" https://github.com/w3c/html/issues/694 " https://github.com/w3c/html/issues/694
syntax region htmlComment start=+<!--+ end=+-->+ contains=@Spell syntax region htmlComment start=+<!--+ end=+-->+ contains=@Spell
syntax region htmlComment start=+<!DOCTYPE+ keepend end=+>+ syntax region htmlComment start=+<!DOCTYPE+ keepend end=+>+
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Vim syntax file " Vim syntax file
" Language: WAI-ARIA " Language: WAI-ARIA
@@ -75,5 +77,3 @@ syn match htmlArg contained "\<aria-\%(\|labelledby\|owns\|posinset\|setsize\
syn match htmlArg contained "\<aria-\%(\|colcount\|colindex\|colspan\)\>" syn match htmlArg contained "\<aria-\%(\|colcount\|colindex\|colspan\)\>"
syn match htmlArg contained "\<aria-\%(\|rowcount\|rowindex\|rowspan\)\>" syn match htmlArg contained "\<aria-\%(\|rowcount\|rowindex\|rowspan\)\>"
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Vim syntax file " Vim syntax file
" Language: Electron " Language: Electron
@@ -15,5 +17,3 @@ syn keyword htmlArg contained useragent disablewebsecurity partition allowpopups
syn keyword htmlArg contained webpreferences blinkfeatures disableblinkfeatures syn keyword htmlArg contained webpreferences blinkfeatures disableblinkfeatures
syn keyword htmlArg contained guestinstance disableguestresize syn keyword htmlArg contained guestinstance disableguestresize
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Vim syntax file " Vim syntax file
" Language: RDFa " Language: RDFa
@@ -11,5 +13,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
" RDFa " RDFa
" http://www.w3.org/TR/rdfa-syntax/#s_syntax " http://www.w3.org/TR/rdfa-syntax/#s_syntax
syn keyword htmlArg contained about content datatype href inlist prefix property rel resource rev src typeof vocab syn keyword htmlArg contained about content datatype href inlist prefix property rel resource rev src typeof vocab
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 if has_key(g:polyglot_is_disabled, 'idris')
finish
endif
" This script allows for unicode concealing of certain characters " This script allows for unicode concealing of certain characters
" For instance -> goes to → " For instance -> goes to →
@@ -78,5 +80,3 @@ hi link idrNiceOperator Operator
hi! link Conceal Operator hi! link Conceal Operator
setlocal conceallevel=2 setlocal conceallevel=2
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris2') == -1 if has_key(g:polyglot_is_disabled, 'idris2')
finish
endif
" This script allows for unicode concealing of certain characters " This script allows for unicode concealing of certain characters
" For instance -> goes to → " For instance -> goes to →
@@ -78,5 +80,3 @@ hi link idrNiceOperator Operator
hi! link Conceal Operator hi! link Conceal Operator
setlocal conceallevel=2 setlocal conceallevel=2
endif

View File

@@ -1,9 +1,9 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
if get(g:, 'vim_jsx_pretty_disable_js', 0) if get(g:, 'vim_jsx_pretty_disable_js', 0)
finish finish
endif endif
source <sfile>:h/jsx.vim source <sfile>:h/jsx.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org> " Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
" "
@@ -27,7 +29,11 @@ if exists('b:current_syntax')
let s:current_syntax = b:current_syntax let s:current_syntax = b:current_syntax
unlet b:current_syntax unlet b:current_syntax
endif endif
let b:graphql_nested_syntax = 1
syn include @GraphQLSyntax syntax/graphql.vim syn include @GraphQLSyntax syntax/graphql.vim
unlet b:graphql_nested_syntax
if exists('s:current_syntax') if exists('s:current_syntax')
let b:current_syntax = s:current_syntax let b:current_syntax = s:current_syntax
endif endif
@@ -40,11 +46,13 @@ if graphql#has_syntax_group('jsTemplateExpression')
exec 'syntax match graphqlTaggedTemplate +' . s:tags . '\ze`+ nextgroup=graphqlTemplateString' exec 'syntax match graphqlTaggedTemplate +' . s:tags . '\ze`+ nextgroup=graphqlTemplateString'
syntax region graphqlTemplateExpression start=+${+ end=+}+ contained contains=jsTemplateExpression containedin=graphqlFold keepend syntax region graphqlTemplateExpression start=+${+ end=+}+ contained contains=jsTemplateExpression containedin=graphqlFold keepend
syntax region graphqlTemplateString matchgroup=jsTemplateString start=+`#\s\{,4\}gql\>\s*$+ skip=+\\\\\|\\`+ end=+`+ contains=@GraphQLSyntax,jsTemplateExpression,jsSpecial extend
hi def link graphqlTemplateString jsTemplateString hi def link graphqlTemplateString jsTemplateString
hi def link graphqlTaggedTemplate jsTaggedTemplate hi def link graphqlTaggedTemplate jsTaggedTemplate
hi def link graphqlTemplateExpression jsTemplateExpression hi def link graphqlTemplateExpression jsTemplateExpression
syn cluster jsExpression add=graphqlTaggedTemplate syn cluster jsExpression add=graphqlTemplateString,graphqlTaggedTemplate
syn cluster graphqlTaggedTemplate add=graphqlTemplateString syn cluster graphqlTaggedTemplate add=graphqlTemplateString
elseif graphql#has_syntax_group('javaScriptStringT') elseif graphql#has_syntax_group('javaScriptStringT')
" runtime/syntax/javascript.vim " runtime/syntax/javascript.vim
@@ -52,6 +60,8 @@ elseif graphql#has_syntax_group('javaScriptStringT')
exec 'syntax match graphqlTaggedTemplate +' . s:tags . '\ze`+ nextgroup=graphqlTemplateString' exec 'syntax match graphqlTaggedTemplate +' . s:tags . '\ze`+ nextgroup=graphqlTemplateString'
syntax region graphqlTemplateExpression start=+${+ end=+}+ contained contains=@javaScriptEmbededExpr containedin=graphqlFold keepend syntax region graphqlTemplateExpression start=+${+ end=+}+ contained contains=@javaScriptEmbededExpr containedin=graphqlFold keepend
syntax region graphqlTemplateString matchgroup=javaScriptStringT start=+`#\s\{,4\}gql\>\s*$+ skip=+\\\\\|\\`+ end=+`+ contains=@GraphQLSyntax,javaScriptSpecial,javaScriptEmbed,@htmlPreproc extend
hi def link graphqlTemplateString javaScriptStringT hi def link graphqlTemplateString javaScriptStringT
hi def link graphqlTaggedTemplate javaScriptEmbed hi def link graphqlTaggedTemplate javaScriptEmbed
hi def link graphqlTemplateExpression javaScriptEmbed hi def link graphqlTemplateExpression javaScriptEmbed
@@ -60,5 +70,3 @@ elseif graphql#has_syntax_group('javaScriptStringT')
syn cluster javaScriptEmbededExpr add=graphqlTaggedTemplate syn cluster javaScriptEmbededExpr add=graphqlTaggedTemplate
syn cluster graphqlTaggedTemplate add=graphqlTemplateString syn cluster graphqlTaggedTemplate add=graphqlTemplateString
endif endif
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Vim syntax file " Vim syntax file
" Language: HTML5 New Stuff " Language: HTML5 New Stuff
@@ -49,5 +51,3 @@ syn keyword javascriptDomElemAttrs indeterminate
" select https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers " select https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers
syn keyword javascriptDomElemAttrs onselectstart onselectchange syn keyword javascriptDomElemAttrs onselectstart onselectchange
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript-sql') == -1 if has_key(g:polyglot_is_disabled, 'javascript-sql')
finish
endif
" Vim plugin " Vim plugin
" Language: JavaScript " Language: JavaScript
@@ -22,5 +24,3 @@ hi def link sqlTaggedTemplate jsTaggedTemplate
syn cluster jsExpression add=sqlTaggedTemplate syn cluster jsExpression add=sqlTaggedTemplate
syn cluster sqlTaggedTemplate add=sqlTemplateString syn cluster sqlTaggedTemplate add=sqlTemplateString
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
source <sfile>:h/jsx.vim source <sfile>:h/jsx.vim
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
runtime! after/syntax/javascript/graphql.vim runtime! after/syntax/javascript/graphql.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim syntax file " Vim syntax file
@@ -55,5 +57,3 @@ let b:current_syntax = 'javascript.jsx'
let &cpo = s:jsx_cpo let &cpo = s:jsx_cpo
unlet s:jsx_cpo unlet s:jsx_cpo
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0) let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0)
@@ -138,7 +140,7 @@ exe 'syntax match jsxTagName
" and " and
" <tag id='sample'> " <tag id='sample'>
" ~~~~~~~~ " ~~~~~~~~
syntax region jsxString start=+\z(["']\)+ skip=+\\\\\|\\\z1\|\\\n+ end=+\z1+ contained contains=@Spell syntax region jsxString start=+\z(["']\)+ skip=+\\\\\|\\\z1\|\\\n+ end=+\z1+ extend contained contains=@Spell
let s:tags = get(g:, 'vim_jsx_pretty_template_tags', ['html', 'jsx']) let s:tags = get(g:, 'vim_jsx_pretty_template_tags', ['html', 'jsx'])
let s:enable_tagged_jsx = !empty(s:tags) let s:enable_tagged_jsx = !empty(s:tags)
@@ -221,5 +223,3 @@ if s:vim_jsx_pretty_colorful_config == 1
highlight def link jsArrowFuncArgs Type highlight def link jsArrowFuncArgs Type
highlight def link jsFuncArgs Type highlight def link jsFuncArgs Type
endif endif
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 if has_key(g:polyglot_is_disabled, 'llvm')
finish
endif
" Copyright (c) 2018 rhysd " Copyright (c) 2018 rhysd
" "
@@ -22,5 +24,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
syn keyword llvmKeyword attributes syn keyword llvmKeyword attributes
syn match llvmNoName /#\d\+\>/ syn match llvmNoName /#\d\+\>/
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1 if has_key(g:polyglot_is_disabled, 'mdx')
finish
endif
" based on mxw/vim-jsx " based on mxw/vim-jsx
@@ -41,5 +43,3 @@ syn cluster jsExpression add=jsxRegion
" Allow jsxRegion to contain reserved words. " Allow jsxRegion to contain reserved words.
syn cluster javascriptNoReserved add=jsxRegion syn cluster javascriptNoReserved add=jsxRegion
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 if has_key(g:polyglot_is_disabled, 'mathematica')
finish
endif
"Vim conceal file "Vim conceal file
" Language: Mathematica " Language: Mathematica
@@ -1442,5 +1444,3 @@ endif
hi! link Conceal Normal hi! link Conceal Normal
setlocal conceallevel=2 setlocal conceallevel=2
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 if has_key(g:polyglot_is_disabled, 'objc')
finish
endif
" ARC type modifiers " ARC type modifiers
syn keyword objcTypeModifier __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak __unsafe_unretained syn keyword objcTypeModifier __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak __unsafe_unretained
@@ -19,5 +21,3 @@ syn match objcDirective "@property\|@synthesize\|@dynamic\|@package"
" Highlight property attributes as if they were type modifiers " Highlight property attributes as if they were type modifiers
hi def link objcPropertyAttribute objcTypeModifier hi def link objcPropertyAttribute objcTypeModifier
endif

View File

@@ -0,0 +1,42 @@
if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
"
" Permission is hereby granted, free of charge, to any person obtaining a copy
" of this software and associated documentation files (the "Software"), to
" deal in the Software without restriction, including without limitation the
" rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
" sell copies of the Software, and to permit persons to whom the Software is
" furnished to do so, subject to the following conditions:
"
" The above copyright notice and this permission notice shall be included in
" all copies or substantial portions of the Software.
"
" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
" IN THE SOFTWARE.
"
" Language: GraphQL
" Maintainer: Jon Parise <jon@indelible.org>
if exists('b:current_syntax')
let s:current_syntax = b:current_syntax
unlet b:current_syntax
endif
let b:graphql_nested_syntax = 1
syn include @GraphQLSyntax syntax/graphql.vim
unlet b:graphql_nested_syntax
if exists('s:current_syntax')
let b:current_syntax = s:current_syntax
endif
syn region phpHereDoc matchgroup=Delimiter start="\(<<<\)\@<=\(\"\=\)\z(\(\I\i*\)\=\(gql\)\c\(\i*\)\)\2$" end="^\s*\z1\>" contained contains=@GraphQLSyntax,phpIdentifier,phpIdentifierSimply,phpIdentifierComplex,phpBackslashSequences,phpMethodsVar,@Spell keepend extend
syntax region phpNowDoc matchgroup=Delimiter start="\(<<<\)\@<='\z(\(\I\i*\)\=\(gql\)\c\(\i*\)\)'$" end="^\s*\z1\>" contained contains=@GraphQLSyntax,@Spell keepend extend

View File

@@ -1,4 +1,4 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1 if has_key(g:polyglot_is_disabled, 'reason')
finish
endif endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org> " Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
" "
@@ -27,11 +29,13 @@ if exists('b:current_syntax')
let s:current_syntax = b:current_syntax let s:current_syntax = b:current_syntax
unlet b:current_syntax unlet b:current_syntax
endif endif
let b:graphql_nested_syntax = 1
syn include @GraphQLSyntax syntax/graphql.vim syn include @GraphQLSyntax syntax/graphql.vim
unlet b:graphql_nested_syntax
if exists('s:current_syntax') if exists('s:current_syntax')
let b:current_syntax = s:current_syntax let b:current_syntax = s:current_syntax
endif endif
syntax region graphqlExtensionPoint matchgroup=Noise start=+\[%graphql\_s*{|+lc=10 end=+|}\_s*]+he=s+1 contains=@GraphQLSyntax keepend syntax region graphqlExtensionPoint matchgroup=Noise start=+\[%graphql\_s*{|+lc=10 end=+|}\_s*]+he=s+1 contains=@GraphQLSyntax keepend
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1 if has_key(g:polyglot_is_disabled, 'rspec')
finish
endif
" "
" An rspec syntax file " An rspec syntax file
@@ -189,5 +191,3 @@ highlight link rspecMatchers Function
highlight link rspecMessageExpectation Function highlight link rspecMessageExpectation Function
let b:current_syntax = 'rspec' let b:current_syntax = 'rspec'
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1 if has_key(g:polyglot_is_disabled, 'yard')
finish
endif
" Ruby syntax extensions for highlighting YARD documentation. " Ruby syntax extensions for highlighting YARD documentation.
" "
@@ -127,5 +129,3 @@ hi def link yardParametricType yardComment
hi def link yardArrow yardComment hi def link yardArrow yardComment
hi def link yardHashAngle yardComment hi def link yardHashAngle yardComment
hi def link yardHashCurly yardComment hi def link yardHashCurly yardComment
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 if has_key(g:polyglot_is_disabled, 'rust')
finish
endif
scriptencoding utf-8 scriptencoding utf-8
@@ -41,5 +43,3 @@ if !get(g:, 'rust_conceal_mod_path', 0)
endif endif
" vim: set et sw=4 sts=4 ts=8: " vim: set et sw=4 sts=4 ts=8:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim syntax file " Vim syntax file
@@ -59,5 +61,3 @@ let b:current_syntax = 'typescript.tsx'
let &cpo = s:jsx_cpo let &cpo = s:jsx_cpo
unlet s:jsx_cpo unlet s:jsx_cpo
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org> " Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
" "
@@ -27,7 +29,11 @@ if exists('b:current_syntax')
let s:current_syntax = b:current_syntax let s:current_syntax = b:current_syntax
unlet b:current_syntax unlet b:current_syntax
endif endif
let b:graphql_nested_syntax = 1
syn include @GraphQLSyntax syntax/graphql.vim syn include @GraphQLSyntax syntax/graphql.vim
unlet b:graphql_nested_syntax
if exists('s:current_syntax') if exists('s:current_syntax')
let b:current_syntax = s:current_syntax let b:current_syntax = s:current_syntax
endif endif
@@ -45,5 +51,3 @@ hi def link graphqlTemplateExpression typescriptTemplateSubstitution
syn cluster typescriptExpression add=graphqlTaggedTemplate syn cluster typescriptExpression add=graphqlTaggedTemplate
syn cluster graphqlTaggedTemplate add=graphqlTemplateString syn cluster graphqlTaggedTemplate add=graphqlTemplateString
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
source <sfile>:h/tsx.vim source <sfile>:h/tsx.vim
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
runtime! after/syntax/typescript/graphql.vim runtime! after/syntax/typescript/graphql.vim
endif

View File

@@ -1,5 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
runtime! after/syntax/javascript/graphql.vim runtime! after/syntax/javascript/graphql.vim
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zinit') == -1 if has_key(g:polyglot_is_disabled, 'zinit')
finish
endif
" Copyright (c) 2019 Sebastian Gniazdowski " Copyright (c) 2019 Sebastian Gniazdowski
" "
@@ -122,5 +124,3 @@ highlight def link ZinitSnippetUrl2 Macro
highlight def link ZinitSnippetUrl3 Macro highlight def link ZinitSnippetUrl3 Macro
highlight def link ZinitSnippetUrl4 Macro highlight def link ZinitSnippetUrl4 Macro
highlight def link ZinitTrailingWhiteSpace Error highlight def link ZinitTrailingWhiteSpace Error
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 if has_key(g:polyglot_is_disabled, 'julia')
finish
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Support for LaTex-to-Unicode conversion as in the Julia REPL " " Support for LaTex-to-Unicode conversion as in the Julia REPL "
@@ -652,5 +654,3 @@ function! LaTeXtoUnicode#Toggle()
endif endif
return '' return ''
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1 if has_key(g:polyglot_is_disabled, 'rst')
finish
endif
" Author: Antony Lee <anntzer.lee@gmail.com> " Author: Antony Lee <anntzer.lee@gmail.com>
" Description: Helper functions for reStructuredText syntax folding " Description: Helper functions for reStructuredText syntax folding
@@ -62,5 +64,3 @@ function RstFold#GetRstFoldText()
let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline
return indent . text return indent . text
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ada') == -1 if has_key(g:polyglot_is_disabled, 'ada')
finish
endif
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------
" Description: Perform Ada specific completion & tagging. " Description: Perform Ada specific completion & tagging.
@@ -637,5 +639,3 @@ finish " 1}}}
"------------------------------------------------------------------------------ "------------------------------------------------------------------------------
" vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab " vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
" vim: foldmethod=marker " vim: foldmethod=marker
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 if has_key(g:polyglot_is_disabled, 'rust')
finish
endif
function! cargo#Load() function! cargo#Load()
" Utility call to get this script loaded, for debugging " Utility call to get this script loaded, for debugging
@@ -147,5 +149,3 @@ function! cargo#runtarget(args)
endfunction endfunction
" vim: set et sw=4 sts=4 ts=8: " vim: set et sw=4 sts=4 ts=8:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 if has_key(g:polyglot_is_disabled, 'rust')
finish
endif
function! cargo#quickfix#CmdPre() abort function! cargo#quickfix#CmdPre() abort
if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo' && if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo' &&
@@ -27,5 +29,3 @@ function! cargo#quickfix#CmdPost() abort
endfunction endfunction
" vim: set et sw=4 sts=4 ts=8: " vim: set et sw=4 sts=4 ts=8:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 if has_key(g:polyglot_is_disabled, 'clojure')
finish
endif
" Vim completion script " Vim completion script
" Language: Clojure " Language: Clojure
@@ -22,5 +24,3 @@ function! clojurecomplete#Complete(findstart, base)
endfunction endfunction
" vim:sts=8:sw=8:ts=8:noet " vim:sts=8:sw=8:ts=8:noet
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 if has_key(g:polyglot_is_disabled, 'coffee-script')
finish
endif
" Language: CoffeeScript " Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co> " Maintainer: Mick Koch <mick@kochm.co>
@@ -54,5 +56,3 @@ function! coffee#CoffeeSetUpErrorFormat()
\%f:%l:%c:\ error:\ %m, \%f:%l:%c:\ error:\ %m,
\%-G%.%# \%-G%.%#
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 if has_key(g:polyglot_is_disabled, 'crystal')
finish
endif
" Variables {{{1 " Variables {{{1
" ========= " =========
@@ -1041,4 +1043,3 @@ endfunction
" }}}1 " }}}1
" vim:sw=2 sts=2 ts=8 fdm=marker et: " vim:sw=2 sts=2 ts=8 fdm=marker et:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 if has_key(g:polyglot_is_disabled, 'crystal')
finish
endif
let s:V = vital#crystal#new() let s:V = vital#crystal#new()
let s:P = s:V.import('Process') let s:P = s:V.import('Process')
@@ -363,5 +365,3 @@ function! crystal_lang#expand(file, pos, ...) abort
endfunction endfunction
" vim: sw=2 sts=2 et: " vim: sw=2 sts=2 et:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1 if has_key(g:polyglot_is_disabled, 'csv')
finish
endif
" Filetype plugin for editing CSV files. "{{{1 " Filetype plugin for editing CSV files. "{{{1
" Author: Christian Brabandt <cb@256bit.org> " Author: Christian Brabandt <cb@256bit.org>
@@ -3196,5 +3198,3 @@ endfun
" Vim Modeline " {{{2 " Vim Modeline " {{{2
" vim: set foldmethod=marker et sw=0 sts=-1 ts=4: " vim: set foldmethod=marker et sw=0 sts=-1 ts=4:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 if has_key(g:polyglot_is_disabled, 'dart')
finish
endif
function! s:error(text) abort function! s:error(text) abort
@@ -183,5 +185,3 @@ function! dart#setModifiable() abort
setlocal nomodifiable setlocal nomodifiable
endif endif
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if has_key(g:polyglot_is_disabled, 'elixir')
finish
endif
let s:path = expand('<sfile>:h') let s:path = expand('<sfile>:h')
let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')]) let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')])
@@ -20,5 +22,3 @@ endfunction
function! db#adapter#ecto#complete_opaque(url) abort function! db#adapter#ecto#complete_opaque(url) abort
return map(s:repo_list(), 'v:val[0]') return map(s:repo_list(), 'v:val[0]')
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 if has_key(g:polyglot_is_disabled, 'crystal')
finish
endif
let s:ecrystal_extensions = { let s:ecrystal_extensions = {
\ 'cr': 'crystal', \ 'cr': 'crystal',
@@ -32,5 +34,3 @@ function! ecrystal#SetSubtype() abort
endfunction endfunction
" vim: sw=2 sts=2 et: " vim: sw=2 sts=2 et:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if has_key(g:polyglot_is_disabled, 'elixir')
finish
endif
if !exists("g:elixir_indent_max_lookbehind") if !exists("g:elixir_indent_max_lookbehind")
let g:elixir_indent_max_lookbehind = 30 let g:elixir_indent_max_lookbehind = 30
@@ -371,5 +373,3 @@ function! elixir#indent#handle_inside_generic_block(context)
return -1 return -1
endif endif
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if has_key(g:polyglot_is_disabled, 'elixir')
finish
endif
function! elixir#util#get_filename(word) abort function! elixir#util#get_filename(word) abort
let word = a:word let word = a:word
@@ -24,5 +26,3 @@ function! elixir#util#get_filename(word) abort
return word return word
endfunction endfunction
endif

View File

@@ -1,43 +1,113 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 if has_key(g:polyglot_is_disabled, 'fish')
finish
endif
function! s:IsString(lnum, col)
" Returns "true" if syntax item at the given position is part of fishString.
let l:stack = map(synstack(a:lnum, a:col), 'synIDattr(v:val, "name")')
return len(filter(l:stack, 'v:val ==# "fishString"'))
endfunction
function! s:IsContinuedLine(lnum)
" Returns "true" if the given line is a continued line.
return getline(a:lnum - 1) =~ '\v\\$'
endfunction
function! s:FindPrevLnum(lnum)
" Starting on the given line, search backwards for a line that is not
" empty, not part of a string and not a continued line.
if a:lnum < 1 || a:lnum > line('$')
" First line or wrong value, follow prevnonblank() behaviour and
" return zero.
return 0
endif
let l:lnum = prevnonblank(a:lnum)
while l:lnum > 0 && ( s:IsContinuedLine(l:lnum) || s:IsString(l:lnum, 1) )
let l:lnum = prevnonblank(l:lnum - 1)
endwhile
return l:lnum
endfunction
function! s:IsSwitch(lnum)
" Returns "true" if the given line is part of a switch block.
let l:lnum = a:lnum
let l:line = getline(l:lnum)
let l:in_block = 0
let l:stop_pat = '\v^\s*%(if|else|while|for|begin)>'
let l:block_start_pat = '\v^\s*%(if|while|for|switch|begin)>'
while l:lnum > 0
let l:lnum = prevnonblank(l:lnum - 1)
let l:line = getline(l:lnum)
if l:line =~# '\v^\s*end>'
let l:in_block += 1
elseif l:in_block && l:line =~# l:block_start_pat
let l:in_block -= 1
elseif !l:in_block && l:line =~# l:stop_pat
return 0
elseif !l:in_block && l:line =~# '\v^\s*switch>'
return 1
endif
endwhile
return 0
endfunction
function! fish#Indent() function! fish#Indent()
let l:prevlnum = prevnonblank(v:lnum - 1)
if l:prevlnum ==# 0
return 0
endif
let l:prevline = getline(l:prevlnum)
let l:line = getline(v:lnum) let l:line = getline(v:lnum)
if s:IsString(v:lnum, 1)
return indent(v:lnum)
endif
" shiftwidth can be misleading in recent versions, use shiftwidth() if
" it is available.
if exists('*shiftwidth')
let l:shiftwidth = shiftwidth() let l:shiftwidth = shiftwidth()
let l:previndent = indent(l:prevlnum)
let l:indent = l:previndent
if l:prevline =~# '\v^\s*%(begin|if|else|while|for|function|switch|case)>'
let l:indent += l:shiftwidth
endif
if l:line =~# '\v^\s*end>'
let l:indent -= l:shiftwidth
" If we're inside a case, dedent twice because it ends the switch.
if l:prevline =~# '\v^\s*case>'
" Previous line starts the case.
let l:indent -= l:shiftwidth
else else
" Scan back to a dedented line to find whether we're in a case. let l:shiftwidth = &shiftwidth
let l:i = l:prevlnum
while l:i >= 1 && indent(l:i) >= l:previndent
let l:i = prevnonblank(l:i - 1)
endwhile
if indent(l:i) < l:previndent && getline(l:i) =~# '\v^\s*case>'
let l:indent -= l:shiftwidth
endif endif
endif let l:prevlnum = s:FindPrevLnum(v:lnum - 1)
elseif l:line =~# '\v^\s*else>' if l:prevlnum == 0
let l:indent -= l:shiftwidth
elseif l:prevline !~# '\v^\s*switch>' && l:line =~# '\v^\s*case>'
let l:indent -= l:shiftwidth
endif
if l:indent < 0
return 0 return 0
endif endif
return l:indent let l:shift = 0
let l:prevline = getline(l:prevlnum)
let l:previndent = indent(l:prevlnum)
if s:IsContinuedLine(v:lnum)
" It is customary to increment indentation of continued lines by three
" or a custom value defined by the user if available.
let l:previndent = indent(v:lnum - 1)
if s:IsContinuedLine(v:lnum - 1)
return l:previndent
elseif exists('g:fish_indent_cont')
return l:previndent + g:fish_indent_cont
elseif exists('g:indent_cont')
return l:previndent + g:indent_cont
else
return l:previndent + 3
endif
endif
if l:prevline =~# '\v^\s*%(begin|if|else|while|for|function|case|switch)>'
" First line inside a block, increase by one.
let l:shift += 1
endif
if l:line =~# '\v^\s*%(end|case|else)>'
" "end", "case" or "else", decrease by one.
let l:shift -= 1
endif
if l:line =~# '\v^\s*<case>' && l:prevline =~# '\v<switch>'
" "case" following "switch", increase by one.
let l:shift += 1
endif
if l:line =~# '\v\s*end>' && s:IsSwitch(v:lnum)
" "end" ends switch block, decrease by one more so it matches
" the indentation of "switch".
let l:shift -= 1
endif
if l:prevline =~# '\v^\s*%(if|while|for|else|switch|end)>.*<begin>'
" "begin" after start of block, increase by one.
let l:shift += 1
endif
let l:indent = l:previndent + l:shift * l:shiftwidth
" Only return zero or positive numbers.
return l:indent < 0 ? 0 : l:indent
endfunction endfunction
function! fish#Format() function! fish#Format()
@@ -47,6 +117,8 @@ function! fish#Format()
let l:command = v:lnum.','.(v:lnum+v:count-1).'!fish_indent' let l:command = v:lnum.','.(v:lnum+v:count-1).'!fish_indent'
echo l:command echo l:command
execute l:command execute l:command
" Fix indentation and replace tabs with spaces if necessary.
normal! '[=']
endif endif
endfunction endfunction
@@ -85,5 +157,3 @@ endfunction
function! fish#errorformat() function! fish#errorformat()
return '%Afish: %m,%-G%*\\ ^,%-Z%f (line %l):%s' return '%Afish: %m,%-G%*\\ ^,%-Z%f (line %l):%s'
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fsharp') == -1 if has_key(g:polyglot_is_disabled, 'fsharp')
finish
endif
" Vim autoload functions " Vim autoload functions
@@ -465,10 +467,10 @@ function! fsharp#sendFsi(text)
if fsharp#openFsi(!g:fsharp#fsi_focus_on_send) > 0 if fsharp#openFsi(!g:fsharp#fsi_focus_on_send) > 0
" Neovim " Neovim
if has('nvim') if has('nvim')
call chansend(s:fsi_job, a:text . ";;". "\n") call chansend(s:fsi_job, a:text . "\n" . ";;". "\n")
" Vim 8 " Vim 8
else else
call term_sendkeys(s:fsi_buffer, a:text . ";;" . "\<cr>") call term_sendkeys(s:fsi_buffer, a:text . "\<cr>" . ";;" . "\<cr>")
call term_wait(s:fsi_buffer) call term_wait(s:fsi_buffer)
endif endif
endif endif
@@ -513,5 +515,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save unlet s:cpo_save
" vim: sw=4 et sts=4 " vim: sw=4 et sts=4
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gitignore') == -1 if has_key(g:polyglot_is_disabled, 'gitignore')
finish
endif
scriptencoding utf-8 scriptencoding utf-8
@@ -37,5 +39,3 @@ function! fzf_gitignore#run() abort
endfunction endfunction
" vim: ts=2 et sw=2 " vim: ts=2 et sw=2
endif

View File

@@ -1,13 +1,11 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 if has_key(g:polyglot_is_disabled, 'go')
finish
endif
" don't spam the user when Vim is started in Vi compatibility mode " don't spam the user when Vim is started in Vi compatibility mode
let s:cpo_save = &cpo let s:cpo_save = &cpo
set cpo&vim set cpo&vim
function! go#config#AutodetectGopath() abort
return get(g:, 'go_autodetect_gopath', 0)
endfunction
function! go#config#ListTypeCommands() abort function! go#config#ListTypeCommands() abort
return get(g:, 'go_list_type_commands', {}) return get(g:, 'go_list_type_commands', {})
endfunction endfunction
@@ -623,5 +621,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save unlet s:cpo_save
" vim: sw=2 ts=2 et " vim: sw=2 ts=2 et
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if has_key(g:polyglot_is_disabled, 'graphql')
finish
endif
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org> " Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
" "
@@ -35,5 +37,3 @@ endfunction
function! graphql#javascript_tags() abort function! graphql#javascript_tags() abort
return get(g:, 'graphql_javascript_tags', ['gql', 'graphql', 'Relay.QL']) return get(g:, 'graphql_javascript_tags', ['gql', 'graphql', 'Relay.QL'])
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 if has_key(g:polyglot_is_disabled, 'html5')
finish
endif
" Vim completion script " Vim completion script
" Language: HTML and XHTML " Language: HTML and XHTML
@@ -841,5 +843,3 @@ function! htmlcomplete#CheckDoctype() " {{{
endfunction endfunction
" }}} " }}}
" vim:set foldmethod=marker: " vim:set foldmethod=marker:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsonnet') == -1 if has_key(g:polyglot_is_disabled, 'jsonnet')
finish
endif
@@ -125,5 +127,3 @@ function! jsonnet#Format()
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
function! jsx_pretty#comment#update_commentstring(original) function! jsx_pretty#comment#update_commentstring(original)
let line = getline(".") let line = getline(".")
@@ -37,5 +39,3 @@ function! s:syn_contains(lnum, cnum, syn_name)
let syn_names = map(stack, 'synIDattr(v:val, "name")') let syn_names = map(stack, 'synIDattr(v:val, "name")')
return index(syn_names, a:syn_name) >= 0 return index(syn_names, a:syn_name) >= 0
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || (index(g:polyglot_disabled, 'javascript') == -1 && index(g:polyglot_disabled, 'jsx') == -1) if has_key(g:polyglot_is_disabled, 'jsx')
finish
endif
if exists('*shiftwidth') if exists('*shiftwidth')
function! s:sw() function! s:sw()
@@ -302,5 +304,3 @@ function! jsx_pretty#indent#get(js_indent)
return a:js_indent() return a:js_indent()
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 if has_key(g:polyglot_is_disabled, 'julia')
finish
endif
function! julia#set_syntax_version(jvers) function! julia#set_syntax_version(jvers)
echo "The julia#set_syntax_version function is deprecated" echo "The julia#set_syntax_version function is deprecated"
@@ -165,5 +167,3 @@ function! julia#gotodefinition()
return return
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 if has_key(g:polyglot_is_disabled, 'julia')
finish
endif
" path to the julia binary to communicate with " path to the julia binary to communicate with
if has('win32') || has('win64') if has('win32') || has('win64')
@@ -242,5 +244,3 @@ function! s:likely(str) abort
let output = systemlist(cmd) let output = systemlist(cmd)
return split(matchstr(output[0], '\C^search: \zs.*')) return split(matchstr(output[0], '\C^search: \zs.*'))
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 if has_key(g:polyglot_is_disabled, 'julia')
finish
endif
" Facilities for moving around Julia blocks (e.g. if/end, function/end etc.) " Facilities for moving around Julia blocks (e.g. if/end, function/end etc.)
" (AKA a collection of horrible hacks) " (AKA a collection of horrible hacks)
@@ -794,5 +796,3 @@ function! s:cursor_moved(...)
let b:jlblk_did_select = b:jlblk_doing_select let b:jlblk_did_select = b:jlblk_doing_select
let b:jlblk_doing_select = 0 let b:jlblk_doing_select = 0
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 if has_key(g:polyglot_is_disabled, 'julia')
finish
endif
" This file is autogenerated from the script 'generate_latex_symbols_table.jl' " This file is autogenerated from the script 'generate_latex_symbols_table.jl'
" The symbols are based on Julia version 1.5.0-DEV.67 " The symbols are based on Julia version 1.5.0-DEV.67
@@ -3332,5 +3334,3 @@ function! julia_latex_symbols#get_dict()
\ '\:baggage_claim:': '🛄', \ '\:baggage_claim:': '🛄',
\ '\:left_luggage:': '🛅'} \ '\:left_luggage:': '🛅'}
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ledger') == -1 if has_key(g:polyglot_is_disabled, 'ledger')
finish
endif
scriptencoding utf-8 scriptencoding utf-8
" vim:ts=2:sw=2:sts=2:foldmethod=marker " vim:ts=2:sw=2:sts=2:foldmethod=marker
@@ -442,6 +444,19 @@ function! ledger#align_commodity() abort
endif endif
endf endf
" Align the commodity on the entire buffer
function! ledger#align_commodity_buffer() abort
" Store the viewport position
let view = winsaveview()
" Call ledger#align_commodity for every line
%call ledger#align_commodity()
" Restore the viewport position
call winrestview(view)
unlet view
endf
" Align the amount under the cursor and append/prepend the default currency. " Align the amount under the cursor and append/prepend the default currency.
function! ledger#align_amount_at_cursor() abort function! ledger#align_amount_at_cursor() abort
" Select and cut text: " Select and cut text:
@@ -740,5 +755,3 @@ function! ledger#show_balance(file, ...) abort
endif endif
endf endf
" }}} " }}}
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1 if has_key(g:polyglot_is_disabled, 'nim')
finish
endif
let g:nim_log = [] let g:nim_log = []
let s:plugin_path = escape(expand('<sfile>:p:h'), '\') let s:plugin_path = escape(expand('<sfile>:p:h'), '\')
@@ -238,5 +240,3 @@ if exists('g:SyntasticRegistry')
\ 'filetype': 'nim', \ 'filetype': 'nim',
\ 'name': 'nim'}) \ 'name': 'nim'})
endif endif
endif

View File

@@ -449,6 +449,11 @@ func! polyglot#shebang#VimDetect()
endif endif
if line1 =~ '^# ' || getline(2) =~ '^# ' || getline(3) =~ '^# ' || getline(4) =~ '^# ' || getline(5) =~ '^# '
setf FALLBACK conf
return 1
endif
return 1 return 1
endfunc endfunc

View File

@@ -144,7 +144,7 @@ let s:globs = {
\ 'ecd': '*.ecd', \ 'ecd': '*.ecd',
\ 'ecrystal': '*.ecr', \ 'ecrystal': '*.ecr',
\ 'edif': '*.ed\(f\|if\|o\)', \ 'edif': '*.ed\(f\|if\|o\)',
\ 'eelixir': '*.eex,*.leex', \ 'eelixir': '*.eex,*.html.leex,*.leex',
\ 'elf': '*.am', \ 'elf': '*.am',
\ 'elinks': 'elinks.conf', \ 'elinks': 'elinks.conf',
\ 'elixir': '*.ex,*.exs,mix.lock', \ 'elixir': '*.ex,*.exs,mix.lock',
@@ -263,6 +263,7 @@ let s:globs = {
\ 'jq': '*.jq,.jqrc,.jqrc*', \ 'jq': '*.jq,.jqrc,.jqrc*',
\ 'json': '*.json,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.JSON-tmLanguage,*.jsonl,*.mcmeta,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,*.jsonp,*.template,.arcconfig,.htmlhintrc,.tern-config,.tern-project,.watchmanconfig,composer.lock,mcmod.info,Pipfile.lock', \ 'json': '*.json,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.JSON-tmLanguage,*.jsonl,*.mcmeta,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,*.jsonp,*.template,.arcconfig,.htmlhintrc,.tern-config,.tern-project,.watchmanconfig,composer.lock,mcmod.info,Pipfile.lock',
\ 'json5': '*.json5', \ 'json5': '*.json5',
\ 'jsonc': '*.cjson,*.jsonc,coc-settings.json,.eslintrc.json,.babelrc,.jshintrc,.jslintrc,.mocharc.json,coffeelint.json,tsconfig.json,jsconfig.json',
\ 'jsonnet': '*.jsonnet,*.libsonnet', \ 'jsonnet': '*.jsonnet,*.libsonnet',
\ 'jsp': '*.jsp', \ 'jsp': '*.jsp',
\ 'jst': '*.ejs,*.ect,*.jst', \ 'jst': '*.ejs,*.ect,*.jst',
@@ -315,7 +316,6 @@ let s:globs = {
\ 'make': '*.mak,*.dsp,*.mk,*[mM]akefile', \ 'make': '*.mak,*.dsp,*.mk,*[mM]akefile',
\ 'mako': '*.mako,*.mao', \ 'mako': '*.mako,*.mao',
\ 'mallard': '*.page', \ 'mallard': '*.page',
\ 'man': '*.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc',
\ 'manconf': 'man.config', \ 'manconf': 'man.config',
\ 'map': '*.map', \ 'map': '*.map',
\ 'maple': '*.mv,*.mpl,*.mws', \ 'maple': '*.mv,*.mpl,*.mws',
@@ -330,6 +330,7 @@ let s:globs = {
\ 'mgl': '*.mgl', \ 'mgl': '*.mgl',
\ 'mgp': '*.mgp', \ 'mgp': '*.mgp',
\ 'mib': '*.mib,*.my', \ 'mib': '*.mib,*.my',
\ 'mint': '*.mint',
\ 'mix': '*.mix,*.mixal', \ 'mix': '*.mix,*.mixal',
\ 'mma': '*.mathematica,*.cdf,*.m,*.ma,*.mt,*.nb,*.nbp,*.wl,*.wlt,*.wls,*.mma', \ 'mma': '*.mathematica,*.cdf,*.m,*.ma,*.mt,*.nb,*.nbp,*.wl,*.wlt,*.wls,*.mma',
\ 'mmp': '*.mmp', \ 'mmp': '*.mmp',
@@ -361,7 +362,7 @@ let s:globs = {
\ 'ninja': '*.ninja', \ 'ninja': '*.ninja',
\ 'nix': '*.nix', \ 'nix': '*.nix',
\ 'nqc': '*.nqc', \ 'nqc': '*.nqc',
\ 'nroff': '*.tr,*.nr,*.roff,*.tmac,*.mom,tmac.*', \ 'nroff': '*.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc,*.tr,*.nr,*.roff,*.tmac,*.mom,tmac.*',
\ 'nsis': '*.nsi,*.nsh', \ 'nsis': '*.nsi,*.nsh',
\ 'oasis': '_oasis', \ 'oasis': '_oasis',
\ 'obj': '*.obj', \ 'obj': '*.obj',
@@ -389,6 +390,7 @@ let s:globs = {
\ 'pcmk': '*.pcmk', \ 'pcmk': '*.pcmk',
\ 'pdf': '*.pdf', \ 'pdf': '*.pdf',
\ 'perl': '*.pl,*.al,*.cgi,*.fcgi,*.perl,*.ph,*.plx,*.pm,*.psgi,*.t,Makefile.PL,Rexfile,ack,cpanfile,example.gitolite.rc,.gitolite.rc', \ 'perl': '*.pl,*.al,*.cgi,*.fcgi,*.perl,*.ph,*.plx,*.pm,*.psgi,*.t,Makefile.PL,Rexfile,ack,cpanfile,example.gitolite.rc,.gitolite.rc',
\ 'pest': '*.pest',
\ 'pf': 'pf.conf', \ 'pf': 'pf.conf',
\ 'pfmain': 'main.cf', \ 'pfmain': 'main.cf',
\ 'php': '*.php,*.aw,*.ctp,*.fcgi,*.inc,*.php3,*.php4,*.php5,*.phps,*.phpt,*.phtml,*.php9,.php,.php_cs,.php_cs.dist,Phakefile', \ 'php': '*.php,*.aw,*.ctp,*.fcgi,*.inc,*.php3,*.php4,*.php5,*.phps,*.phpt,*.phtml,*.php9,.php,.php_cs,.php_cs.dist,Phakefile',
@@ -561,6 +563,7 @@ let s:globs = {
\ 'tssop': '*.tssop', \ 'tssop': '*.tssop',
\ 'tt2': '*.tt2', \ 'tt2': '*.tt2',
\ 'tt2html': '*.tt2', \ 'tt2html': '*.tt2',
\ 'tutor': '*.tutor',
\ 'typescript': '*.ts', \ 'typescript': '*.ts',
\ 'typescriptreact': '*.tsx', \ 'typescriptreact': '*.tsx',
\ 'uc': '*.uc', \ 'uc': '*.uc',
@@ -607,7 +610,7 @@ let s:globs = {
\ 'xhtml': '*.xhtml,*.xht', \ 'xhtml': '*.xhtml,*.xht',
\ 'xinetd': '', \ 'xinetd': '',
\ 'xmath': '*.msc,*.msf', \ 'xmath': '*.msc,*.msf',
\ 'xml': '*.xml,*.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.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,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*.cdxml,*.tpm,*.csproj.user,*.wpl,.classpath,.cproject,.project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config,*fglrxrc', \ 'xml': '*.xml,*.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.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,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*.cdxml,*.tpm,*.csproj.user,*.wpl,.classpath,.cproject,.project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config,*fglrxrc',
\ 'xml.twig': '*.xml.twig', \ 'xml.twig': '*.xml.twig',
\ 'xmodmap': '*Xmodmap,*xmodmap*', \ 'xmodmap': '*Xmodmap,*xmodmap*',
\ 'xpm': '*.xpm,*.pm', \ 'xpm': '*.xpm,*.pm',

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1 if has_key(g:polyglot_is_disabled, 'pony')
finish
endif
" Vim plugin file " Vim plugin file
" Language: Pony " Language: Pony
@@ -532,5 +534,3 @@ endfunction
let &cpo = s:cpo_save let &cpo = s:cpo_save
unlet s:cpo_save unlet s:cpo_save
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if has_key(g:polyglot_is_disabled, 'puppet')
finish
endif
function! puppet#align#IndentLevel(lnum) function! puppet#align#IndentLevel(lnum)
return indent(a:lnum) / &shiftwidth return indent(a:lnum) / &shiftwidth
@@ -68,5 +70,3 @@ function! puppet#align#AlignHashrockets(...) abort
endif endif
endfor endfor
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if has_key(g:polyglot_is_disabled, 'puppet')
finish
endif
if !exists('s:ctags_type') if !exists('s:ctags_type')
@@ -36,5 +38,3 @@ function! puppet#ctags#Type()
return s:ctags_type return s:ctags_type
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if has_key(g:polyglot_is_disabled, 'puppet')
finish
endif
" "
" Simple format using puppet's l:indents and align hashrockets function " Simple format using puppet's l:indents and align hashrockets function
@@ -70,5 +72,3 @@ function! puppet#format#Fallback(start_lnum, end_lnum) abort
endfunction endfunction
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1 if has_key(g:polyglot_is_disabled, 'python-compiler')
finish
endif
" Sometimes Python issues debugging messages " Sometimes Python issues debugging messages
" which don't belong to a call stack context " which don't belong to a call stack context
@@ -17,5 +19,3 @@ function! python#utils#fix_qflist() " {{{
call setqflist(l:traceback) call setqflist(l:traceback)
endif endif
endfunction " }}} endfunction " }}}
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'requirements') == -1 if has_key(g:polyglot_is_disabled, 'requirements')
finish
endif
" the Requirements File Format syntax support for Vim " the Requirements File Format syntax support for Vim
" Version: 1.5.3 " Version: 1.5.3
@@ -32,5 +34,3 @@ set cpo&vim
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo
" vim: et sw=4 ts=4 sts=4: " vim: et sw=4 ts=4 sts=4:
endif

View File

@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 if has_key(g:polyglot_is_disabled, 'ruby')
finish
endif
" Vim completion script " Vim completion script
" Language: Ruby " Language: Ruby
@@ -871,5 +873,3 @@ call s:DefRuby()
"}}} ruby-side code "}}} ruby-side code
" vim:tw=78:sw=4:ts=8:et:fdm=marker:ft=vim:norl: " vim:tw=78:sw=4:ts=8:et:fdm=marker:ft=vim:norl:
endif

Some files were not shown because too many files have changed in this diff Show More