diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/CODEOWNERS | 567 | ||||
-rw-r--r-- | .github/FUNDING.yml | 1 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/bug_report.yml | 57 | ||||
-rw-r--r-- | .github/ISSUE_TEMPLATE/feature_request.md | 22 | ||||
-rw-r--r-- | .github/dependabot.yml | 8 | ||||
-rw-r--r-- | .github/labeler.yml | 155 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 666 | ||||
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 76 | ||||
-rw-r--r-- | .github/workflows/coverity.yml | 83 | ||||
-rw-r--r-- | .github/workflows/label.yml | 22 |
10 files changed, 1657 insertions, 0 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..6ebaeda --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,567 @@ +# Lines starting with '#' are comments. +# Each line is a file pattern followed by one or more owners. +# You can use github users with @user or email addresses + +# These owners will be the default owners for everything in the repo. +#* @brammool + +# Order is important. The last matching pattern has the most precedence. +# So if a pull request only touches javascript files, only these owners +# will be requested to review. + +runtime/autoload/freebasic.vim @dkearns +runtime/autoload/getscript.vim @cecamp +runtime/autoload/haskell.vim @alx741 +runtime/autoload/javascript.vim @jsit +runtime/autoload/modula2.vim @dkearns +runtime/autoload/netrw.vim @cecamp +runtime/autoload/netrwFileHandlers.vim @cecamp +runtime/autoload/netrwSettings.vim @cecamp +runtime/autoload/php.vim @david-szabo97 +runtime/autoload/rubycomplete.vim @segfault @dkearns +runtime/autoload/rust.vim @lilyball +runtime/autoload/tar.vim @cecamp +runtime/autoload/vimball.vim @cecamp +runtime/autoload/xmlformat.vim @chrisbra +runtime/autoload/zip.vim @cecamp +runtime/autoload/dist/json.vim @habamax +runtime/colors/blue.vim @habamax @romainl @neutaaaaan +runtime/colors/darkblue.vim @habamax @romainl @neutaaaaan +runtime/colors/default.vim @habamax @romainl @neutaaaaan +runtime/colors/delek.vim @habamax @romainl @neutaaaaan +runtime/colors/desert.vim @habamax @romainl @neutaaaaan +runtime/colors/elflord.vim @habamax @romainl @neutaaaaan +runtime/colors/evening.vim @habamax @romainl @neutaaaaan +runtime/colors/habamax.vim @habamax @romainl @neutaaaaan +runtime/colors/industry.vim @habamax @romainl @neutaaaaan +runtime/colors/koehler.vim @habamax @romainl @neutaaaaan +runtime/colors/lunaperche.vim @habamax @romainl @neutaaaaan +runtime/colors/morning.vim @habamax @romainl @neutaaaaan +runtime/colors/murphy.vim @habamax @romainl @neutaaaaan +runtime/colors/pablo.vim @habamax @romainl @neutaaaaan +runtime/colors/peachpuff.vim @habamax @romainl @neutaaaaan +runtime/colors/quiet.vim @habamax @romainl @neutaaaaan +runtime/colors/retrobox.vim @habamax @romainl @neutaaaaan +runtime/colors/ron.vim @habamax @romainl @neutaaaaan +runtime/colors/shine.vim @habamax @romainl @neutaaaaan +runtime/colors/slate.vim @habamax @romainl @neutaaaaan +runtime/colors/sorbet.vim @habamax @romainl @neutaaaaan +runtime/colors/tools @habamax @romainl @neutaaaaan +runtime/colors/torte.vim @habamax @romainl @neutaaaaan +runtime/colors/wildcharm.vim @habamax @romainl @neutaaaaan +runtime/colors/zaibatsu.vim @habamax @romainl @neutaaaaan +runtime/colors/zellner.vim @habamax @romainl @neutaaaaan +runtime/compiler/checkstyle.vim @dkearns +runtime/compiler/cm3.vim @dkearns +runtime/compiler/cucumber.vim @tpope +runtime/compiler/dart.vim @dkearns +runtime/compiler/dart2js.vim @dkearns +runtime/compiler/dart2native.vim @dkearns +runtime/compiler/dartanalyser.vim @dkearns +runtime/compiler/dartdevc.vim @dkearns +runtime/compiler/dartdoc.vim @dkearns +runtime/compiler/dartfmt.vim @dkearns +runtime/compiler/dotnet.vim @nickspoons +runtime/compiler/eruby.vim @dkearns +runtime/compiler/fbc.vim @dkearns +runtime/compiler/gawk.vim @dkearns +runtime/compiler/gjs.vim @dkearns +runtime/compiler/gm2.vim @dkearns +runtime/compiler/go.vim @dbarnett +runtime/compiler/haml.vim @tpope +runtime/compiler/hare.vim @rsaihe +runtime/compiler/icon.vim @dkearns +runtime/compiler/javac.vim @dkearns +runtime/compiler/jest.vim @dkearns +runtime/compiler/jjs.vim @dkearns +runtime/compiler/jshint.vim @dkearns +runtime/compiler/jsonlint.vim @dkearns +runtime/compiler/lazbuild.vim @dkearns +runtime/compiler/perl.vim @petdance @heptite +runtime/compiler/perlcritic.vim @petdance @dkearns +runtime/compiler/php.vim @dkearns +runtime/compiler/podchecker.vim @petdance @dkearns +runtime/compiler/powershell.vim @heaths +runtime/compiler/raco.vim @benknoble +runtime/compiler/racomake.vim @benknoble +runtime/compiler/racosetup.vim @benknoble +runtime/compiler/racotest.vim @benknoble +runtime/compiler/rake.vim @tpope @dkearns +runtime/compiler/rhino.vim @dkearns +runtime/compiler/rspec.vim @tpope @dkearns +runtime/compiler/rubocop.vim @dkearns +runtime/compiler/ruby.vim @tpope @dkearns +runtime/compiler/rubyunit.vim @dkearns +runtime/compiler/sass.vim @tpope +runtime/compiler/sdoc.vim @gpanders +runtime/compiler/se.vim @dkearns +runtime/compiler/shellcheck.vim @dkearns +runtime/compiler/sml.vim @dkearns +runtime/compiler/spectral.vim @romainl +runtime/compiler/stylelint.vim @dkearns +runtime/compiler/tcl.vim @dkearns +runtime/compiler/tidy.vim @dkearns +runtime/compiler/ts-node.vim @dkearns +runtime/compiler/tsc.vim @dkearns +runtime/compiler/typedoc.vim @dkearns +runtime/compiler/xmllint.vim @dkearns +runtime/compiler/xo.vim @dkearns +runtime/compiler/yamllint.vim @romainl +runtime/compiler/zsh.vim @dkearns +runtime/doc/pi_getscript.txt @cecamp +runtime/doc/pi_logipat.txt @cecamp +runtime/doc/pi_netrw.txt @cecamp +runtime/doc/pi_tar.txt @cecamp +runtime/doc/pi_vimball.txt @cecamp +runtime/doc/pi_zip.txt @cecamp +runtime/doc/ps1.txt @heaths +runtime/ftplugin/abaqus.vim @costerwi +runtime/ftplugin/apache.vim @dubgeiser +runtime/ftplugin/awk.vim @dkearns +runtime/ftplugin/basic.vim @dkearns +runtime/ftplugin/bst.vim @tpope +runtime/ftplugin/cfg.vim @chrisbra +runtime/ftplugin/chatito.vim @ObserverOfTime +runtime/ftplugin/clojure.vim @axvr +runtime/ftplugin/cs.vim @nickspoons +runtime/ftplugin/csh.vim @dkearns +runtime/ftplugin/css.vim @dkearns +runtime/ftplugin/cucumber.vim @tpope +runtime/ftplugin/debchangelog.vim @jamessan +runtime/ftplugin/debcontrol.vim @jamessan +runtime/ftplugin/debsources.vim @jamessan +runtime/ftplugin/desktop.vim @e-kwsm +runtime/ftplugin/dosbatch.vim @mrdubya +runtime/ftplugin/eiffel.vim @dkearns +runtime/ftplugin/elixir.vim @mhanberg +runtime/ftplugin/erlang.vim @hcs42 +runtime/ftplugin/eruby.vim @tpope @dkearns +runtime/ftplugin/expect.vim @dkearns +runtime/ftplugin/fennel.vim @gpanders +runtime/ftplugin/fetchmail.vim @dkearns +runtime/ftplugin/forth.vim @jkotlinski +runtime/ftplugin/fpcmake.vim @dkearns +runtime/ftplugin/freebasic.vim @dkearns +runtime/ftplugin/fstab.vim @rid9 +runtime/ftplugin/gdb.vim @xeyownt +runtime/ftplugin/gdscript.vim @habamax +runtime/ftplugin/gdshader.vim @habamax +runtime/ftplugin/git.vim @tpope +runtime/ftplugin/gitattributes.vim @ObserverOfTime +runtime/ftplugin/gitcommit.vim @tpope +runtime/ftplugin/gitconfig.vim @tpope +runtime/ftplugin/gitignore.vim @ObserverOfTime +runtime/ftplugin/gitrebase.vim @tpope +runtime/ftplugin/gitsendemail.vim @tpope +runtime/ftplugin/gyp.vim @ObserverOfTime +runtime/ftplugin/go.vim @dbarnett +runtime/ftplugin/gprof.vim @dpelle +runtime/ftplugin/haml.vim @tpope +runtime/ftplugin/hare.vim @rsaihe +runtime/ftplugin/heex.vim @cvincent +runtime/ftplugin/hgcommit.vim @k-takata +runtime/ftplugin/hog.vim @wtfbbqhax +runtime/ftplugin/html.vim @dkearns +runtime/ftplugin/i3config.vim @hiqua +runtime/ftplugin/icon.vim @dkearns +runtime/ftplugin/indent.vim @dkearns +runtime/ftplugin/ishd.vim @dkearns +runtime/ftplugin/j.vim @glts +runtime/ftplugin/javascript.vim @dkearns +runtime/ftplugin/javascriptreact.vim @dkearns +runtime/ftplugin/json.vim @dbarnett +runtime/ftplugin/json5.vim @dkearns +runtime/ftplugin/jsonc.vim @izhakjakov +runtime/ftplugin/julia.vim @carlobaldassi +runtime/ftplugin/kconfig.vim @chrisbra +runtime/ftplugin/kotlin.vim @udalov +runtime/ftplugin/less.vim @genoma +runtime/ftplugin/liquid.vim @tpope +runtime/ftplugin/lua.vim @dkearns +runtime/ftplugin/lynx.vim @dkearns +runtime/ftplugin/m3build.vim @dkearns +runtime/ftplugin/m3quake.vim @dkearns +runtime/ftplugin/markdown.vim @tpope +runtime/ftplugin/matlab.vim @cecamp +runtime/ftplugin/meson.vim @Liambeguin +runtime/ftplugin/modula2.vim @dkearns +runtime/ftplugin/modula3.vim @dkearns +runtime/ftplugin/nginx.vim @chr4 +runtime/ftplugin/nroff.vim @a-vrma +runtime/ftplugin/nsis.vim @k-takata +runtime/ftplugin/octave.vim @dkearns +runtime/ftplugin/openvpn.vim @ObserverOfTime +runtime/ftplugin/pascal.vim @dkearns +runtime/ftplugin/pbtxt.vim @lakshayg +runtime/ftplugin/pdf.vim @tpope +runtime/ftplugin/perl.vim @petdance @dkearns +runtime/ftplugin/php.vim @dkearns +runtime/ftplugin/pod.vim @petdance @dkearns +runtime/ftplugin/poefilter.vim @ObserverOfTime +runtime/ftplugin/postscr.vim @mrdubya +runtime/ftplugin/ps1.vim @heaths +runtime/ftplugin/ps1xml.vim @heaths +runtime/ftplugin/pymanifest.vim @ObserverOfTime +runtime/ftplugin/python.vim @tpict +runtime/ftplugin/qb64.vim @dkearns +runtime/ftplugin/qml.vim @ChaseKnowlden +runtime/ftplugin/r.vim @jalvesaq +runtime/ftplugin/racket.vim @benknoble +runtime/ftplugin/readline.vim @dkearns +runtime/ftplugin/rhelp.vim @jalvesaq +runtime/ftplugin/rmd.vim @jalvesaq +runtime/ftplugin/rnoweb.vim @jalvesaq +runtime/ftplugin/routeros.vim @zainin +runtime/ftplugin/rrst.vim @jalvesaq +runtime/ftplugin/rst.vim @marshallward +runtime/ftplugin/ruby.vim @tpope @dkearns +runtime/ftplugin/rust.vim @lilyball +runtime/ftplugin/sass.vim @tpope +runtime/ftplugin/scala.vim @derekwyatt +runtime/ftplugin/scss.vim @tpope +runtime/ftplugin/sdoc.vim @gpanders +runtime/ftplugin/sed.vim @dkearns +runtime/ftplugin/sh.vim @dkearns +runtime/ftplugin/solidity.vim @cothi +runtime/ftplugin/solution.vim @dkearns +runtime/ftplugin/spec.vim @ignatenkobrain +runtime/ftplugin/ssa.vim @ObserverOfTime +runtime/ftplugin/swayconfig.vim @jamespeapen +runtime/ftplugin/systemverilog.vim @Kocha +runtime/ftplugin/swig.vim @jmarrec +runtime/ftplugin/tap.vim @petdance +runtime/ftplugin/tcsh.vim @dkearns +runtime/ftplugin/tidy.vim @dkearns +runtime/ftplugin/tmux.vim @ericpruitt +runtime/ftplugin/toml.vim @averms +runtime/ftplugin/tt2html.vim @petdance +runtime/ftplugin/typescript.vim @dkearns +runtime/ftplugin/typescriptreact.vim @dkearns +runtime/ftplugin/unison.vim @chuwy +runtime/ftplugin/vdf.vim @ObserverOfTime +runtime/ftplugin/wast.vim @rhysd +runtime/ftplugin/wget.vim @dkearns +runtime/ftplugin/wget2.vim @dkearns +runtime/ftplugin/xcompose.vim @ObserverOfTime +runtime/ftplugin/xml.vim @chrisbra +runtime/ftplugin/xs.vim @petdance +runtime/ftplugin/zsh.vim @chrisbra +runtime/import/dist/vimhighlight.vim @lacygoill +runtime/indent/basic.vim @dkearns +runtime/indent/bst.vim @tpope +runtime/indent/cdl.vim @dkearns +runtime/indent/chatito.vim @ObserverOfTime +runtime/indent/clojure.vim @axvr +runtime/indent/config.vim @dkearns +runtime/indent/cs.vim @nickspoons +runtime/indent/css.vim @dkearns +runtime/indent/cucumber.vim @tpope +runtime/indent/d.vim @dkearns +runtime/indent/dosbatch.vim @k-takata +runtime/indent/dtd.vim @dkearns +runtime/indent/dylan.vim @dkearns +runtime/indent/eiffel.vim @jocelyn +runtime/indent/elm.vim @andys8 +runtime/indent/erlang.vim @hcs42 +runtime/indent/eruby.vim @tpope @dkearns +runtime/indent/eterm.vim @dkearns +runtime/indent/falcon.vim @steveno +runtime/indent/framescript.vim @dkearns +runtime/indent/freebasic.vim @dkearns +runtime/indent/gdscript.vim @habamax +runtime/indent/gitconfig.vim @tpope +runtime/indent/gitolite.vim @sitaramc +runtime/indent/go.vim @dbarnett +runtime/indent/gyp.vim @ObserverOfTime +runtime/indent/haml.vim @tpope +runtime/indent/hare.vim @rsaihe +runtime/indent/hog.vim @wtfbbqhax +runtime/indent/idlang.vim @dkearns +runtime/indent/j.vim @glts +runtime/indent/java.vim @xuhdev +runtime/indent/javascript.vim @bounceme +runtime/indent/json.vim @elzr +runtime/indent/jsonc.vim @izhakjakov +runtime/indent/julia.vim @carlobaldassi +runtime/indent/kotlin.vim @udalov +runtime/indent/krl.vim @KnoP-01 +runtime/indent/ld.vim @dkearns +runtime/indent/less.vim @genoma +runtime/indent/liquid.vim @tpope +runtime/indent/lua.vim @marcuscf +runtime/indent/make.vim @dkearns +runtime/indent/meson.vim @Liambeguin +runtime/indent/mma.vim @dkearns +runtime/indent/nginx.vim @chr4 +runtime/indent/nsis.vim @k-takata +runtime/indent/occam.vim @dkearns +runtime/indent/perl.vim @petdance +runtime/indent/php.vim @2072 +runtime/indent/postscr.vim @mrdubya +runtime/indent/prolog.vim @dkearns +runtime/indent/ps1.vim @heaths +runtime/indent/qb64.vim @dkearns +runtime/indent/qml.vim @ChaseKnowlden +runtime/indent/r.vim @jalvesaq +runtime/indent/racket.vim @benknoble +runtime/indent/rapid.vim @KnoP-01 +runtime/indent/readline.vim @dkearns +runtime/indent/rhelp.vim @jalvesaq +runtime/indent/rmd.vim @jalvesaq +runtime/indent/rnoweb.vim @jalvesaq +runtime/indent/rrst.vim @jalvesaq +runtime/indent/ruby.vim @AndrewRadev @dkearns +runtime/indent/sass.vim @tpope +runtime/indent/scala.vim @derekwyatt +runtime/indent/scss.vim @tpope +runtime/indent/sh.vim @chrisbra +runtime/indent/solidity.vim @cothi +runtime/indent/systemverilog.vim @Kocha +runtime/indent/tcl.vim @dkearns +runtime/indent/tcsh.vim @dkearns +runtime/indent/teraterm.vim @k-takata +runtime/indent/typescript.vim @HerringtonDarkholme +runtime/indent/vroom.vim @dbarnett +runtime/indent/wast.vim @rhysd +runtime/indent/xml.vim @chrisbra +runtime/indent/zsh.vim @chrisbra +runtime/keymap/armenian-eastern_utf-8.vim @blinskey +runtime/keymap/armenian-western_utf-8.vim @blinskey +runtime/keymap/tamil_tscii.vim @yegappan +runtime/lang/menu_en_gb.latin1.vim @mrdubya +runtime/pack/dist/opt/cfilter/plugin/cfilter.vim @yegappan +runtime/pack/dist/opt/matchit/ @chrisbra +runtime/plugin/getscriptPlugin.vim @cecamp +runtime/plugin/logiPat.vim @cecamp +runtime/plugin/netrwPlugin.vim @cecamp +runtime/plugin/tarPlugin.vim @cecamp +runtime/plugin/vimballPlugin.vim @cecamp +runtime/plugin/zipPlugin.vim @cecamp +runtime/plugin/manpager.vim @Konfekt +runtime/syntax/shared/hgcommitDiff.vim @vegerot +runtime/syntax/abaqus.vim @costerwi +runtime/syntax/aidl.vim @dpelle +runtime/syntax/amiga.vim @cecamp +runtime/syntax/arduino.vim @johshoff +runtime/syntax/asciidoc.vim @aerostitch +runtime/syntax/asm.vim @dkearns +runtime/syntax/asmh8300.vim @dkearns +runtime/syntax/asterisk.vim @jaunis +runtime/syntax/autohotkey.vim @mmikeww +runtime/syntax/awk.vim @dkearns +runtime/syntax/basic.vim @dkearns +runtime/syntax/bst.vim @tpope +runtime/syntax/bzl.vim @dbarnett +runtime/syntax/bzr.vim @hdima +runtime/syntax/cabal.vim @coot +runtime/syntax/cabalconfig.vim @coot +runtime/syntax/cabalproject.vim @coot +runtime/syntax/cf.vim @ernstvanderlinden +runtime/syntax/chatito.vim @ObserverOfTime +runtime/syntax/clojure.vim @axvr +runtime/syntax/cs.vim @nickspoons +runtime/syntax/csh.vim @cecamp +runtime/syntax/cucumber.vim @tpope +runtime/syntax/d.vim @JesseKPhillips +runtime/syntax/dart.vim @pr3d4t0r +runtime/syntax/datascript.vim @dpelle +runtime/syntax/dcl.vim @cecamp +runtime/syntax/deb822sources.vim @jamessan +runtime/syntax/debchangelog.vim @jamessan +runtime/syntax/debcontrol.vim @jamessan +runtime/syntax/debcopyright.vim @jamessan +runtime/syntax/debsources.vim @jamessan +runtime/syntax/dep3patch.vim @jamessan +runtime/syntax/desktop.vim @e-kwsm +runtime/syntax/dosbatch.vim @mrdubya +runtime/syntax/dosini.vim @xuhdev +runtime/syntax/dot.vim @mmottl +runtime/syntax/doxygen.vim @frogonwheels +runtime/syntax/dtd.vim @chrisbra +runtime/syntax/dts.vim @zonque +runtime/syntax/editorconfig.vim @gpanders +runtime/syntax/eiffel.vim @jocelyn +runtime/syntax/elmfilt.vim @cecamp +runtime/syntax/erlang.vim @hcs42 +runtime/syntax/eruby.vim @tpope @dkearns +runtime/syntax/expect.vim @dkearns +runtime/syntax/exports.vim @cecamp +runtime/syntax/falcon.vim @steveno +runtime/syntax/fennel.vim @gpanders +runtime/syntax/fetchmail.vim @dkearns +runtime/syntax/forth.vim @jkotlinski +runtime/syntax/fpcmake.vim @dkearns +runtime/syntax/freebasic.vim @dkearns +runtime/syntax/fstab.vim @rid9 +runtime/syntax/gdresource.vim @habamax +runtime/syntax/gdscript.vim @habamax +runtime/syntax/gdshader.vim @habamax +runtime/syntax/git.vim @tpope +runtime/syntax/gitattributes.vim @ObserverOfTime +runtime/syntax/gitcommit.vim @tpope +runtime/syntax/gitconfig.vim @tpope +runtime/syntax/gitignore.vim @ObserverOfTime +runtime/syntax/gitolite.vim @sitaramc +runtime/syntax/gitrebase.vim @tpope +runtime/syntax/go.vim @bhcleek +runtime/syntax/godoc.vim @dbarnett +runtime/syntax/gp.vim @KBelabas +runtime/syntax/gprof.vim @dpelle +runtime/syntax/groff.vim @jmarshall +runtime/syntax/gyp.vim @ObserverOfTime +runtime/syntax/haml.vim @tpope +runtime/syntax/hare.vim @rsaihe +runtime/syntax/haskell.vim @coot +runtime/syntax/hgcommit.vim @k-takata +runtime/syntax/hitest.vim @lacygoill +runtime/syntax/hog.vim @wtfbbqhax +runtime/syntax/hollywood.vim @sodero +runtime/syntax/html.vim @dkearns +runtime/syntax/i3config.vim @hiqua +runtime/syntax/icon.vim @dkearns +runtime/syntax/indent.vim @dkearns +runtime/syntax/j.vim @glts +runtime/syntax/jargon.vim @h3xx +runtime/syntax/java.vim @fleiner +runtime/syntax/javascript.vim @fleiner +runtime/syntax/jsonc.vim @izhakjakov +runtime/syntax/julia.vim @carlobaldassi +runtime/syntax/kconfig.vim @chrisbra +runtime/syntax/kotlin.vim @udalov +runtime/syntax/krl.vim @KnoP-01 +runtime/syntax/less.vim @genoma +runtime/syntax/lex.vim @cecamp +runtime/syntax/liquid.vim @tpope +runtime/syntax/lisp.vim @cecamp +runtime/syntax/lua.vim @marcuscf +runtime/syntax/lyrics.vim @ObserverOfTime +runtime/syntax/lynx.vim @dkearns +runtime/syntax/m3build.vim @dkearns +runtime/syntax/m3quake.vim @dkearns +runtime/syntax/mailcap.vim @dkearns +runtime/syntax/make.vim @rohieb +runtime/syntax/mallard.vim @jhradilek +runtime/syntax/maple.vim @cecamp +runtime/syntax/markdown.vim @tpope +runtime/syntax/mason.vim @petdance +runtime/syntax/meson.vim @Liambeguin +runtime/syntax/modula2.vim @dkearns +runtime/syntax/modula2/opt/iso.vim @trijezdci +runtime/syntax/modula2/opt/pim.vim @trijezdci +runtime/syntax/modula2/opt/r10.vim @trijezdci +runtime/syntax/modula3.vim @dkearns +runtime/syntax/n1ql.vim @pr3d4t0r +runtime/syntax/netrw.vim @cecamp +runtime/syntax/nginx.vim @chr4 +runtime/syntax/ninja.vim @nico +runtime/syntax/nix.vim @equill +runtime/syntax/nroff.vim @jmarshall +runtime/syntax/nsis.vim @k-takata +runtime/syntax/openvpn.vim @ObserverOfTime +runtime/syntax/pacmanlog.vim @rpigott +runtime/syntax/pascal.vim @dkearns +runtime/syntax/pbtxt.vim @lakshayg +runtime/syntax/pdf.vim @tpope +runtime/syntax/perl.vim @petdance +runtime/syntax/php.vim @TysonAndre +runtime/syntax/plsql.vim @lee-lindley +runtime/syntax/pod.vim @petdance +runtime/syntax/poefilter.vim @ObserverOfTime +runtime/syntax/postscr.vim @mrdubya +runtime/syntax/privoxy.vim @dkearns +runtime/syntax/prolog.vim @XVilka +runtime/syntax/ps1.vim @heaths +runtime/syntax/ps1xml.vim @heaths +runtime/syntax/psl.vim @danielkho +runtime/syntax/pymanifest.vim @ObserverOfTime +runtime/syntax/qb64.vim @dkearns +runtime/syntax/qml.vim @ChaseKnowlden +runtime/syntax/r.vim @jalvesaq +runtime/syntax/racket.vim @benknoble +runtime/syntax/raml.vim @in3d +runtime/syntax/rapid.vim @KnoP-01 +runtime/syntax/ratpoison.vim @trapd00r +runtime/syntax/rc.vim @chrisbra +runtime/syntax/rcs.vim @hdima +runtime/syntax/rebol.vim @mrdubya +runtime/syntax/rego.vim @zenmatic +runtime/syntax/resolv.vim @rid9 +runtime/syntax/rmd.vim @jalvesaq +runtime/syntax/rng.vim @jhradilek +runtime/syntax/routeros.vim @zainin +runtime/syntax/rpcgen.vim @cecamp +runtime/syntax/rrst.vim @jalvesaq +runtime/syntax/rst.vim @marshallward +runtime/syntax/ruby.vim @dkearns +runtime/syntax/sass.vim @tpope +runtime/syntax/scala.vim @derekwyatt +runtime/syntax/scss.vim @tpope +runtime/syntax/sdoc.vim @gpanders +runtime/syntax/sed.vim @dkearns +runtime/syntax/sh.vim @cecamp +runtime/syntax/shared/debversions.vim @jamessan +runtime/syntax/sm.vim @cecamp +runtime/syntax/solidity.vim @cothi +runtime/syntax/spec.vim @ignatenkobrain +runtime/syntax/sqloracle.vim @chrisbra +runtime/syntax/squirrel.vim @zenmatic +runtime/syntax/srt.vim @ObserverOfTime +runtime/syntax/ssa.vim @ObserverOfTime +runtime/syntax/sshconfig.vim @Jakuje +runtime/syntax/sshdconfig.vim @Jakuje +runtime/syntax/sudoers.vim @e-kwsm +runtime/syntax/svn.vim @hdima +runtime/syntax/swayconfig.vim @jamespeapen +runtime/syntax/swig.vim @jmarrec +runtime/syntax/systemverilog.vim @Kocha +runtime/syntax/tags.vim @cecamp +runtime/syntax/tap.vim @petdance +runtime/syntax/tcsh.vim @dkearns +runtime/syntax/teraterm.vim @k-takata +runtime/syntax/tex.vim @cecamp +runtime/syntax/tidy.vim @dkearns +runtime/syntax/tmux.vim @ericpruitt +runtime/syntax/toml.vim @averms +runtime/syntax/tt2.vim @petdance +runtime/syntax/tt2html.vim @petdance +runtime/syntax/tt2js.vim @petdance +runtime/syntax/typescript.vim @HerringtonDarkholme +runtime/syntax/typescriptcommon.vim @HerringtonDarkholme +runtime/syntax/typescriptreact.vim @HerringtonDarkholme +runtime/syntax/unison.vim @chuwy +runtime/syntax/vdf.vim @ObserverOfTime +runtime/syntax/vim.vim @cecamp +runtime/syntax/vroom.vim @dbarnett +runtime/syntax/wast.vim @rhysd +runtime/syntax/wdl.vim @zenmatic +runtime/syntax/wget.vim @dkearns +runtime/syntax/wget2.vim @dkearns +runtime/syntax/xbl.vim @dkearns +runtime/syntax/xcompose.vim @ObserverOfTime +runtime/syntax/xmath.vim @cecamp +runtime/syntax/xml.vim @chrisbra +runtime/syntax/xs.vim @petdance +runtime/syntax/xslt.vim @Boobies +runtime/syntax/xxd.vim @cecamp +runtime/syntax/yacc.vim @cecamp +runtime/syntax/zserio.vim @dpelle +runtime/syntax/zsh.vim @chrisbra +runtime/tutor/tutor.eo @dpelle +runtime/tutor/tutor.eo.utf-8 @dpelle +runtime/tutor/tutor.fr @dpelle +runtime/tutor/tutor.fr.utf-8 @dpelle +src/iscygpty.* @k-takata +src/libvterm/ @leonerd +src/po/ca.po @nfdisco +src/po/de.po @chrisbra +src/po/eo.po @dpelle +src/po/es.po @victorhck +src/po/fi.po @flammie +src/po/fr.po @dpelle +src/po/ga.po @kscanne +src/po/it.po @azc100 +src/po/ja.po @k-takata +src/po/sr.po @eevan78 +src/po/tr.po @bitigchi +src/po/uk.po @sakhnik +src/xxd/ @jnweiger diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..1d7ad39 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://www.vim.org/sponsor/index.php diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..d1acf94 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,57 @@ +--- +name: Bug report +description: Create a report to help us improve Vim. +labels: [bug] + +body: + - type: markdown + attributes: + value: | + Thanks for reporting issues of Vim! + + If you want to report a security issue, instead of reporting it here publicly, + please disclose it privately via mail to vim-security@googlegroups.com. + (It's a private list read only by the maintainers, + but anybody can post, after moderation.) + + To make it easier for us to help you please enter detailed information below. + - type: textarea + attributes: + label: Steps to reproduce + placeholder: | + 1. + 2. + 3. + 4. + validations: + required: true + - type: textarea + attributes: + label: Expected behaviour + placeholder: A clear and concise description of what you expected to happen. + validations: + required: true + - type: input + attributes: + label: Version of Vim + description: > + Including patch level, use ":version" to see it [e.g. 8.2.1234] + validations: + required: true + - type: textarea + attributes: + label: Environment + description: > + OS [e.g. Ubuntu 21.10], terminal [e.g. GNOME Terminal 3.38.1], value of $TERM, shell [e.g. bash 5.1.8]; anything that might matter + placeholder: | + Operating system: + Terminal: + Value of $TERM: + Shell: + validations: + required: true + - type: textarea + attributes: + label: Logs and stack traces + placeholder: Insert log or other text here (if necessary) + render: shell diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..8fa535d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,22 @@ +--- +name: Feature request +about: Suggest an enhancement for Vim +title: '' +labels: enhancement + +--- + +_Instructions: Replace the template text and remove irrelevant text (including this line)_ + +**Is your feature request about something that is currently impossible or hard to do? Please describe the problem.** +A clear and concise description of what is hard to do. Ex. It is difficult to [...] when [...] +(If it is related to runtime files, please check their header for where to discuss enhancements.) + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5487348 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "CI" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..aab3af3 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,155 @@ +# list of labels and minimatch globs to match to apply the label. + +CI: + - all: + - changed-files: + - any-glob-to-any-file: + - '.cirrus.yml' + - '.github/dependabot.yml' + - '.github/labeler.yml' + - '.github/workflows/*' + - '.appveyor.yml' + - '.codecov.yml' + +documentation: + - all: + - changed-files: + - any-glob-to-all-files: + - '*/doc/*' + +translation: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/po/*.po' + +if_lua: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/if_lua.c' + - 'src/proto/if_lua.pro' + - 'runtime/doc/if_lua.txt' + +if_mzscheme: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/if_mzsch.c' + - 'src/if_mzsch.h' + - 'src/proto/if_mzsch.pro' + - 'runtime/doc/if_mzsch.txt' + +if_perl: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/if_perl.xs' + - 'src/if_perlsfio.c' + - 'src/proto/if_perl.pro' + - 'src/proto/if_perlsfio.pro' + - 'runtime/doc/if_perl.txt' + +if_python: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/if_py_both.h' + - 'runtime/doc/if_pyth.txt' + - 'src/if_python.c' + - 'src/if_python3.c' + - 'src/proto/if_python.pro' + - 'src/proto/if_python3.pro' + +if_ruby: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/if_ruby.c' + - 'src/proto/if_ruby.pro' + - 'runtime/doc/if_ruby.txt' + +if_tcl: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/if_tcl.c' + - 'src/proto/if_tcl.pro' + - 'runtime/doc/if_tcl.txt' + +installer: + - all: + - changed-files: + - any-glob-to-any-file: + - 'nsis/**' + - 'src/dosinst.*' + - 'src/uninstall.c' + +platform-mac: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/INSTALLmac.txt' + - 'src/os_mac*' + - 'src/proto/os_mac*' + +platform-windows: + - all: + - changed-files: + - any-glob-to-any-file: + - 'nsis/**' + - 'src/*.bat' + - 'src/*.bmp' + - 'src/*.ico' + - 'src/GvimExt/*' + - 'src/INSTALLpc.txt' + - 'src/Make_cyg*.mak' + - 'src/Make_ming.mak' + - 'src/Make_mvc.mak' + - 'src/dosinst.*' + - 'src/gui_dwrite.*' + - 'src/gui_w32*' + - 'src/if_ole.*' + - 'src/iid_ole.c' + - 'src/os_mswin*' + - 'src/os_w32*' + - 'src/os_win32.*' + - 'src/proto/gui_w32.pro' + - 'src/proto/os_mswin.pro' + - 'src/proto/os_win32.pro' + - 'src/proto/winclip.pro' + - 'src/uninstall.c' + - 'src/vim.manifest' + - 'src/vim.rc' + - 'src/vimrun.c' + - 'src/winclip.c' + - 'src/xpm/**' + - 'src/xpm_w32.*' + +runtime: + - all: + - changed-files: + - any-glob-to-any-file: + - 'runtime/ftplugin' + - 'runtime/syntax' + - 'runtime/indent' + - 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim' + +termdebug: + - all: + - changed-files: + - any-glob-to-any-file: + - 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim' + +plugin-netrw: + - all: + - changed-files: + - any-glob-to-any-file: + - 'runtime/plugin/netrwPlugin.vim' + - 'runtime/autoload/netrw*' + +xxd: + - all: + - changed-files: + - any-glob-to-any-file: + - 'src/xxd/*' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b51cade --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,666 @@ +name: GitHub CI + +on: + push: + branches: ['**'] + pull_request: + +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for + # pull requests or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + linux: + runs-on: ubuntu-22.04 + + env: + CC: ${{ matrix.compiler }} + GCC_VER: 13 + CLANG_VER: 17 + TEST: test + SRCDIR: ./src + LEAK_CFLAGS: -DEXITFREE + LOG_DIR: ${{ github.workspace }}/logs + TERM: xterm + DISPLAY: ':99' + DEBIAN_FRONTEND: noninteractive + + strategy: + fail-fast: false + matrix: + features: [tiny, normal, huge] + compiler: [clang, gcc] + extra: [[]] + # Only use non-native architecture when features != huge. + # features=huge tries to install python3-dev, which fails to install + # for the non-native architecture. + architecture: [native] + include: + - features: tiny + compiler: clang + extra: [nogui] + - features: tiny + compiler: gcc + extra: [nogui] + - features: normal + shadow: ./src/shadow + compiler: gcc + architecture: i386 + - features: huge + coverage: true + - features: huge + compiler: clang + interface: dynamic + python3: stable-abi + - features: huge + compiler: gcc + coverage: true + interface: dynamic + extra: [uchar, testgui] + - features: huge + compiler: clang + # Lua5.1 is the most widely used version (since it's what LuaJIT is + # compatible with), so ensure it works + lua_ver: '5.1' + extra: [asan] + - features: huge + compiler: gcc + coverage: true + extra: [unittests] + - features: normal + compiler: gcc + extra: [vimtags] + + steps: + - name: Checkout repository from github + uses: actions/checkout@v4 + + - name: Check Filelist (for packaging) + run: | + # If any files in the repository are not listed in Filelist this will + # exit with an error code and list the missing entries. + make -f ci/unlisted.make + + - run: sudo dpkg --add-architecture i386 + if: matrix.architecture == 'i386' + + - name: Install packages + run: | + PKGS=( \ + gettext \ + libgtk2.0-dev:${{ matrix.architecture }} \ + desktop-file-utils \ + libtool-bin \ + libncurses-dev:${{ matrix.architecture }} \ + libxt-dev:${{ matrix.architecture }} \ + ) + if ${{ matrix.features == 'huge' }}; then + LUA_VER=${{ matrix.lua_ver || '5.4' }} + PKGS+=( \ + autoconf \ + gdb \ + lcov \ + libcanberra-dev \ + libperl-dev \ + python2-dev \ + python3-dev \ + liblua${LUA_VER}-dev \ + lua${LUA_VER} \ + ruby-dev \ + tcl-dev \ + cscope \ + libsodium-dev \ + attr \ + libattr1-dev + ) + fi + sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y "${PKGS[@]}" + + - name: Install gcc-${{ env.GCC_VER }} + if: matrix.compiler == 'gcc' + run: | + sudo apt-get install -y gcc-${{ env.GCC_VER }}:${{ matrix.architecture }} + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ env.GCC_VER }} 100 + sudo update-alternatives --set gcc /usr/bin/gcc-${{ env.GCC_VER }} + + - name: Install clang-${{ env.CLANG_VER }} + if: matrix.compiler == 'clang' + run: | + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + . /etc/lsb-release + sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-${{ env.CLANG_VER }} main" + sudo apt-get install -y clang-${{ env.CLANG_VER }} llvm-${{ env.CLANG_VER }} + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ env.CLANG_VER }} 100 + sudo update-alternatives --set clang /usr/bin/clang-${{ env.CLANG_VER }} + sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-${{ env.CLANG_VER }} 100 + sudo update-alternatives --install /usr/bin/asan_symbolize asan_symbolize /usr/bin/asan_symbolize-${{ env.CLANG_VER }} 100 + + - name: Set up environment + run: | + mkdir -p "${LOG_DIR}" + mkdir -p "${HOME}/bin" + echo "${HOME}/bin" >> $GITHUB_PATH + ( + echo "LINUX_VERSION=$(uname -r)" + echo "NPROC=$(getconf _NPROCESSORS_ONLN)" + echo "TMPDIR=${{ runner.temp }}" + + case "${{ matrix.features }}" in + tiny) + echo "TEST=testtiny" + if ${{ contains(matrix.extra, 'nogui') }}; then + echo "CONFOPT=--disable-gui" + fi + ;; + normal) + ;; + huge) + echo "TEST=scripttests test_libvterm" + INTERFACE=${{ matrix.interface || 'yes' }} + if ${{ matrix.python3 == 'stable-abi' }}; then + PYTHON3_CONFOPT="--with-python3-stable-abi=3.8" + fi + echo "CONFOPT=--enable-perlinterp=${INTERFACE} --enable-pythoninterp=${INTERFACE} --enable-python3interp=${INTERFACE} --enable-rubyinterp=${INTERFACE} --enable-luainterp=${INTERFACE} --enable-tclinterp=${INTERFACE} ${PYTHON3_CONFOPT}" + ;; + esac + + if ${{ matrix.coverage == true }}; then + CFLAGS="${CFLAGS} --coverage -DUSE_GCOV_FLUSH" + echo "LDFLAGS=--coverage" + fi + if ${{ contains(matrix.extra, 'uchar') }}; then + CFLAGS="${CFLAGS} -funsigned-char" + fi + if ${{ contains(matrix.extra, 'testgui') }}; then + echo "TEST=-C src testgui" + fi + if ${{ contains(matrix.extra, 'unittests') }}; then + echo "TEST=unittests" + fi + if ${{ contains(matrix.extra, 'asan') }}; then + echo "SANITIZER_CFLAGS=-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize-recover=all -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer" + echo "ASAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/asan" + echo "UBSAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/ubsan" + echo "LSAN_OPTIONS=suppressions=${GITHUB_WORKSPACE}/src/testdir/lsan-suppress.txt" + fi + if ${{ contains(matrix.extra, 'vimtags') }}; then + echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim" + fi + echo "CFLAGS=${CFLAGS}" + ) >> $GITHUB_ENV + + - name: Set up system + run: | + if [[ ${CC} = clang ]]; then + # Use llvm-cov instead of gcov when compiler is clang. + ln -fs /usr/bin/llvm-cov ${HOME}/bin/gcov + fi + sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 + sudo usermod -a -G audio "${USER}" + sudo bash ci/setup-xvfb.sh + + - name: Set up snd-dummy + if: (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags'))) + env: + DEST_DIR: ${{ env.TMPDIR }}/linux-modules-extra-${{ env.LINUX_VERSION }} + uses: tecolicom/actions-use-apt-tools@main + with: + tools: linux-modules-extra-${{ env.LINUX_VERSION }} + path: "${DEST_DIR}" + + - name: modprobe snd-dummy + if: (!(contains(matrix.extra, 'unittests') || contains(matrix.extra, 'vimtags'))) + run: | + sudo depmod --verbose + sudo modprobe --verbose snd-dummy || true + + - name: Check autoconf + if: contains(matrix.extra, 'unittests') + run: | + make -C src autoconf + + - name: Set up shadow dir + if: matrix.shadow + run: | + make -C src shadow + echo "SRCDIR=${{ matrix.shadow }}" >> $GITHUB_ENV + echo "SHADOWOPT=-C ${{ matrix.shadow }}" >> $GITHUB_ENV + + - name: Configure + run: | + ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing + # Append various warning flags to CFLAGS. + sed -i -f ci/config.mk.sed ${SRCDIR}/auto/config.mk + sed -i -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk + if [[ ${CC} = clang ]]; then + # Suppress some warnings produced by clang 12 and later. + sed -i -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk + fi + + - name: Build + if: (!contains(matrix.extra, 'unittests')) + run: | + make ${SHADOWOPT} -j${NPROC} + + - name: Check version + if: (!contains(matrix.extra, 'unittests')) + run: | + "${SRCDIR}"/vim --version + "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit + "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit + + - name: Test + timeout-minutes: 25 + run: | + do_test() { sg audio "sg $(id -gn) '$*'"; } + do_test make ${SHADOWOPT} ${TEST} + + - name: Vim tags + if: contains(matrix.extra, 'vimtags') + run: | + # This will exit with an error code if the generated vim tags differs from source. + git diff --exit-code -- runtime/doc/tags + + - name: Generate gcov files + if: matrix.coverage + run: | + cd "${SRCDIR}" + find . -type f -name '*.gcno' -exec gcov -pb {} + || true + + - name: Codecov + timeout-minutes: 20 + if: matrix.coverage + uses: codecov/codecov-action@v3 + with: + flags: linux,${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }} + + - name: ASan logs + if: contains(matrix.extra, 'asan') && !cancelled() + run: | + for f in $(grep -lR '#[[:digit:]]* *0x[[:xdigit:]]*' "${LOG_DIR}"); do + asan_symbolize -l "$f" + false # in order to fail a job + done + + macos: + runs-on: macos-latest + + env: + CC: clang + TEST: test + SRCDIR: ./src + LEAK_CFLAGS: -DEXITFREE + TERM: xterm + + strategy: + fail-fast: false + matrix: + features: [tiny, normal, huge] + + steps: + - name: Checkout repository from github + uses: actions/checkout@v4 + + - name: Install packages + if: matrix.features == 'huge' + run: | + brew install lua + echo "LUA_PREFIX=/usr/local" >> $GITHUB_ENV + + - name: Set up environment + run: | + ( + echo "NPROC=$(getconf _NPROCESSORS_ONLN)" + case "${{ matrix.features }}" in + tiny) + echo "TEST=testtiny" + echo "CONFOPT=--disable-gui" + ;; + normal) + ;; + huge) + echo "CONFOPT=--enable-perlinterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp" + ;; + esac + ) >> $GITHUB_ENV + + - name: Configure + run: | + ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing + # Append various warning flags to CFLAGS. + # BSD sed needs backup extension specified. + sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk + # On macOS, the entity of gcc is clang. + sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk + # Suppress some warnings produced by clang 12 and later. + if clang --version | grep -qs 'Apple clang version \(1[3-9]\|[2-9]\)\.'; then + sed -i.bak -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk + fi + + - name: Build + env: + LC_ALL: C + run: | + make -j${NPROC} + + - name: Check version + run: | + "${SRCDIR}"/vim --version + "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit + "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit + + - name: Test + timeout-minutes: 20 + run: | + make ${TEST} + + windows: + runs-on: windows-2022 + + env: + # Interfaces + # Lua + LUA_VER: 54 + LUA_VER_DOT: '5.4' + LUA_RELEASE: 5.4.2 + LUA32_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win32_dllw6_lib.zip + LUA64_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win64_dllw6_lib.zip + LUA_DIR: D:\Lua + # do not want \L to end up in pathdef.c and compiler complaining about unknown escape sequences \l + LUA_DIR_SLASH: D:/Lua + # Python 2 + PYTHON_VER: 27 + PYTHON_VER_DOT: '2.7' + PYTHON_DIR: 'C:\Python27' + # Python 3 + PYTHON3_VER: 311 + PYTHON3_VER_DOT: '3.11' + # Other dependencies + # winpty + WINPTY_URL: https://github.com/rprichard/winpty/releases/download/0.4.3/winpty-0.4.3-msvc2015.zip + # libsodium + SODIUM_VER: '1.0.18' + SODIUM_MSVC_URL: https://download.libsodium.org/libsodium/releases/libsodium-%SODIUM_VER%-stable-msvc.zip + SODIUM_MSVC_VER: v143 + SODIUM_MINGW_URL: https://download.libsodium.org/libsodium/releases/libsodium-%SODIUM_VER%-stable-mingw.tar.gz + SODIUM_MINGW_VER: 23 + # Escape sequences + COL_RED: "\x1b[31m" + COL_GREEN: "\x1b[32m" + COL_YELLOW: "\x1b[33m" + COL_RESET: "\x1b[m" + + strategy: + fail-fast: false + matrix: + include: + - { features: HUGE, toolchain: msvc, VIMDLL: no, GUI: no, arch: x64, python3: stable } + - { features: HUGE, toolchain: mingw, VIMDLL: yes, GUI: yes, arch: x86, python3: stable, coverage: yes } + - { features: HUGE, toolchain: msvc, VIMDLL: no, GUI: yes, arch: x86 } + - { features: HUGE, toolchain: mingw, VIMDLL: yes, GUI: no, arch: x64, coverage: yes } + - { features: NORMAL, toolchain: msvc, VIMDLL: yes, GUI: no, arch: x86 } + - { features: NORMAL, toolchain: mingw, VIMDLL: no, GUI: yes, arch: x64 } + - { features: TINY, toolchain: msvc, VIMDLL: yes, GUI: yes, arch: x64 } + - { features: TINY, toolchain: mingw, VIMDLL: no, GUI: no, arch: x86 } + + steps: + - name: Initialize + id: init + shell: bash + run: | + # Show Windows version + cmd /c ver + + git config --global core.autocrlf input + + if ${{ matrix.arch == 'x64' }}; then + cygreg=registry + pyreg= + echo "VCARCH=amd64" >> $GITHUB_ENV + echo "WARCH=x64" >> $GITHUB_ENV + echo "BITS=64" >> $GITHUB_ENV + echo "MSYSTEM=MINGW64" >> $GITHUB_ENV + else + cygreg=registry32 + pyreg=-32 + echo "VCARCH=x86" >> $GITHUB_ENV + echo "WARCH=ia32" >> $GITHUB_ENV + echo "BITS=32" >> $GITHUB_ENV + echo "MSYSTEM=MINGW32" >> $GITHUB_ENV + fi + + echo "VCVARSALL=$(vswhere -products \* -latest -property installationPath)\\VC\\Auxiliary\\Build\\vcvarsall.bat" >> $GITHUB_ENV + if ${{ matrix.features != 'TINY' }}; then + if ${{ matrix.arch == 'x86' }}; then + choco install python2 --no-progress --forcex86 + else + choco install python2 --no-progress + fi + fi + python3_dir=$(cat "/proc/$cygreg/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON3_VER_DOT}$pyreg/InstallPath/@") + echo "PYTHON3_DIR=$python3_dir" >> $GITHUB_ENV + + if ${{ matrix.toolchain == 'msvc' }}; then + SODIUM_DIR=D:\\libsodium + echo "SODIUM_LIB=${SODIUM_DIR}\\${{ matrix.arch == 'x64' && 'x64' || 'Win32' }}\\Release\\${SODIUM_MSVC_VER}\\dynamic" >> $GITHUB_ENV + else + SODIUM_DIR=D:\\libsodium-win${{ matrix.arch == 'x64' && '64' || '32' }} + echo "SODIUM_LIB=${SODIUM_DIR}\\bin" >> $GITHUB_ENV + fi + echo "SODIUM_DIR=${SODIUM_DIR}" >> $GITHUB_ENV + + - uses: msys2/setup-msys2@v2 + if: matrix.toolchain == 'mingw' + with: + update: true + install: tar + pacboy: >- + make:p gcc:p + msystem: ${{ env.MSYSTEM }} + release: false + + - name: Checkout repository from github + uses: actions/checkout@v4 + + - name: Create a list of download URLs + shell: cmd + run: | + type NUL > urls.txt + echo %LUA_RELEASE%>> urls.txt + echo %WINPTY_URL%>> urls.txt + echo %SODIUM_VER%>> urls.txt + + - name: Cache downloaded files + uses: actions/cache@v3 + with: + path: downloads + key: ${{ runner.os }}-${{ matrix.arch }}-${{ hashFiles('urls.txt') }} + + - name: Download dependencies + shell: cmd + run: | + path C:\Program Files\7-Zip;%path% + if not exist downloads mkdir downloads + + echo %COL_GREEN%Download Lua%COL_RESET% + call :downloadfile %LUA${{ env.BITS }}_URL% downloads\lua.zip + 7z x downloads\lua.zip -o%LUA_DIR% > nul || exit 1 + + echo %COL_GREEN%Download winpty%COL_RESET% + call :downloadfile %WINPTY_URL% downloads\winpty.zip + 7z x -y downloads\winpty.zip -oD:\winpty > nul || exit 1 + copy /Y D:\winpty\%WARCH%\bin\winpty.dll src\winpty%BITS%.dll + copy /Y D:\winpty\%WARCH%\bin\winpty-agent.exe src\ + + echo %COL_GREEN%Download libsodium%COL_RESET% + if "${{ matrix.toolchain }}"=="msvc" ( + call :downloadfile %SODIUM_MSVC_URL% downloads\libsodium.zip + 7z x -y downloads\libsodium.zip -oD:\ > nul || exit 1 + ) else ( + call :downloadfile %SODIUM_MINGW_URL% downloads\libsodium.tar.gz + 7z x -y downloads\libsodium.tar.gz -so | 7z x -si -ttar -oD:\ > nul || exit 1 + mklink %SODIUM_LIB%\libsodium.dll %SODIUM_LIB%\libsodium-%SODIUM_MINGW_VER%.dll + ) + + goto :eof + + :downloadfile + :: call :downloadfile <URL> <localfile> + if not exist %2 ( + curl -f -L %1 -o %2 + ) + if ERRORLEVEL 1 ( + rem Retry once. + curl -f -L %1 -o %2 || exit 1 + ) + goto :eof + + - name: Build (MSVC) + if: matrix.toolchain == 'msvc' + shell: cmd + run: | + call "%VCVARSALL%" %VCARCH% + cd src + if "${{ matrix.VIMDLL }}"=="yes" ( + set GUI=yes + ) else ( + set GUI=${{ matrix.GUI }} + ) + if "${{ matrix.python3 }}"=="stable" ( + set PYTHON3_STABLE=yes + ) else ( + set PYTHON3_STABLE=no + ) + if "${{ matrix.features }}"=="HUGE" ( + nmake -nologo -f Make_mvc.mak ^ + FEATURES=${{ matrix.features }} ^ + GUI=%GUI% IME=yes ICONV=yes VIMDLL=${{ matrix.VIMDLL }} ^ + DYNAMIC_LUA=yes LUA=%LUA_DIR% ^ + DYNAMIC_PYTHON=yes PYTHON=%PYTHON_DIR% ^ + DYNAMIC_PYTHON3=yes PYTHON3=%PYTHON3_DIR% ^ + DYNAMIC_PYTHON3_STABLE_ABI=%PYTHON3_STABLE% ^ + DYNAMIC_SODIUM=yes SODIUM=%SODIUM_DIR% + ) else ( + nmake -nologo -f Make_mvc.mak ^ + FEATURES=${{ matrix.features }} ^ + GUI=%GUI% IME=yes ICONV=yes VIMDLL=${{ matrix.VIMDLL }} + ) + + - name: Build (MinGW) + if: matrix.toolchain == 'mingw' + shell: msys2 {0} + run: | + cd src + if [ "${{ matrix.VIMDLL }}" = "yes" ]; then + GUI=yes + else + GUI=${{ matrix.GUI }} + fi + if [ "${{ matrix.python3 }}" = "stable" ]; then + PYTHON3_STABLE=yes + else + PYTHON3_STABLE=no + fi + if [ "${{ matrix.features }}" = "HUGE" ]; then + mingw32-make -f Make_ming.mak -j2 \ + FEATURES=${{ matrix.features }} \ + GUI=$GUI IME=yes ICONV=yes VIMDLL=${{ matrix.VIMDLL }} \ + DYNAMIC_LUA=yes LUA=${LUA_DIR_SLASH} \ + DYNAMIC_PYTHON=yes PYTHON=${PYTHON_DIR} \ + DYNAMIC_PYTHON3=yes PYTHON3=${PYTHON3_DIR} \ + DYNAMIC_PYTHON3_STABLE_ABI=${PYTHON3_STABLE} \ + DYNAMIC_SODIUM=yes SODIUM=${SODIUM_DIR} \ + STATIC_STDCPLUS=yes COVERAGE=${{ matrix.coverage }} + else + mingw32-make -f Make_ming.mak -j2 \ + FEATURES=${{ matrix.features }} \ + GUI=$GUI IME=yes ICONV=yes VIMDLL=${{ matrix.VIMDLL }} \ + STATIC_STDCPLUS=yes + fi + + - name: Check version + shell: cmd + run: | + PATH %LUA_DIR%;C:\msys64\%MSYSTEM%\bin;%PATH%;%PYTHON3_DIR% + if "${{ matrix.GUI }}"=="yes" ( + start /wait src\gvim -u NONE -i NONE -c "redir > version.txt | ver | q" || exit 1 + type version.txt + echo. + start /wait src\gvim -u NONE -i NONE -c "redir! > version.txt | so ci\if_ver-1.vim | q" + start /wait src\gvim -u NONE -i NONE -c "redir >> version.txt | so ci\if_ver-2.vim | q" + type version.txt + del version.txt + ) else ( + src\vim --version || exit 1 + src\vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit + src\vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit + ) + + #- name: Prepare Artifact + # shell: cmd + # run: | + # mkdir artifacts + # copy src\*vim.exe artifacts + # copy src\vim*.dll artifacts + # + #- name: Upload Artifact + # uses: actions/upload-artifact@v1 + # with: + # name: vim${{ matrix.bits }}-${{ matrix.toolchain }} + # path: ./artifacts + + - name: Test and show the result of testing gVim + if: matrix.GUI == 'yes' || matrix.VIMDLL == 'yes' + shell: cmd + timeout-minutes: 15 + run: | + PATH %LUA_DIR%;C:\msys64\%MSYSTEM%\bin;%PATH%;%PYTHON3_DIR%;%SODIUM_LIB% + call "%VCVARSALL%" %VCARCH% + + echo %COL_GREEN%Test gVim:%COL_RESET% + cd src\testdir + if "${{ matrix.GUI }}"=="yes" ( + nmake -nologo -f Make_mvc.mak VIMPROG=..\gvim || exit 1 + ) else ( + @rem Run only tiny tests. + nmake -nologo -f Make_mvc.mak tiny VIMPROG=..\gvim || exit 1 + ) + + - name: Test and show the result of testing Vim + if: matrix.GUI == 'no' || matrix.VIMDLL == 'yes' + shell: cmd + timeout-minutes: 15 + run: | + PATH %LUA_DIR%;C:\msys64\%MSYSTEM%\bin;%PATH%;%PYTHON3_DIR%;%SODIUM_LIB% + call "%VCVARSALL%" %VCARCH% + + echo %COL_GREEN%Test Vim:%COL_RESET% + cd src\testdir + nmake -nologo -f Make_mvc.mak clean + if "${{ matrix.GUI }}"=="no" ( + nmake -nologo -f Make_mvc.mak VIMPROG=..\vim || exit 1 + ) else ( + @rem Run only tiny tests. + nmake -nologo -f Make_mvc.mak tiny VIMPROG=..\vim || exit 1 + ) + + - name: Generate gcov files + if: matrix.coverage + shell: msys2 {0} + run: | + cd src + find . -type f -name '*.gcno' -exec gcov -pb {} + || true + + - name: Codecov + timeout-minutes: 20 + if: matrix.coverage + uses: codecov/codecov-action@v3 + with: + directory: src + flags: windows,${{ matrix.toolchain }}-${{ matrix.arch }}-${{ matrix.features }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..d84920b --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,76 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +name: "CodeQL" + +on: + push: + branches: [master] + pull_request: + # The branches below must be a subset of the branches above + branches: [master] + schedule: + - cron: '0 18 * * 1' + +# Cancels all previous workflow runs for pull requests that have not completed. +concurrency: + # The concurrency group contains the workflow name and the branch name for + # pull requests or the commit hash for any other events. + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + analyze: + permissions: + contents: read # to fetch code (actions/checkout) + security-events: write # (github/codeql-action/autobuild) + + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + # Override automatic language detection by changing the below list + # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] + language: ['cpp', 'python'] + # Learn more... + # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection + + steps: + - name: Checkout repository from github + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + # âšī¸ Command-line programs to run using the OS shell. + # đ https://git.io/JvXDl + + # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 0000000..290f7e4 --- /dev/null +++ b/.github/workflows/coverity.yml @@ -0,0 +1,83 @@ +name: Coverity +on: + schedule: + - cron: '42 0 * * *' # Run once per day, to avoid Coverity's submission limits + workflow_dispatch: + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + scan: + runs-on: ubuntu-22.04 + + env: + CC: gcc + DEBIAN_FRONTEND: noninteractive + TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + + steps: + - name: Checkout repository from github + if: env.TOKEN + uses: actions/checkout@v4 + + - name: Download Coverity + if: env.TOKEN + run: | + wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=vim" -O coverity_tool.tgz + mkdir cov-scan + tar ax -f coverity_tool.tgz --strip-components=1 -C cov-scan + + - name: Install packages + if: env.TOKEN + run: | + sudo apt-get update && sudo apt-get install -y \ + autoconf \ + gettext \ + libcanberra-dev \ + libperl-dev \ + python2-dev \ + python3-dev \ + liblua5.4-dev \ + lua5.4 \ + ruby-dev \ + tcl-dev \ + libgtk2.0-dev \ + desktop-file-utils \ + libtool-bin \ + libsodium-dev + + - name: Set up environment + if: env.TOKEN + run: | + echo "$(pwd)/cov-scan/bin" >> $GITHUB_PATH + ( + echo "NPROC=$(getconf _NPROCESSORS_ONLN)" + echo "CONFOPT=--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp" + ) >> $GITHUB_ENV + + - name: Configure + if: env.TOKEN + run: | + ./configure --with-features=huge ${CONFOPT} --enable-fail-if-missing + # Append various warning flags to CFLAGS. + sed -i -f ci/config.mk.sed src/auto/config.mk + sed -i -f ci/config.mk.${CC}.sed src/auto/config.mk + + - name: Build/scan vim + if: env.TOKEN + run: | + cov-build --dir cov-int make -j${NPROC} + + - name: Submit results + if: env.TOKEN + run: | + tar zcf cov-scan.tgz cov-int + curl --form token=$TOKEN \ + --form email=$EMAIL \ + --form file=@cov-scan.tgz \ + --form version="$(git rev-parse HEAD)" \ + --form description="Automatic GHA scan" \ + 'https://scan.coverity.com/builds?project=vim' + env: + EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }} diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..d23c4d4 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,22 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request_target] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" |