vim-patch:dad4473f02e1

Update runtime files.
dad4473f02

Omit :echoconsole. Patch v8.2.2638 is not ported.
This commit is contained in:
Jan Edmund Lazo
2021-05-02 11:10:25 -04:00
parent eea3a692c6
commit b8f3ef10c9
17 changed files with 182 additions and 125 deletions

View File

@@ -1269,9 +1269,11 @@ option will not cause any commands to be executed.
*:doautoa* *:doautoall* *:doautoa* *:doautoall*
:doautoa[ll] [<nomodeline>] [group] {event} [fname] :doautoa[ll] [<nomodeline>] [group] {event} [fname]
Like ":doautocmd", but apply the autocommands to each Like ":doautocmd", but apply the autocommands to each
loaded buffer. Note that [fname] is used to select loaded buffer. The current buffer is done last.
the autocommands, not the buffers to which they are
applied. Note that [fname] is used to select the autocommands,
not the buffers to which they are applied.
Careful: Don't use this for autocommands that delete a Careful: Don't use this for autocommands that delete a
buffer, change to another buffer or change the buffer, change to another buffer or change the
contents of a buffer; the result is unpredictable. contents of a buffer; the result is unpredictable.

View File

@@ -4186,6 +4186,13 @@ getbufinfo([{dict}])
listed TRUE if the buffer is listed. listed TRUE if the buffer is listed.
lnum Line number used for the buffer when lnum Line number used for the buffer when
opened in the current window. opened in the current window.
Only valid if the buffer has been
displayed in the window in the past.
If you want the line number of the
last known cursor position in a given
window, use |line()|: >
:echo line('.', {winid})
<
linecount Number of lines in the buffer (only linecount Number of lines in the buffer (only
valid when loaded) valid when loaded)
loaded TRUE if the buffer is loaded. loaded TRUE if the buffer is loaded.
@@ -4931,10 +4938,12 @@ getwininfo([{winid}]) *getwininfo()*
width window width width window width
winbar 1 if the window has a toolbar, 0 winbar 1 if the window has a toolbar, 0
otherwise otherwise
wincol leftmost screen column of the window wincol leftmost screen column of the window;
"col" from |win_screenpos()|
winid |window-ID| winid |window-ID|
winnr window number winnr window number
winrow topmost screen column of the window winrow topmost screen line of the window;
"row" from |win_screenpos()|
getwinpos([{timeout}]) *getwinpos()* getwinpos([{timeout}]) *getwinpos()*
The result is a |List| with two numbers, the result of The result is a |List| with two numbers, the result of
@@ -10147,7 +10156,7 @@ text...
A locked variable can be deleted: > A locked variable can be deleted: >
:lockvar v :lockvar v
:let v = 'asdf' " fails! :let v = 'asdf' " fails!
:unlet v :unlet v " works
< *E741* *E940* < *E741* *E940*
If you try to change a locked variable you get an If you try to change a locked variable you get an
error message: "E741: Value is locked: {name}". error message: "E741: Value is locked: {name}".

View File

@@ -245,8 +245,8 @@ typeahead, before the previous command has been executed. For example: >
endfunc endfunc
nnoremap <expr> x StoreColumn() nnoremap <expr> x StoreColumn()
nmap ! f!x nmap ! f!x
You will notice that g:column has the value from before executing "fx", You will notice that g:column has the value from before executing "f!",
because "z" is evaluated before "fx" is executed. because "x" is evaluated before "f!" is executed.
This can be solved by inserting <Ignore> before the character that is This can be solved by inserting <Ignore> before the character that is
expression-mapped: > expression-mapped: >
nmap ! f!<Ignore>x nmap ! f!<Ignore>x

View File

@@ -1179,7 +1179,7 @@ Note that when text has been inserted or deleted the cursor position might be
a bit different from the position of the change. Especially when lines have a bit different from the position of the change. Especially when lines have
been deleted. been deleted.
When the |:keepjumps| command modifier is used the position of a change is not When the `:keepjumps` command modifier is used the position of a change is not
remembered. remembered.
*:changes* *:changes*
@@ -1220,7 +1220,7 @@ remembered.
#if, #ifdef, #else, #elif, #endif #if, #ifdef, #else, #elif, #endif
C preprocessor conditionals (when the C preprocessor conditionals (when the
cursor is on the # or no ([{ cursor is on the # or no ([{
following) is following)
For other items the matchit plugin can be used, see For other items the matchit plugin can be used, see
|matchit|. This plugin also helps to skip matches in |matchit|. This plugin also helps to skip matches in
comments. comments.
@@ -1249,19 +1249,19 @@ remembered.
#if/#else/#endif makes the movement linewise. #if/#else/#endif makes the movement linewise.
*[(* *[(*
[( go to [count] previous unmatched '('. [( Go to [count] previous unmatched '('.
|exclusive| motion. |exclusive| motion.
*[{* *[{*
[{ go to [count] previous unmatched '{'. [{ Go to [count] previous unmatched '{'.
|exclusive| motion. |exclusive| motion.
*])* *])*
]) go to [count] next unmatched ')'. ]) Go to [count] next unmatched ')'.
|exclusive| motion. |exclusive| motion.
*]}* *]}*
]} go to [count] next unmatched '}'. ]} Go to [count] next unmatched '}'.
|exclusive| motion. |exclusive| motion.
The above four commands can be used to go to the start or end of the current The above four commands can be used to go to the start or end of the current
@@ -1309,17 +1309,21 @@ file looks like this: >
body_two(); body_two();
} }
} }
[To try this out copy the text and put it in a new buffer, the help text above
confuses the jump commands]
Starting with the cursor on "body_two()", using "[m" will jump to the '{' at Starting with the cursor on "body_two()", using "[m" will jump to the '{' at
the start of "method_two()" (obviously this is much more useful when the the start of "method_two()" (obviously this is much more useful when the
method is long!). Using "2[m" will jump to the start of "method_one()". method is long!). Using "2[m" will jump to the start of "method_one()".
Using "3[m" will jump to the start of the class. Using "3[m" will jump to the start of the class.
*[#* *[#*
[# go to [count] previous unmatched "#if" or "#else". [# Go to [count] previous unmatched "#if" or "#else".
|exclusive| motion. |exclusive| motion.
*]#* *]#*
]# go to [count] next unmatched "#else" or "#endif". ]# Go to [count] next unmatched "#else" or "#endif".
|exclusive| motion. |exclusive| motion.
These two commands work in C programs that contain #if/#else/#endif These two commands work in C programs that contain #if/#else/#endif
@@ -1327,11 +1331,11 @@ constructs. It brings you to the start or end of the #if/#else/#endif where
the current line is included. You can then use "%" to go to the matching line. the current line is included. You can then use "%" to go to the matching line.
*[star* *[/* *[star* *[/*
[* or [/ go to [count] previous start of a C comment "/*". [* or [/ Go to [count] previous start of a C comment "/*".
|exclusive| motion. |exclusive| motion.
*]star* *]/* *]star* *]/*
]* or ]/ go to [count] next end of a C comment "*/". ]* or ]/ Go to [count] next end of a C comment "*/".
|exclusive| motion. |exclusive| motion.

View File

@@ -2979,7 +2979,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'go-v'* *'go-v'*
'v' Use a vertical button layout for dialogs. When not included, 'v' Use a vertical button layout for dialogs. When not included,
a horizontal layout is preferred, but when it doesn't fit a a horizontal layout is preferred, but when it doesn't fit a
vertical layout is used anyway. vertical layout is used anyway. Not supported in GTK 3.
*'go-p'* *'go-p'*
'p' Use Pointer callbacks for X11 GUI. This is required for some 'p' Use Pointer callbacks for X11 GUI. This is required for some
window managers. If the cursor is not blinking or hollow at window managers. If the cursor is not blinking or hollow at
@@ -6906,15 +6906,15 @@ A jump table for the options with a short description can be found at |Q_op|.
*'window'* *'wi'* *'window'* *'wi'*
'window' 'wi' number (default screen height - 1) 'window' 'wi' number (default screen height - 1)
global global
Window height. Do not confuse this with the height of the Vim window, Window height used for |CTRL-F| and |CTRL-B| when there is only one
use 'lines' for that. window and the value is smaller than 'lines' minus one. The screen
Used for |CTRL-F| and |CTRL-B| when there is only one window and the will scroll 'window' minus two lines, with a minimum of one.
value is smaller than 'lines' minus one. The screen will scroll
'window' minus two lines, with a minimum of one.
When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll
in a much smarter way, taking care of wrapping lines. in a much smarter way, taking care of wrapping lines.
When resizing the Vim window, the value is smaller than 1 or more than When resizing the Vim window, the value is smaller than 1 or more than
or equal to 'lines' it will be set to 'lines' minus 1. or equal to 'lines' it will be set to 'lines' minus 1.
Note: Do not confuse this with the height of the Vim window, use
'lines' for that.
*'winheight'* *'wh'* *E591* *'winheight'* *'wh'* *E591*
'winheight' 'wh' number (default 1) 'winheight' 'wh' number (default 1)

View File

@@ -2205,9 +2205,10 @@ can use them.
For example, Linux and BSD distributions use groff as their default text For example, Linux and BSD distributions use groff as their default text
processing package. In order to activate the extra syntax highlighting processing package. In order to activate the extra syntax highlighting
features for groff, add the following option to your start-up files: > features for groff, arrange for files to be recognized as groff (see
|ft-groff-syntax|) or add the following option to your start-up files: >
:let b:nroff_is_groff = 1 :let nroff_is_groff = 1
Groff is different from the old AT&T n/troff that you may still find in Groff is different from the old AT&T n/troff that you may still find in
Solaris. Groff macro and request names can be longer than 2 characters and Solaris. Groff macro and request names can be longer than 2 characters and

View File

@@ -506,7 +506,7 @@ gO Show a filetype-specific, navigable "outline" of the
Queued messages are processed during the sleep. Queued messages are processed during the sleep.
*:sl!* *:sleep!* *:sl!* *:sleep!*
:[N]sl[eep]! [N] [m] Same as above, but hide the cursor :[N]sl[eep]! [N] [m] Same as above, but hide the cursor.
============================================================================== ==============================================================================
2. Using Vim like less or more *less* 2. Using Vim like less or more *less*

View File

@@ -760,7 +760,7 @@ can also get to them with the buffer list commands, like ":bnext".
Examples: > Examples: >
:windo set nolist nofoldcolumn | normal zn :windo set nolist foldcolumn=0 | normal! zn
This resets the 'list' option and disables folding in all windows. > This resets the 'list' option and disables folding in all windows. >
@@ -768,7 +768,7 @@ This resets the 'list' option and disables folding in all windows. >
This resets the 'fileencoding' in each buffer and writes it if this changed This resets the 'fileencoding' in each buffer and writes it if this changed
the buffer. The result is that all buffers will use the 'encoding' encoding the buffer. The result is that all buffers will use the 'encoding' encoding
(if conversion works properly). (if conversion succeeds).
============================================================================== ==============================================================================
9. Tag or file name under the cursor *window-tag* 9. Tag or file name under the cursor *window-tag*

View File

@@ -4,7 +4,7 @@
" URL: http://sites.google.com/site/khorser/opensource/vim " URL: http://sites.google.com/site/khorser/opensource/vim
" Original author: Dorai Sitaram <ds26@gte.com> " Original author: Dorai Sitaram <ds26@gte.com>
" Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
" Last Change: Oct 23, 2013 " Last Change: Mar 10, 2021
" Only do this when not done yet for this buffer " Only do this when not done yet for this buffer
if exists("b:did_ftplugin") if exists("b:did_ftplugin")

View File

@@ -62,10 +62,14 @@ fun! CdlGetIndent(lnum)
" PREVIOUS LINE " PREVIOUS LINE
let ind = indent(lnum) let ind = indent(lnum)
let line = getline(lnum) let line = getline(lnum)
let f = -1 " wether a '=' is a conditional or a asignment, -1 means we don't know yet
" one 'closing' element at the beginning of the line has already reduced the " Whether a '=' is a conditional or an assignment. -1 means we don't know
" indent, but 'else', 'elseif' & 'then' increment it for the next line " yet.
" '=' at the beginning has already de right indent (increased for asignments) " One 'closing' element at the beginning of the line has already reduced the
" indent, but 'else', 'elseif' & 'then' increment it for the next line.
" '=' at the beginning already has the right indent (increased for
" asignments).
let f = -1
let inicio = matchend(line, '^\c\s*\(else\a*\|then\|endif\|/[*/]\|[);={]\)') let inicio = matchend(line, '^\c\s*\(else\a*\|then\|endif\|/[*/]\|[);={]\)')
if inicio > 0 if inicio > 0
let c = line[inicio-1] let c = line[inicio-1]

View File

@@ -1,16 +1,22 @@
" Vim syntax file
" Language: Dot " Language: Dot
" Filenames: *.dot " Filenames: *.dot
" Maintainer: Markus Mottl <markus.mottl@gmail.com> " Maintainer: Markus Mottl <markus.mottl@gmail.com>
" URL: http://www.ocaml.info/vim/syntax/dot.vim " URL: http://www.ocaml.info/vim/syntax/dot.vim
" Last Change: 2011 May 17 - improved identifier matching + two new keywords " Last Change: 2021 Mar 24 - better attr + escape string matching, new keywords (Farbod Salamat-Zadeh)
" 2011 May 17 - improved identifier matching + two new keywords
" 2001 May 04 - initial version " 2001 May 04 - initial version
" quit when a syntax file was already loaded " 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
let s:keepcpo = &cpo
set cpo&vim
" Errors " Errors
syn match dotParErr ")" syn match dotParErr ")"
syn match dotBrackErr "]" syn match dotBrackErr "]"
@@ -29,39 +35,43 @@ syn keyword dotTodo contained TODO FIXME XXX
" Strings " Strings
syn region dotString start=+"+ skip=+\\\\\|\\"+ end=+"+ syn region dotString start=+"+ skip=+\\\\\|\\"+ end=+"+
" Escape strings
syn match dotEscString /\v\\(N|G|E|T|H|L)/ containedin=dotString
syn match dotEscString /\v\\(n|l|r)/ containedin=dotString
" General keywords " General keywords
syn keyword dotKeyword digraph node edge subgraph syn keyword dotKeyword graph digraph subgraph node edge strict
" Graph attributes " Node, edge and graph attributes
syn keyword dotType center layers margin mclimit name nodesep nslimit syn keyword dotType _background area arrowhead arrowsize arrowtail bb bgcolor
syn keyword dotType ordering page pagedir rank rankdir ranksep ratio \ center charset class clusterrank color colorscheme comment compound
syn keyword dotType rotate size \ concentrate constraint Damping decorate defaultdist dim dimen dir
\ diredgeconstraints distortion dpi edgehref edgetarget edgetooltip
" Node attributes \ edgeURL epsilon esep fillcolor fixedsize fontcolor fontname fontnames
syn keyword dotType distortion fillcolor fontcolor fontname fontsize \ fontpath fontsize forcelabels gradientangle group head_lp headclip
syn keyword dotType height layer orientation peripheries regular \ headhref headlabel headport headtarget headtooltip headURL height href
syn keyword dotType shape shapefile sides skew width \ id image imagepath imagepos imagescale inputscale K label label_scheme
\ labelangle labeldistance labelfloat labelfontcolor labelfontname
" Edge attributes \ labelfontsize labelhref labeljust labelloc labeltarget labeltooltip
syn keyword dotType arrowhead arrowsize arrowtail constraint decorateP \ labelURL landscape layer layerlistsep layers layerselect layersep
syn keyword dotType dir headclip headlabel headport labelangle labeldistance \ layout len levels levelsgap lhead lheight lp ltail lwidth margin
syn keyword dotType labelfontcolor labelfontname labelfontsize \ maxiter mclimit mindist minlen mode model mosek newrank nodesep
syn keyword dotType minlen port_label_distance samehead sametail \ nojustify normalize notranslate nslimit nslimit1 ordering orientation
syn keyword dotType tailclip taillabel tailport weight \ outputorder overlap overlap_scaling overlap_shrink pack packmode pad
\ page pagedir pencolor penwidth peripheries pin pos quadtree quantum
" Shared attributes (graphs, nodes, edges) \ rank rankdir ranksep ratio rects regular remincross repulsiveforce
syn keyword dotType color \ resolution root rotate rotation samehead sametail samplepoints scale
\ searchsize sep shape shapefile showboxes sides size skew smoothing
" Shared attributes (graphs and edges) \ sortv splines start style stylesheet tail_lp tailclip tailhref
syn keyword dotType bgcolor label URL \ taillabel tailport tailtarget tailtooltip tailURL target tooltip
\ truecolor URL vertices viewport voro_margin weight width xdotversion
" Shared attributes (nodes and edges) \ xlabel xlp z
syn keyword dotType fontcolor fontname fontsize layer style
" Special chars " Special chars
syn match dotKeyChar "=" syn match dotKeyChar "="
syn match dotKeyChar ";" syn match dotKeyChar ";"
syn match dotKeyChar "->" syn match dotKeyChar "->"
syn match dotKeyChar "--"
" Identifier " Identifier
syn match dotIdentifier /\<\w\+\(:\w\+\)\?\>/ syn match dotIdentifier /\<\w\+\(:\w\+\)\?\>/
@@ -71,27 +81,41 @@ syn sync minlines=50
syn sync maxlines=500 syn sync maxlines=500
" Define the default highlighting. " Define the default highlighting.
" Only when an item doesn't have highlighting yet " For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_dot_syntax_inits")
if version < 508
let did_dot_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
hi def link dotParErr Error HiLink dotParErr Error
hi def link dotBraceErr Error HiLink dotBraceErr Error
hi def link dotBrackErr Error HiLink dotBrackErr Error
hi def link dotComment Comment HiLink dotComment Comment
hi def link dotTodo Todo HiLink dotTodo Todo
hi def link dotParEncl Keyword HiLink dotParEncl Keyword
hi def link dotBrackEncl Keyword HiLink dotBrackEncl Keyword
hi def link dotBraceEncl Keyword HiLink dotBraceEncl Keyword
hi def link dotKeyword Keyword HiLink dotKeyword Keyword
hi def link dotType Type HiLink dotType Type
hi def link dotKeyChar Keyword HiLink dotKeyChar Keyword
hi def link dotString String HiLink dotString String
hi def link dotIdentifier Identifier HiLink dotEscString Keyword
HiLink dotIdentifier Identifier
delcommand HiLink
endif
let b:current_syntax = "dot" let b:current_syntax = "dot"
let &cpo = s:keepcpo
unlet s:keepcpo
" vim: ts=8 " vim: ts=8

View File

@@ -1,7 +1,7 @@
" VIM syntax file " VIM syntax file
" Language: groff " Language: groff
" Maintainer: Alejandro López-Valencia <dradul@yahoo.com> " Maintainer: John Marshall <jmarshall@hey.com>
" URL: http://dradul.tripod.com/vim " Previous Maintainer: Pedro Alejandro López-Valencia <palopezv@gmail.com>
" Last Change: 2003-05-08-12:41:13 GMT-5. " Last Change: 2003-05-08-12:41:13 GMT-5.
" This uses the nroff.vim syntax file. " This uses the nroff.vim syntax file.

View File

@@ -7,7 +7,7 @@
" (ss) repaired several quoting and grouping glitches " (ss) repaired several quoting and grouping glitches
" (ss) fixed regex parsing issue with multiple qualifiers [gi] " (ss) fixed regex parsing issue with multiple qualifiers [gi]
" (ss) additional factoring of keywords, globals, and members " (ss) additional factoring of keywords, globals, and members
" Last Change: 2020 May 14 " Last Change: 2021 Mar 30
" 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke) " 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke)
" 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder) " 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder)
@@ -41,6 +41,7 @@ syn region javaScriptEmbed start=+${+ end=+}+ contains=@javaScriptEmbed
syn match javaScriptSpecialCharacter "'\\.'" syn match javaScriptSpecialCharacter "'\\.'"
syn match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" syn match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
syn match javaScriptNumber "-\=\<\d\+\%(_\d\+\)*\>"
syn region javaScriptRegexpString start=+[,(=+]\s*/[^/*]+ms=e-1,me=e-1 skip=+\\\\\|\\/+ end=+/[gimuys]\{0,2\}\s*$+ end=+/[gimuys]\{0,2\}\s*[+;.,)\]}]+me=e-1 end=+/[gimuys]\{0,2\}\s\+\/+me=e-1 contains=@htmlPreproc,javaScriptComment oneline syn region javaScriptRegexpString start=+[,(=+]\s*/[^/*]+ms=e-1,me=e-1 skip=+\\\\\|\\/+ end=+/[gimuys]\{0,2\}\s*$+ end=+/[gimuys]\{0,2\}\s*[+;.,)\]}]+me=e-1 end=+/[gimuys]\{0,2\}\s\+\/+me=e-1 contains=@htmlPreproc,javaScriptComment oneline
syn keyword javaScriptConditional if else switch syn keyword javaScriptConditional if else switch

View File

@@ -1,16 +1,9 @@
" VIM syntax file " VIM syntax file
" Language: nroff/groff " Language: nroff/groff
" Maintainer: Pedro Alejandro López-Valencia <palopezv@gmail.com> " Maintainer: John Marshall <jmarshall@hey.com>
" URL: http://vorbote.wordpress.com/ " Previous Maintainer: Pedro Alejandro López-Valencia <palopezv@gmail.com>
" Last Change: 2012 Feb 2 " Previous Maintainer: Jérôme Plût <Jerome.Plut@ens.fr>
" " Last Change: 2021 Mar 28
" {{{1 Acknowledgements
"
" ACKNOWLEDGEMENTS:
"
" My thanks to Jérôme Plût <Jerome.Plut@ens.fr>, who was the
" creator and maintainer of this syntax file for several years.
" May I be as good at it as he has been.
" "
" {{{1 Todo " {{{1 Todo
" "
@@ -31,6 +24,13 @@ endif
let s:cpo_save = &cpo let s:cpo_save = &cpo
set cpo&vim set cpo&vim
if exists("nroff_is_groff")
let b:nroff_is_groff = 1
endif
syn spell toplevel
syn case match
" "
" {{{1 plugin settings... " {{{1 plugin settings...
" "
@@ -48,7 +48,7 @@ endif
" "
setlocal paragraphs+=XP setlocal paragraphs+=XP
" "
" {{{2 Activate navigation to preporcessor sections. " {{{2 Activate navigation to preprocessor sections.
" "
if exists("b:preprocs_as_sections") if exists("b:preprocs_as_sections")
setlocal sections=EQTSPS[\ G1GS setlocal sections=EQTSPS[\ G1GS
@@ -169,9 +169,9 @@ endif
" <jp /> " <jp />
syn region nroffEquation start=/^\.\s*EQ\>/ end=/^\.\s*EN\>/ syn region nroffEquation start=/^\.\s*EQ\>/ end=/^\.\s*EN\>/
syn region nroffTable start=/^\.\s*TS\>/ end=/^\.\s*TE\>/ syn region nroffTable start=/^\.\s*TS\>/ end=/^\.\s*TE\>/ contains=@Spell
syn region nroffPicture start=/^\.\s*PS\>/ end=/^\.\s*PE\>/ syn region nroffPicture start=/^\.\s*PS\>/ end=/^\.\s*PE\>/
syn region nroffRefer start=/^\.\s*\[\>/ end=/^\.\s*\]\>/ syn region nroffRefer start=/^\.\s*\[\>/ end=/^\.\s*\]\>/ contains=@Spell
syn region nroffGrap start=/^\.\s*G1\>/ end=/^\.\s*G2\>/ syn region nroffGrap start=/^\.\s*G1\>/ end=/^\.\s*G2\>/
syn region nroffGremlin start=/^\.\s*GS\>/ end=/^\.\s*GE|GF\>/ syn region nroffGremlin start=/^\.\s*GS\>/ end=/^\.\s*GE|GF\>/
@@ -179,11 +179,11 @@ syn region nroffGremlin start=/^\.\s*GS\>/ end=/^\.\s*GE|GF\>/
" ------------------------------------------------------------ " ------------------------------------------------------------
syn region nroffIgnore start=/^[.']\s*ig/ end=/^['.]\s*\./ syn region nroffIgnore start=/^[.']\s*ig/ end=/^['.]\s*\./
syn match nroffComment /\(^[.']\s*\)\=\\".*/ contains=nroffTodo syn match nroffComment /\(^[.']\s*\)\=\\".*/ contains=nroffTodo,@Spell
syn match nroffComment /^'''.*/ contains=nroffTodo syn match nroffComment /^'''.*/ contains=nroffTodo,@Spell
if exists("b:nroff_is_groff") if exists("b:nroff_is_groff")
syn match nroffComment "\\#.*$" contains=nroffTodo syn match nroffComment "\\#.*$" contains=nroffTodo,@Spell
endif endif
syn keyword nroffTodo TODO XXX FIXME contained syn keyword nroffTodo TODO XXX FIXME contained
@@ -198,7 +198,7 @@ syn keyword nroffTodo TODO XXX FIXME contained
" "
hi def link nroffEscChar nroffSpecialChar hi def link nroffEscChar nroffSpecialChar
hi def link nroffEscCharAr nroffSpecialChar hi def link nroffEscCharArg nroffSpecialChar
hi def link nroffSpecialChar SpecialChar hi def link nroffSpecialChar SpecialChar
hi def link nroffSpace Delimiter hi def link nroffSpace Delimiter
@@ -211,7 +211,7 @@ hi def link nroffEscPar nroffEscape
hi def link nroffEscRegPar nroffEscape hi def link nroffEscRegPar nroffEscape
hi def link nroffEscArg nroffEscape hi def link nroffEscArg nroffEscape
hi def link nroffSize nroffEscape hi def link nroffSize nroffEscape
hi def link nroffEscape Preproc hi def link nroffEscape PreProc
hi def link nroffIgnore Comment hi def link nroffIgnore Comment
hi def link nroffComment Comment hi def link nroffComment Comment

View File

@@ -1,14 +1,15 @@
" Vim syntax file " Vim syntax file
" Language: OpenSSH client configuration file (ssh_config) " Language: OpenSSH client configuration file (ssh_config)
" Author: David Necas (Yeti) " Author: David Necas (Yeti)
" Maintainer: Dominik Fischer <d dot f dot fischer at web dot de> " Maintainer: Jakub Jelen <jakuje at gmail dot com>
" Previous Maintainer: Dominik Fischer <d dot f dot fischer at web dot de>
" Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de> " Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de>
" Contributor: Karsten Hopp <karsten@redhat.com> " Contributor: Karsten Hopp <karsten@redhat.com>
" Contributor: Dean, Adam Kenneth <adam.ken.dean@hpe.com> " Contributor: Dean, Adam Kenneth <adam.ken.dean@hpe.com>
" Last Change: 2020 Feb 12 " Last Change: 2021 Mar 29
" Added RemoteCommand from pull request #4809 " Added RemoteCommand from pull request #4809
" Included additional keywords from Martin. " Included additional keywords from Martin.
" SSH Version: 7.4p1 " SSH Version: 8.5p1
" "
" Setup " Setup
@@ -174,6 +175,7 @@ syn keyword sshconfigKeyword HostKeyAlgorithms
syn keyword sshconfigKeyword HostKeyAlias syn keyword sshconfigKeyword HostKeyAlias
syn keyword sshconfigKeyword HostName syn keyword sshconfigKeyword HostName
syn keyword sshconfigKeyword HostbasedAuthentication syn keyword sshconfigKeyword HostbasedAuthentication
syn keyword sshconfigKeyword HostbasedAcceptedAlgorithms
syn keyword sshconfigKeyword HostbasedKeyTypes syn keyword sshconfigKeyword HostbasedKeyTypes
syn keyword sshconfigKeyword IPQoS syn keyword sshconfigKeyword IPQoS
syn keyword sshconfigKeyword IdentitiesOnly syn keyword sshconfigKeyword IdentitiesOnly
@@ -185,9 +187,11 @@ syn keyword sshconfigKeyword IPQoS
syn keyword sshconfigKeyword KbdInteractiveAuthentication syn keyword sshconfigKeyword KbdInteractiveAuthentication
syn keyword sshconfigKeyword KbdInteractiveDevices syn keyword sshconfigKeyword KbdInteractiveDevices
syn keyword sshconfigKeyword KexAlgorithms syn keyword sshconfigKeyword KexAlgorithms
syn keyword sshconfigKeyword KnownHostsCommand
syn keyword sshconfigKeyword LocalCommand syn keyword sshconfigKeyword LocalCommand
syn keyword sshconfigKeyword LocalForward syn keyword sshconfigKeyword LocalForward
syn keyword sshconfigKeyword LogLevel syn keyword sshconfigKeyword LogLevel
syn keyword sshconfigKeyword LogVerbose
syn keyword sshconfigKeyword MACs syn keyword sshconfigKeyword MACs
syn keyword sshconfigKeyword Match syn keyword sshconfigKeyword Match
syn keyword sshconfigKeyword NoHostAuthenticationForLocalhost syn keyword sshconfigKeyword NoHostAuthenticationForLocalhost
@@ -195,11 +199,13 @@ syn keyword sshconfigKeyword NumberOfPasswordPrompts
syn keyword sshconfigKeyword PKCS11Provider syn keyword sshconfigKeyword PKCS11Provider
syn keyword sshconfigKeyword PasswordAuthentication syn keyword sshconfigKeyword PasswordAuthentication
syn keyword sshconfigKeyword PermitLocalCommand syn keyword sshconfigKeyword PermitLocalCommand
syn keyword sshconfigKeyword PermitRemoteOpen
syn keyword sshconfigKeyword Port syn keyword sshconfigKeyword Port
syn keyword sshconfigKeyword PreferredAuthentications syn keyword sshconfigKeyword PreferredAuthentications
syn keyword sshconfigKeyword ProxyCommand syn keyword sshconfigKeyword ProxyCommand
syn keyword sshconfigKeyword ProxyJump syn keyword sshconfigKeyword ProxyJump
syn keyword sshconfigKeyword ProxyUseFDPass syn keyword sshconfigKeyword ProxyUseFDPass
syn keyword sshconfigKeyword PubkeyAcceptedAlgorithms
syn keyword sshconfigKeyword PubkeyAcceptedKeyTypes syn keyword sshconfigKeyword PubkeyAcceptedKeyTypes
syn keyword sshconfigKeyword PubkeyAuthentication syn keyword sshconfigKeyword PubkeyAuthentication
syn keyword sshconfigKeyword RekeyLimit syn keyword sshconfigKeyword RekeyLimit

View File

@@ -7,8 +7,8 @@
" Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de> " Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de>
" Contributor: Karsten Hopp <karsten@redhat.com> " Contributor: Karsten Hopp <karsten@redhat.com>
" Originally: 2009-07-09 " Originally: 2009-07-09
" Last Change: 2020-10-20 " Last Change: 2021-03-29
" SSH Version: 8.4p1 " SSH Version: 8.5p1
" "
" Setup " Setup
@@ -195,6 +195,7 @@ syn keyword sshdconfigKeyword HostCertificate
syn keyword sshdconfigKeyword HostKey syn keyword sshdconfigKeyword HostKey
syn keyword sshdconfigKeyword HostKeyAgent syn keyword sshdconfigKeyword HostKeyAgent
syn keyword sshdconfigKeyword HostKeyAlgorithms syn keyword sshdconfigKeyword HostKeyAlgorithms
syn keyword sshdconfigKeyword HostbasedAcceptedAlgorithms
syn keyword sshdconfigKeyword HostbasedAcceptedKeyTypes syn keyword sshdconfigKeyword HostbasedAcceptedKeyTypes
syn keyword sshdconfigKeyword HostbasedAuthentication syn keyword sshdconfigKeyword HostbasedAuthentication
syn keyword sshdconfigKeyword HostbasedUsesNameFromPacketOnly syn keyword sshdconfigKeyword HostbasedUsesNameFromPacketOnly
@@ -213,6 +214,7 @@ syn keyword sshdconfigKeyword KexAlgorithms
syn keyword sshdconfigKeyword KeyRegenerationInterval syn keyword sshdconfigKeyword KeyRegenerationInterval
syn keyword sshdconfigKeyword ListenAddress syn keyword sshdconfigKeyword ListenAddress
syn keyword sshdconfigKeyword LogLevel syn keyword sshdconfigKeyword LogLevel
syn keyword sshdconfigKeyword LogVerbose
syn keyword sshdconfigKeyword LoginGraceTime syn keyword sshdconfigKeyword LoginGraceTime
syn keyword sshdconfigKeyword MACs syn keyword sshdconfigKeyword MACs
syn keyword sshdconfigKeyword Match syn keyword sshdconfigKeyword Match
@@ -220,6 +222,8 @@ syn keyword sshdconfigKeyword MaxAuthTries
syn keyword sshdconfigKeyword MaxSessions syn keyword sshdconfigKeyword MaxSessions
syn keyword sshdconfigKeyword MaxStartups syn keyword sshdconfigKeyword MaxStartups
syn keyword sshdconfigKeyword PasswordAuthentication syn keyword sshdconfigKeyword PasswordAuthentication
syn keyword sshdconfigKeyword PerSourceMaxStartups
syn keyword sshdconfigKeyword PerSourceNetBlockSize
syn keyword sshdconfigKeyword PermitBlacklistedKeys syn keyword sshdconfigKeyword PermitBlacklistedKeys
syn keyword sshdconfigKeyword PermitEmptyPasswords syn keyword sshdconfigKeyword PermitEmptyPasswords
syn keyword sshdconfigKeyword PermitListen syn keyword sshdconfigKeyword PermitListen
@@ -234,6 +238,7 @@ syn keyword sshdconfigKeyword Port
syn keyword sshdconfigKeyword PrintLastLog syn keyword sshdconfigKeyword PrintLastLog
syn keyword sshdconfigKeyword PrintMotd syn keyword sshdconfigKeyword PrintMotd
syn keyword sshdconfigKeyword Protocol syn keyword sshdconfigKeyword Protocol
syn keyword sshdconfigKeyword PubkeyAcceptedAlgorithms
syn keyword sshdconfigKeyword PubkeyAcceptedKeyTypes syn keyword sshdconfigKeyword PubkeyAcceptedKeyTypes
syn keyword sshdconfigKeyword PubkeyAuthentication syn keyword sshdconfigKeyword PubkeyAuthentication
syn keyword sshdconfigKeyword PubkeyAuthOptions syn keyword sshdconfigKeyword PubkeyAuthOptions

View File

@@ -1,7 +1,8 @@
" Vim syntax file " Vim syntax file
" Language: sudoers(5) configuration files " Language: sudoers(5) configuration files
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
" Previous Maintainer: Nikolai Weibull <now@bitwi.se> " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2018-08-18 " Latest Revision: 2021 Mar 15
" Recent Changes: Support for #include and #includedir. " Recent Changes: Support for #include and #includedir.
" Added many new options (Samuel D. Leslie) " Added many new options (Samuel D. Leslie)
@@ -26,7 +27,7 @@ syn cluster sudoersCmndSpecList contains=sudoersUserRunasBegin,sudoersPASS
syn keyword sudoersTodo contained TODO FIXME XXX NOTE syn keyword sudoersTodo contained TODO FIXME XXX NOTE
syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo
syn region sudoersInclude display oneline start='#\(include\|includedir\)' end='$' syn region sudoersInclude display oneline start='[#@]\%(include\|includedir\)\>' end='$'
syn keyword sudoersAlias User_Alias Runas_Alias nextgroup=sudoersUserAlias skipwhite skipnl syn keyword sudoersAlias User_Alias Runas_Alias nextgroup=sudoersUserAlias skipwhite skipnl
syn keyword sudoersAlias Host_Alias nextgroup=sudoersHostAlias skipwhite skipnl syn keyword sudoersAlias Host_Alias nextgroup=sudoersHostAlias skipwhite skipnl
@@ -201,7 +202,7 @@ syn keyword sudoersBooleanParameter contained skipwhite skipnl
\ shell_noargs \ shell_noargs
\ stay_setuid \ stay_setuid
\ sudoedit_checkdir \ sudoedit_checkdir
\ sudoedit_fellow \ sudoedit_follow
\ syslog_pid \ syslog_pid
\ targetpw \ targetpw
\ tty_tickets \ tty_tickets