Skip to content

Commit 9243d1d

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 286bd68 + 7fe956d commit 9243d1d

76 files changed

Lines changed: 1770 additions & 774 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS_vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ runtime/ftplugin/dosbatch.vim @mrdubya
111111
runtime/ftplugin/eiffel.vim @dkearns
112112
runtime/ftplugin/erlang.vim @hcs42
113113
runtime/ftplugin/eruby.vim @tpope @dkearns
114+
runtime/ftplugin/fetchmail.vim @dkearns
114115
runtime/ftplugin/fpcmake.vim @dkearns
115116
runtime/ftplugin/freebasic.vim @dkearns
116117
runtime/ftplugin/fstab.vim @rid9
@@ -298,8 +299,10 @@ runtime/syntax/erlang.vim @hcs42
298299
runtime/syntax/eruby.vim @tpope @dkearns
299300
runtime/syntax/exports.vim @cecamp
300301
runtime/syntax/falcon.vim @steveno
302+
runtime/syntax/fetchmail.vim @dkearns
301303
runtime/syntax/forth.vim @jkotlinski
302304
runtime/syntax/fpcmake.vim @dkearns
305+
runtime/syntax/freebasic.vim @dkearns
303306
runtime/syntax/fstab.vim @rid9
304307
runtime/syntax/git.vim @tpope
305308
runtime/syntax/gitcommit.vim @tpope

Filelist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ SRC_ALL = \
1515
.gitignore \
1616
.hgignore \
1717
.lgtm.yml \
18-
.travis.yml \
1918
.appveyor.yml \
2019
.codecov.yml \
2120
ci/appveyor.bat \
@@ -625,6 +624,7 @@ SRC_DOS_BIN = \
625624
src/xpm/x86/lib-vc14/libXpm.lib \
626625
src/xpm/x86/lib/libXpm.a \
627626
src/xpm/x86/lib/libXpm.lib \
627+
runtime/bitmaps/vim.ico \
628628
nsis/icons.zip \
629629

630630
# source files for Amiga, DOS, etc. (also in the extra archive)
@@ -1017,6 +1017,7 @@ LANG_GEN = \
10171017
runtime/spell/??/*.diff \
10181018
runtime/spell/??/main.aap \
10191019
runtime/spell/sr/README_sr.txt \
1020+
runtime/spell/sr/convert.vim \
10201021
runtime/spell/tet/*.diff \
10211022
runtime/spell/tet/main.aap \
10221023
runtime/spell/check/main.aap \

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) \
414414
tar cf - \
415415
$(SRC_ALL) \
416416
$(SRC_DOS) \
417+
$(SRC_DOS_BIN) \
417418
$(SRC_AMI_DOS) \
418419
$(SRC_DOS_UNIX) \
419420
runtime/doc/uganda.nsis.txt \
@@ -423,9 +424,6 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) \
423424
rmdir dist/vim/$(VIMRTDIR)/runtime
424425
# This file needs to be in dos fileformat for NSIS.
425426
$(VIM) -e -X -u no_title.vim -c ":set tx|wq" dist/vim/$(VIMRTDIR)/doc/uganda.nsis.txt
426-
tar cf - \
427-
$(SRC_DOS_BIN) \
428-
| (cd dist/vim/$(VIMRTDIR); tar xf -)
429427
cd dist && zip -9 -rD -z vim$(VERSION)src.zip vim <$(COMMENT_SRC)
430428

431429
runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt

README_vim.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Vim Logo](https://github.com/vim/vim/raw/master/runtime/vimlogo.gif)](https://www.vim.org)
22

3-
[![Github Build status](https://github.com/vim/vim/workflows/GitHub%20CI/badge.svg)](https://github.com/vim/vim/actions?query=workflow%3A%22GitHub+CI%22) [![Travis Build Status](https://travis-ci.com/vim/vim.svg?branch=master)](https://travis-ci.com/github/vim/vim) [![Appveyor Build status](https://ci.appveyor.com/api/projects/status/o2qht2kjm02sgghk?svg=true)](https://ci.appveyor.com/project/chrisbra/vim) [![Cirrus Build Status](https://api.cirrus-ci.com/github/vim/vim.svg)](https://cirrus-ci.com/github/vim/vim) [![Coverage Status](https://codecov.io/gh/vim/vim/coverage.svg?branch=master)](https://codecov.io/gh/vim/vim?branch=master) [![Coverity Scan](https://scan.coverity.com/projects/241/badge.svg)](https://scan.coverity.com/projects/vim) [![Language Grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/vim/vim.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/vim/vim/context:cpp) [![Debian CI](https://badges.debian.net/badges/debian/testing/vim/version.svg)](https://buildd.debian.org/vim) [![Packages](https://repology.org/badge/tiny-repos/vim.svg)](https://repology.org/metapackage/vim) [![Fossies codespell report](https://fossies.org/linux/test/vim-master.tar.gz/codespell.svg)](https://fossies.org/linux/test/vim-master.tar.gz/codespell.html)
3+
[![Github Build status](https://github.com/vim/vim/workflows/GitHub%20CI/badge.svg)](https://github.com/vim/vim/actions?query=workflow%3A%22GitHub+CI%22) [![Appveyor Build status](https://ci.appveyor.com/api/projects/status/o2qht2kjm02sgghk?svg=true)](https://ci.appveyor.com/project/chrisbra/vim) [![Cirrus Build Status](https://api.cirrus-ci.com/github/vim/vim.svg)](https://cirrus-ci.com/github/vim/vim) [![Coverage Status](https://codecov.io/gh/vim/vim/coverage.svg?branch=master)](https://codecov.io/gh/vim/vim?branch=master) [![Coverity Scan](https://scan.coverity.com/projects/241/badge.svg)](https://scan.coverity.com/projects/vim) [![Language Grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/vim/vim.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/vim/vim/context:cpp) [![Debian CI](https://badges.debian.net/badges/debian/testing/vim/version.svg)](https://buildd.debian.org/vim) [![Packages](https://repology.org/badge/tiny-repos/vim.svg)](https://repology.org/metapackage/vim) [![Fossies codespell report](https://fossies.org/linux/test/vim-master.tar.gz/codespell.svg)](https://fossies.org/linux/test/vim-master.tar.gz/codespell.html)
44

55
<sub>For translations of this README see the end.</sub>
66

runtime/autoload/dist/ft.vim

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export def FTmm()
459459
setf nroff
460460
enddef
461461

462-
# Returns true if file content looks like LambdaProlog
462+
# Returns true if file content looks like LambdaProlog module
463463
def IsLProlog(): bool
464464
# skip apparent comments and blank lines, what looks like
465465
# LambdaProlog comment may be RAPID header
@@ -848,6 +848,27 @@ export def FTperl(): number
848848
return 0
849849
enddef
850850

851+
# LambdaProlog and Standard ML signature files
852+
export def FTsig()
853+
if exists("g:filetype_sig")
854+
exe "setf " .. g:filetype_sig
855+
return
856+
endif
857+
858+
var lprolog_comment = '^\s*\%(/\*\|%\)'
859+
var lprolog_keyword = '^\s*sig\s\+\a'
860+
var sml_comment = '^\s*(\*'
861+
var sml_keyword = '^\s*\%(signature\|structure\)\s\+\a'
862+
863+
var line = getline(nextnonblank(1))
864+
865+
if line =~ lprolog_comment || line =~# lprolog_keyword
866+
setf lprolog
867+
elseif line =~ sml_comment || line =~# sml_keyword
868+
setf sml
869+
endif
870+
enddef
871+
851872
export def FTsys()
852873
if exists("g:filetype_sys")
853874
exe "setf " .. g:filetype_sys

runtime/autoload/freebasic.vim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim filetype plugin file
22
" Language: FreeBASIC
33
" Maintainer: Doug Kearns <[email protected]>
4-
" Last Change: 2021 Mar 16
4+
" Last Change: 2022 June 24
55

66
" Dialects can be one of fb, qb, fblite, or deprecated
77
" Precedence is forcelang > #lang > lang
@@ -18,17 +18,16 @@ function! freebasic#GetDialect() abort
1818

1919
" override with #lang directive or metacommand
2020

21-
let skip = "has('syntax_items') && synIDattr(synID(line('.'), col('.'), 1), 'name') =~ 'Comment$'"
2221
let pat = '\c^\s*\%(#\s*lang\s\+\|''\s*$lang\s*:\s*\)"\([^"]*\)"'
2322

2423
let save_cursor = getcurpos()
2524
call cursor(1, 1)
26-
let lnum = search(pat, 'n', '', '', skip)
25+
let lnum = search(pat, 'cn')
2726
call setpos('.', save_cursor)
2827

2928
if lnum
3029
let word = matchlist(getline(lnum), pat)[1]
31-
if word =~? '\%(fb\|deprecated\|fblite\|qb\)'
30+
if word =~? '\<\%(fb\|deprecated\|fblite\|qb\)\>'
3231
let dialect = word
3332
else
3433
echomsg "freebasic#GetDialect: Invalid lang, found '" .. word .. "' at line " .. lnum .. " " .. getline(lnum)

runtime/bitmaps/vim.ico

28.1 KB
Binary file not shown.

runtime/doc/filetype.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ variables can be used to overrule the filetype used for certain extensions:
157157
*.pp g:filetype_pp |ft-pascal-syntax|
158158
*.prg g:filetype_prg
159159
*.r g:filetype_r
160+
*.sig g:filetype_sig
160161
*.sql g:filetype_sql |ft-sql-syntax|
161162
*.src g:filetype_src
162163
*.sys g:filetype_sys
@@ -555,12 +556,30 @@ For further discussion of fortran_have_tabs and the method used for the
555556
detection of source format see |ft-fortran-syntax|.
556557

557558

559+
FREEBASIC *ft-freebasic-plugin*
560+
561+
This plugin aims to treat the four FreeBASIC dialects, "fb", "qb", "fblite"
562+
and "deprecated", as distinct languages.
563+
564+
The dialect will be set to the first name found in g:freebasic_forcelang, any
565+
#lang directive or $lang metacommand in the file being edited, or finally
566+
g:freebasic_lang. These global variables conceptually map to the fbc options
567+
-forcelang and -lang. If no dialect is explicitly specified "fb" will be
568+
used.
569+
570+
For example, to set the dialect to a default of "fblite" but still allow for
571+
any #lang directive overrides, use the following command: >
572+
573+
let g:freebasic_lang = "fblite"
574+
575+
558576
GIT COMMIT *ft-gitcommit-plugin*
559577

560578
One command, :DiffGitCached, is provided to show a diff of the current commit
561579
in the preview window. It is equivalent to calling "git diff --cached" plus
562580
any arguments given to the command.
563581

582+
564583
GPROF *ft-gprof-plugin*
565584

566585
The gprof filetype plugin defines a mapping <C-]> to jump from a function
@@ -570,6 +589,7 @@ to the details of that function in the call graph.
570589
The mapping can be disabled with: >
571590
let g:no_gprof_maps = 1
572591
592+
573593
MAIL *ft-mail-plugin*
574594

575595
Options:

runtime/doc/map.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,10 +1721,10 @@ The valid escape sequences are
17211721
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
17221722
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,
17231723
|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:leftabove|,
1724-
|:lockmarks|, |:noswapfile| |:rightbelow|, |:silent|, |:tab|,
1725-
|:topleft|, |:verbose|, and |:vertical|.
1726-
Note that these are not yet supported: |:noautocmd|,
1727-
|:sandbox| and |:unsilent|.
1724+
|:lockmarks|, |:noautocmd|, |:noswapfile| |:rightbelow|,
1725+
|:sandbox|, |:silent|, |:tab|, |:topleft|, |:unsilent|,
1726+
|:verbose|, and |:vertical|.
1727+
Note that |:filter| is not supported.
17281728
Examples: >
17291729
command! -nargs=+ -complete=file MyEdit
17301730
\ for f in expand(<q-args>, 0, 1) |

runtime/doc/quickfix.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,9 @@ pattern is used.
568568
The |:Lfilter| command does the same as |:Cfilter| but operates on the current
569569
location list.
570570

571+
The current quickfix/location list is not modified by these commands, so you
572+
can go back to the unfiltered list using the |:colder|/|:lolder| command.
573+
571574
=============================================================================
572575
2. The error window *quickfix-window*
573576

0 commit comments

Comments
 (0)