mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 12:03:53 -05:00
Compare commits
101 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0626cc90a2 | ||
|
|
8af4f8e6c0 | ||
|
|
e5668602cc | ||
|
|
6783bd0df9 | ||
|
|
dc786b7641 | ||
|
|
3f9ce1c6cf | ||
|
|
44e79fc935 | ||
|
|
2fcb15afa0 | ||
|
|
1150adc4db | ||
|
|
47dcae9131 | ||
|
|
4b54ae9cd9 | ||
|
|
c5625ffedd | ||
|
|
45f2f94975 | ||
|
|
cec808bc19 | ||
|
|
95d82fdb66 | ||
|
|
73c5187177 | ||
|
|
ab0ff253f6 | ||
|
|
c228e993ad | ||
|
|
da18fe6851 | ||
|
|
4af1321588 | ||
|
|
cd76812402 | ||
|
|
ff35c02445 | ||
|
|
32f5e90737 | ||
|
|
d96f11bcd8 | ||
|
|
0738ad654d | ||
|
|
05e21a9e25 | ||
|
|
683286b3d7 | ||
|
|
740a60811c | ||
|
|
2838800832 | ||
|
|
ba3fe9e1ae | ||
|
|
45a7512dea | ||
|
|
81ada1101e | ||
|
|
48d0bc7556 | ||
|
|
cbde2571d4 | ||
|
|
d73c4d1562 | ||
|
|
20b31f5337 | ||
|
|
8e61708b45 | ||
|
|
3c148e9ef5 | ||
|
|
739102e06d | ||
|
|
f52f6b9519 | ||
|
|
b6654c85b2 | ||
|
|
e3609fed6b | ||
|
|
7324528984 | ||
|
|
0a2f2cc04d | ||
|
|
6422a5a479 | ||
|
|
113f9b8949 | ||
|
|
f828912a7f | ||
|
|
2522ad2029 | ||
|
|
50a9a7345f | ||
|
|
29ec69ffa0 | ||
|
|
6636144497 | ||
|
|
2a205569eb | ||
|
|
114f731483 | ||
|
|
4b8687ebca | ||
|
|
78f6c8f318 | ||
|
|
86bf33aa3b | ||
|
|
b64fcedd82 | ||
|
|
903793ac04 | ||
|
|
71a21a1044 | ||
|
|
1d7f0e4a7e | ||
|
|
ad2df97a64 | ||
|
|
fbeca0ed90 | ||
|
|
8c1ec94a3c | ||
|
|
5297baf285 | ||
|
|
5e2607d93f | ||
|
|
3d80a66e7b | ||
|
|
0980839568 | ||
|
|
4ab0bdd326 | ||
|
|
dbfcb6dca4 | ||
|
|
6208384bd4 | ||
|
|
225c408b02 | ||
|
|
71d9a2db9f | ||
|
|
233a817f05 | ||
|
|
c3e825027d | ||
|
|
3618414fad | ||
|
|
88cae16fca | ||
|
|
6d7f437b84 | ||
|
|
bb27d0efbf | ||
|
|
8a790ac7bf | ||
|
|
c9f2aa9ae0 | ||
|
|
1fc249bafd | ||
|
|
518d733369 | ||
|
|
0021384259 | ||
|
|
af3ebda710 | ||
|
|
6b663ec330 | ||
|
|
6b9625ecd5 | ||
|
|
3383046210 | ||
|
|
8f9e5ac70b | ||
|
|
23d7b0931d | ||
|
|
3ee6ab9d13 | ||
|
|
cd919c0039 | ||
|
|
3ac0dd5a80 | ||
|
|
e95c5f49aa | ||
|
|
ba11e0f1ad | ||
|
|
c45f0b8f64 | ||
|
|
bbee246aae | ||
|
|
3da600ac30 | ||
|
|
0d48ba9245 | ||
|
|
1993b9f68f | ||
|
|
bb3de8fa5e | ||
|
|
b3763a917a |
2
Makefile
2
Makefile
@@ -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'
|
||||||
|
|||||||
322
README.md
322
README.md
@@ -1,18 +1,16 @@
|
|||||||

|

|
||||||
|
|
||||||
 []()
|
[](https://github.com/sheerun/vim-polyglot/actions) []()
|
||||||
|
|
||||||
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-->590<!--/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 more secure because scripts loaded for all extensions are generated by vim-polyglot (ftdetect).
|
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
|
||||||
- Solid syntax and indentation support (other features skipped). Only the best language packs.
|
- Best syntax and indentation support (no other features). Hand-selected language packs.
|
||||||
- All unnecessary files are ignored (like enormous documentation from php support).
|
- Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled)
|
||||||
- Automatically detect indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth))
|
|
||||||
- Each build is tested by automated vimrunner script on CI. See `spec` directory.
|
|
||||||
|
|
||||||
\*To be completely honest, optimized `ftdetect` script takes around `10ms` to load.
|
\*To be completely honest, optimized `ftdetect` script takes around `10ms` to load.
|
||||||
|
|
||||||
@@ -21,10 +19,16 @@ A collection of language packs for Vim.
|
|||||||
1. Install [Pathogen](https://github.com/tpope/vim-pathogen), [Vundle](https://github.com/VundleVim/Vundle.vim), [NeoBundle](https://github.com/Shougo/neobundle.vim), or [Plug](https://github.com/junegunn/vim-plug) package manager for Vim.
|
1. Install [Pathogen](https://github.com/tpope/vim-pathogen), [Vundle](https://github.com/VundleVim/Vundle.vim), [NeoBundle](https://github.com/Shougo/neobundle.vim), or [Plug](https://github.com/junegunn/vim-plug) package manager for Vim.
|
||||||
2. Use this repository as submodule or package.
|
2. Use this repository as submodule or package.
|
||||||
|
|
||||||
For example when using [Plug](https://github.com/junegunn/vim-plug):
|
For example when using [Plug](https://github.com/junegunn/vim-plug) (which I recommend):
|
||||||
|
|
||||||
|
```vim
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
|
call plug#begin()
|
||||||
|
|
||||||
```
|
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
|
call plug#end()
|
||||||
```
|
```
|
||||||
|
|
||||||
Optionally download one of the [releases](https://github.com/sheerun/vim-polyglot/releases) and unpack it directly under `~/.vim` directory.
|
Optionally download one of the [releases](https://github.com/sheerun/vim-polyglot/releases) and unpack it directly under `~/.vim` directory.
|
||||||
@@ -35,169 +39,168 @@ You can also use Vim 8 built-in package manager:
|
|||||||
git clone --depth 1 https://github.com/sheerun/vim-polyglot ~/.vim/pack/plugins/start/vim-polyglot
|
git clone --depth 1 https://github.com/sheerun/vim-polyglot ~/.vim/pack/plugins/start/vim-polyglot
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: Not all features of individual language packs are available. We strip them from functionality slowing vim startup (for example we ignore `plugins` folder that is loaded regardless of file type, instead we prefer `ftplugin` which is loaded lazily).
|
|
||||||
|
|
||||||
If you need full functionality of any plugin, please use it directly with your plugin manager.
|
|
||||||
|
|
||||||
## Language packs
|
## Language packs
|
||||||
|
|
||||||
On top of all language packs from [vim repository](https://github.com/vim/vim/tree/master/runtime), vim-polyglot includes:
|
On top of all language packs from [vim repository](https://github.com/vim/vim/tree/master/runtime/syntax), vim-polyglot includes:
|
||||||
|
|
||||||
<!--Language Packs-->
|
<!--Language Packs-->
|
||||||
- [acpiasl](https://github.com/martinlroth/vim-acpi-asl)
|
- [acpiasl](https://github.com/martinlroth/vim-acpi-asl) (Syntax highlighting for asl and dsl files)
|
||||||
- [ansible](https://github.com/pearofducks/ansible-vim)
|
- [ansible](https://github.com/pearofducks/ansible-vim)
|
||||||
- [apiblueprint](https://github.com/kylef/apiblueprint.vim)
|
- [apiblueprint](https://github.com/kylef/apiblueprint.vim) (API Blueprint syntax highlighting for apib files)
|
||||||
- [applescript](https://github.com/mityu/vim-applescript)
|
- [applescript](https://github.com/mityu/vim-applescript) (AppleScript syntax highlighting for applescript and scpt files)
|
||||||
- [arduino](https://github.com/sudar/vim-arduino-syntax)
|
- [arduino](https://github.com/sudar/vim-arduino-syntax) (Processing syntax highlighting for pde and ino files)
|
||||||
- [asciidoc](https://github.com/asciidoc/vim-asciidoc)
|
- [asciidoc](https://github.com/asciidoc/vim-asciidoc) (AsciiDoc syntax highlighting for asciidoc, adoc and asc files)
|
||||||
- [autohotkey](https://github.com/hnamikaw/vim-autohotkey)
|
- [autohotkey](https://github.com/hnamikaw/vim-autohotkey) (AutoHotkey syntax highlighting for ahk and ahkl files)
|
||||||
- [blade](https://github.com/jwalton512/vim-blade)
|
- [blade](https://github.com/jwalton512/vim-blade) (Blade syntax highlighting for blade and blade.php files)
|
||||||
- [brewfile](https://github.com/bfontaine/Brewfile.vim)
|
- [brewfile](https://github.com/bfontaine/Brewfile.vim)
|
||||||
- [c/c++](https://github.com/vim-jp/vim-cpp)
|
- [c/c++](https://github.com/vim-jp/vim-cpp) (C++ and C syntax highlighting for cpp, c++, cc, cp, cxx and 17 more files)
|
||||||
- [caddyfile](https://github.com/isobit/vim-caddyfile)
|
- [caddyfile](https://github.com/isobit/vim-caddyfile)
|
||||||
- [carp](https://github.com/hellerve/carp-vim)
|
- [carp](https://github.com/hellerve/carp-vim) (Syntax highlighting for carp files)
|
||||||
- [cjsx](https://github.com/mtscout6/vim-cjsx)
|
- [cjsx](https://github.com/mtscout6/vim-cjsx)
|
||||||
- [clojure](https://github.com/guns/vim-clojure-static)
|
- [clojure](https://github.com/guns/vim-clojure-static) (Clojure syntax highlighting for clj, boot, cl2, cljc, cljs, cljs.hl, cljscm, cljx, hic and edn files)
|
||||||
- [cmake](https://github.com/pboettch/vim-cmake-syntax)
|
- [cmake](https://github.com/pboettch/vim-cmake-syntax) (CMake syntax highlighting for cmake and cmake.in files)
|
||||||
- [coffee-script](https://github.com/kchmck/vim-coffee-script)
|
- [coffee-script](https://github.com/kchmck/vim-coffee-script) (CoffeeScript and Literate CoffeeScript syntax highlighting for coffee, cake, cjsx, iced, coffeekup, litcoffee and coffee.md files)
|
||||||
- [cpp-modern](https://github.com/bfrg/vim-cpp-modern)
|
- [cpp-modern](https://github.com/bfrg/vim-cpp-modern)
|
||||||
- [cql](https://github.com/elubow/cql-vim)
|
- [cql](https://github.com/elubow/cql-vim) (Syntax highlighting for cql files)
|
||||||
- [cryptol](https://github.com/victoredwardocallaghan/cryptol.vim)
|
- [cryptol](https://github.com/victoredwardocallaghan/cryptol.vim) (Syntax highlighting for cry, cyl, lcry and lcyl files)
|
||||||
- [crystal](https://github.com/rhysd/vim-crystal)
|
- [crystal](https://github.com/rhysd/vim-crystal) (Crystal and HTML+ECR syntax highlighting for cr and ecr files)
|
||||||
- [csv](https://github.com/chrisbra/csv.vim)
|
- [csv](https://github.com/chrisbra/csv.vim) (CSV syntax highlighting for csv, tsv and tab files)
|
||||||
- [cucumber](https://github.com/tpope/vim-cucumber)
|
- [cucumber](https://github.com/tpope/vim-cucumber) (Gherkin syntax highlighting for feature and story files)
|
||||||
- [cue](https://github.com/mgrabovsky/vim-cuesheet)
|
- [cue](https://github.com/mgrabovsky/vim-cuesheet) (Syntax highlighting for cue files)
|
||||||
- [dart](https://github.com/dart-lang/dart-vim-plugin)
|
- [dart](https://github.com/dart-lang/dart-vim-plugin) (Dart syntax highlighting for dart and drt files)
|
||||||
- [dhall](https://github.com/vmchale/dhall-vim)
|
- [dhall](https://github.com/vmchale/dhall-vim) (Dhall syntax highlighting for dhall files)
|
||||||
- [dlang](https://github.com/JesseKPhillips/d.vim)
|
- [dlang](https://github.com/JesseKPhillips/d.vim) (D syntax highlighting for d, di, lst, dd, ddoc and sdl files)
|
||||||
- [dockerfile](https://github.com/ekalinin/Dockerfile.vim)
|
- [docker-compose](https://github.com/ekalinin/Dockerfile.vim)
|
||||||
- [elixir](https://github.com/elixir-lang/vim-elixir)
|
- [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](https://github.com/andys8/vim-elm-syntax) (Elm syntax highlighting for elm files)
|
||||||
- [emberscript](https://github.com/yalesov/vim-ember-script)
|
- [emberscript](https://github.com/yalesov/vim-ember-script) (EmberScript syntax highlighting for em and emberscript files)
|
||||||
- [emblem](https://github.com/yalesov/vim-emblem)
|
- [emblem](https://github.com/yalesov/vim-emblem) (Syntax highlighting for emblem and em files)
|
||||||
- [erlang](https://github.com/vim-erlang/vim-erlang-runtime)
|
- [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)
|
- [fennel](https://github.com/bakpakin/fennel.vim) (Syntax highlighting for fnl files)
|
||||||
- [ferm](https://github.com/vim-scripts/ferm.vim)
|
- [ferm](https://github.com/vim-scripts/ferm.vim) (Syntax highlighting for ferm files)
|
||||||
- [fish](https://github.com/georgewitteman/vim-fish)
|
- [fish](https://github.com/blankname/vim-fish) (fish syntax highlighting for fish files)
|
||||||
- [flatbuffers](https://github.com/dcharbon/vim-flatbuffers)
|
- [flatbuffers](https://github.com/dcharbon/vim-flatbuffers) (Syntax highlighting for fbs files)
|
||||||
- [fsharp](https://github.com/ionide/Ionide-vim)
|
- [fsharp](https://github.com/ionide/Ionide-vim) (F# syntax highlighting for fs, fsi and fsx files)
|
||||||
- [gdscript](https://github.com/calviken/vim-gdscript3)
|
- [gdscript](https://github.com/calviken/vim-gdscript3) (GDScript syntax highlighting for gd files)
|
||||||
- [git](https://github.com/tpope/vim-git)
|
- [git](https://github.com/tpope/vim-git) (Git Config syntax highlighting for gitconfig files)
|
||||||
- [gitignore](https://github.com/fszymanski/fzf-gitignore)
|
- [gitignore](https://github.com/fszymanski/fzf-gitignore)
|
||||||
- [glsl](https://github.com/tikhomirov/vim-glsl)
|
- [glsl](https://github.com/tikhomirov/vim-glsl) (GLSL syntax highlighting for glsl, fp, frag, frg, fs and 16 more files)
|
||||||
- [gmpl](https://github.com/maelvalais/gmpl.vim)
|
- [gmpl](https://github.com/maelvalais/gmpl.vim) (Syntax highlighting for mod files)
|
||||||
- [gnuplot](https://github.com/vim-scripts/gnuplot-syntax-highlighting)
|
- [gnuplot](https://github.com/vim-scripts/gnuplot-syntax-highlighting) (Gnuplot syntax highlighting for gp, gnu, gnuplot, p, plot, plt and gpi files)
|
||||||
- [go](https://github.com/fatih/vim-go)
|
- [go](https://github.com/fatih/vim-go) (Go syntax highlighting for go and tmpl files)
|
||||||
- [gradle](https://github.com/tfnico/vim-gradle)
|
- [gradle](https://github.com/tfnico/vim-gradle)
|
||||||
- [graphql](https://github.com/jparise/vim-graphql)
|
- [graphql](https://github.com/jparise/vim-graphql) (GraphQL syntax highlighting for graphql, gql and graphqls files)
|
||||||
- [haml](https://github.com/tpope/vim-haml)
|
- [haml](https://github.com/tpope/vim-haml) (Haml syntax highlighting for haml, haml.deface, hamlc and hamlbars files)
|
||||||
- [handlebars](https://github.com/mustache/vim-mustache-handlebars)
|
- [handlebars](https://github.com/mustache/vim-mustache-handlebars) (Mustache and Handlebars syntax highlighting for mustache, hogan, hulk, hjs, handlebars, hbs, hdbs and hb files)
|
||||||
- [haproxy](https://github.com/CH-DanReif/haproxy.vim)
|
- [haproxy](https://github.com/CH-DanReif/haproxy.vim) (HAProxy syntax highlighting)
|
||||||
- [haskell](https://github.com/neovimhaskell/haskell-vim)
|
- [haskell](https://github.com/neovimhaskell/haskell-vim) (Haskell syntax highlighting for hs, hs-boot, hsc, bpk and hsig files)
|
||||||
- [haxe](https://github.com/yaymukund/vim-haxe)
|
- [haxe](https://github.com/yaymukund/vim-haxe) (Haxe syntax highlighting for hx and hxsl files)
|
||||||
- [hcl](https://github.com/b4b4r07/vim-hcl)
|
- [hcl](https://github.com/b4b4r07/vim-hcl) (HCL syntax highlighting for hcl, nomad and workflow files)
|
||||||
- [helm](https://github.com/towolf/vim-helm)
|
- [helm](https://github.com/towolf/vim-helm)
|
||||||
- [help](https://github.com/neovim/neovim/tree/master/runtime)
|
- [help](https://github.com/neovim/neovim/tree/master/runtime)
|
||||||
- [hive](https://github.com/zebradil/hive.vim)
|
- [hive](https://github.com/zebradil/hive.vim) (HiveQL syntax highlighting for q, hql and ql files)
|
||||||
- [html5](https://github.com/sheerun/html5.vim)
|
- [html5](https://github.com/sheerun/html5.vim)
|
||||||
- [i3](https://github.com/mboughaba/i3config.vim)
|
- [i3](https://github.com/mboughaba/i3config.vim) (Syntax highlighting for i3.config and i3config files)
|
||||||
- [icalendar](https://github.com/chutzpah/icalendar.vim)
|
- [icalendar](https://github.com/chutzpah/icalendar.vim) (Syntax highlighting for ics files)
|
||||||
- [idris2](https://github.com/edwinb/idris2-vim)
|
- [idris2](https://github.com/edwinb/idris2-vim) (Syntax highlighting for idr, ipkg and lidr files)
|
||||||
- [idris](https://github.com/idris-hackers/idris-vim)
|
- [idris](https://github.com/idris-hackers/idris-vim) (Idris syntax highlighting for idr and lidr files)
|
||||||
- [ion](https://github.com/vmchale/ion-vim)
|
- [ion](https://github.com/vmchale/ion-vim) (Syntax highlighting for ion files)
|
||||||
- [javascript-sql](https://github.com/statico/vim-javascript-sql)
|
- [javascript-sql](https://github.com/statico/vim-javascript-sql)
|
||||||
- [javascript](https://github.com/pangloss/vim-javascript)
|
- [javascript](https://github.com/pangloss/vim-javascript) (JavaScript syntax highlighting for js, bones, cjs, es, es6 and 17 more files)
|
||||||
- [jenkins](https://github.com/martinda/Jenkinsfile-vim-syntax)
|
- [jenkins](https://github.com/martinda/Jenkinsfile-vim-syntax) (Syntax highlighting for jenkinsfile and Jenkinsfile files)
|
||||||
- [jq](https://github.com/vito-c/jq.vim)
|
- [jq](https://github.com/vito-c/jq.vim) (JSONiq syntax highlighting for jq files)
|
||||||
- [json5](https://github.com/GutenYe/json5.vim)
|
- [json5](https://github.com/GutenYe/json5.vim) (JSON5 syntax highlighting for json5 files)
|
||||||
- [json](https://github.com/elzr/vim-json)
|
- [json](https://github.com/elzr/vim-json) (JSON syntax highlighting for json, avsc, geojson, gltf, har and 13 more files)
|
||||||
- [jsonnet](https://github.com/google/vim-jsonnet)
|
- [jsonc](https://github.com/neoclide/jsonc.vim) (Syntax highlighting for cjson and jsonc files)
|
||||||
- [jst](https://github.com/briancollins/vim-jst)
|
- [jsonnet](https://github.com/google/vim-jsonnet) (Jsonnet syntax highlighting for jsonnet and libsonnet files)
|
||||||
- [jsx](https://github.com/MaxMEllon/vim-jsx-pretty)
|
- [jst](https://github.com/briancollins/vim-jst) (EJS syntax highlighting for ejs, ect and jst files)
|
||||||
- [julia](https://github.com/JuliaEditorSupport/julia-vim)
|
- [jsx](https://github.com/MaxMEllon/vim-jsx-pretty) (JSX syntax highlighting for jsx files)
|
||||||
- [kotlin](https://github.com/udalov/kotlin-vim)
|
- [julia](https://github.com/JuliaEditorSupport/julia-vim) (Julia syntax highlighting for jl files)
|
||||||
- [ledger](https://github.com/ledger/vim-ledger)
|
- [kotlin](https://github.com/udalov/kotlin-vim) (Kotlin syntax highlighting for kt, ktm and kts files)
|
||||||
- [lilypond](https://github.com/anowlcalledjosh/vim-lilypond)
|
- [ledger](https://github.com/ledger/vim-ledger) (Syntax highlighting for ldg, ledger and journal files)
|
||||||
- [livescript](https://github.com/gkz/vim-ls)
|
- [lilypond](https://github.com/anowlcalledjosh/vim-lilypond) (LilyPond syntax highlighting for ly and ily files)
|
||||||
- [llvm](https://github.com/rhysd/vim-llvm)
|
- [livescript](https://github.com/gkz/vim-ls) (LiveScript syntax highlighting for ls files)
|
||||||
- [log](https://github.com/MTDL9/vim-log-highlighting)
|
- [llvm](https://github.com/rhysd/vim-llvm) (LLVM syntax highlighting for ll and td files)
|
||||||
- [lua](https://github.com/tbastos/vim-lua)
|
- [log](https://github.com/MTDL9/vim-log-highlighting) (Syntax highlighting for log and LOG files)
|
||||||
- [mako](https://github.com/sophacles/vim-bundle-mako)
|
- [lua](https://github.com/tbastos/vim-lua) (Lua syntax highlighting for lua, fcgi, nse, p8, rbxs, rockspec and wlua files)
|
||||||
- [markdown](https://github.com/plasticboy/vim-markdown)
|
- [mako](https://github.com/sophacles/vim-bundle-mako) (Mako syntax highlighting for mako and mao files)
|
||||||
- [mathematica](https://github.com/voldikss/vim-mma)
|
- [markdown](https://github.com/plasticboy/vim-markdown) (Markdown syntax highlighting for md, markdown, mdown, mdwn, mkd, mkdn, mkdown, ronn and workbook files)
|
||||||
- [mdx](https://github.com/jxnblk/vim-mdx-js)
|
- [mathematica](https://github.com/voldikss/vim-mma) (Mathematica syntax highlighting for mathematica, cdf, m, ma, mt and 6 more files)
|
||||||
- [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim)
|
- [mdx](https://github.com/jxnblk/vim-mdx-js) (Syntax highlighting for mdx files)
|
||||||
- [moonscript](https://github.com/leafo/moonscript-vim)
|
- [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files)
|
||||||
- [nginx](https://github.com/chr4/nginx.vim)
|
- [mint](https://github.com/IrenejMarc/vim-mint) (Syntax highlighting for mint files)
|
||||||
- [nim](https://github.com/zah/nim.vim)
|
- [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files)
|
||||||
- [nix](https://github.com/LnL7/vim-nix)
|
- [nginx](https://github.com/chr4/nginx.vim) (Nginx syntax highlighting for nginx, nginxconf and vhost files)
|
||||||
- [objc](https://github.com/b4winckler/vim-objc)
|
- [nim](https://github.com/zah/nim.vim) (Nim syntax highlighting for nim, nim.cfg, nimble, nimrod and nims files)
|
||||||
- [ocaml](https://github.com/rgrinberg/vim-ocaml)
|
- [nix](https://github.com/LnL7/vim-nix) (Nix syntax highlighting for nix files)
|
||||||
- [octave](https://github.com/McSinyx/vim-octave)
|
- [objc](https://github.com/b4winckler/vim-objc) (Objective-C syntax highlighting for m and h files)
|
||||||
- [odin](https://github.com/Tetralux/odin.vim)
|
- [ocaml](https://github.com/rgrinberg/vim-ocaml) (OCaml syntax highlighting for ml, eliom, eliomi, ml4, mli and 13 more files)
|
||||||
- [opencl](https://github.com/petRUShka/vim-opencl)
|
- [octave](https://github.com/McSinyx/vim-octave) (Syntax highlighting for oct and m files)
|
||||||
- [perl](https://github.com/vim-perl/vim-perl)
|
- [odin](https://github.com/Tetralux/odin.vim) (Odin syntax highlighting for odin files)
|
||||||
- [pgsql](https://github.com/lifepillar/pgsql.vim)
|
- [opencl](https://github.com/petRUShka/vim-opencl) (OpenCL syntax highlighting for cl and opencl files)
|
||||||
- [php](https://github.com/StanAngeloff/php.vim)
|
- [perl](https://github.com/vim-perl/vim-perl) (Perl syntax highlighting for pl, al, cgi, fcgi, perl and 12 more files)
|
||||||
- [plantuml](https://github.com/aklt/plantuml-syntax)
|
- [pest](https://github.com/pest-parser/pest.vim) (Syntax highlighting for pest files)
|
||||||
- [pony](https://github.com/jakwings/vim-pony)
|
- [pgsql](https://github.com/lifepillar/pgsql.vim) (PLpgSQL syntax highlighting for pgsql files)
|
||||||
- [powershell](https://github.com/PProvost/vim-ps1)
|
- [php](https://github.com/StanAngeloff/php.vim) (PHP syntax highlighting for php, aw, ctp, fcgi, inc and 7 more files)
|
||||||
- [protobuf](https://github.com/uarun/vim-protobuf)
|
- [plantuml](https://github.com/aklt/plantuml-syntax) (PlantUML syntax highlighting for puml, iuml, plantuml, uml and pu files)
|
||||||
- [pug](https://github.com/digitaltoad/vim-pug)
|
- [pony](https://github.com/jakwings/vim-pony) (Pony syntax highlighting for pony files)
|
||||||
- [puppet](https://github.com/rodjek/vim-puppet)
|
- [powershell](https://github.com/PProvost/vim-ps1) (PowerShell syntax highlighting for ps1, psd1, psm1, pssc and ps1xml files)
|
||||||
- [purescript](https://github.com/purescript-contrib/purescript-vim)
|
- [protobuf](https://github.com/uarun/vim-protobuf) (Protocol Buffer syntax highlighting for proto files)
|
||||||
|
- [pug](https://github.com/digitaltoad/vim-pug) (Pug syntax highlighting for jade and pug files)
|
||||||
|
- [puppet](https://github.com/rodjek/vim-puppet) (Puppet syntax highlighting for pp and epp files)
|
||||||
|
- [purescript](https://github.com/purescript-contrib/purescript-vim) (PureScript syntax highlighting for purs files)
|
||||||
- [python-compiler](https://github.com/aliev/vim-compiler-python)
|
- [python-compiler](https://github.com/aliev/vim-compiler-python)
|
||||||
- [python-indent](https://github.com/Vimjas/vim-python-pep8-indent)
|
- [python-indent](https://github.com/Vimjas/vim-python-pep8-indent)
|
||||||
- [python](https://github.com/vim-python/python-syntax)
|
- [python](https://github.com/vim-python/python-syntax) (Python syntax highlighting for py, cgi, fcgi, gyp, gypi and 14 more files)
|
||||||
- [qmake](https://github.com/artoj/qmake-syntax-vim)
|
- [qmake](https://github.com/artoj/qmake-syntax-vim) (QMake syntax highlighting for pro and pri files)
|
||||||
- [qml](https://github.com/peterhoeg/vim-qml)
|
- [qml](https://github.com/peterhoeg/vim-qml) (QML syntax highlighting for qml and qbs files)
|
||||||
- [r-lang](https://github.com/vim-scripts/R.vim)
|
- [r-lang](https://github.com/vim-scripts/R.vim) (R syntax highlighting for r, rsx, s, S and rd files)
|
||||||
- [racket](https://github.com/wlangstroth/vim-racket)
|
- [racket](https://github.com/wlangstroth/vim-racket) (Racket syntax highlighting for rkt, rktd, rktl and scrbl files)
|
||||||
- [ragel](https://github.com/jneen/ragel.vim)
|
- [ragel](https://github.com/jneen/ragel.vim) (Ragel syntax highlighting for rl files)
|
||||||
- [raku](https://github.com/Raku/vim-raku)
|
- [raku](https://github.com/Raku/vim-raku) (Raku syntax highlighting for 6pl, 6pm, nqp, p6, p6l and 12 more files)
|
||||||
- [raml](https://github.com/IN3D/vim-raml)
|
- [raml](https://github.com/IN3D/vim-raml) (RAML syntax highlighting for raml files)
|
||||||
- [razor](https://github.com/adamclerk/vim-razor)
|
- [razor](https://github.com/adamclerk/vim-razor) (HTML+Razor syntax highlighting for cshtml and razor files)
|
||||||
- [reason](https://github.com/reasonml-editor/vim-reason-plus)
|
- [reason](https://github.com/reasonml-editor/vim-reason-plus) (Reason syntax highlighting for re and rei files)
|
||||||
- [requirements](https://github.com/raimon49/requirements.txt.vim)
|
- [requirements](https://github.com/raimon49/requirements.txt.vim) (Syntax highlighting for pip files)
|
||||||
- [rspec](https://github.com/keith/rspec.vim)
|
- [rspec](https://github.com/keith/rspec.vim)
|
||||||
- [rst](https://github.com/marshallward/vim-restructuredtext)
|
- [rst](https://github.com/marshallward/vim-restructuredtext) (reStructuredText syntax highlighting for rst, rest, rest.txt and rst.txt files)
|
||||||
- [ruby](https://github.com/vim-ruby/vim-ruby)
|
- [ruby](https://github.com/vim-ruby/vim-ruby) (Ruby and HTML+ERB syntax highlighting for rb, builder, eye, fcgi, gemspec and 25 more files)
|
||||||
- [rust](https://github.com/rust-lang/rust.vim)
|
- [rust](https://github.com/rust-lang/rust.vim) (Rust syntax highlighting for rs and rs.in files)
|
||||||
- [sbt](https://github.com/derekwyatt/vim-sbt)
|
- [scala](https://github.com/derekwyatt/vim-scala) (Scala syntax highlighting for scala, kojo and sc files)
|
||||||
- [scala](https://github.com/derekwyatt/vim-scala)
|
- [scss](https://github.com/cakebaker/scss-syntax.vim) (SCSS syntax highlighting for scss files)
|
||||||
- [scss](https://github.com/cakebaker/scss-syntax.vim)
|
- [sh](https://github.com/arzg/vim-sh) (Shell syntax highlighting for sh, bash, bats, cgi, command and 7 more files)
|
||||||
- [sh](https://github.com/arzg/vim-sh)
|
- [slim](https://github.com/slim-template/vim-slim) (Slim syntax highlighting for slim files)
|
||||||
- [slim](https://github.com/slim-template/vim-slim)
|
- [slime](https://github.com/slime-lang/vim-slime-syntax) (Syntax highlighting for slime files)
|
||||||
- [slime](https://github.com/slime-lang/vim-slime-syntax)
|
- [smt2](https://github.com/bohlender/vim-smt2) (SMT syntax highlighting for smt2 and smt files)
|
||||||
- [smt2](https://github.com/bohlender/vim-smt2)
|
- [solidity](https://github.com/tomlion/vim-solidity) (Solidity syntax highlighting for sol files)
|
||||||
- [solidity](https://github.com/tomlion/vim-solidity)
|
- [stylus](https://github.com/wavded/vim-stylus) (Stylus syntax highlighting for styl and stylus files)
|
||||||
- [stylus](https://github.com/wavded/vim-stylus)
|
- [svelte](https://github.com/evanleck/vim-svelte/tree/main) (Svelte syntax highlighting for svelte files)
|
||||||
- [svelte](https://github.com/evanleck/vim-svelte/tree/main)
|
|
||||||
- [svg-indent](https://github.com/jasonshell/vim-svg-indent)
|
- [svg-indent](https://github.com/jasonshell/vim-svg-indent)
|
||||||
- [svg](https://github.com/vim-scripts/svg.vim)
|
- [svg](https://github.com/vim-scripts/svg.vim) (SVG syntax highlighting for svg files)
|
||||||
- [swift](https://github.com/keith/swift.vim)
|
- [swift](https://github.com/keith/swift.vim) (Swift syntax highlighting for swift files)
|
||||||
- [sxhkd](https://github.com/baskerville/vim-sxhkdrc)
|
- [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (Syntax highlighting for sxhkdrc files)
|
||||||
- [systemd](https://github.com/wgwoods/vim-systemd-syntax)
|
- [systemd](https://github.com/wgwoods/vim-systemd-syntax) (Syntax highlighting for automount, dnssd, link, mount, netdev and 9 more files)
|
||||||
- [textile](https://github.com/timcharper/textile.vim)
|
- [terraform](https://github.com/hashivim/vim-terraform) (Syntax highlighting for tf and tfvars files)
|
||||||
- [thrift](https://github.com/solarnz/thrift.vim)
|
- [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)
|
||||||
- [tmux](https://github.com/ericpruitt/tmux.vim/tree/master/vim)
|
- [tmux](https://github.com/ericpruitt/tmux.vim/tree/master/vim)
|
||||||
- [toml](https://github.com/cespare/vim-toml)
|
- [toml](https://github.com/cespare/vim-toml) (TOML syntax highlighting for toml files)
|
||||||
- [tptp](https://github.com/c-cube/vim-tptp)
|
- [tptp](https://github.com/c-cube/vim-tptp) (Syntax highlighting for p, tptp and ax files)
|
||||||
- [twig](https://github.com/lumiliet/vim-twig)
|
- [twig](https://github.com/lumiliet/vim-twig) (Twig syntax highlighting for twig and xml.twig files)
|
||||||
- [typescript](https://github.com/HerringtonDarkholme/yats.vim)
|
- [typescript](https://github.com/HerringtonDarkholme/yats.vim) (TypeScript and TSX syntax highlighting for ts and tsx files)
|
||||||
- [unison](https://github.com/unisonweb/unison/tree/trunk/editor-support/vim)
|
- [unison](https://github.com/unisonweb/unison/tree/trunk/editor-support/vim) (Syntax highlighting for u and uu files)
|
||||||
- [v](https://github.com/ollykel/v-vim)
|
- [v](https://github.com/ollykel/v-vim) (V syntax highlighting for v, vv and vsh files)
|
||||||
- [vala](https://github.com/arrufat/vala.vim)
|
- [vala](https://github.com/arrufat/vala.vim) (Vala syntax highlighting for vala, vapi and valadoc files)
|
||||||
- [vbnet](https://github.com/vim-scripts/vbnet.vim)
|
- [vbnet](https://github.com/vim-scripts/vbnet.vim) (Visual Basic .NET syntax highlighting for vb and vbhtml files)
|
||||||
- [vcl](https://github.com/smerrill/vcl-vim-plugin)
|
- [vcl](https://github.com/smerrill/vcl-vim-plugin) (VCL syntax highlighting for vcl files)
|
||||||
- [velocity](https://github.com/lepture/vim-velocity)
|
- [velocity](https://github.com/lepture/vim-velocity) (Syntax highlighting for vm files)
|
||||||
- [vue](https://github.com/posva/vim-vue)
|
- [vue](https://github.com/posva/vim-vue) (Vue syntax highlighting for vue and wpy files)
|
||||||
- [xdc](https://github.com/amal-khailtash/vim-xdc-syntax)
|
- [xdc](https://github.com/amal-khailtash/vim-xdc-syntax) (Syntax highlighting for xdc files)
|
||||||
- [xml](https://github.com/amadeus/vim-xml)
|
- [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)
|
- [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](https://github.com/xwsoul/vim-zephir) (Zephir syntax highlighting for zep files)
|
||||||
- [zig](https://github.com/ziglang/zig.vim)
|
- [zig](https://github.com/ziglang/zig.vim) (Zig syntax highlighting for zir, zig and zir files)
|
||||||
- [zinit](https://github.com/zinit-zsh/zplugin-vim-syntax)
|
- [zinit](https://github.com/zinit-zsh/zplugin-vim-syntax)
|
||||||
<!--/Language Packs-->
|
<!--/Language Packs-->
|
||||||
|
|
||||||
@@ -207,18 +210,18 @@ You can either wait for new patch release with updates or run `make` by yourself
|
|||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
Please make sure you have `syntax on` in your `.vimrc` (or use something like [sheerun/vimrc](https://github.com/sheerun/vimrc))
|
Please make sure you have `set nocompatible` in your `.vimrc` (or use something like [sheerun/vimrc](https://github.com/sheerun/vimrc))
|
||||||
|
|
||||||
Individual language packs can be disabled by setting `g:polyglot_disabled` as follows:
|
Individual language packs can be disabled by setting `g:polyglot_disabled` as follows:
|
||||||
|
|
||||||
|
**Please declare this variable before polyglot is loaded (at the top of .vimrc)**
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
let g:polyglot_disabled = ['markdown']
|
let g:polyglot_disabled = ['markdown']
|
||||||
```
|
```
|
||||||
|
|
||||||
The list of available languages to disable is shown above.
|
The list of available languages to disable is shown above.
|
||||||
|
|
||||||
*Please declare this variable before polyglot is loaded (at the top of .vimrc)*
|
|
||||||
|
|
||||||
If you wish to use filetype detection by Vim Polyglot but you'd like to use your own syntax-highlighting plugin, you can append `.plugin` to disabled entry, like below. Disabling Vim Polyglot filetype plugin won't disable native Vim filetype plugin.
|
If you wish to use filetype detection by Vim Polyglot but you'd like to use your own syntax-highlighting plugin, you can append `.plugin` to disabled entry, like below. Disabling Vim Polyglot filetype plugin won't disable native Vim filetype plugin.
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
@@ -227,12 +230,23 @@ let g:polyglot_disabled = ['markdown.plugin']
|
|||||||
|
|
||||||
Please note that disabling a language won't make in your vim startup any faster / slower (only for specific this specific filetype). All plugins are lazily loaded only when they are really needed.
|
Please note that disabling a language won't make in your vim startup any faster / slower (only for specific this specific filetype). All plugins are lazily loaded only when they are really needed.
|
||||||
|
|
||||||
|
## Autoindent
|
||||||
|
|
||||||
Vim Polyglot tries to automatically detect indentation settings (just like vim-sleuth). If this feature is not working for you for some reason, please file an issue and disable it temporarily with:
|
Vim Polyglot tries to automatically detect indentation settings (just like vim-sleuth). If this feature is not working for you for some reason, please file an issue and disable it temporarily with:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
let g:polyglot_disabled = ['autoindent']
|
let g:polyglot_disabled = ['autoindent']
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Default settings
|
||||||
|
|
||||||
|
Vim Polyglot includes vim-sensible plugin, which is usually necessary for editing any language. This can be disabled with:
|
||||||
|
|
||||||
|
|
||||||
|
```vim
|
||||||
|
let g:polyglot_disabled = ['sensible']
|
||||||
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Language packs are periodically updated using automated `scripts/build` script.
|
Language packs are periodically updated using automated `scripts/build` script.
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
13
after/ftplugin/html.vim
Normal file
13
after/ftplugin/html.vim
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
if has_key(g:polyglot_is_disabled, 'html5')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Maintainer: othree <othree@gmail.com>
|
||||||
|
" URL: http://github.com/othree/html5.vim
|
||||||
|
" Last Change: 2014-05-02
|
||||||
|
" License: MIT
|
||||||
|
" Changes: Add - to keyword
|
||||||
|
|
||||||
|
" setlocal iskeyword+=-
|
||||||
|
|
||||||
|
setlocal commentstring=<!--%s-->
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
1064
after/indent/html.vim
Normal file
1064
after/indent/html.vim
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
46
after/indent/php.vim
Normal 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
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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 4, 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
|
||||||
@@ -28,6 +26,22 @@ if !get(g:, 'cpp_no_function_highlight', 0)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
" Highlight struct/class member variables
|
||||||
|
if get(g:, 'cpp_member_highlight', 0)
|
||||||
|
syn match cMemberAccess "\.\|->" nextgroup=cStructMember,cppTemplateKeyword
|
||||||
|
syn match cStructMember "\<\h\w*\>\%((\|<\)\@!" contained
|
||||||
|
syn cluster cParenGroup add=cStructMember
|
||||||
|
syn cluster cPreProcGroup add=cStructMember
|
||||||
|
syn cluster cMultiGroup add=cStructMember
|
||||||
|
hi def link cStructMember Identifier
|
||||||
|
|
||||||
|
if &filetype ==# 'cpp'
|
||||||
|
syn keyword cppTemplateKeyword template
|
||||||
|
hi def link cppTemplateKeyword cppStructure
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
" Common ANSI-standard Names
|
" Common ANSI-standard Names
|
||||||
syn keyword cAnsiName
|
syn keyword cAnsiName
|
||||||
\ PRId8 PRIi16 PRIo32 PRIu64 PRId16 PRIi32 PRIo64 PRIuLEAST8 PRId32 PRIi64 PRIoLEAST8 PRIuLEAST16 PRId64 PRIiLEAST8 PRIoLEAST16 PRIuLEAST32 PRIdLEAST8 PRIiLEAST16 PRIoLEAST32 PRIuLEAST64 PRIdLEAST16 PRIiLEAST32 PRIoLEAST64 PRIuFAST8 PRIdLEAST32 PRIiLEAST64 PRIoFAST8 PRIuFAST16 PRIdLEAST64 PRIiFAST8 PRIoFAST16 PRIuFAST32 PRIdFAST8 PRIiFAST16 PRIoFAST32 PRIuFAST64 PRIdFAST16 PRIiFAST32 PRIoFAST64 PRIuMAX PRIdFAST32 PRIiFAST64 PRIoMAX PRIuPTR PRIdFAST64 PRIiMAX PRIoPTR PRIx8 PRIdMAX PRIiPTR PRIu8 PRIx16 PRIdPTR PRIo8 PRIu16 PRIx32 PRIi8 PRIo16 PRIu32 PRIx64 PRIxLEAST8 SCNd8 SCNiFAST32 SCNuLEAST32 PRIxLEAST16 SCNd16 SCNiFAST64 SCNuLEAST64 PRIxLEAST32 SCNd32 SCNiMAX SCNuFAST8 PRIxLEAST64 SCNd64 SCNiPTR SCNuFAST16 PRIxFAST8 SCNdLEAST8 SCNo8 SCNuFAST32 PRIxFAST16 SCNdLEAST16 SCNo16 SCNuFAST64 PRIxFAST32 SCNdLEAST32 SCNo32 SCNuMAX PRIxFAST64 SCNdLEAST64 SCNo64 SCNuPTR PRIxMAX SCNdFAST8 SCNoLEAST8 SCNx8 PRIxPTR SCNdFAST16 SCNoLEAST16 SCNx16 PRIX8 SCNdFAST32 SCNoLEAST32 SCNx32 PRIX16 SCNdFAST64 SCNoLEAST64 SCNx64 PRIX32 SCNdMAX SCNoFAST8 SCNxLEAST8 PRIX64 SCNdPTR SCNoFAST16 SCNxLEAST16 PRIXLEAST8 SCNi8 SCNoFAST32 SCNxLEAST32 PRIXLEAST16 SCNi16 SCNoFAST64 SCNxLEAST64 PRIXLEAST32 SCNi32 SCNoMAX SCNxFAST8 PRIXLEAST64 SCNi64 SCNoPTR SCNxFAST16 PRIXFAST8 SCNiLEAST8 SCNu8 SCNxFAST32 PRIXFAST16 SCNiLEAST16 SCNu16 SCNxFAST64 PRIXFAST32 SCNiLEAST32 SCNu32 SCNxMAX PRIXFAST64 SCNiLEAST64 SCNu64 SCNxPTR PRIXMAX SCNiFAST8 SCNuLEAST8 PRIXPTR SCNiFAST16 SCNuLEAST16 STDC CX_LIMITED_RANGE STDC FENV_ACCESS STDC FP_CONTRACT
|
\ PRId8 PRIi16 PRIo32 PRIu64 PRId16 PRIi32 PRIo64 PRIuLEAST8 PRId32 PRIi64 PRIoLEAST8 PRIuLEAST16 PRId64 PRIiLEAST8 PRIoLEAST16 PRIuLEAST32 PRIdLEAST8 PRIiLEAST16 PRIoLEAST32 PRIuLEAST64 PRIdLEAST16 PRIiLEAST32 PRIoLEAST64 PRIuFAST8 PRIdLEAST32 PRIiLEAST64 PRIoFAST8 PRIuFAST16 PRIdLEAST64 PRIiFAST8 PRIoFAST16 PRIuFAST32 PRIdFAST8 PRIiFAST16 PRIoFAST32 PRIuFAST64 PRIdFAST16 PRIiFAST32 PRIoFAST64 PRIuMAX PRIdFAST32 PRIiFAST64 PRIoMAX PRIuPTR PRIdFAST64 PRIiMAX PRIoPTR PRIx8 PRIdMAX PRIiPTR PRIu8 PRIx16 PRIdPTR PRIo8 PRIu16 PRIx32 PRIi8 PRIo16 PRIu32 PRIx64 PRIxLEAST8 SCNd8 SCNiFAST32 SCNuLEAST32 PRIxLEAST16 SCNd16 SCNiFAST64 SCNuLEAST64 PRIxLEAST32 SCNd32 SCNiMAX SCNuFAST8 PRIxLEAST64 SCNd64 SCNiPTR SCNuFAST16 PRIxFAST8 SCNdLEAST8 SCNo8 SCNuFAST32 PRIxFAST16 SCNdLEAST16 SCNo16 SCNuFAST64 PRIxFAST32 SCNdLEAST32 SCNo32 SCNuMAX PRIxFAST64 SCNdLEAST64 SCNo64 SCNuPTR PRIxMAX SCNdFAST8 SCNoLEAST8 SCNx8 PRIxPTR SCNdFAST16 SCNoLEAST16 SCNx16 PRIX8 SCNdFAST32 SCNoLEAST32 SCNx32 PRIX16 SCNdFAST64 SCNoLEAST64 SCNx64 PRIX32 SCNdMAX SCNoFAST8 SCNxLEAST8 PRIX64 SCNdPTR SCNoFAST16 SCNxLEAST16 PRIXLEAST8 SCNi8 SCNoFAST32 SCNxLEAST32 PRIXLEAST16 SCNi16 SCNoFAST64 SCNxLEAST64 PRIXLEAST32 SCNi32 SCNoMAX SCNxFAST8 PRIXLEAST64 SCNi64 SCNoPTR SCNxFAST16 PRIXFAST8 SCNiLEAST8 SCNu8 SCNxFAST32 PRIXFAST16 SCNiLEAST16 SCNu16 SCNxFAST64 PRIXFAST32 SCNiLEAST32 SCNu32 SCNxMAX PRIXFAST64 SCNiLEAST64 SCNu64 SCNxPTR PRIXMAX SCNiFAST8 SCNuLEAST8 PRIXPTR SCNiFAST16 SCNuLEAST16 STDC CX_LIMITED_RANGE STDC FENV_ACCESS STDC FP_CONTRACT
|
||||||
@@ -45,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
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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,13 +8,20 @@ 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 4, 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
|
||||||
" http://www.vim.org/scripts/script.php?script_id=4293
|
|
||||||
" ==============================================================================
|
" ==============================================================================
|
||||||
|
|
||||||
|
" C++ attributes {{{1
|
||||||
|
if get(g:, 'cpp_attributes_highlight', 0)
|
||||||
|
syntax region cppAttribute matchgroup=cppAttributeBrackets start='\[\[' end=']]' contains=cString
|
||||||
|
hi def link cppAttribute Macro
|
||||||
|
hi def link cppAttributeBrackets Identifier
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
" Standard library {{{1
|
" Standard library {{{1
|
||||||
syntax keyword cppSTLdefine
|
syntax keyword cppSTLdefine
|
||||||
\ MB_CUR_MAX MB_LEN_MAX WCHAR_MAX WCHAR_MIN WEOF __STDC_UTF_16__ __STDC_UTF_32__
|
\ MB_CUR_MAX MB_LEN_MAX WCHAR_MAX WCHAR_MIN WEOF __STDC_UTF_16__ __STDC_UTF_32__
|
||||||
@@ -192,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
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -1,16 +1,200 @@
|
|||||||
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)
|
||||||
" Last Change: 2017 Feb 15
|
" SVG (SVG 1.1 Second Edition)
|
||||||
|
" MathML (MathML 3.0 Second Edition)
|
||||||
|
" Last Change: 2017 Mar 07
|
||||||
" License: Public domain
|
" License: Public domain
|
||||||
" (but let me know if you like :) )
|
" (but let me know if you like :) )
|
||||||
"
|
"
|
||||||
|
" Note: This file just add new tags from HTML 5
|
||||||
|
" and don't replace default html.vim syntax file
|
||||||
|
"
|
||||||
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
" Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com )
|
||||||
|
" Changes: update to Draft 2016 Jan 13
|
||||||
|
" add microdata Attributes
|
||||||
|
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
|
||||||
|
" URL: http://rm.blog.br/vim/syntax/html.vim
|
||||||
|
" Modified: htdebeer <H.T.de.Beer@gmail.com>
|
||||||
|
" Changes: add common SVG elements and attributes for inline SVG
|
||||||
|
|
||||||
|
" Patch 7.4.1142
|
||||||
|
if has("patch-7.4-1142")
|
||||||
|
if has("win32")
|
||||||
|
syn iskeyword @,48-57,_,128-167,224-235,-
|
||||||
|
else
|
||||||
|
syn iskeyword @,48-57,_,192-255,-
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" HTML 5 tags
|
||||||
|
syn keyword htmlTagName contained article aside audio canvas command
|
||||||
|
syn keyword htmlTagName contained datalist details dialog embed figcaption figure footer
|
||||||
|
syn keyword htmlTagName contained header hgroup keygen main mark meter menu menuitem nav output
|
||||||
|
syn keyword htmlTagName contained progress ruby rt rp rb rtc section source summary time track video data
|
||||||
|
syn keyword htmlTagName contained template content shadow slot
|
||||||
|
syn keyword htmlTagName contained wbr bdi
|
||||||
|
syn keyword htmlTagName contained picture
|
||||||
|
|
||||||
|
" SVG tags
|
||||||
|
" http://www.w3.org/TR/SVG/
|
||||||
|
" as found in http://www.w3.org/TR/SVG/eltindex.html
|
||||||
|
syn keyword htmlTagName contained svg
|
||||||
|
syn keyword htmlTagName contained altGlyph altGlyphDef altGlyphItem
|
||||||
|
syn keyword htmlTagName contained animate animateColor animateMotion animateTransform
|
||||||
|
syn keyword htmlTagName contained circle ellipse rect line polyline polygon image path
|
||||||
|
syn keyword htmlTagName contained clipPath color-profile cursor
|
||||||
|
syn keyword htmlTagName contained defs desc g symbol view use switch foreignObject
|
||||||
|
syn keyword htmlTagName contained filter feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence
|
||||||
|
syn keyword htmlTagName contained font font-face font-face-format font-face-name font-face-src font-face-uri
|
||||||
|
syn keyword htmlTagName contained glyph glyphRef hkern
|
||||||
|
syn keyword htmlTagName contained linearGradient marker mask pattern radialGradient set stop
|
||||||
|
syn keyword htmlTagName contained missing-glyph mpath
|
||||||
|
syn keyword htmlTagName contained text textPath tref tspan vkern
|
||||||
|
syn keyword htmlTagName contained metadata title
|
||||||
|
|
||||||
|
" MathML tags
|
||||||
|
" https://www.w3.org/TR/MathML3/appendixi.html#index.elem
|
||||||
|
syn keyword htmlTagName contained abs and annotation annotation-xml apply approx arccos arccosh arccot arccoth
|
||||||
|
syn keyword htmlTagName contained arccsc arccsch arcsec arcsech arcsin arcsinh arctan arctanh arg bind
|
||||||
|
syn keyword htmlTagName contained bvar card cartesianproduct cbytes ceiling cerror ci cn codomain complexes
|
||||||
|
syn keyword htmlTagName contained compose condition conjugate cos cosh cot coth cs csc csch
|
||||||
|
syn keyword htmlTagName contained csymbol curl declare degree determinant diff divergence divide domain domainofapplication
|
||||||
|
syn keyword htmlTagName contained emptyset eq equivalent eulergamma exists exp exponentiale factorial factorof false
|
||||||
|
syn keyword htmlTagName contained floor fn forall gcd geq grad gt ident image imaginary
|
||||||
|
syn keyword htmlTagName contained imaginaryi implies in infinity int integers intersect interval inverse lambda
|
||||||
|
syn keyword htmlTagName contained laplacian lcm leq limit list ln log logbase lowlimit lt
|
||||||
|
syn keyword htmlTagName contained maction maligngroup malignmark math matrix matrixrow max mean median menclose
|
||||||
|
syn keyword htmlTagName contained merror mfenced mfrac mglyph mi mi" min minus mlabeledtr mlongdiv
|
||||||
|
syn keyword htmlTagName contained mmultiscripts mn mo mode moment momentabout mover mpadded mphantom mprescripts
|
||||||
|
syn keyword htmlTagName contained mroot mrow ms mscarries mscarry msgroup msline mspace msqrt msrow
|
||||||
|
syn keyword htmlTagName contained mstack mstyle msub msubsup msup mtable mtd mtext mtr munder
|
||||||
|
syn keyword htmlTagName contained munderover naturalnumbers neq none not notanumber notin notprsubset notsubset or
|
||||||
|
syn keyword htmlTagName contained otherwise outerproduct partialdiff pi piece piecewise plus power primes product
|
||||||
|
syn keyword htmlTagName contained prsubset quotient rationals real reals reln rem root scalarproduct sdev
|
||||||
|
syn keyword htmlTagName contained sec sech selector semantics sep set setdiff share sin sinh
|
||||||
|
syn keyword htmlTagName contained span subset sum tan tanh tendsto times transpose true union
|
||||||
|
syn keyword htmlTagName contained uplimit variance vector vectorproduct xor
|
||||||
|
|
||||||
|
" Custom Element
|
||||||
|
syn match htmlTagName contained "\<[a-z][-.0-9_a-z]*-[-.0-9_a-z]*\>"
|
||||||
|
syn match htmlTagName contained "[.0-9_a-z]\@<=-[-.0-9_a-z]*\>"
|
||||||
|
|
||||||
|
" HTML 5 arguments
|
||||||
|
" Core Attributes
|
||||||
|
syn keyword htmlArg contained accesskey class contenteditable contextmenu dir
|
||||||
|
syn keyword htmlArg contained draggable hidden id is lang spellcheck style tabindex title translate
|
||||||
|
" Event-handler Attributes
|
||||||
|
syn keyword htmlArg contained onabort onblur oncanplay oncanplaythrough onchange
|
||||||
|
syn keyword htmlArg contained onclick oncontextmenu ondblclick ondrag ondragend ondragenter ondragleave ondragover
|
||||||
|
syn keyword htmlArg contained ondragstart ondrop ondurationchange onemptied onended onerror onfocus onformchange
|
||||||
|
syn keyword htmlArg contained onforminput oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata
|
||||||
|
syn keyword htmlArg contained onloadedmetadata onloadstart onmousedown onmousemove onmouseout onmouseover onmouseup
|
||||||
|
syn keyword htmlArg contained onmousewheel onpause onplay onplaying onprogress onratechange onreadystatechange
|
||||||
|
syn keyword htmlArg contained onscroll onseeked onseeking onselect onshow onstalled onsubmit onsuspend ontimeupdate
|
||||||
|
syn keyword htmlArg contained onvolumechange onwaiting
|
||||||
|
" XML Attributes
|
||||||
|
syn keyword htmlArg contained xml:lang xml:space xml:base xmlns
|
||||||
|
" new features
|
||||||
|
" <body>
|
||||||
|
syn keyword htmlArg contained onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload
|
||||||
|
syn keyword htmlArg contained onmessage onoffline ononline onpopstate onredo onresize onstorage onundo onunload
|
||||||
|
" <video>, <audio>, <source>, <track>
|
||||||
|
syn keyword htmlArg contained autoplay preload controls loop poster media kind charset srclang track playsinline
|
||||||
|
" <form>, <input>, <button>
|
||||||
|
syn keyword htmlArg contained form autocomplete autofocus list min max step
|
||||||
|
syn keyword htmlArg contained formaction autofocus formenctype formmethod formtarget formnovalidate
|
||||||
|
syn keyword htmlArg contained required placeholder pattern
|
||||||
|
" <command>, <details>, <time>
|
||||||
|
syn keyword htmlArg contained label icon open datetime-local pubdate
|
||||||
|
" <script>
|
||||||
|
syn keyword htmlArg contained async
|
||||||
|
" <content>
|
||||||
|
syn keyword htmlArg contained select
|
||||||
|
" <iframe>
|
||||||
|
syn keyword htmlArg contained seamless srcdoc sandbox allowfullscreen allowusermedia allowpaymentrequest allowpresentation
|
||||||
|
" <picture>
|
||||||
|
syn keyword htmlArg contained srcset sizes
|
||||||
|
" <a>
|
||||||
|
syn keyword htmlArg contained download media
|
||||||
|
" <script>, <style>
|
||||||
|
syn keyword htmlArg contained nonce
|
||||||
|
" <area>, <a>, <img>, <iframe>, <link>
|
||||||
|
syn keyword htmlArg contained referrerpolicy
|
||||||
|
" https://w3c.github.io/webappsec-subresource-integrity/#the-integrity-attribute
|
||||||
|
syn keyword htmlArg contained integrity crossorigin
|
||||||
|
" <link>
|
||||||
|
syn keyword htmlArg contained prefetch
|
||||||
|
" syn keyword htmlArg contained preload
|
||||||
|
" <img>
|
||||||
|
syn keyword htmlArg contained decoding
|
||||||
|
" https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers
|
||||||
|
syn keyword htmlArg contained onselectstart onselectionchange
|
||||||
|
" https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading
|
||||||
|
syn keyword htmlArg contained loading
|
||||||
|
|
||||||
|
" Custom Data Attributes
|
||||||
|
" http://w3c.github.io/html/single-page.html#embedding-custom-non-visible-data-with-the-data-attributes
|
||||||
|
syn match htmlArg "\<data[-.0-9_a-z]*-[-.0-9_a-z]*\>" contained
|
||||||
|
|
||||||
|
" Vendor Extension Attributes
|
||||||
|
" http://w3c.github.io/html/single-page.html#conformance-requirements-extensibility
|
||||||
|
syn match htmlArg "\<x[-.0-9_a-z]*-[-.0-9_a-z]*\>" contained
|
||||||
|
|
||||||
|
" Microdata
|
||||||
|
" http://dev.w3.org/html5/md/
|
||||||
|
syn keyword htmlArg contained itemid itemscope itemtype itemprop itemref
|
||||||
|
|
||||||
|
" SVG
|
||||||
|
" http://www.w3.org/TR/SVG/
|
||||||
|
" Some common attributes from http://www.w3.org/TR/SVG/attindex.html
|
||||||
|
syn keyword htmlArg contained accent-height accumulate additive alphabetic amplitude arabic-form ascent attributeName attributeType azimuth
|
||||||
|
syn keyword htmlArg contained baseFrequency baseProfile bbox begin bias by
|
||||||
|
syn keyword htmlArg contained calcMode cap-height class clipPathUnits contentScriptType contentStyleType cx cy
|
||||||
|
syn keyword htmlArg contained d descent diffuseConstant divisor dur dx dy
|
||||||
|
syn keyword htmlArg contained edgeMode elevation end exponent externalResourcesRequired
|
||||||
|
syn keyword htmlArg contained fill filterRes filterUnits font-family font-size font-stretch font-style font-variant font-weight format format from fx fy
|
||||||
|
syn keyword htmlArg contained g1 g2 glyph-name glyphRef gradientTransform gradientUnits
|
||||||
|
syn keyword htmlArg contained hanging height horiz-adv-x horiz-origin-x horiz-origin-y
|
||||||
|
syn keyword htmlArg contained id ideographic in in2 intercept
|
||||||
|
syn keyword htmlArg contained k k1 k2 k3 k4 kernelMatrix kernelUnitLength keyPoints keySplines keyTimes
|
||||||
|
syn keyword htmlArg contained lang lengthAdjust limitingConeAngle local
|
||||||
|
syn keyword htmlArg contained markerHeight markerUnits markerWidth maskContentUnits maskUnits mathematical max media method min mode name
|
||||||
|
syn keyword htmlArg contained numOctaves
|
||||||
|
syn keyword htmlArg contained offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload onzoom operator order orient orientation origin overline-position overline-thickness
|
||||||
|
syn keyword htmlArg contained panose-1 path pathLength patternContentUnits patternTransform patternUnits points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits
|
||||||
|
syn keyword htmlArg contained r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry
|
||||||
|
syn keyword htmlArg contained scale seed slope spacing specularConstant specularExponent spreadMethod startOffset stdDeviation stemh stemv stitchTiles strikethrough-position strikethrough-thickness string surfaceScale systemLanguage
|
||||||
|
syn keyword htmlArg contained tableValues target targetX targetY textLength title to transform type
|
||||||
|
syn keyword htmlArg contained u1 u2 underline-position underline-thickness unicode unicode-range units-per-em
|
||||||
|
syn keyword htmlArg contained v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget
|
||||||
|
syn keyword htmlArg contained width widths
|
||||||
|
syn keyword htmlArg contained x x-height x1 x2 xChannelSelector xlink:actuate xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space
|
||||||
|
syn keyword htmlArg contained y y1 y2 yChannelSelector
|
||||||
|
syn keyword htmlArg contained z zoomAndPan
|
||||||
|
syn keyword htmlArg contained alignment-baseline baseline-shift clip-path clip-rule clip color-interpolation-filters color-interpolation color-profile color-rendering color cursor direction display dominant-baseline enable-background fill-opacity fill-rule fill filter flood-color flood-opacity font-family font-size-adjust font-size font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width stroke text-anchor text-decoration text-rendering unicode-bidi visibility word-spacing writing-mode
|
||||||
|
|
||||||
|
" MathML attributes
|
||||||
|
" https://www.w3.org/TR/MathML3/chapter2.html#interf.toplevel.atts
|
||||||
|
syn keyword htmlArg contained accent accentunder actiontype align alignmentscope altimg altimg-height altimg-valign altimg-width alttext
|
||||||
|
syn keyword htmlArg contained annotation-xml background base baseline bevelled cd cdgroup charalign charspacing close
|
||||||
|
syn keyword htmlArg contained closure color columnalign columnalignment columnlines columnspacing columnspan columnwidth crossout decimalpoint
|
||||||
|
syn keyword htmlArg contained definitionURL denomalign depth display displaystyle edge encoding equalcolumns equalrows fence
|
||||||
|
syn keyword htmlArg contained fontfamily fontsize fontstyle fontweight form frame framespacing groupalign height indentalign
|
||||||
|
syn keyword htmlArg contained indentalignfirst indentalignlast indentshift indentshiftfirst indentshiftlast indenttarget index infixlinebreakstyle integer largeop
|
||||||
|
syn keyword htmlArg contained leftoverhang length linebreak linebreakmultchar linebreakstyle lineleading linethickness location longdivstyle lquote
|
||||||
|
syn keyword htmlArg contained lspace ltr macros math mathbackground mathcolor mathsize mathvariant maxsize maxwidth
|
||||||
|
syn keyword htmlArg contained mediummathspace menclose minlabelspacing minsize mode movablelimits msgroup mslinethickness name nargs
|
||||||
|
syn keyword htmlArg contained newline notation numalign number occurrence open order other overflow position
|
||||||
|
syn keyword htmlArg contained rightoverhang role rowalign rowlines rowspacing rowspan rquote rspace schemaLocation scope
|
||||||
|
syn keyword htmlArg contained scriptlevel scriptminsize scriptsize scriptsizemultiplier selection separator separators shift side stackalign
|
||||||
|
syn keyword htmlArg contained stretchy subscriptshift superscriptshift symmetric thickmathspace thinmathspace type valign verythickmathspace verythinmathspace
|
||||||
|
syn keyword htmlArg contained veryverythickmathspace veryverythinmathspace voffset width xref
|
||||||
|
|
||||||
" Comment
|
" Comment
|
||||||
" 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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
42
after/syntax/php/graphql.vim
Normal file
42
after/syntax/php/graphql.vim
Normal 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
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
@@ -330,7 +332,7 @@ function! s:download(branch)
|
|||||||
let zip = s:script_root_dir . "fsac.zip"
|
let zip = s:script_root_dir . "fsac.zip"
|
||||||
call system(
|
call system(
|
||||||
\ 'curl -fLo ' . zip . ' --create-dirs ' .
|
\ 'curl -fLo ' . zip . ' --create-dirs ' .
|
||||||
\ '"https://ci.appveyor.com/api/projects/fsautocomplete/fsautocomplete/artifacts/bin/pkgs/fsautocomplete.netcore.zip?branch=' . a:branch . '"'
|
\ '"https://github.com/fsharp/FsAutoComplete/releases/latest/download/fsautocomplete.netcore.zip"'
|
||||||
\ )
|
\ )
|
||||||
if v:shell_error == 0
|
if v:shell_error == 0
|
||||||
call system('unzip -o -d ' . s:script_root_dir . "/fsac " . zip)
|
call system('unzip -o -d ' . s:script_root_dir . "/fsac " . zip)
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -266,15 +264,25 @@ function! go#config#SetTemplateAutocreate(value) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#MetalinterCommand() abort
|
function! go#config#MetalinterCommand() abort
|
||||||
return get(g:, "go_metalinter_command", "golangci-lint")
|
return get(g:, 'go_metalinter_command', 'golangci-lint')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#MetalinterAutosaveEnabled() abort
|
function! go#config#MetalinterAutosaveEnabled() abort
|
||||||
return get(g:, "go_metalinter_autosave_enabled", ["govet", "golint"])
|
let l:default = []
|
||||||
|
if get(g:, 'go_metalinter_command', 'golangci-lint') == 'golangci-lint'
|
||||||
|
let l:default = ['govet', 'golint']
|
||||||
|
endif
|
||||||
|
|
||||||
|
return get(g:, 'go_metalinter_autosave_enabled', l:default)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#MetalinterEnabled() abort
|
function! go#config#MetalinterEnabled() abort
|
||||||
return get(g:, "go_metalinter_enabled", ["vet", "golint", "errcheck"])
|
let l:default = []
|
||||||
|
if get(g:, 'go_metalinter_command', 'golangci-lint') == 'golangci-lint'
|
||||||
|
let l:default = ['vet', 'golint', 'errcheck']
|
||||||
|
endif
|
||||||
|
|
||||||
|
return get(g:, 'go_metalinter_enabled', l:default)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#GolintBin() abort
|
function! go#config#GolintBin() abort
|
||||||
@@ -514,7 +522,7 @@ function! go#config#ReferrersMode() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#ImplementsMode() abort
|
function! go#config#ImplementsMode() abort
|
||||||
return get(g:, 'go_implements_mode', 'guru')
|
return get(g:, 'go_implements_mode', 'gopls')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#GoplsCompleteUnimported() abort
|
function! go#config#GoplsCompleteUnimported() abort
|
||||||
@@ -564,10 +572,21 @@ function! go#config#GoplsEnabled() abort
|
|||||||
return get(g:, 'go_gopls_enabled', 1)
|
return get(g:, 'go_gopls_enabled', 1)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" TODO(bc): remove support for g:go_diagnostics_enabled;
|
||||||
|
" g:go_diagnostics_level is the replacement.
|
||||||
function! go#config#DiagnosticsEnabled() abort
|
function! go#config#DiagnosticsEnabled() abort
|
||||||
return get(g:, 'go_diagnostics_enabled', 0)
|
return get(g:, 'go_diagnostics_enabled', 0)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! go#config#DiagnosticsLevel() abort
|
||||||
|
let l:default = 0
|
||||||
|
if has_key(g:, 'go_diagnostics_enabled') && g:go_diagnostics_enabled
|
||||||
|
let l:default = 2
|
||||||
|
endif
|
||||||
|
|
||||||
|
return get(g:, 'go_diagnostics_level', l:default)
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! go#config#GoplsOptions() abort
|
function! go#config#GoplsOptions() abort
|
||||||
return get(g:, 'go_gopls_options', ['-remote=auto'])
|
return get(g:, 'go_gopls_options', ['-remote=auto'])
|
||||||
endfunction
|
endfunction
|
||||||
@@ -576,6 +595,21 @@ function! go#config#FillStructMode() abort
|
|||||||
return get(g:, 'go_fillstruct_mode', 'fillstruct')
|
return get(g:, 'go_fillstruct_mode', 'fillstruct')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! go#config#DebugMappings() abort
|
||||||
|
let l:default = {
|
||||||
|
\ '(go-debug-continue)': {'key': '<F5>'},
|
||||||
|
\ '(go-debug-print)': {'key': '<F6>'},
|
||||||
|
\ '(go-debug-breakpoint)': {'key': '<F9>'},
|
||||||
|
\ '(go-debug-next)': {'key': '<F10>'},
|
||||||
|
\ '(go-debug-step)': {'key': '<F11>'},
|
||||||
|
\ '(go-debug-halt)': {'key': '<F8>'},
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let l:user = deepcopy(get(g:, 'go_debug_mappings', {}))
|
||||||
|
|
||||||
|
return extend(l:user, l:default, 'keep')
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Set the default value. A value of "1" is a shortcut for this, for
|
" Set the default value. A value of "1" is a shortcut for this, for
|
||||||
" compatibility reasons.
|
" compatibility reasons.
|
||||||
if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1
|
if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1
|
||||||
@@ -587,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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|
||||||
|
|||||||
@@ -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')
|
||||||
@@ -37,7 +39,7 @@ let s:NODOCPATTERN = '\C\VNo documentation found.'
|
|||||||
function! julia#doc#lookup(keyword, ...) abort
|
function! julia#doc#lookup(keyword, ...) abort
|
||||||
let juliapath = get(a:000, 0, g:julia#doc#juliapath)
|
let juliapath = get(a:000, 0, g:julia#doc#juliapath)
|
||||||
let keyword = escape(a:keyword, '"\')
|
let keyword = escape(a:keyword, '"\')
|
||||||
let cmd = printf('%s -E "@doc %s"', juliapath, keyword)
|
let cmd = printf('%s --compile=min --optimize=0 -E "@doc %s"', juliapath, keyword)
|
||||||
return systemlist(cmd)
|
return systemlist(cmd)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -238,9 +240,7 @@ endfunction
|
|||||||
function! s:likely(str) abort
|
function! s:likely(str) abort
|
||||||
" escape twice
|
" escape twice
|
||||||
let str = escape(escape(a:str, '"\'), '"\')
|
let str = escape(escape(a:str, '"\'), '"\')
|
||||||
let cmd = printf('%s -E "%s(\"%s\")"', g:julia#doc#juliapath, s:REPL_SEARCH, str)
|
let cmd = printf('%s --compile=min --optimize=0 -E "%s(\"%s\")"', g:julia#doc#juliapath, s:REPL_SEARCH, str)
|
||||||
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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
112
autoload/nim.vim
112
autoload/nim.vim
@@ -1,9 +1,11 @@
|
|||||||
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'), '\')
|
||||||
|
|
||||||
if !exists("g:nim_caas_enabled")
|
if !exists('g:nim_caas_enabled')
|
||||||
let g:nim_caas_enabled = 0
|
let g:nim_caas_enabled = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -11,27 +13,25 @@ if !executable('nim')
|
|||||||
echoerr "the Nim compiler must be in your system's PATH"
|
echoerr "the Nim compiler must be in your system's PATH"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("python3")
|
if has('pythonx')
|
||||||
exe 'py3file ' . fnameescape(s:plugin_path) . '/nim_vim.py'
|
exe 'pyxfile ' . fnameescape(s:plugin_path) . '/nim_vim.py'
|
||||||
elseif has("python")
|
|
||||||
exe 'pyfile ' . fnameescape(s:plugin_path) . '/nim_vim.py'
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
fun! nim#init()
|
fun! nim#init() abort
|
||||||
let cmd = printf("nim --dump.format:json --verbosity:0 dump %s", s:CurrentNimFile())
|
let cmd = printf('nim --dump.format:json --verbosity:0 dump %s', s:CurrentNimFile())
|
||||||
let raw_dumpdata = system(cmd)
|
let raw_dumpdata = system(cmd)
|
||||||
if !v:shell_error && expand("%:e") == "nim"
|
if !v:shell_error && expand('%:e') ==# 'nim'
|
||||||
let false = 0 " Needed for eval of json
|
let false = 0 " Needed for eval of json
|
||||||
let true = 1 " Needed for eval of json
|
let true = 1 " Needed for eval of json
|
||||||
let dumpdata = eval(substitute(raw_dumpdata, "\n", "", "g"))
|
let dumpdata = eval(substitute(raw_dumpdata, "\n", '', 'g'))
|
||||||
|
|
||||||
let b:nim_project_root = dumpdata['project_path']
|
let b:nim_project_root = dumpdata['project_path']
|
||||||
let b:nim_defined_symbols = dumpdata['defined_symbols']
|
let b:nim_defined_symbols = dumpdata['defined_symbols']
|
||||||
let b:nim_caas_enabled = g:nim_caas_enabled || index(dumpdata['defined_symbols'], 'forcecaas') != -1
|
let b:nim_caas_enabled = g:nim_caas_enabled || index(dumpdata['defined_symbols'], 'forcecaas') != -1
|
||||||
|
|
||||||
for path in dumpdata['lib_paths']
|
for path in dumpdata['lib_paths']
|
||||||
if finddir(path) == path
|
if finddir(path) ==# path
|
||||||
let &l:path = path . "," . &l:path
|
let &l:path = path . ',' . &l:path
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
@@ -39,7 +39,7 @@ fun! nim#init()
|
|||||||
endif
|
endif
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fun! s:UpdateNimLog()
|
fun! s:UpdateNimLog() abort
|
||||||
setlocal buftype=nofile
|
setlocal buftype=nofile
|
||||||
setlocal bufhidden=hide
|
setlocal bufhidden=hide
|
||||||
setlocal noswapfile
|
setlocal noswapfile
|
||||||
@@ -56,32 +56,32 @@ endf
|
|||||||
augroup NimVim
|
augroup NimVim
|
||||||
au!
|
au!
|
||||||
au BufEnter log://nim call s:UpdateNimLog()
|
au BufEnter log://nim call s:UpdateNimLog()
|
||||||
if has("python3") || has("python")
|
if has('pythonx')
|
||||||
" au QuitPre * :py nimTerminateAll()
|
" au QuitPre * :pyx nimTerminateAll()
|
||||||
au VimLeavePre * :py nimTerminateAll()
|
au VimLeavePre * :pyx nimTerminateAll()
|
||||||
endif
|
endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
command! NimLog :e log://nim
|
command! NimLog :e log://nim
|
||||||
|
|
||||||
command! NimTerminateService
|
command! NimTerminateService
|
||||||
\ :exe printf("py nimTerminateService('%s')", b:nim_project_root)
|
\ :exe printf("pyx nimTerminateService('%s')", b:nim_project_root)
|
||||||
|
|
||||||
command! NimRestartService
|
command! NimRestartService
|
||||||
\ :exe printf("py nimRestartService('%s')", b:nim_project_root)
|
\ :exe printf("pyx nimRestartService('%s')", b:nim_project_root)
|
||||||
|
|
||||||
fun! s:CurrentNimFile()
|
fun! s:CurrentNimFile() abort
|
||||||
let save_cur = getpos('.')
|
let save_cur = getpos('.')
|
||||||
call cursor(0, 0, 0)
|
call cursor(0, 0, 0)
|
||||||
|
|
||||||
let PATTERN = "\\v^\\#\\s*included from \\zs.*\\ze"
|
let PATTERN = '\v^\#\s*included from \zs.*\ze'
|
||||||
let l = search(PATTERN, "n")
|
let l = search(PATTERN, 'n')
|
||||||
|
|
||||||
if l != 0
|
if l != 0
|
||||||
let f = matchstr(getline(l), PATTERN)
|
let f = matchstr(getline(l), PATTERN)
|
||||||
let l:to_check = expand('%:h') . "/" . f
|
let l:to_check = expand('%:h') . '/' . f
|
||||||
else
|
else
|
||||||
let l:to_check = expand("%")
|
let l:to_check = expand('%')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call setpos('.', save_cur)
|
call setpos('.', save_cur)
|
||||||
@@ -108,42 +108,42 @@ let g:nim_symbol_types = {
|
|||||||
\ 'skEnumField': 'v',
|
\ 'skEnumField': 'v',
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
fun! NimExec(op)
|
fun! NimExec(op) abort
|
||||||
let isDirty = getbufvar(bufnr('%'), "&modified")
|
let isDirty = getbufvar(bufnr('%'), '&modified')
|
||||||
if isDirty
|
if isDirty
|
||||||
let tmp = tempname() . bufname("%") . "_dirty.nim"
|
let tmp = tempname() . bufname('%') . '_dirty.nim'
|
||||||
silent! exe ":w " . tmp
|
silent! exe ':w ' . tmp
|
||||||
|
|
||||||
let cmd = printf("idetools %s --trackDirty:\"%s,%s,%d,%d\" \"%s\"",
|
let cmd = printf('idetools %s --trackDirty:"%s,%s,%d,%d" "%s"',
|
||||||
\ a:op, tmp, expand('%:p'), line('.'), col('.')-1, s:CurrentNimFile())
|
\ a:op, tmp, expand('%:p'), line('.'), col('.')-1, s:CurrentNimFile())
|
||||||
else
|
else
|
||||||
let cmd = printf("idetools %s --track:\"%s,%d,%d\" \"%s\"",
|
let cmd = printf('idetools %s --track:"%s,%d,%d" "%s"',
|
||||||
\ a:op, expand('%:p'), line('.'), col('.')-1, s:CurrentNimFile())
|
\ a:op, expand('%:p'), line('.'), col('.')-1, s:CurrentNimFile())
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if b:nim_caas_enabled
|
if b:nim_caas_enabled
|
||||||
exe printf("py nimExecCmd('%s', '%s', False)", b:nim_project_root, cmd)
|
exe printf("pyx nimExecCmd('%s', '%s', False)", b:nim_project_root, cmd)
|
||||||
let output = l:py_res
|
let output = get(l:, 'py_res', '')
|
||||||
else
|
else
|
||||||
let output = system("nim " . cmd)
|
let output = system('nim ' . cmd)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call add(g:nim_log, "nim " . cmd . "\n" . output)
|
call add(g:nim_log, 'nim ' . cmd . "\n" . output)
|
||||||
return output
|
return output
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fun! NimExecAsync(op, Handler)
|
fun! NimExecAsync(op, Handler) abort
|
||||||
let result = NimExec(a:op)
|
let result = NimExec(a:op)
|
||||||
call a:Handler(result)
|
call a:Handler(result)
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fun! NimComplete(findstart, base)
|
fun! NimComplete(findstart, base) abort
|
||||||
if b:nim_caas_enabled == 0
|
if b:nim_caas_enabled ==# 0
|
||||||
return -1
|
return -1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:findstart
|
if a:findstart
|
||||||
if synIDattr(synIDtrans(synID(line("."),col("."),1)), "name") == 'Comment'
|
if synIDattr(synIDtrans(synID(line('.'),col('.'),1)), 'name') ==# 'Comment'
|
||||||
return -1
|
return -1
|
||||||
endif
|
endif
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
@@ -154,10 +154,10 @@ fun! NimComplete(findstart, base)
|
|||||||
return start
|
return start
|
||||||
else
|
else
|
||||||
let result = []
|
let result = []
|
||||||
let sugOut = NimExec("--suggest")
|
let sugOut = NimExec('--suggest')
|
||||||
for line in split(sugOut, '\n')
|
for line in split(sugOut, '\n')
|
||||||
let lineData = split(line, '\t')
|
let lineData = split(line, '\t')
|
||||||
if len(lineData) > 0 && lineData[0] == "sug"
|
if len(lineData) > 0 && lineData[0] ==# 'sug'
|
||||||
let word = split(lineData[2], '\.')[-1]
|
let word = split(lineData[2], '\.')[-1]
|
||||||
if a:base ==? '' || word =~# '^' . a:base
|
if a:base ==? '' || word =~# '^' . a:base
|
||||||
let kind = get(g:nim_symbol_types, lineData[1], '')
|
let kind = get(g:nim_symbol_types, lineData[1], '')
|
||||||
@@ -170,7 +170,7 @@ fun! NimComplete(findstart, base)
|
|||||||
endif
|
endif
|
||||||
endf
|
endf
|
||||||
|
|
||||||
if !exists("g:neocomplcache_omni_patterns")
|
if !exists('g:neocomplcache_omni_patterns')
|
||||||
let g:neocomplcache_omni_patterns = {}
|
let g:neocomplcache_omni_patterns = {}
|
||||||
endif
|
endif
|
||||||
let g:neocomplcache_omni_patterns['nim'] = '[^. *\t]\.\w*'
|
let g:neocomplcache_omni_patterns['nim'] = '[^. *\t]\.\w*'
|
||||||
@@ -182,7 +182,7 @@ let g:neocomplete#sources#omni#input_patterns['nim'] = '[^. *\t]\.\w*'
|
|||||||
|
|
||||||
let g:nim_completion_callbacks = {}
|
let g:nim_completion_callbacks = {}
|
||||||
|
|
||||||
fun! NimAsyncCmdComplete(cmd, output)
|
fun! NimAsyncCmdComplete(cmd, output) abort
|
||||||
call add(g:nim_log, a:output)
|
call add(g:nim_log, a:output)
|
||||||
echom g:nim_completion_callbacks
|
echom g:nim_completion_callbacks
|
||||||
if has_key(g:nim_completion_callbacks, a:cmd)
|
if has_key(g:nim_completion_callbacks, a:cmd)
|
||||||
@@ -190,55 +190,53 @@ fun! NimAsyncCmdComplete(cmd, output)
|
|||||||
call Callback(a:output)
|
call Callback(a:output)
|
||||||
" remove(g:nim_completion_callbacks, a:cmd)
|
" remove(g:nim_completion_callbacks, a:cmd)
|
||||||
else
|
else
|
||||||
echom "ERROR, Unknown Command: " . a:cmd
|
echom 'ERROR, Unknown Command: ' . a:cmd
|
||||||
endif
|
endif
|
||||||
return 1
|
return 1
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fun! GotoDefinition_nim_ready(def_output)
|
fun! GotoDefinition_nim_ready(def_output) abort
|
||||||
if v:shell_error
|
if v:shell_error
|
||||||
echo "nim was unable to locate the definition. exit code: " . v:shell_error
|
echo 'nim was unable to locate the definition. exit code: ' . v:shell_error
|
||||||
" echoerr a:def_output
|
" echoerr a:def_output
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let rawDef = matchstr(a:def_output, 'def\t\([^\n]*\)')
|
let rawDef = matchstr(a:def_output, 'def\t\([^\n]*\)')
|
||||||
if rawDef == ""
|
if rawDef == ''
|
||||||
echo "the current cursor position does not match any definitions"
|
echo 'the current cursor position does not match any definitions'
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let defBits = split(rawDef, '\t')
|
let defBits = split(rawDef, '\t')
|
||||||
let file = defBits[4]
|
let file = defBits[4]
|
||||||
let line = defBits[5]
|
let line = defBits[5]
|
||||||
exe printf("e +%d %s", line, file)
|
exe printf('e +%d %s', line, file)
|
||||||
return 1
|
return 1
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fun! GotoDefinition_nim()
|
fun! GotoDefinition_nim() abort
|
||||||
call NimExecAsync("--def", function("GotoDefinition_nim_ready"))
|
call NimExecAsync('--def', function('GotoDefinition_nim_ready'))
|
||||||
endf
|
endf
|
||||||
|
|
||||||
fun! FindReferences_nim()
|
fun! FindReferences_nim() abort
|
||||||
setloclist()
|
"setloclist()
|
||||||
endf
|
endf
|
||||||
|
|
||||||
" Syntastic syntax checking
|
" Syntastic syntax checking
|
||||||
fun! SyntaxCheckers_nim_nim_GetLocList()
|
fun! SyntaxCheckers_nim_nim_GetLocList() abort
|
||||||
let makeprg = 'nim check --hints:off --listfullpaths ' . s:CurrentNimFile()
|
let makeprg = 'nim check --hints:off --listfullpaths ' . s:CurrentNimFile()
|
||||||
let errorformat = &errorformat
|
let errorformat = &errorformat
|
||||||
|
|
||||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||||
endf
|
endf
|
||||||
|
|
||||||
function! SyntaxCheckers_nim_nim_IsAvailable()
|
function! SyntaxCheckers_nim_nim_IsAvailable() abort
|
||||||
return executable("nim")
|
return executable('nim')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if exists("g:SyntasticRegistry")
|
if exists('g:SyntasticRegistry')
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
\ 'filetype': 'nim',
|
\ 'filetype': 'nim',
|
||||||
\ 'name': 'nim'})
|
\ 'name': 'nim'})
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
|
||||||
|
|||||||
@@ -4,7 +4,10 @@ set cpo&vim
|
|||||||
|
|
||||||
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
|
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
|
||||||
|
|
||||||
func! polyglot#detect#Inp()
|
func! polyglot#detect#Inp(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
let line = getline(nextnonblank(1))
|
let line = getline(nextnonblank(1))
|
||||||
if line =~# '^\*'
|
if line =~# '^\*'
|
||||||
set ft=abaqus | return
|
set ft=abaqus | return
|
||||||
@@ -17,14 +20,20 @@ func! polyglot#detect#Inp()
|
|||||||
endfor
|
endfor
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Asa()
|
func! polyglot#detect#Asa(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
if exists("g:filetype_asa")
|
if exists("g:filetype_asa")
|
||||||
let &ft = g:filetype_asa | return
|
let &ft = g:filetype_asa | return
|
||||||
endif
|
endif
|
||||||
set ft=aspvbs | return
|
set ft=aspvbs | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Asp()
|
func! polyglot#detect#Asp(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
if exists("g:filetype_asp")
|
if exists("g:filetype_asp")
|
||||||
let &ft = g:filetype_asp | return
|
let &ft = g:filetype_asp | return
|
||||||
endif
|
endif
|
||||||
@@ -37,7 +46,10 @@ func! polyglot#detect#Asp()
|
|||||||
set ft=aspvbs | return
|
set ft=aspvbs | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#H()
|
func! polyglot#detect#H(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 200]))
|
for lnum in range(1, min([line("$"), 200]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\s*\(@\(interface\|class\|protocol\|property\|end\|synchronised\|selector\|implementation\)\(\<\|\>\)\|#import\s\+.\+\.h[">]\)'
|
if line =~# '^\s*\(@\(interface\|class\|protocol\|property\|end\|synchronised\|selector\|implementation\)\(\<\|\>\)\|#import\s\+.\+\.h[">]\)'
|
||||||
@@ -56,7 +68,10 @@ func! polyglot#detect#H()
|
|||||||
set ft=cpp | return
|
set ft=cpp | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#M()
|
func! polyglot#detect#M(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
let saw_comment = 0
|
let saw_comment = 0
|
||||||
for lnum in range(1, min([line("$"), 100]))
|
for lnum in range(1, min([line("$"), 100]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
@@ -85,7 +100,10 @@ func! polyglot#detect#M()
|
|||||||
set ft=octave | return
|
set ft=octave | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Fs()
|
func! polyglot#detect#Fs(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 50]))
|
for lnum in range(1, min([line("$"), 50]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\(: \|new-device\)'
|
if line =~# '^\(: \|new-device\)'
|
||||||
@@ -104,7 +122,10 @@ func! polyglot#detect#Fs()
|
|||||||
set ft=forth | return
|
set ft=forth | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Re()
|
func! polyglot#detect#Re(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 50]))
|
for lnum in range(1, min([line("$"), 50]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\s*#\%(\%(if\|ifdef\|define\|pragma\)\s\+\w\|\s*include\s\+[<"]\|template\s*<\)'
|
if line =~# '^\s*#\%(\%(if\|ifdef\|define\|pragma\)\s\+\w\|\s*include\s\+[<"]\|template\s*<\)'
|
||||||
@@ -114,7 +135,10 @@ func! polyglot#detect#Re()
|
|||||||
endfor
|
endfor
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Idr()
|
func! polyglot#detect#Idr(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 5]))
|
for lnum in range(1, min([line("$"), 5]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\s*--.*[Ii]dris \=1'
|
if line =~# '^\s*--.*[Ii]dris \=1'
|
||||||
@@ -148,7 +172,10 @@ func! polyglot#detect#Idr()
|
|||||||
set ft=idris2 | return
|
set ft=idris2 | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Lidr()
|
func! polyglot#detect#Lidr(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 200]))
|
for lnum in range(1, min([line("$"), 200]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^>\s*--.*[Ii]dris \=1'
|
if line =~# '^>\s*--.*[Ii]dris \=1'
|
||||||
@@ -158,7 +185,10 @@ func! polyglot#detect#Lidr()
|
|||||||
set ft=lidris2 | return
|
set ft=lidris2 | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Bas()
|
func! polyglot#detect#Bas(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 5]))
|
for lnum in range(1, min([line("$"), 5]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~? 'VB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)'
|
if line =~? 'VB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)'
|
||||||
@@ -168,7 +198,10 @@ func! polyglot#detect#Bas()
|
|||||||
set ft=basic | return
|
set ft=basic | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Pm()
|
func! polyglot#detect#Pm(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
let line = getline(nextnonblank(1))
|
let line = getline(nextnonblank(1))
|
||||||
if line =~# 'XPM2'
|
if line =~# 'XPM2'
|
||||||
set ft=xpm2 | return
|
set ft=xpm2 | return
|
||||||
@@ -192,7 +225,10 @@ func! polyglot#detect#Pm()
|
|||||||
set ft=perl | return
|
set ft=perl | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Pl()
|
func! polyglot#detect#Pl(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
let line = getline(nextnonblank(1))
|
let line = getline(nextnonblank(1))
|
||||||
if line =~# '^[^#]*:-' || line =~# '^\s*\%(%\|/\*\)' || line =~# '\.\s*$'
|
if line =~# '^[^#]*:-' || line =~# '^\s*\%(%\|/\*\)' || line =~# '\.\s*$'
|
||||||
set ft=prolog | return
|
set ft=prolog | return
|
||||||
@@ -213,7 +249,10 @@ func! polyglot#detect#Pl()
|
|||||||
set ft=perl | return
|
set ft=perl | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#T()
|
func! polyglot#detect#T(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 5]))
|
for lnum in range(1, min([line("$"), 5]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '^\.'
|
if line =~# '^\.'
|
||||||
@@ -236,7 +275,10 @@ func! polyglot#detect#T()
|
|||||||
set ft=perl | return
|
set ft=perl | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Tt2()
|
func! polyglot#detect#Tt2(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
for lnum in range(1, min([line("$"), 3]))
|
for lnum in range(1, min([line("$"), 3]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~? '<\%(!DOCTYPE HTML\|[%?]\|html\)'
|
if line =~? '<\%(!DOCTYPE HTML\|[%?]\|html\)'
|
||||||
@@ -246,14 +288,17 @@ func! polyglot#detect#Tt2()
|
|||||||
set ft=tt2 | return
|
set ft=tt2 | return
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! polyglot#detect#Html()
|
func! polyglot#detect#Html(...)
|
||||||
|
if a:0 != 1 && did_filetype()
|
||||||
|
return
|
||||||
|
endif
|
||||||
let line = getline(nextnonblank(1))
|
let line = getline(nextnonblank(1))
|
||||||
if line =~# '^\(%\|<[%&].*>\)'
|
if line =~# '^\(%\|<[%&].*>\)'
|
||||||
set ft=mason | return
|
set ft=mason | return
|
||||||
endif
|
endif
|
||||||
for lnum in range(1, min([line("$"), 50]))
|
for lnum in range(1, min([line("$"), 50]))
|
||||||
let line = getline(lnum)
|
let line = getline(lnum)
|
||||||
if line =~# '{%-\=\s*\(end.*\|extends\|block\|macro\|set\|if\|for\|include\|trans\)\(\<\|\>\)\|{#\s\+'
|
if line =~# '{%-\=\s*\(end.*\|extends\|block\|macro\|set\|if\|for\|include\|trans\|load\)\(\<\|\>\)\|{#\s\+'
|
||||||
set ft=htmldjango | return
|
set ft=htmldjango | return
|
||||||
endif
|
endif
|
||||||
if line =~# '\(\<\|\>\)DTD\s\+XHTML\s'
|
if line =~# '\(\<\|\>\)DTD\s\+XHTML\s'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
@@ -513,7 +518,6 @@ let s:interpreters = {
|
|||||||
\ 'pdksh': 'sh',
|
\ 'pdksh': 'sh',
|
||||||
\ 'rc': 'sh',
|
\ 'rc': 'sh',
|
||||||
\ 'sh': 'sh',
|
\ 'sh': 'sh',
|
||||||
\ 'zsh': 'sh',
|
|
||||||
\ 'boolector': 'smt2',
|
\ 'boolector': 'smt2',
|
||||||
\ 'cvc4': 'smt2',
|
\ 'cvc4': 'smt2',
|
||||||
\ 'mathsat5': 'smt2',
|
\ 'mathsat5': 'smt2',
|
||||||
@@ -526,6 +530,7 @@ let s:interpreters = {
|
|||||||
\ 'z3': 'smt2',
|
\ 'z3': 'smt2',
|
||||||
\ 'deno': 'typescript',
|
\ 'deno': 'typescript',
|
||||||
\ 'ts-node': 'typescript',
|
\ 'ts-node': 'typescript',
|
||||||
|
\ 'zsh': 'zsh',
|
||||||
\ }
|
\ }
|
||||||
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE
|
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
|
" Restore 'cpoptions'
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
|
||||||
|
|
||||||
let s:globs = {
|
let s:globs = {
|
||||||
\ '8th': '*.8th',
|
\ '8th': '*.8th',
|
||||||
\ 'Dockerfile': '*.dockerfile,*.dock,*.Dockerfile,Dockerfile,dockerfile,Dockerfile*',
|
|
||||||
\ 'Jenkinsfile': '*.jenkinsfile,*.Jenkinsfile,Jenkinsfile,Jenkinsfile*',
|
\ 'Jenkinsfile': '*.jenkinsfile,*.Jenkinsfile,Jenkinsfile,Jenkinsfile*',
|
||||||
\ 'a2ps': 'a2psrc,.a2psrc',
|
\ 'a2ps': 'a2psrc,.a2psrc',
|
||||||
\ 'a65': '*.a65',
|
\ 'a65': '*.a65',
|
||||||
@@ -35,7 +40,7 @@ let s:globs = {
|
|||||||
\ 'atlas': '*.atl,*.as',
|
\ 'atlas': '*.atl,*.as',
|
||||||
\ 'autohotkey': '*.ahk,*.ahkl',
|
\ 'autohotkey': '*.ahk,*.ahkl',
|
||||||
\ 'autoit': '*.au3',
|
\ 'autoit': '*.au3',
|
||||||
\ 'automake': '*.mak,*.dsp,*.mk,Makefile.am,makefile.am,GNUmakefile.am',
|
\ 'automake': '[mM]akefile.am,GNUmakefile.am',
|
||||||
\ 'ave': '*.ave',
|
\ 'ave': '*.ave',
|
||||||
\ 'awk': '*.awk,*.gawk',
|
\ 'awk': '*.awk,*.gawk',
|
||||||
\ 'b': '*.mch,*.ref,*.imp',
|
\ 'b': '*.mch,*.ref,*.imp',
|
||||||
@@ -80,6 +85,7 @@ let s:globs = {
|
|||||||
\ 'conaryrecipe': '*.recipe',
|
\ 'conaryrecipe': '*.recipe',
|
||||||
\ 'conf': '*.conf,auto.master,config',
|
\ 'conf': '*.conf,auto.master,config',
|
||||||
\ 'config': 'configure.in,configure.ac,Pipfile',
|
\ 'config': 'configure.in,configure.ac,Pipfile',
|
||||||
|
\ 'context': '*.mkii,*.mkiv,*.mkvi',
|
||||||
\ 'cpp': '*.cpp,*.c++,*.cc,*.cp,*.cxx,*.h,*.h++,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.tcc,*.tpp,*.moc,*.tlh',
|
\ 'cpp': '*.cpp,*.c++,*.cc,*.cp,*.cxx,*.h,*.h++,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.tcc,*.tpp,*.moc,*.tlh',
|
||||||
\ 'cql': '*.cql',
|
\ 'cql': '*.cql',
|
||||||
\ 'crm': '*.crm',
|
\ 'crm': '*.crm',
|
||||||
@@ -122,6 +128,7 @@ let s:globs = {
|
|||||||
\ 'diff': '*.diff,*.rej',
|
\ 'diff': '*.diff,*.rej',
|
||||||
\ 'dircolors': '.dir_colors,.dircolors',
|
\ 'dircolors': '.dir_colors,.dircolors',
|
||||||
\ 'dnsmasq': '',
|
\ 'dnsmasq': '',
|
||||||
|
\ 'dockerfile': '*.Dockerfile,*.dock,Containerfile,Dockerfile,dockerfile,Dockerfile*',
|
||||||
\ 'dosbatch': '*.bat,*.sys',
|
\ 'dosbatch': '*.bat,*.sys',
|
||||||
\ 'dosini': '*.wrap,*.ini,*.dof,*.lektorproject,*.prefs,*.pro,*.properties,buildozer.spec,.editorconfig,.npmrc,php.ini-*',
|
\ 'dosini': '*.wrap,*.ini,*.dof,*.lektorproject,*.prefs,*.pro,*.properties,buildozer.spec,.editorconfig,.npmrc,php.ini-*',
|
||||||
\ 'dot': '*.dot,*.gv',
|
\ 'dot': '*.dot,*.gv',
|
||||||
@@ -137,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',
|
||||||
@@ -203,7 +210,7 @@ let s:globs = {
|
|||||||
\ 'gtkrc': '.gtkrc,gtkrc,.gtkrc*,gtkrc*',
|
\ 'gtkrc': '.gtkrc,gtkrc,.gtkrc*,gtkrc*',
|
||||||
\ 'haml': '*.haml,*.haml.deface,*.hamlc,*.hamlbars',
|
\ 'haml': '*.haml,*.haml.deface,*.hamlc,*.hamlbars',
|
||||||
\ 'hamster': '*.hsc,*.hsm',
|
\ 'hamster': '*.hsc,*.hsm',
|
||||||
\ 'haproxy': '*.cfg,haproxy.cfg,haproxy*.conf*',
|
\ 'haproxy': 'haproxy*.conf*,haproxy*.cfg*',
|
||||||
\ 'haskell': '*.hs,*.hs-boot,*.hsc,*.bpk,*.hsig',
|
\ 'haskell': '*.hs,*.hs-boot,*.hsc,*.bpk,*.hsig',
|
||||||
\ 'haste': '*.ht',
|
\ 'haste': '*.ht',
|
||||||
\ 'hastepreproc': '*.htpp',
|
\ 'hastepreproc': '*.htpp',
|
||||||
@@ -256,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',
|
||||||
@@ -305,6 +313,7 @@ let s:globs = {
|
|||||||
\ 'mail': '*.eml,snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt{ng,}-*-\w\+,mutt[[:alnum:]_-]\\\{6\},neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\},ae\d\+.txt,{neo,}mutt[[:alnum:]._-]\\\{6\},reportbug-*',
|
\ 'mail': '*.eml,snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt{ng,}-*-\w\+,mutt[[:alnum:]_-]\\\{6\},neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\},ae\d\+.txt,{neo,}mutt[[:alnum:]._-]\\\{6\},reportbug-*',
|
||||||
\ 'mailaliases': '',
|
\ 'mailaliases': '',
|
||||||
\ 'mailcap': '.mailcap,mailcap',
|
\ 'mailcap': '.mailcap,mailcap',
|
||||||
|
\ 'make': '*.mak,*.dsp,*.mk,*[mM]akefile',
|
||||||
\ 'mako': '*.mako,*.mao',
|
\ 'mako': '*.mako,*.mao',
|
||||||
\ 'mallard': '*.page',
|
\ 'mallard': '*.page',
|
||||||
\ 'manconf': 'man.config',
|
\ 'manconf': 'man.config',
|
||||||
@@ -321,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',
|
||||||
@@ -352,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',
|
||||||
@@ -374,15 +384,16 @@ let s:globs = {
|
|||||||
\ 'pamconf': '',
|
\ 'pamconf': '',
|
||||||
\ 'pamenv': 'pam_env.conf,.pam_environment',
|
\ 'pamenv': 'pam_env.conf,.pam_environment',
|
||||||
\ 'papp': '*.papp,*.pxml,*.pxsl',
|
\ 'papp': '*.papp,*.pxml,*.pxsl',
|
||||||
\ 'pascal': '*.pas,*.dpr',
|
\ 'pascal': '*.pas,*.pp,*.dpr,*.lpr',
|
||||||
\ 'passwd': '',
|
\ 'passwd': '',
|
||||||
\ 'pccts': '*.g',
|
\ 'pccts': '*.g',
|
||||||
\ '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,.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',
|
||||||
\ 'pike': '*.pike,*.pmod',
|
\ 'pike': '*.pike,*.pmod',
|
||||||
\ 'pilrc': '*.rcp',
|
\ 'pilrc': '*.rcp',
|
||||||
\ 'pine': '.pinerc,pinerc,.pinercex,pinercex',
|
\ 'pine': '.pinerc,pinerc,.pinercex,pinercex',
|
||||||
@@ -449,13 +460,13 @@ let s:globs = {
|
|||||||
\ 'rrst': '*.rrst,*.srst',
|
\ 'rrst': '*.rrst,*.srst',
|
||||||
\ 'rst': '*.rst,*.rest,*.rest.txt,*.rst.txt',
|
\ 'rst': '*.rst,*.rest,*.rest.txt,*.rst.txt',
|
||||||
\ 'rtf': '*.rtf',
|
\ 'rtf': '*.rtf',
|
||||||
\ 'ruby': '*.rb,*.builder,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.pluginspec,*.podspec,*.rabl,*.rake,*.rbi,*.rbuild,*.rbw,*.rbx,*.ru,*.ruby,*.spec,*.thor,*.watchr,*.rxml,*.rjs,*.rant,*.axlsx,*.cap,*.opal,.irbrc,.pryrc,.simplecov,Appraisals,Berksfile,Buildfile,Capfile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,Mavenfile,Podfile,Puppetfile,Rakefile,Snapfile,Thorfile,Vagrantfile,buildfile,Rantfile,.autotest,Cheffile,KitchenSink,Routefile,.Guardfile,.Brewfile,vagrantfile,[Rr]akefile*,*_spec.rb',
|
\ 'ruby': '*.rb,*.builder,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.pluginspec,*.podspec,*.rabl,*.rake,*.rbi,*.rbuild,*.rbw,*.rbx,*.ru,*.ruby,*.spec,*.thor,*.watchr,*.rxml,*.rjs,*.rant,*.axlsx,*.cap,*.opal,.irbrc,.pryrc,.simplecov,Appraisals,Berksfile,Buildfile,Capfile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,Mavenfile,Podfile,Puppetfile,Rakefile,Snapfile,Thorfile,Vagrantfile,buildfile,[Rr]antfile,.autotest,Cheffile,KitchenSink,Routefile,.Guardfile,.Brewfile,vagrantfile,[Rr]akefile*,*_spec.rb',
|
||||||
\ 'rust': '*.rs,*.rs.in',
|
\ 'rust': '*.rs,*.rs.in',
|
||||||
\ 'samba': 'smb.conf',
|
\ 'samba': 'smb.conf',
|
||||||
\ 'sas': '*.sas',
|
\ 'sas': '*.sas',
|
||||||
\ 'sass': '*.sass',
|
\ 'sass': '*.sass',
|
||||||
\ 'sather': '*.sa',
|
\ 'sather': '*.sa',
|
||||||
\ 'sbt.scala': '*.sbt',
|
\ 'sbt': '*.sbt',
|
||||||
\ 'scala': '*.scala,*.kojo,*.sc',
|
\ 'scala': '*.scala,*.kojo,*.sc',
|
||||||
\ 'scheme': '*.scm,*.ss,*.rkt',
|
\ 'scheme': '*.scm,*.ss,*.rkt',
|
||||||
\ 'scilab': '*.sci,*.sce',
|
\ 'scilab': '*.sci,*.sce',
|
||||||
@@ -469,7 +480,7 @@ let s:globs = {
|
|||||||
\ 'services': '',
|
\ 'services': '',
|
||||||
\ 'setserial': '',
|
\ 'setserial': '',
|
||||||
\ 'sexplib': '*.sexp',
|
\ 'sexplib': '*.sexp',
|
||||||
\ 'sh': '*.sh,*.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh.in,*.tmux,*.tool,.bash_aliases,.bash_history,.bash_logout,.bash_profile,.bashrc,.cshrc,.env,.env.example,.flaskenv,.login,.profile,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile,zlogin,zlogout,zprofile,zshenv,zshrc',
|
\ 'sh': '*.sh,*.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh.in,*.tmux,*.tool,.bash_aliases,.bash_history,.bash_logout,.bash_profile,.bashrc,.cshrc,.env,.env.example,.flaskenv,.login,.profile,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile',
|
||||||
\ 'sieve': '*.siv,*.sieve',
|
\ 'sieve': '*.siv,*.sieve',
|
||||||
\ 'sil': '*.sil',
|
\ 'sil': '*.sil',
|
||||||
\ 'simula': '*.sim',
|
\ 'simula': '*.sim',
|
||||||
@@ -536,7 +547,7 @@ let s:globs = {
|
|||||||
\ 'textile': '*.textile',
|
\ 'textile': '*.textile',
|
||||||
\ 'tf': '*.tf,.tfrc,tfrc',
|
\ 'tf': '*.tf,.tfrc,tfrc',
|
||||||
\ 'thrift': '*.thrift',
|
\ 'thrift': '*.thrift',
|
||||||
\ 'tidy': '.tidyrc,tidyrc',
|
\ 'tidy': '.tidyrc,tidyrc,tidy.conf',
|
||||||
\ 'tilde': '*.t.html',
|
\ 'tilde': '*.t.html',
|
||||||
\ 'tli': '*.tli',
|
\ 'tli': '*.tli',
|
||||||
\ 'tmux': '.tmux*.conf',
|
\ 'tmux': '.tmux*.conf',
|
||||||
@@ -552,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',
|
||||||
@@ -594,12 +606,15 @@ let s:globs = {
|
|||||||
\ 'wvdial': 'wvdial.conf,.wvdialrc',
|
\ 'wvdial': 'wvdial.conf,.wvdialrc',
|
||||||
\ 'xdc': '*.xdc',
|
\ 'xdc': '*.xdc',
|
||||||
\ 'xdefaults': '*.ad,.Xdefaults,.Xpdefaults,.Xresources,xdm-config,Xresources*',
|
\ 'xdefaults': '*.ad,.Xdefaults,.Xpdefaults,.Xresources,xdm-config,Xresources*',
|
||||||
|
\ 'xf86conf': 'XF86Config-4*,XF86Config*,xorg.conf,xorg.conf-4',
|
||||||
\ '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',
|
||||||
|
\ 'xpm2': '*.xpm2',
|
||||||
\ 'xquery': '*.xq,*.xql,*.xqm,*.xquery,*.xqy',
|
\ 'xquery': '*.xq,*.xql,*.xqm,*.xquery,*.xqy',
|
||||||
\ 'xs': '*.xs',
|
\ 'xs': '*.xs',
|
||||||
\ 'xsd': '*.xsd',
|
\ 'xsd': '*.xsd',
|
||||||
@@ -618,6 +633,13 @@ let s:globs = {
|
|||||||
\ 'zsh': '*.zsh,.zshrc,.zshenv,.zlogin,.zprofile,.zlogout,.zlog*,.zcompdump*,.zfbfmarks,.zsh*',
|
\ 'zsh': '*.zsh,.zshrc,.zshenv,.zlogin,.zprofile,.zlogout,.zlog*,.zcompdump*,.zfbfmarks,.zsh*',
|
||||||
\}
|
\}
|
||||||
|
|
||||||
|
|
||||||
|
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE
|
||||||
|
|
||||||
func! polyglot#sleuth#GlobForFiletype(type)
|
func! polyglot#sleuth#GlobForFiletype(type)
|
||||||
return get(s:globs, a:type, '')
|
return get(s:globs, a:type, '')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Restore 'cpoptions'
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user