mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
Update runtime files
This commit is contained in:
parent
50157ef1c2
commit
3ec3217f04
22
.github/CODEOWNERS
vendored
22
.github/CODEOWNERS
vendored
@ -9,9 +9,6 @@
|
|||||||
# So if a pull request only touches javascript files, only these owners
|
# So if a pull request only touches javascript files, only these owners
|
||||||
# will be requested to review.
|
# will be requested to review.
|
||||||
|
|
||||||
src/iscygpty.* @k-takata
|
|
||||||
src/libvterm/ @leonerd
|
|
||||||
|
|
||||||
runtime/autoload/getscript.vim @cecamp
|
runtime/autoload/getscript.vim @cecamp
|
||||||
runtime/autoload/netrw.vim @cecamp
|
runtime/autoload/netrw.vim @cecamp
|
||||||
runtime/autoload/netrwFileHandlers.vim @cecamp
|
runtime/autoload/netrwFileHandlers.vim @cecamp
|
||||||
@ -43,7 +40,7 @@ runtime/compiler/jshint.vim @dkearns
|
|||||||
runtime/compiler/jsonlint.vim @dkearns
|
runtime/compiler/jsonlint.vim @dkearns
|
||||||
runtime/compiler/lazbuild.vim @dkearns
|
runtime/compiler/lazbuild.vim @dkearns
|
||||||
runtime/compiler/php.vim @dkearns
|
runtime/compiler/php.vim @dkearns
|
||||||
runtime/compiler/powershell.vim @heaths
|
runtime/compiler/powershell.vim @heaths
|
||||||
runtime/compiler/rake.vim @tpope @dkearns
|
runtime/compiler/rake.vim @tpope @dkearns
|
||||||
runtime/compiler/rhino.vim @dkearns
|
runtime/compiler/rhino.vim @dkearns
|
||||||
runtime/compiler/rspec.vim @tpope @dkearns
|
runtime/compiler/rspec.vim @tpope @dkearns
|
||||||
@ -69,7 +66,7 @@ runtime/doc/pi_netrw.txt @cecamp
|
|||||||
runtime/doc/pi_tar.txt @cecamp
|
runtime/doc/pi_tar.txt @cecamp
|
||||||
runtime/doc/pi_vimball.txt @cecamp
|
runtime/doc/pi_vimball.txt @cecamp
|
||||||
runtime/doc/pi_zip.txt @cecamp
|
runtime/doc/pi_zip.txt @cecamp
|
||||||
runtime/doc/ps1.txt @heaths
|
runtime/doc/ps1.txt @heaths
|
||||||
runtime/ftplugin/awk.vim @dkearns
|
runtime/ftplugin/awk.vim @dkearns
|
||||||
runtime/ftplugin/basic.vim @dkearns
|
runtime/ftplugin/basic.vim @dkearns
|
||||||
runtime/ftplugin/bst.vim @tpope
|
runtime/ftplugin/bst.vim @tpope
|
||||||
@ -96,10 +93,12 @@ runtime/ftplugin/m3build.vim @dkearns
|
|||||||
runtime/ftplugin/m3quake.vim @dkearns
|
runtime/ftplugin/m3quake.vim @dkearns
|
||||||
runtime/ftplugin/markdown.vim @tpope
|
runtime/ftplugin/markdown.vim @tpope
|
||||||
runtime/ftplugin/matlab.vim @cecamp
|
runtime/ftplugin/matlab.vim @cecamp
|
||||||
|
runtime/ftplugin/meson.vim @Liambeguin
|
||||||
runtime/ftplugin/modula3.vim @dkearns
|
runtime/ftplugin/modula3.vim @dkearns
|
||||||
runtime/ftplugin/nroff.vim @a-vrma
|
runtime/ftplugin/nroff.vim @a-vrma
|
||||||
runtime/ftplugin/nsis.vim @k-takata
|
runtime/ftplugin/nsis.vim @k-takata
|
||||||
runtime/ftplugin/pascal.vim @dkearns
|
runtime/ftplugin/pascal.vim @dkearns
|
||||||
|
runtime/ftplugin/pbtxt.vim @lakshayg
|
||||||
runtime/ftplugin/pdf.vim @tpope
|
runtime/ftplugin/pdf.vim @tpope
|
||||||
runtime/ftplugin/ps1.vim @heaths
|
runtime/ftplugin/ps1.vim @heaths
|
||||||
runtime/ftplugin/ps1xml.vim @heaths
|
runtime/ftplugin/ps1xml.vim @heaths
|
||||||
@ -107,6 +106,7 @@ runtime/ftplugin/ruby.vim @tpope @dkearns
|
|||||||
runtime/ftplugin/sass.vim @tpope
|
runtime/ftplugin/sass.vim @tpope
|
||||||
runtime/ftplugin/scss.vim @tpope
|
runtime/ftplugin/scss.vim @tpope
|
||||||
runtime/ftplugin/spec.vim @ignatenkobrain
|
runtime/ftplugin/spec.vim @ignatenkobrain
|
||||||
|
runtime/ftplugin/systemverilog.vim @Kocha
|
||||||
runtime/ftplugin/tidy.vim @dkearns
|
runtime/ftplugin/tidy.vim @dkearns
|
||||||
runtime/ftplugin/tmux.vim @ericpruitt
|
runtime/ftplugin/tmux.vim @ericpruitt
|
||||||
runtime/ftplugin/typescript.vim @dkearns
|
runtime/ftplugin/typescript.vim @dkearns
|
||||||
@ -120,12 +120,14 @@ runtime/indent/eruby.vim @tpope @dkearns
|
|||||||
runtime/indent/gitconfig.vim @tpope
|
runtime/indent/gitconfig.vim @tpope
|
||||||
runtime/indent/haml.vim @tpope
|
runtime/indent/haml.vim @tpope
|
||||||
runtime/indent/liquid.vim @tpope
|
runtime/indent/liquid.vim @tpope
|
||||||
|
runtime/indent/meson.vim @Liambeguin
|
||||||
runtime/indent/nsis.vim @k-takata
|
runtime/indent/nsis.vim @k-takata
|
||||||
runtime/indent/ps1.vim @heaths
|
runtime/indent/ps1.vim @heaths
|
||||||
runtime/indent/ruby.vim @AndrewRadev @dkearns
|
runtime/indent/ruby.vim @AndrewRadev @dkearns
|
||||||
runtime/indent/sass.vim @tpope
|
runtime/indent/sass.vim @tpope
|
||||||
runtime/indent/scss.vim @tpope
|
runtime/indent/scss.vim @tpope
|
||||||
runtime/indent/sh.vim @chrisbra
|
runtime/indent/sh.vim @chrisbra
|
||||||
|
runtime/indent/systemverilog.vim @Kocha
|
||||||
runtime/indent/teraterm.vim @k-takata
|
runtime/indent/teraterm.vim @k-takata
|
||||||
runtime/indent/xml.vim @chrisbra
|
runtime/indent/xml.vim @chrisbra
|
||||||
runtime/indent/zsh.vim @chrisbra
|
runtime/indent/zsh.vim @chrisbra
|
||||||
@ -142,6 +144,7 @@ runtime/syntax/aidl.vim @dpelle
|
|||||||
runtime/syntax/amiga.vim @cecamp
|
runtime/syntax/amiga.vim @cecamp
|
||||||
runtime/syntax/asm.vim @dkearns
|
runtime/syntax/asm.vim @dkearns
|
||||||
runtime/syntax/asmh8300.vim @dkearns
|
runtime/syntax/asmh8300.vim @dkearns
|
||||||
|
runtime/syntax/asterisk.vim @jaunis
|
||||||
runtime/syntax/awk.vim @dkearns
|
runtime/syntax/awk.vim @dkearns
|
||||||
runtime/syntax/basic.vim @dkearns
|
runtime/syntax/basic.vim @dkearns
|
||||||
runtime/syntax/bst.vim @tpope
|
runtime/syntax/bst.vim @tpope
|
||||||
@ -154,8 +157,10 @@ runtime/syntax/cucumber.vim @tpope
|
|||||||
runtime/syntax/datascript.vim @dpelle
|
runtime/syntax/datascript.vim @dpelle
|
||||||
runtime/syntax/dcl.vim @cecamp
|
runtime/syntax/dcl.vim @cecamp
|
||||||
runtime/syntax/desktop.vim @e-kwsm
|
runtime/syntax/desktop.vim @e-kwsm
|
||||||
|
runtime/syntax/dot.vim @mmottl
|
||||||
runtime/syntax/doxygen.vim @frogonwheels
|
runtime/syntax/doxygen.vim @frogonwheels
|
||||||
runtime/syntax/dtd.vim @chrisbra
|
runtime/syntax/dtd.vim @chrisbra
|
||||||
|
runtime/syntax/dts.vim @zonque
|
||||||
runtime/syntax/elmfilt.vim @cecamp
|
runtime/syntax/elmfilt.vim @cecamp
|
||||||
runtime/syntax/eruby.vim @tpope @dkearns
|
runtime/syntax/eruby.vim @tpope @dkearns
|
||||||
runtime/syntax/exports.vim @cecamp
|
runtime/syntax/exports.vim @cecamp
|
||||||
@ -170,6 +175,7 @@ runtime/syntax/haml.vim @tpope
|
|||||||
runtime/syntax/haskell.vim @coot
|
runtime/syntax/haskell.vim @coot
|
||||||
runtime/syntax/hgcommit.vim @k-takata
|
runtime/syntax/hgcommit.vim @k-takata
|
||||||
runtime/syntax/kconfig.vim @chrisbra
|
runtime/syntax/kconfig.vim @chrisbra
|
||||||
|
runtime/syntax/less.vim @genoma
|
||||||
runtime/syntax/lex.vim @cecamp
|
runtime/syntax/lex.vim @cecamp
|
||||||
runtime/syntax/liquid.vim @tpope
|
runtime/syntax/liquid.vim @tpope
|
||||||
runtime/syntax/lisp.vim @cecamp
|
runtime/syntax/lisp.vim @cecamp
|
||||||
@ -180,17 +186,20 @@ runtime/syntax/mailcap.vim @dkearns
|
|||||||
runtime/syntax/make.vim @rohieb
|
runtime/syntax/make.vim @rohieb
|
||||||
runtime/syntax/maple.vim @cecamp
|
runtime/syntax/maple.vim @cecamp
|
||||||
runtime/syntax/markdown.vim @tpope
|
runtime/syntax/markdown.vim @tpope
|
||||||
|
runtime/syntax/meson.vim @Liambeguin
|
||||||
runtime/syntax/modula3.vim @dkearns
|
runtime/syntax/modula3.vim @dkearns
|
||||||
runtime/syntax/netrw.vim @cecamp
|
runtime/syntax/netrw.vim @cecamp
|
||||||
runtime/syntax/nroff.vim @jmarshall
|
runtime/syntax/nroff.vim @jmarshall
|
||||||
runtime/syntax/nsis.vim @k-takata
|
runtime/syntax/nsis.vim @k-takata
|
||||||
runtime/syntax/pascal.vim @dkearns
|
runtime/syntax/pascal.vim @dkearns
|
||||||
|
runtime/syntax/pbtxt.vim @lakshayg
|
||||||
runtime/syntax/pdf.vim @tpope
|
runtime/syntax/pdf.vim @tpope
|
||||||
runtime/syntax/php.vim @TysonAndre
|
runtime/syntax/php.vim @TysonAndre
|
||||||
runtime/syntax/privoxy.vim @dkearns
|
runtime/syntax/privoxy.vim @dkearns
|
||||||
runtime/syntax/prolog.vim @XVilka
|
runtime/syntax/prolog.vim @XVilka
|
||||||
runtime/syntax/ps1.vim @heaths
|
runtime/syntax/ps1.vim @heaths
|
||||||
runtime/syntax/ps1xml.vim @heaths
|
runtime/syntax/ps1xml.vim @heaths
|
||||||
|
runtime/syntax/psl.vim @danielkho
|
||||||
runtime/syntax/rc.vim @chrisbra
|
runtime/syntax/rc.vim @chrisbra
|
||||||
runtime/syntax/rpcgen.vim @cecamp
|
runtime/syntax/rpcgen.vim @cecamp
|
||||||
runtime/syntax/ruby.vim @dkearns
|
runtime/syntax/ruby.vim @dkearns
|
||||||
@ -203,6 +212,7 @@ runtime/syntax/sqloracle.vim @chrisbra
|
|||||||
runtime/syntax/sshconfig.vim @Jakuje
|
runtime/syntax/sshconfig.vim @Jakuje
|
||||||
runtime/syntax/sshdconfig.vim @Jakuje
|
runtime/syntax/sshdconfig.vim @Jakuje
|
||||||
runtime/syntax/sudoers.vim @e-kwsm
|
runtime/syntax/sudoers.vim @e-kwsm
|
||||||
|
runtime/syntax/systemverilog.vim @Kocha
|
||||||
runtime/syntax/tags.vim @cecamp
|
runtime/syntax/tags.vim @cecamp
|
||||||
runtime/syntax/teraterm.vim @k-takata
|
runtime/syntax/teraterm.vim @k-takata
|
||||||
runtime/syntax/tex.vim @cecamp
|
runtime/syntax/tex.vim @cecamp
|
||||||
@ -221,6 +231,8 @@ runtime/tutor/tutor.eo @dpelle
|
|||||||
runtime/tutor/tutor.eo.utf-8 @dpelle
|
runtime/tutor/tutor.eo.utf-8 @dpelle
|
||||||
runtime/tutor/tutor.fr @dpelle
|
runtime/tutor/tutor.fr @dpelle
|
||||||
runtime/tutor/tutor.fr.utf-8 @dpelle
|
runtime/tutor/tutor.fr.utf-8 @dpelle
|
||||||
|
src/iscygpty.* @k-takata
|
||||||
|
src/libvterm/ @leonerd
|
||||||
src/po/de.po @chrisbra
|
src/po/de.po @chrisbra
|
||||||
src/po/eo.po @dpelle
|
src/po/eo.po @dpelle
|
||||||
src/po/fr.po @dpelle
|
src/po/fr.po @dpelle
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*cmdline.txt* For Vim version 8.2. Last change: 2021 Apr 05
|
*cmdline.txt* For Vim version 8.2. Last change: 2021 May 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -798,18 +798,20 @@ three lines: >
|
|||||||
3:d<CR> is translated into: .,.+2d<CR>
|
3:d<CR> is translated into: .,.+2d<CR>
|
||||||
<
|
<
|
||||||
|
|
||||||
Visual Mode and Range *v_:*
|
Visual Mode and Range
|
||||||
*:star-visual-range*
|
*v_:*
|
||||||
{Visual}: Starts a command-line with the Visual selected lines as a
|
{Visual}: Starts a command-line with the Visual selected lines as a
|
||||||
range. The code `:'<,'>` is used for this range, which makes
|
range. The code `:'<,'>` is used for this range, which makes
|
||||||
it possible to select a similar line from the command-line
|
it possible to select a similar line from the command-line
|
||||||
history for repeating a command on different Visually selected
|
history for repeating a command on different Visually selected
|
||||||
lines.
|
lines.
|
||||||
|
|
||||||
|
:* *:star* *:star-visual-range*
|
||||||
When Visual mode was already ended, a short way to use the
|
When Visual mode was already ended, a short way to use the
|
||||||
Visual area for a range is `:*`. This requires that "*" does
|
Visual area for a range is `:*`. This requires that "*" does
|
||||||
not appear in 'cpo', see |cpo-star|. Otherwise you will have
|
not appear in 'cpo', see |cpo-star|. Otherwise you will have
|
||||||
to type `:'<,'>`
|
to type `:'<,'>`
|
||||||
|
For when "*" is in 'cpo' see |:star-compatible|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
5. Ex command-line flags *ex-flags*
|
5. Ex command-line flags *ex-flags*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*eval.txt* For Vim version 8.2. Last change: 2021 Apr 24
|
*eval.txt* For Vim version 8.2. Last change: 2021 May 07
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -7591,6 +7591,9 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
|
|||||||
empty list is returned. If length of {str} is greater than
|
empty list is returned. If length of {str} is greater than
|
||||||
256, then returns an empty list.
|
256, then returns an empty list.
|
||||||
|
|
||||||
|
Refer to |fuzzy-match| for more information about fuzzy
|
||||||
|
matching strings.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
:echo matchfuzzy(["clay", "crow"], "cay")
|
:echo matchfuzzy(["clay", "crow"], "cay")
|
||||||
< results in ["clay"]. >
|
< results in ["clay"]. >
|
||||||
@ -9188,6 +9191,8 @@ searchpair({start}, {middle}, {end} [, {flags} [, {skip}
|
|||||||
and -1 returned.
|
and -1 returned.
|
||||||
{skip} can be a string, a lambda, a funcref or a partial.
|
{skip} can be a string, a lambda, a funcref or a partial.
|
||||||
Anything else makes the function fail.
|
Anything else makes the function fail.
|
||||||
|
In a `:def` function when the {skip} argument is a string
|
||||||
|
constant it is compiled into instructions.
|
||||||
|
|
||||||
For {stopline} and {timeout} see |search()|.
|
For {stopline} and {timeout} see |search()|.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 8.2. Last change: 2021 Apr 23
|
*map.txt* For Vim version 8.2. Last change: 2021 May 16
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -389,6 +389,22 @@ Overview of which map command works in which mode. More details below.
|
|||||||
:cmap :cnoremap :cunmap Command-line
|
:cmap :cnoremap :cunmap Command-line
|
||||||
:tmap :tnoremap :tunmap Terminal-Job
|
:tmap :tnoremap :tunmap Terminal-Job
|
||||||
|
|
||||||
|
Same information in a table:
|
||||||
|
*map-table*
|
||||||
|
Mode | Norm | Ins | Cmd | Vis | Sel | Opr | Term | Lang | ~
|
||||||
|
Command +------+-----+-----+-----+-----+-----+------+------+ ~
|
||||||
|
[nore]map | yes | - | - | yes | yes | yes | - | - |
|
||||||
|
n[nore]map | yes | - | - | - | - | - | - | - |
|
||||||
|
[nore]map! | - | yes | yes | - | - | - | - | - |
|
||||||
|
i[nore]map | - | yes | - | - | - | - | - | - |
|
||||||
|
c[nore]map | - | - | yes | - | - | - | - | - |
|
||||||
|
v[nore]map | - | - | - | yes | yes | - | - | - |
|
||||||
|
x[nore]map | - | - | - | yes | - | - | - | - |
|
||||||
|
s[nore]map | - | - | - | - | yes | - | - | - |
|
||||||
|
o[nore]map | - | - | - | - | - | yes | - | - |
|
||||||
|
t[nore]map | - | - | - | - | - | - | yes | - |
|
||||||
|
l[nore]map | - | yes | yes | - | - | - | - | yes |
|
||||||
|
|
||||||
|
|
||||||
COMMANDS MODES ~
|
COMMANDS MODES ~
|
||||||
Normal Visual+Select Operator-pending ~
|
Normal Visual+Select Operator-pending ~
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 8.2. Last change: 2021 Apr 28
|
*options.txt* For Vim version 8.2. Last change: 2021 May 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pattern.txt* For Vim version 8.2. Last change: 2021 Feb 16
|
*pattern.txt* For Vim version 8.2. Last change: 2021 May 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -19,6 +19,7 @@ explanations are in chapter 27 |usr_27.txt|.
|
|||||||
8. Composing characters |patterns-composing|
|
8. Composing characters |patterns-composing|
|
||||||
9. Compare with Perl patterns |perl-patterns|
|
9. Compare with Perl patterns |perl-patterns|
|
||||||
10. Highlighting matches |match-highlight|
|
10. Highlighting matches |match-highlight|
|
||||||
|
11. Fuzzy matching |fuzzy-match|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
1. Search commands *search-commands*
|
1. Search commands *search-commands*
|
||||||
@ -1431,5 +1432,38 @@ Finally, these constructs are unique to Perl:
|
|||||||
are suggested to use ":match" for manual matching and
|
are suggested to use ":match" for manual matching and
|
||||||
":2match" for another plugin.
|
":2match" for another plugin.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
11. Fuzzy matching *fuzzy-match*
|
||||||
|
|
||||||
|
Fuzzy matching refers to matching strings using a non-exact search string.
|
||||||
|
Fuzzy matching will match a string, if all the characters in the search string
|
||||||
|
are present anywhere in the string in the same order. Case is ignored. In a
|
||||||
|
matched string, other characters can be present between two consecutive
|
||||||
|
characters in the search string. If the search string has multiple words, then
|
||||||
|
each word is matched separately. So the words in the search string can be
|
||||||
|
present in any order in a string.
|
||||||
|
|
||||||
|
Fuzzy matching assigns a score for each matched string based on the following
|
||||||
|
criteria:
|
||||||
|
- The number of sequentially matching characters.
|
||||||
|
- The number of characters (distance) between two consecutive matching
|
||||||
|
characters.
|
||||||
|
- Matches at the beginning of a word
|
||||||
|
- Matches after a camel case character or a path separator or a hyphen.
|
||||||
|
- The number of unmatched characters in a string.
|
||||||
|
The matching string with the highest score is returned first.
|
||||||
|
|
||||||
|
For example, when you search for the "get pat" string using fuzzy matching, it
|
||||||
|
will match the strings "GetPattern", "PatternGet", "getPattern", "patGetter",
|
||||||
|
"getSomePattern", "MatchpatternGet" etc.
|
||||||
|
|
||||||
|
The functions |matchfuzzy()| and |matchfuzzypos()| can be used to fuzzy search
|
||||||
|
a string in a List of strings. The matchfuzzy() function returns a List of
|
||||||
|
matching strings. The matchfuzzypos() functions returns the List of matches,
|
||||||
|
the matching positions and the fuzzy match scores.
|
||||||
|
|
||||||
|
The "f" flag of `:vimgrep` enables fuzzy matching.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*quickfix.txt* For Vim version 8.2. Last change: 2021 Apr 30
|
*quickfix.txt* For Vim version 8.2. Last change: 2021 May 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1037,8 +1037,8 @@ commands can be combined to create a NewGrep command: >
|
|||||||
matching is used to find matching lines. In this
|
matching is used to find matching lines. In this
|
||||||
case, {pattern} is treated as a literal string
|
case, {pattern} is treated as a literal string
|
||||||
instead of a regular expression. See
|
instead of a regular expression. See
|
||||||
|matchfuzzy()| for more info about fuzzy
|
|fuzzy-match| for more information about fuzzy
|
||||||
matching.
|
matching strings.
|
||||||
|
|
||||||
|QuickFixCmdPre| and |QuickFixCmdPost| are triggered.
|
|QuickFixCmdPre| and |QuickFixCmdPost| are triggered.
|
||||||
A file that is opened for matching may use a buffer
|
A file that is opened for matching may use a buffer
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*repeat.txt* For Vim version 8.2. Last change: 2021 Feb 13
|
*repeat.txt* For Vim version 8.2. Last change: 2021 May 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -59,6 +59,11 @@ of area is used, see |visual-repeat|.
|
|||||||
:[range]v[global]/{pattern}/[cmd]
|
:[range]v[global]/{pattern}/[cmd]
|
||||||
Same as :g!.
|
Same as :g!.
|
||||||
|
|
||||||
|
Example: >
|
||||||
|
:g/^Obsolete/d _
|
||||||
|
Using the underscore after `:d` avoids clobbering registers or the clipboard.
|
||||||
|
This also makes it faster.
|
||||||
|
|
||||||
Instead of the '/' which surrounds the {pattern}, you can use any other
|
Instead of the '/' which surrounds the {pattern}, you can use any other
|
||||||
single byte character, but not an alphabetic character, '\', '"' or '|'.
|
single byte character, but not an alphabetic character, '\', '"' or '|'.
|
||||||
This is useful if you want to include a '/' in the search pattern or
|
This is useful if you want to include a '/' in the search pattern or
|
||||||
@ -150,15 +155,12 @@ q Stops recording. (Implementation note: The 'q' that
|
|||||||
*@@* *E748*
|
*@@* *E748*
|
||||||
@@ Repeat the previous @{0-9a-z":*} [count] times.
|
@@ Repeat the previous @{0-9a-z":*} [count] times.
|
||||||
|
|
||||||
:[addr]*{0-9a-z".=+} *:@* *:star*
|
*:@*
|
||||||
:[addr]@{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} as an Ex
|
:[addr]@{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} as an Ex
|
||||||
command. First set cursor at line [addr] (default is
|
command. First set cursor at line [addr] (default is
|
||||||
current line). When the last line in the register does
|
current line). When the last line in the register does
|
||||||
not have a <CR> it will be added automatically when
|
not have a <CR> it will be added automatically when
|
||||||
the 'e' flag is present in 'cpoptions'.
|
the 'e' flag is present in 'cpoptions'.
|
||||||
Note that the ":*" command is only recognized when the
|
|
||||||
'*' flag is present in 'cpoptions'. This is NOT the
|
|
||||||
default when 'nocompatible' is used.
|
|
||||||
For ":@=" the last used expression is used. The
|
For ":@=" the last used expression is used. The
|
||||||
result of evaluating the expression is executed as an
|
result of evaluating the expression is executed as an
|
||||||
Ex command.
|
Ex command.
|
||||||
@ -171,6 +173,13 @@ q Stops recording. (Implementation note: The 'q' that
|
|||||||
Future: Will execute the register for each line in the
|
Future: Will execute the register for each line in the
|
||||||
address range.
|
address range.
|
||||||
|
|
||||||
|
:[addr]*{0-9a-z".=+} *:star-compatible*
|
||||||
|
When '*' is present in 'cpoptions' |cpo-star|, use
|
||||||
|
":*" in the same way as ":@". This is NOT the default
|
||||||
|
when 'nocompatible' is used. When the '*' flag is not
|
||||||
|
present in 'cpoptions', ":*" is an alias for ":'<,'>",
|
||||||
|
select the Visual area |:star|.
|
||||||
|
|
||||||
*:@:*
|
*:@:*
|
||||||
:[addr]@: Repeat last command-line. First set cursor at line
|
:[addr]@: Repeat last command-line. First set cursor at line
|
||||||
[addr] (default is current line).
|
[addr] (default is current line).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*starting.txt* For Vim version 8.2. Last change: 2021 Feb 10
|
*starting.txt* For Vim version 8.2. Last change: 2021 May 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1592,7 +1592,7 @@ VIMINFO FILE NAME *viminfo-file-name*
|
|||||||
file name given is "NONE" (all uppercase), no viminfo file is ever read or
|
file name given is "NONE" (all uppercase), no viminfo file is ever read or
|
||||||
written. Also not for the commands below!
|
written. Also not for the commands below!
|
||||||
- The 'viminfofile' option can be used like the "-i" argument. In fact, the
|
- The 'viminfofile' option can be used like the "-i" argument. In fact, the
|
||||||
value form the "-i" argument is stored in the 'viminfofile' option.
|
value from the "-i" argument is stored in the 'viminfofile' option.
|
||||||
- For the commands below, another file name can be given, overriding the
|
- For the commands below, another file name can be given, overriding the
|
||||||
default and the name given with 'viminfo' or "-i" (unless it's NONE).
|
default and the name given with 'viminfo' or "-i" (unless it's NONE).
|
||||||
|
|
||||||
|
@ -3184,7 +3184,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
|||||||
:st starting.txt /*:st*
|
:st starting.txt /*:st*
|
||||||
:sta windows.txt /*:sta*
|
:sta windows.txt /*:sta*
|
||||||
:stag windows.txt /*:stag*
|
:stag windows.txt /*:stag*
|
||||||
:star repeat.txt /*:star*
|
:star cmdline.txt /*:star*
|
||||||
|
:star-compatible repeat.txt /*:star-compatible*
|
||||||
:star-visual-range cmdline.txt /*:star-visual-range*
|
:star-visual-range cmdline.txt /*:star-visual-range*
|
||||||
:start insert.txt /*:start*
|
:start insert.txt /*:start*
|
||||||
:startgreplace insert.txt /*:startgreplace*
|
:startgreplace insert.txt /*:startgreplace*
|
||||||
@ -6691,6 +6692,7 @@ function-range-example eval.txt /*function-range-example*
|
|||||||
function-search-undo eval.txt /*function-search-undo*
|
function-search-undo eval.txt /*function-search-undo*
|
||||||
function_key intro.txt /*function_key*
|
function_key intro.txt /*function_key*
|
||||||
functions eval.txt /*functions*
|
functions eval.txt /*functions*
|
||||||
|
fuzzy-match pattern.txt /*fuzzy-match*
|
||||||
fvwm.vim syntax.txt /*fvwm.vim*
|
fvwm.vim syntax.txt /*fvwm.vim*
|
||||||
fvwm2rc syntax.txt /*fvwm2rc*
|
fvwm2rc syntax.txt /*fvwm2rc*
|
||||||
fvwmrc syntax.txt /*fvwmrc*
|
fvwmrc syntax.txt /*fvwmrc*
|
||||||
@ -7790,6 +7792,7 @@ map-return map.txt /*map-return*
|
|||||||
map-self-destroy tips.txt /*map-self-destroy*
|
map-self-destroy tips.txt /*map-self-destroy*
|
||||||
map-space_in_lhs map.txt /*map-space_in_lhs*
|
map-space_in_lhs map.txt /*map-space_in_lhs*
|
||||||
map-space_in_rhs map.txt /*map-space_in_rhs*
|
map-space_in_rhs map.txt /*map-space_in_rhs*
|
||||||
|
map-table map.txt /*map-table*
|
||||||
map-typing map.txt /*map-typing*
|
map-typing map.txt /*map-typing*
|
||||||
map-which-keys map.txt /*map-which-keys*
|
map-which-keys map.txt /*map-which-keys*
|
||||||
map.txt map.txt /*map.txt*
|
map.txt map.txt /*map.txt*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*todo.txt* For Vim version 8.2. Last change: 2021 Apr 29
|
*todo.txt* For Vim version 8.2. Last change: 2021 May 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -39,13 +39,14 @@ browser use: https://github.com/vim/vim/issues/1234
|
|||||||
-------------------- Known bugs and current work -----------------------
|
-------------------- Known bugs and current work -----------------------
|
||||||
|
|
||||||
Vim9 - Make everything work:
|
Vim9 - Make everything work:
|
||||||
- expandcmd() with `=expr` in filename uses legacy expression.
|
- function returning nothing should return void instead of zero
|
||||||
- eval_expr() in ex_cexpr()
|
|
||||||
- eval_expr() call in dbg_parsearg() and debuggy_find()
|
|
||||||
- compile_member() guesses the type, should figure out at runtime.
|
|
||||||
- compile "skip" argument of searchpair()
|
|
||||||
- compile "expr" and "call" expression of a channel in channel_exe_cmd()?
|
- compile "expr" and "call" expression of a channel in channel_exe_cmd()?
|
||||||
- give an error for "echo Func()" if Func() does not return anything.
|
- Need some solution for dict function. Can we implement part of classes?
|
||||||
|
- A lambda without {} does not require a return type, using { return x } does.
|
||||||
|
That's unexpected, since the arguments are not required to have a type.
|
||||||
|
alt 1: not require a return type, figure it out from the common type of all
|
||||||
|
the return statements found
|
||||||
|
alt 2: also require argument types
|
||||||
- Using "windo echo expr" does not accept a line break inside "expr" (in a
|
- Using "windo echo expr" does not accept a line break inside "expr" (in a
|
||||||
:def function and at script level in a not executed block). #7681
|
:def function and at script level in a not executed block). #7681
|
||||||
- use CheckLegacyAndVim9Success(lines) in many more places
|
- use CheckLegacyAndVim9Success(lines) in many more places
|
||||||
@ -239,6 +240,10 @@ Memory leak in test_alot with pyeval() (allocating partial)
|
|||||||
Memory leak in test_alot with expand()
|
Memory leak in test_alot with expand()
|
||||||
Memory leaks in test_channel? (or is it because of fork())
|
Memory leaks in test_channel? (or is it because of fork())
|
||||||
|
|
||||||
|
":set &shellpipe" and ":set &shellredir" should use the logic from
|
||||||
|
initialization to figure out the default value from 'shell'. Add a test for
|
||||||
|
this.
|
||||||
|
|
||||||
test_arglist func Test_all_not_allowed_from_cmdwin() hangs on MS-Windows.
|
test_arglist func Test_all_not_allowed_from_cmdwin() hangs on MS-Windows.
|
||||||
|
|
||||||
Mapping with partial match not executed properly in GTK. (Ingo Karkat, #7082)
|
Mapping with partial match not executed properly in GTK. (Ingo Karkat, #7082)
|
||||||
@ -249,6 +254,9 @@ Have another look at the implementation.
|
|||||||
Patch to implement the vimtutor with a plugin: #6414
|
Patch to implement the vimtutor with a plugin: #6414
|
||||||
Was originally written by Felipe Morales.
|
Was originally written by Felipe Morales.
|
||||||
|
|
||||||
|
Request to use "." for the cursor column in search pattern \%<.c and \%<.v.
|
||||||
|
(#8179)
|
||||||
|
|
||||||
Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
|
Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
|
||||||
(#4087) Did patch 8.2.2379 help?
|
(#4087) Did patch 8.2.2379 help?
|
||||||
Also, z= in German on a long word can take a very long time, but CTRL-C to
|
Also, z= in German on a long word can take a very long time, but CTRL-C to
|
||||||
@ -276,6 +284,9 @@ Missing filetype test for bashrc, PKGBUILD, etc.
|
|||||||
Add an option to not fetch terminal codes in xterm, to avoid flicker when t_Co
|
Add an option to not fetch terminal codes in xterm, to avoid flicker when t_Co
|
||||||
changes.
|
changes.
|
||||||
|
|
||||||
|
When using ":bwipe!" also get rid of references to be buffer, e.g. in the
|
||||||
|
jumplist and alternate file.
|
||||||
|
|
||||||
Add an option to start_timer() to return from the input loop with K_IGNORE.
|
Add an option to start_timer() to return from the input loop with K_IGNORE.
|
||||||
This is useful e.g. when a popup was created that disables mappings, we need
|
This is useful e.g. when a popup was created that disables mappings, we need
|
||||||
to return from vgetc() to make this happen. #7011
|
to return from vgetc() to make this happen. #7011
|
||||||
@ -293,6 +304,9 @@ MS-Windows: when writing undo file the infostreams are copied in
|
|||||||
mch_copy_file_attribute(), that seems unnecessary. (#7925)
|
mch_copy_file_attribute(), that seems unnecessary. (#7925)
|
||||||
Add a flag to only copy attributes?
|
Add a flag to only copy attributes?
|
||||||
|
|
||||||
|
Make the jumplist behave like a tag stack. (#7738) Should there be a more
|
||||||
|
time bound navigation, like with undo?
|
||||||
|
|
||||||
Changing a capturing group to non-capturing changes the result: #7607
|
Changing a capturing group to non-capturing changes the result: #7607
|
||||||
:echo matchstr('aaa bbb', '\(.\{-1,}\>\)\|.*')
|
:echo matchstr('aaa bbb', '\(.\{-1,}\>\)\|.*')
|
||||||
aaa
|
aaa
|
||||||
@ -1215,7 +1229,7 @@ Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)
|
|||||||
Add "unicode true" to NSIS installer. Doesn't work with Windows 95, which we
|
Add "unicode true" to NSIS installer. Doesn't work with Windows 95, which we
|
||||||
no longer support.
|
no longer support.
|
||||||
|
|
||||||
Suppoert sort(l, 'F'), convert strings to float. (#7857)
|
Support sort(l, 'F'), convert strings to float. (#7857)
|
||||||
|
|
||||||
sort() is not stable when using numeric/float sort (Nikolay Pavlov, 2016 Sep
|
sort() is not stable when using numeric/float sort (Nikolay Pavlov, 2016 Sep
|
||||||
4#1038)
|
4#1038)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*version7.txt* For Vim version 8.2. Last change: 2020 Oct 25
|
*version7.txt* For Vim version 8.2. Last change: 2021 May 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -9826,7 +9826,7 @@ Solution: Add AC_SYS_LARGEFILE to configure. (James Vega)
|
|||||||
Files: src/configure.in, src/config.h.in, src/auto/configure
|
Files: src/configure.in, src/config.h.in, src/auto/configure
|
||||||
|
|
||||||
Patch 7.2.414
|
Patch 7.2.414
|
||||||
Problem: CTRK-K <space> <space> does not produce 0xa0 as expected. (Tony
|
Problem: CTRL-K <space> <space> does not produce 0xa0 as expected. (Tony
|
||||||
Mechelynck)
|
Mechelynck)
|
||||||
Solution: Remove the Unicode range 0xe000 - 0xefff from digraphs, these are
|
Solution: Remove the Unicode range 0xe000 - 0xefff from digraphs, these are
|
||||||
not valid characters.
|
not valid characters.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*version8.txt* For Vim version 8.2. Last change: 2020 Dec 24
|
*version8.txt* For Vim version 8.2. Last change: 2021 May 13
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -15341,7 +15341,7 @@ Solution: Link winpthread statically. (jmmerz, closes #1255, closes #1256)
|
|||||||
Files: src/Make_cyg_ming.mak
|
Files: src/Make_cyg_ming.mak
|
||||||
|
|
||||||
Patch 8.0.0116
|
Patch 8.0.0116
|
||||||
Problem: When reading English help and using CTRl-] the language from
|
Problem: When reading English help and using CTRL-] the language from
|
||||||
'helplang' is used.
|
'helplang' is used.
|
||||||
Solution: Make help tag jumps keep the language. (Tatsuki, test by Hirohito
|
Solution: Make help tag jumps keep the language. (Tatsuki, test by Hirohito
|
||||||
Higashi, closes #1249)
|
Higashi, closes #1249)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: meson
|
" Language: meson
|
||||||
" License: VIM License
|
" License: VIM License
|
||||||
|
" Maintainer: Liam Beguin <liambeguin@gmail.com>
|
||||||
" Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
" Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
||||||
" Last Change: 2018 Nov 27
|
" Last Change: 2018 Nov 27
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: SystemVerilog
|
" Language: SystemVerilog
|
||||||
" Maintainer: kocha <kocha.lsifrontend@gmail.com>
|
" Maintainer: kocha <kocha.lsifrontend@gmail.com>
|
||||||
" Last Change: 12-Aug-2013.
|
" Last Change: 07-May-2021
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -9,3 +9,36 @@ endif
|
|||||||
|
|
||||||
" Behaves just like Verilog
|
" Behaves just like Verilog
|
||||||
runtime! ftplugin/verilog.vim
|
runtime! ftplugin/verilog.vim
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" Add SystemVerilog keywords for matchit plugin.
|
||||||
|
if exists("loaded_matchit")
|
||||||
|
let b:match_words =
|
||||||
|
\ '\<begin\>:\<end\>,' .
|
||||||
|
\ '\<case\>\|\<casex\>\|\<casez\>:\<endcase\>,' .
|
||||||
|
\ '\<module\>:\<endmodule\>,' .
|
||||||
|
\ '\<if\>:`\@<!\<else\>,' .
|
||||||
|
\ '\<function\>:\<endfunction\>,' .
|
||||||
|
\ '`ifn\?def\>:`elsif\>:`else\>:`endif\>,' .
|
||||||
|
\ '\<task\>:\<endtask\>,' .
|
||||||
|
\ '\<specify\>:\<endspecify\>,' .
|
||||||
|
\ '\<config\>:\<endconfig\>,' .
|
||||||
|
\ '\<generate\>:\<endgenerate\>,' .
|
||||||
|
\ '\<fork\>:\<join\>\|\<join_any\>\|\<join_none\>,' .
|
||||||
|
\ '\<primitive\>:\<endprimitive\>,' .
|
||||||
|
\ '\<table\>:\<endtable\>,' .
|
||||||
|
\ '\<checker\>:\<endchecker\>,' .
|
||||||
|
\ '\<class\>:\<endclass\>,' .
|
||||||
|
\ '\<clocking\>:\<endclocking\>,' .
|
||||||
|
\ '\<gruop\>:\<endgruop\>,' .
|
||||||
|
\ '\<interface\>:\<endinterface\>,' .
|
||||||
|
\ '\<package\>:\<endpackage\>,' .
|
||||||
|
\ '\<program\>:\<endprogram\>,' .
|
||||||
|
\ '\<property\>:\<endproperty\>,' .
|
||||||
|
\ '\<sequence\>:\<endsequence\>'
|
||||||
|
endif
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Meson
|
" Language: Meson
|
||||||
" License: VIM License
|
" License: VIM License
|
||||||
" Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
|
" Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
|
||||||
|
" Liam Beguin <liambeguin@gmail.com>
|
||||||
" Original Authors: David Bustos <bustos@caltech.edu>
|
" Original Authors: David Bustos <bustos@caltech.edu>
|
||||||
" Bram Moolenaar <Bram@vim.org>
|
" Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2019 Oct 18
|
" Last Change: 2019 Oct 18
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"
|
"
|
||||||
" Author: Bram Moolenaar
|
" Author: Bram Moolenaar
|
||||||
" Copyright: Vim license applies, see ":help license"
|
" Copyright: Vim license applies, see ":help license"
|
||||||
" Last Change: 2021 Jan 03
|
" Last Change: 2021 May 16
|
||||||
"
|
"
|
||||||
" WORK IN PROGRESS - Only the basics work
|
" WORK IN PROGRESS - Only the basics work
|
||||||
" Note: On MS-Windows you need a recent version of gdb. The one included with
|
" Note: On MS-Windows you need a recent version of gdb. The one included with
|
||||||
@ -228,7 +228,9 @@ func s:StartDebug_term(dict)
|
|||||||
endif
|
endif
|
||||||
let s:gdbwin = win_getid(winnr())
|
let s:gdbwin = win_getid(winnr())
|
||||||
|
|
||||||
" Set arguments to be run
|
" Set arguments to be run. First wait a bit to make detecting gdb a bit
|
||||||
|
" more reliable.
|
||||||
|
sleep 200m
|
||||||
if len(proc_args)
|
if len(proc_args)
|
||||||
call term_sendkeys(s:gdbbuf, 'set args ' . join(proc_args) . "\r")
|
call term_sendkeys(s:gdbbuf, 'set args ' . join(proc_args) . "\r")
|
||||||
endif
|
endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: dts/dtsi (device tree files)
|
" Language: dts/dtsi (device tree files)
|
||||||
" Maintainer: Daniel Mack <vim@zonque.org>
|
" Maintainer: Daniel Mack <vim@zonque.org>
|
||||||
" Last Change: 2013 Oct 20
|
" Last Change: 2021 May 15
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
@ -9,7 +9,7 @@ endif
|
|||||||
|
|
||||||
syntax region dtsComment start="/\*" end="\*/"
|
syntax region dtsComment start="/\*" end="\*/"
|
||||||
syntax match dtsReference "&[[:alpha:][:digit:]_]\+"
|
syntax match dtsReference "&[[:alpha:][:digit:]_]\+"
|
||||||
syntax region dtsBinaryProperty start="\[" end="\]"
|
syntax region dtsBinaryProperty start="\[" end="\]"
|
||||||
syntax match dtsStringProperty "\".*\""
|
syntax match dtsStringProperty "\".*\""
|
||||||
syntax match dtsKeyword "/.\{-1,\}/"
|
syntax match dtsKeyword "/.\{-1,\}/"
|
||||||
syntax match dtsLabel "^[[:space:]]*[[:alpha:][:digit:]_]\+:"
|
syntax match dtsLabel "^[[:space:]]*[[:alpha:][:digit:]_]\+:"
|
||||||
@ -18,6 +18,38 @@ syntax region dtsCellProperty start="<" end=">" contains=dtsReference,dtsBinar
|
|||||||
syntax region dtsCommentInner start="/\*" end="\*/"
|
syntax region dtsCommentInner start="/\*" end="\*/"
|
||||||
syntax match dtsCommentLine "//.*$"
|
syntax match dtsCommentLine "//.*$"
|
||||||
|
|
||||||
|
" Accept %: for # (C99)
|
||||||
|
syn region cPreCondit start="^\s*\zs\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
|
||||||
|
syn match cPreConditMatch display "^\s*\zs\(%:\|#\)\s*\(else\|endif\)\>"
|
||||||
|
if !exists("c_no_if0")
|
||||||
|
syn cluster cCppOutInGroup contains=cCppInIf,cCppInElse,cCppInElse2,cCppOutIf,cCppOutIf2,cCppOutElse,cCppInSkip,cCppOutSkip
|
||||||
|
syn region cCppOutWrapper start="^\s*\zs\(%:\|#\)\s*if\s\+0\+\s*\($\|//\|/\*\|&\)" end=".\@=\|$" contains=cCppOutIf,cCppOutElse,@NoSpell fold
|
||||||
|
syn region cCppOutIf contained start="0\+" matchgroup=cCppOutWrapper end="^\s*\(%:\|#\)\s*endif\>" contains=cCppOutIf2,cCppOutElse
|
||||||
|
if !exists("c_no_if0_fold")
|
||||||
|
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell fold
|
||||||
|
else
|
||||||
|
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
|
||||||
|
endif
|
||||||
|
syn region cCppOutElse contained matchgroup=cCppOutWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=TOP,cPreCondit
|
||||||
|
syn region cCppInWrapper start="^\s*\zs\(%:\|#\)\s*if\s\+0*[1-9]\d*\s*\($\|//\|/\*\||\)" end=".\@=\|$" contains=cCppInIf,cCppInElse fold
|
||||||
|
syn region cCppInIf contained matchgroup=cCppInWrapper start="\d\+" end="^\s*\(%:\|#\)\s*endif\>" contains=TOP,cPreCondit
|
||||||
|
if !exists("c_no_if0_fold")
|
||||||
|
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2 fold
|
||||||
|
else
|
||||||
|
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2
|
||||||
|
endif
|
||||||
|
syn region cCppInElse2 contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)\([^/]\|/[^/*]\)*" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
|
||||||
|
syn region cCppOutSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppOutSkip
|
||||||
|
syn region cCppInSkip contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(if\s\+\(\d\+\s*\($\|//\|/\*\||\|&\)\)\@!\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" containedin=cCppOutElse,cCppInIf,cCppInSkip contains=TOP,cPreProc
|
||||||
|
endif
|
||||||
|
syn region cIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||||
|
syn match cIncluded display contained "<[^>]*>"
|
||||||
|
syn match cInclude display "^\s*\zs\(%:\|#\)\s*include\>\s*["<]" contains=cIncluded
|
||||||
|
"syn match cLineSkip "\\$"
|
||||||
|
syn cluster cPreProcGroup contains=cPreCondit,cIncluded,cInclude,cDefine,cErrInParen,cErrInBracket,cUserLabel,cSpecial,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cString,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cParen,cBracket,cMulti,cBadBlock
|
||||||
|
syn region cDefine start="^\s*\zs\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||||
|
syn region cPreProc start="^\s*\zs\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||||
|
|
||||||
hi def link dtsCellProperty Number
|
hi def link dtsCellProperty Number
|
||||||
hi def link dtsBinaryProperty Number
|
hi def link dtsBinaryProperty Number
|
||||||
hi def link dtsStringProperty String
|
hi def link dtsStringProperty String
|
||||||
@ -26,5 +58,21 @@ hi def link dtsLabel Label
|
|||||||
hi def link dtsNode Structure
|
hi def link dtsNode Structure
|
||||||
hi def link dtsReference Macro
|
hi def link dtsReference Macro
|
||||||
hi def link dtsComment Comment
|
hi def link dtsComment Comment
|
||||||
hi def link dtsCommentInner Comment
|
hi def link dtsCommentInner Comment
|
||||||
hi def link dtsCommentLine Comment
|
hi def link dtsCommentLine Comment
|
||||||
|
|
||||||
|
hi def link cInclude Include
|
||||||
|
hi def link cPreProc PreProc
|
||||||
|
hi def link cDefine Macro
|
||||||
|
hi def link cIncluded cString
|
||||||
|
hi def link cString String
|
||||||
|
|
||||||
|
hi def link cCppInWrapper cCppOutWrapper
|
||||||
|
hi def link cCppOutWrapper cPreCondit
|
||||||
|
hi def link cPreConditMatch cPreCondit
|
||||||
|
hi def link cPreCondit PreCondit
|
||||||
|
hi def link cCppOutSkip cCppOutIf2
|
||||||
|
|
||||||
|
hi def link cCppInElse2 cCppOutIf2
|
||||||
|
hi def link cCppOutIf2 cCppOut
|
||||||
|
hi def link cCppOut Comment
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
" Language: Meson
|
" Language: Meson
|
||||||
" License: VIM License
|
" License: VIM License
|
||||||
" Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
|
" Maintainer: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
|
||||||
|
" Liam Beguin <liambeguin@gmail.com>
|
||||||
" Last Change: 2019 Oct 18
|
" Last Change: 2019 Oct 18
|
||||||
" Credits: Zvezdan Petkovic <zpetkovic@acm.org>
|
" Credits: Zvezdan Petkovic <zpetkovic@acm.org>
|
||||||
" Neil Schemenauer <nas@meson.ca>
|
" Neil Schemenauer <nas@meson.ca>
|
||||||
@ -17,11 +18,7 @@
|
|||||||
" let meson_space_error_highlight = 1
|
" let meson_space_error_highlight = 1
|
||||||
"
|
"
|
||||||
|
|
||||||
" For version 5.x: Clear all syntax items.
|
if exists("b:current_syntax")
|
||||||
" For version 6.x: Quit when a syntax file was already loaded.
|
|
||||||
if version < 600
|
|
||||||
syntax clear
|
|
||||||
elseif exists("b:current_syntax")
|
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -32,8 +29,9 @@ set cpo&vim
|
|||||||
|
|
||||||
" http://mesonbuild.com/Syntax.html
|
" http://mesonbuild.com/Syntax.html
|
||||||
syn keyword mesonConditional elif else if endif
|
syn keyword mesonConditional elif else if endif
|
||||||
syn keyword mesonRepeat foreach endforeach
|
syn keyword mesonRepeat foreach endforeach
|
||||||
syn keyword mesonOperator and not or
|
syn keyword mesonOperator and not or in
|
||||||
|
syn keyword mesonStatement continue break
|
||||||
|
|
||||||
syn match mesonComment "#.*$" contains=mesonTodo,@Spell
|
syn match mesonComment "#.*$" contains=mesonTodo,@Spell
|
||||||
syn keyword mesonTodo FIXME NOTE NOTES TODO XXX contained
|
syn keyword mesonTodo FIXME NOTE NOTES TODO XXX contained
|
||||||
@ -117,10 +115,12 @@ syn keyword mesonBuiltin
|
|||||||
\ subdir
|
\ subdir
|
||||||
\ subdir_done
|
\ subdir_done
|
||||||
\ subproject
|
\ subproject
|
||||||
|
\ summary
|
||||||
\ target_machine
|
\ target_machine
|
||||||
\ test
|
\ test
|
||||||
\ vcs_tag
|
\ vcs_tag
|
||||||
\ warning
|
\ warning
|
||||||
|
\ range
|
||||||
|
|
||||||
if exists("meson_space_error_highlight")
|
if exists("meson_space_error_highlight")
|
||||||
" trailing whitespace
|
" trailing whitespace
|
||||||
@ -130,31 +130,20 @@ if exists("meson_space_error_highlight")
|
|||||||
syn match mesonSpaceError display "\t\+ "
|
syn match mesonSpaceError display "\t\+ "
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if version >= 508 || !exists("did_meson_syn_inits")
|
" The default highlight links. Can be overridden later.
|
||||||
if version <= 508
|
hi def link mesonStatement Statement
|
||||||
let did_meson_syn_inits = 1
|
hi def link mesonConditional Conditional
|
||||||
command -nargs=+ HiLink hi link <args>
|
hi def link mesonRepeat Repeat
|
||||||
else
|
hi def link mesonOperator Operator
|
||||||
command -nargs=+ HiLink hi def link <args>
|
hi def link mesonComment Comment
|
||||||
endif
|
hi def link mesonTodo Todo
|
||||||
|
hi def link mesonString String
|
||||||
" The default highlight links. Can be overridden later.
|
hi def link mesonEscape Special
|
||||||
HiLink mesonStatement Statement
|
hi def link mesonNumber Number
|
||||||
HiLink mesonConditional Conditional
|
hi def link mesonBuiltin Function
|
||||||
HiLink mesonRepeat Repeat
|
hi def link mesonConstant Number
|
||||||
HiLink mesonOperator Operator
|
if exists("meson_space_error_higlight")
|
||||||
HiLink mesonComment Comment
|
hi def link mesonSpaceError Error
|
||||||
HiLink mesonTodo Todo
|
|
||||||
HiLink mesonString String
|
|
||||||
HiLink mesonEscape Special
|
|
||||||
HiLink mesonNumber Number
|
|
||||||
HiLink mesonBuiltin Function
|
|
||||||
HiLink mesonConstant Number
|
|
||||||
if exists("meson_space_error_highlight")
|
|
||||||
HiLink mesonSpaceError Error
|
|
||||||
endif
|
|
||||||
|
|
||||||
delcommand HiLink
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let b:current_syntax = "meson"
|
let b:current_syntax = "meson"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user