mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
@ -1,7 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: HTML and XHTML
|
" Language: HTML and XHTML
|
||||||
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2014 Jun 20
|
" Last Change: 2019 Sep 27
|
||||||
|
|
||||||
" Distinguish between HTML versions.
|
" Distinguish between HTML versions.
|
||||||
" To use with other HTML versions add another "elseif" condition to match
|
" To use with other HTML versions add another "elseif" condition to match
|
||||||
@ -245,7 +245,8 @@ function! htmlcomplete#CompleteTags(findstart, base)
|
|||||||
" If context contains white space it is attribute.
|
" If context contains white space it is attribute.
|
||||||
" It can be also value of attribute.
|
" It can be also value of attribute.
|
||||||
" We have to get first word to offer proper completions
|
" We have to get first word to offer proper completions
|
||||||
if context == ''
|
if context =~ '^\s*$'
|
||||||
|
" empty or whitespace line
|
||||||
let tag = ''
|
let tag = ''
|
||||||
else
|
else
|
||||||
let tag = split(context)[0]
|
let tag = split(context)[0]
|
||||||
|
@ -1140,7 +1140,7 @@ Rationale: In Vi the "y" command followed by a backwards motion would
|
|||||||
With a linewise yank command the cursor is put in the first line, but the
|
With a linewise yank command the cursor is put in the first line, but the
|
||||||
column is unmodified, thus it may not be on the first yanked character.
|
column is unmodified, thus it may not be on the first yanked character.
|
||||||
|
|
||||||
There are ten types of registers: *registers* *E354*
|
There are ten types of registers: *registers* *{register}* *E354*
|
||||||
1. The unnamed register ""
|
1. The unnamed register ""
|
||||||
2. 10 numbered registers "0 to "9
|
2. 10 numbered registers "0 to "9
|
||||||
3. The small delete register "-
|
3. The small delete register "-
|
||||||
|
@ -119,7 +119,7 @@ CTRL-K {char1} {char2} *c_CTRL-K*
|
|||||||
enter digraph (see |digraphs|). When {char1} is a special
|
enter digraph (see |digraphs|). When {char1} is a special
|
||||||
key, the code for that key is inserted in <> form.
|
key, the code for that key is inserted in <> form.
|
||||||
|
|
||||||
CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>*
|
CTRL-R {register} *c_CTRL-R* *c_<C-R>*
|
||||||
Insert the contents of a numbered or named register. Between
|
Insert the contents of a numbered or named register. Between
|
||||||
typing CTRL-R and the second character '"' will be displayed
|
typing CTRL-R and the second character '"' will be displayed
|
||||||
to indicate that you are expected to enter the name of a
|
to indicate that you are expected to enter the name of a
|
||||||
@ -178,8 +178,8 @@ CTRL-R CTRL-L *c_CTRL-R_CTRL-L* *c_<C-R>_<C-L>*
|
|||||||
|
|
||||||
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
*c_CTRL-R_CTRL-R* *c_<C-R>_<C-R>*
|
||||||
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
*c_CTRL-R_CTRL-O* *c_<C-R>_<C-O>*
|
||||||
CTRL-R CTRL-R {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
CTRL-R CTRL-R {register CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
||||||
CTRL-R CTRL-O {0-9a-z"%#:-=. CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
CTRL-R CTRL-O {register CTRL-F CTRL-P CTRL-W CTRL-A CTRL-L}
|
||||||
Insert register or object under the cursor. Works like
|
Insert register or object under the cursor. Works like
|
||||||
|c_CTRL-R| but inserts the text literally. For example, if
|
|c_CTRL-R| but inserts the text literally. For example, if
|
||||||
register a contains "xy^Hz" (where ^H is a backspace),
|
register a contains "xy^Hz" (where ^H is a backspace),
|
||||||
|
@ -1372,7 +1372,7 @@ focus.
|
|||||||
If you want to automatically reload a file when it has been changed outside of
|
If you want to automatically reload a file when it has been changed outside of
|
||||||
Vim, set the 'autoread' option. This doesn't work at the moment you write the
|
Vim, set the 'autoread' option. This doesn't work at the moment you write the
|
||||||
file though, only when the file wasn't changed inside of Vim.
|
file though, only when the file wasn't changed inside of Vim.
|
||||||
|
*ignore-timestamp*
|
||||||
If you do not want to be asked or automatically reload the file, you can use
|
If you do not want to be asked or automatically reload the file, you can use
|
||||||
this: >
|
this: >
|
||||||
set buftype=nofile
|
set buftype=nofile
|
||||||
|
@ -8571,6 +8571,10 @@ systemlist({cmd} [, {input} [, {keepempty}]]) *systemlist()*
|
|||||||
unless {keepempty} is non-zero.
|
unless {keepempty} is non-zero.
|
||||||
Note that on MS-Windows you may get trailing CR characters.
|
Note that on MS-Windows you may get trailing CR characters.
|
||||||
|
|
||||||
|
To see the difference between "echo hello" and "echo -n hello"
|
||||||
|
use |system()| and |split()|: >
|
||||||
|
echo split(system('echo hello'), '\n', 1)
|
||||||
|
<
|
||||||
Returns an empty string on error.
|
Returns an empty string on error.
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,14 +61,14 @@ tag char action in Insert mode ~
|
|||||||
the cursor
|
the cursor
|
||||||
|i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal
|
|i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal
|
||||||
control flow
|
control flow
|
||||||
|i_CTRL-R| CTRL-R {0-9a-z"%#*:=}
|
|i_CTRL-R| CTRL-R {register}
|
||||||
insert the contents of a register
|
insert the contents of a register
|
||||||
|i_CTRL-R_CTRL-R| CTRL-R CTRL-R {0-9a-z"%#*:=}
|
|i_CTRL-R_CTRL-R| CTRL-R CTRL-R {register}
|
||||||
insert the contents of a register literally
|
insert the contents of a register literally
|
||||||
|i_CTRL-R_CTRL-O| CTRL-R CTRL-O {0-9a-z"%#*:=}
|
|i_CTRL-R_CTRL-O| CTRL-R CTRL-O {register}
|
||||||
insert the contents of a register literally
|
insert the contents of a register literally
|
||||||
and don't auto-indent
|
and don't auto-indent
|
||||||
|i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=}
|
|i_CTRL-R_CTRL-P| CTRL-R CTRL-P {register}
|
||||||
insert the contents of a register literally
|
insert the contents of a register literally
|
||||||
and fix indent.
|
and fix indent.
|
||||||
CTRL-S (used for terminal control flow)
|
CTRL-S (used for terminal control flow)
|
||||||
|
@ -95,7 +95,7 @@ CTRL-K {char1} [char2]
|
|||||||
CTRL-N Find next keyword (see |i_CTRL-N|).
|
CTRL-N Find next keyword (see |i_CTRL-N|).
|
||||||
CTRL-P Find previous keyword (see |i_CTRL-P|).
|
CTRL-P Find previous keyword (see |i_CTRL-P|).
|
||||||
|
|
||||||
CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R*
|
CTRL-R {register} *i_CTRL-R*
|
||||||
Insert the contents of a register. Between typing CTRL-R and
|
Insert the contents of a register. Between typing CTRL-R and
|
||||||
the second character, '"' will be displayed to indicate that
|
the second character, '"' will be displayed to indicate that
|
||||||
you are expected to enter the name of a register.
|
you are expected to enter the name of a register.
|
||||||
@ -132,7 +132,7 @@ CTRL-R {0-9a-z"%#*+:.-=} *i_CTRL-R*
|
|||||||
sequence will be broken.
|
sequence will be broken.
|
||||||
See |registers| about registers.
|
See |registers| about registers.
|
||||||
|
|
||||||
CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R*
|
CTRL-R CTRL-R {register} *i_CTRL-R_CTRL-R*
|
||||||
Insert the contents of a register. Works like using a single
|
Insert the contents of a register. Works like using a single
|
||||||
CTRL-R, but the text is inserted literally, not as if typed.
|
CTRL-R, but the text is inserted literally, not as if typed.
|
||||||
This differs when the register contains characters like <BS>.
|
This differs when the register contains characters like <BS>.
|
||||||
@ -144,7 +144,7 @@ CTRL-R CTRL-R {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-R*
|
|||||||
The '.' register (last inserted text) is still inserted as
|
The '.' register (last inserted text) is still inserted as
|
||||||
typed.
|
typed.
|
||||||
|
|
||||||
CTRL-R CTRL-O {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-O*
|
CTRL-R CTRL-O {register} *i_CTRL-R_CTRL-O*
|
||||||
Insert the contents of a register literally and don't
|
Insert the contents of a register literally and don't
|
||||||
auto-indent. Does the same as pasting with the mouse
|
auto-indent. Does the same as pasting with the mouse
|
||||||
|<MiddleMouse>|. When the register is linewise this will
|
|<MiddleMouse>|. When the register is linewise this will
|
||||||
@ -153,7 +153,7 @@ CTRL-R CTRL-O {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-O*
|
|||||||
The '.' register (last inserted text) is still inserted as
|
The '.' register (last inserted text) is still inserted as
|
||||||
typed.
|
typed.
|
||||||
|
|
||||||
CTRL-R CTRL-P {0-9a-z"%#*+/:.-=} *i_CTRL-R_CTRL-P*
|
CTRL-R CTRL-P {register} *i_CTRL-R_CTRL-P*
|
||||||
Insert the contents of a register literally and fix the
|
Insert the contents of a register literally and fix the
|
||||||
indent, like |[<MiddleMouse>|.
|
indent, like |[<MiddleMouse>|.
|
||||||
Does not replace characters!
|
Does not replace characters!
|
||||||
|
@ -6504,8 +6504,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'undolevels' 'ul' number (default 1000)
|
'undolevels' 'ul' number (default 1000)
|
||||||
global or local to buffer |global-local|
|
global or local to buffer |global-local|
|
||||||
Maximum number of changes that can be undone. Since undo information
|
Maximum number of changes that can be undone. Since undo information
|
||||||
is kept in memory, higher numbers will cause more memory to be used
|
is kept in memory, higher numbers will cause more memory to be used.
|
||||||
(nevertheless, a single change can use an unlimited amount of memory).
|
Nevertheless, a single change can already use a large amount of memory.
|
||||||
Set to 0 for Vi compatibility: One level of undo and "u" undoes
|
Set to 0 for Vi compatibility: One level of undo and "u" undoes
|
||||||
itself: >
|
itself: >
|
||||||
set ul=0
|
set ul=0
|
||||||
|
@ -292,7 +292,7 @@ moving around:
|
|||||||
|i_CTRL-A| CTRL-A insert previously inserted text
|
|i_CTRL-A| CTRL-A insert previously inserted text
|
||||||
|i_CTRL-@| CTRL-@ insert previously inserted text and stop
|
|i_CTRL-@| CTRL-@ insert previously inserted text and stop
|
||||||
Insert mode
|
Insert mode
|
||||||
|i_CTRL-R| CTRL-R {0-9a-z%#:.-="} insert the contents of a register
|
|i_CTRL-R| CTRL-R {register} insert the contents of a register
|
||||||
|
|
||||||
|i_CTRL-N| CTRL-N insert next match of identifier before the
|
|i_CTRL-N| CTRL-N insert next match of identifier before the
|
||||||
cursor
|
cursor
|
||||||
@ -1014,8 +1014,7 @@ Short explanation of each option: *option-list*
|
|||||||
three digits)
|
three digits)
|
||||||
|c_CTRL-K| CTRL-K {char1} {char2}
|
|c_CTRL-K| CTRL-K {char1} {char2}
|
||||||
enter digraph (See |Q_di|)
|
enter digraph (See |Q_di|)
|
||||||
|c_CTRL-R| CTRL-R {0-9a-z"%#:-=}
|
|c_CTRL-R| CTRL-R {register} insert the contents of a register
|
||||||
insert the contents of a register
|
|
||||||
|
|
||||||
|c_<Left>| <Left>/<Right> cursor left/right
|
|c_<Left>| <Left>/<Right> cursor left/right
|
||||||
|c_<S-Left>| <S-Left>/<S-Right> cursor one word left/right
|
|c_<S-Left>| <S-Left>/<S-Right> cursor one word left/right
|
||||||
|
@ -848,6 +848,7 @@ Insert mode completion: *completion-functions*
|
|||||||
complete_check() check if completion should be aborted
|
complete_check() check if completion should be aborted
|
||||||
complete_info() get current completion information
|
complete_info() get current completion information
|
||||||
pumvisible() check if the popup menu is displayed
|
pumvisible() check if the popup menu is displayed
|
||||||
|
pum_getpos() position and size of popup menu if visible
|
||||||
|
|
||||||
Folding: *folding-functions*
|
Folding: *folding-functions*
|
||||||
foldclosed() check for a closed fold at a specific line
|
foldclosed() check for a closed fold at a specific line
|
||||||
|
@ -11,21 +11,10 @@ if exists("b:did_ftplugin")
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
unlet! b:is_sh
|
||||||
|
unlet! b:is_kornshell
|
||||||
let b:is_bash = 1
|
let b:is_bash = 1
|
||||||
if exists("b:is_sh")
|
|
||||||
unlet b:is_sh
|
|
||||||
endif
|
|
||||||
if exists("b:is_kornshell")
|
|
||||||
unlet b:is_kornshell
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Setting 'filetype' here directly won't work, since we are being invoked
|
runtime! ftplugin/sh.vim ftplugin/sh_*.vim ftplugin/sh/*.vim
|
||||||
" through an autocommand. Do it later, on the BufWinEnter event.
|
|
||||||
augroup bash_filetype
|
|
||||||
au BufWinEnter * call SetBashFt()
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
func SetBashFt()
|
" vim: ts=8
|
||||||
au! bash_filetype
|
|
||||||
set ft=sh
|
|
||||||
endfunc
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: matlab
|
" Language: matlab
|
||||||
" Maintainer: Jake Wasserman <jwasserman at gmail dot com>
|
" Maintainer: Jake Wasserman <jwasserman at gmail dot com>
|
||||||
" Last Changed: 2014 Dec 30
|
" Last Change: 2019 Sep 27
|
||||||
|
|
||||||
" Contributors:
|
" Contributors:
|
||||||
" Charles Campbell
|
" Charles Campbell
|
||||||
@ -24,8 +24,9 @@ endif
|
|||||||
|
|
||||||
setlocal suffixesadd=.m
|
setlocal suffixesadd=.m
|
||||||
setlocal suffixes+=.asv
|
setlocal suffixes+=.asv
|
||||||
|
setlocal commentstring=%\ %s
|
||||||
|
|
||||||
let b:undo_ftplugin = "setlocal suffixesadd< suffixes< "
|
let b:undo_ftplugin = "setlocal suffixesadd< suffixes< commentstring< "
|
||||||
\ . "| unlet! b:match_words"
|
\ . "| unlet! b:match_words"
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
|
18
runtime/indent/bash.vim
Normal file
18
runtime/indent/bash.vim
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
" Vim indent file
|
||||||
|
" Language: bash
|
||||||
|
" Maintainer: Bram
|
||||||
|
" Last Change: 2019 Sep 27
|
||||||
|
|
||||||
|
" Only load this indent file when no other was loaded.
|
||||||
|
if exists("b:did_indent")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" The actual indenting is in sh.vim and controlled by buffer-local variables.
|
||||||
|
unlet! b:is_sh
|
||||||
|
unlet! b:is_kornshell
|
||||||
|
let b:is_bash = 1
|
||||||
|
|
||||||
|
runtime! indent/sh.vim
|
||||||
|
|
||||||
|
" vim: ts=8
|
@ -1,7 +1,7 @@
|
|||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: SystemVerilog
|
" Language: SystemVerilog
|
||||||
" Maintainer: kocha <kocha.lsifrontend@gmail.com>
|
" Maintainer: kocha <kocha.lsifrontend@gmail.com>
|
||||||
" Last Change: 12-Aug-2013.
|
" Last Change: 05-Feb-2017 by Bilal Wasim
|
||||||
|
|
||||||
" Only load this indent file when no other was loaded.
|
" Only load this indent file when no other was loaded.
|
||||||
if exists("b:did_indent")
|
if exists("b:did_indent")
|
||||||
@ -74,7 +74,7 @@ function SystemVerilogIndent()
|
|||||||
|
|
||||||
" Indent after if/else/for/case/always/initial/specify/fork blocks
|
" Indent after if/else/for/case/always/initial/specify/fork blocks
|
||||||
elseif last_line =~ '`\@<!\<\(if\|else\)\>' ||
|
elseif last_line =~ '`\@<!\<\(if\|else\)\>' ||
|
||||||
\ last_line =~ '^\s*\<\(for\|case\%[[zx]]\|do\|foreach\|randcase\)\>' ||
|
\ last_line =~ '^\s*\<\(for\|case\%[[zx]]\|do\|foreach\|forever\|randcase\)\>' ||
|
||||||
\ last_line =~ '^\s*\<\(always\|always_comb\|always_ff\|always_latch\)\>' ||
|
\ last_line =~ '^\s*\<\(always\|always_comb\|always_ff\|always_latch\)\>' ||
|
||||||
\ last_line =~ '^\s*\<\(initial\|specify\|fork\|final\)\>'
|
\ last_line =~ '^\s*\<\(initial\|specify\|fork\|final\)\>'
|
||||||
if last_line !~ '\(;\|\<end\>\)\s*' . sv_comment . '*$' ||
|
if last_line !~ '\(;\|\<end\>\)\s*' . sv_comment . '*$' ||
|
||||||
@ -129,9 +129,9 @@ function SystemVerilogIndent()
|
|||||||
" De-indent for the end of one-line block
|
" De-indent for the end of one-line block
|
||||||
elseif ( last_line !~ '\<begin\>' ||
|
elseif ( last_line !~ '\<begin\>' ||
|
||||||
\ last_line =~ '\(//\|/\*\).*\<begin\>' ) &&
|
\ last_line =~ '\(//\|/\*\).*\<begin\>' ) &&
|
||||||
\ last_line2 =~ '\<\(`\@<!if\|`\@<!else\|for\|always\|initial\|do\|foreach\|final\)\>.*' .
|
\ last_line2 =~ '\<\(`\@<!if\|`\@<!else\|for\|always\|initial\|do\|foreach\|forever\|final\)\>.*' .
|
||||||
\ sv_comment . '*$' &&
|
\ sv_comment . '*$' &&
|
||||||
\ last_line2 !~ '\(//\|/\*\).*\<\(`\@<!if\|`\@<!else\|for\|always\|initial\|do\|foreach\|final\)\>' &&
|
\ last_line2 !~ '\(//\|/\*\).*\<\(`\@<!if\|`\@<!else\|for\|always\|initial\|do\|foreach\|forever\|final\)\>' &&
|
||||||
\ last_line2 !~ sv_openstat . '\s*' . sv_comment . '*$' &&
|
\ last_line2 !~ sv_openstat . '\s*' . sv_comment . '*$' &&
|
||||||
\ ( last_line2 !~ '\<begin\>' ||
|
\ ( last_line2 !~ '\<begin\>' ||
|
||||||
\ last_line2 =~ '\(//\|/\*\).*\<begin\>' )
|
\ last_line2 =~ '\(//\|/\*\).*\<begin\>' )
|
||||||
@ -194,7 +194,7 @@ function SystemVerilogIndent()
|
|||||||
\ last_line !~ '^\s*\<\(property\|checker\|program\)\>' &&
|
\ last_line !~ '^\s*\<\(property\|checker\|program\)\>' &&
|
||||||
\ last_line !~ '^\s*\()*\s*;\|)\+\)\s*' . sv_comment . '*$' &&
|
\ last_line !~ '^\s*\()*\s*;\|)\+\)\s*' . sv_comment . '*$' &&
|
||||||
\ ( last_line =~
|
\ ( last_line =~
|
||||||
\ '\<\(`\@<!if\|`\@<!else\|for\|case\%[[zx]]\|always\|initial\|do\|foreach\|randcase\|final\)\>' ||
|
\ '\<\(`\@<!if\|`\@<!else\|for\|case\%[[zx]]\|always\|initial\|do\|foreach\|forever\|randcase\|final\)\>' ||
|
||||||
\ last_line =~ ')\s*' . sv_comment . '*$' ||
|
\ last_line =~ ')\s*' . sv_comment . '*$' ||
|
||||||
\ last_line =~ sv_openstat . '\s*' . sv_comment . '*$' )
|
\ last_line =~ sv_openstat . '\s*' . sv_comment . '*$' )
|
||||||
let ind = ind - offset
|
let ind = ind - offset
|
||||||
@ -227,4 +227,4 @@ endfunction
|
|||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
" vim:sw=2
|
" vim:sw=2
|
@ -29,7 +29,8 @@ if exists("v:lang") || &langmenu != ""
|
|||||||
let s:lang = v:lang
|
let s:lang = v:lang
|
||||||
endif
|
endif
|
||||||
" A language name must be at least two characters, don't accept "C"
|
" A language name must be at least two characters, don't accept "C"
|
||||||
if strlen(s:lang) > 1
|
" Also skip "en_US" to avoid picking up "en_gb" translations.
|
||||||
|
if strlen(s:lang) > 1 && s:lang !~? '^en_us'
|
||||||
" When the language does not include the charset add 'encoding'
|
" When the language does not include the charset add 'encoding'
|
||||||
if s:lang =~ '^\a\a$\|^\a\a_\a\a$'
|
if s:lang =~ '^\a\a$\|^\a\a_\a\a$'
|
||||||
let s:lang = s:lang . '.' . &enc
|
let s:lang = s:lang . '.' . &enc
|
||||||
|
20
runtime/syntax/bash.vim
Normal file
20
runtime/syntax/bash.vim
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
" Vim syntax file
|
||||||
|
" Language: bash
|
||||||
|
" Maintainer: Bram
|
||||||
|
" Last Change: 2019 Sep 27
|
||||||
|
|
||||||
|
" quit when a syntax file was already loaded
|
||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" The actual syntax is in sh.vim and controlled by buffer-local variables.
|
||||||
|
unlet! b:is_sh
|
||||||
|
unlet! b:is_kornshell
|
||||||
|
let b:is_bash = 1
|
||||||
|
|
||||||
|
runtime! syntax/sh.vim
|
||||||
|
|
||||||
|
let b:current_syntax = 'bash'
|
||||||
|
|
||||||
|
" vim: ts=8
|
@ -32,8 +32,8 @@ syn match zoneDomain contained /[^[:space:]!"#$%&'()*+,\/:;<=>?@[\]\
|
|||||||
|
|
||||||
syn match zoneSpecial contained /^[@*.]\s/
|
syn match zoneSpecial contained /^[@*.]\s/
|
||||||
syn match zoneTTL contained /\s\@<=\d[0-9WwDdHhMmSs]*\(\s\|$\)\@=/ nextgroup=zoneClass,zoneRRType skipwhite
|
syn match zoneTTL contained /\s\@<=\d[0-9WwDdHhMmSs]*\(\s\|$\)\@=/ nextgroup=zoneClass,zoneRRType skipwhite
|
||||||
syn keyword zoneClass contained IN CHAOS nextgroup=zoneRRType,zoneTTL skipwhite
|
syn keyword zoneClass contained IN CHAOS CH HS HESIOD nextgroup=zoneRRType,zoneTTL skipwhite
|
||||||
syn keyword zoneRRType contained A AAAA CNAME DNAME HINFO MX NS PTR SOA SRV TXT SPF nextgroup=zoneRData skipwhite
|
syn keyword zoneRRType contained A AAAA CERT CNAME DNAME DNSKEY DS HINFO LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RP RRSIG SSHFP SOA SPF SRV TLSA TXT nextgroup=zoneRData skipwhite
|
||||||
syn match zoneRData contained /[^;]*/ contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown
|
syn match zoneRData contained /[^;]*/ contains=zoneDomain,zoneIPAddr,zoneIP6Addr,zoneText,zoneNumber,zoneParen,zoneUnknown
|
||||||
|
|
||||||
syn match zoneIPAddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/
|
syn match zoneIPAddr contained /\<[0-9]\{1,3}\(\.[0-9]\{1,3}\)\{,3}\>/
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: hog (Snort.conf + .rules)
|
" Language: hog (Snort.conf + .rules)
|
||||||
" Maintainer: Victor Roemer, <vroemer@badsec.org>.
|
" Maintainer: Victor Roemer, <vroemer@badsec.org>.
|
||||||
" Last Change: 2015 Oct 24 -> Rename syntax items from Snort -> Hog
|
" Last Change: 2019 Sep 22
|
||||||
" 2012 Oct 24 -> Originalish release
|
" 2012 Oct 24 -> Originalish release
|
||||||
|
" 2019 Sep 22 -> included PR 3069
|
||||||
|
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -91,7 +92,7 @@ syn match HogOpRange ":" contained
|
|||||||
|
|
||||||
" Rules
|
" Rules
|
||||||
syn keyword HogRuleAction activate alert drop block dynamic log pass reject sdrop sblock skipwhite nextgroup=HogRuleProto,HogRuleBlock
|
syn keyword HogRuleAction activate alert drop block dynamic log pass reject sdrop sblock skipwhite nextgroup=HogRuleProto,HogRuleBlock
|
||||||
syn keyword HogRuleProto ip tcp udp icmp skipwhite contained nextgroup=HogRuleSrcIP
|
syn keyword HogRuleProto ip tcp tcp-pkt tcp-stream udp icmp http ftp tls smb dns dcerpc ssh smtp imap msn modbus dnp3 enip nfs ikev2 ntp skipwhite contained nextgroup=HogRuleSrcIP
|
||||||
syn match HogRuleSrcIP "\S\+" transparent skipwhite contained contains=HogIPVarList,HogIPAddr,HogVar,HogOpNot nextgroup=HogRuleSrcPort
|
syn match HogRuleSrcIP "\S\+" transparent skipwhite contained contains=HogIPVarList,HogIPAddr,HogVar,HogOpNot nextgroup=HogRuleSrcPort
|
||||||
syn match HogRuleSrcPort "\S\+" transparent skipwhite contained contains=HogPortVarList,HogVar,HogPort,HogOpRange,HogOpNot nextgroup=HogRuleDir
|
syn match HogRuleSrcPort "\S\+" transparent skipwhite contained contains=HogPortVarList,HogVar,HogPort,HogOpRange,HogOpNot nextgroup=HogRuleDir
|
||||||
syn match HogRuleDir "->\|<>" skipwhite contained nextgroup=HogRuleDstIP
|
syn match HogRuleDir "->\|<>" skipwhite contained nextgroup=HogRuleDstIP
|
||||||
@ -100,13 +101,21 @@ syn match HogRuleDstPort "\S\+" transparent skipwhite contained contain
|
|||||||
syn region HogRuleBlock start="(" end=")" transparent skipwhite contained contains=HogRuleOption,HogComment fold
|
syn region HogRuleBlock start="(" end=")" transparent skipwhite contained contains=HogRuleOption,HogComment fold
|
||||||
",HogString,HogComment,HogVar,HogOptNot
|
",HogString,HogComment,HogVar,HogOptNot
|
||||||
"syn region HogRuleOption start="\<gid\|sid\|rev\|depth\|offset\|distance\|within\>" end="\ze;" skipwhite contained contains=HogNumber
|
"syn region HogRuleOption start="\<gid\|sid\|rev\|depth\|offset\|distance\|within\>" end="\ze;" skipwhite contained contains=HogNumber
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP msg gid sid rev classtype priority metadata content nocase rawbytes
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP msg gid sid rev classtype priority metadata target content nocase rawbytes
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP depth offset distance within http_client_body http_cookie http_raw_cookie http_header
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP depth startswith offset distance within http_client_body http_cookie http_raw_cookie http_header
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP http_raw_header http_method http_uri http_raw_uri http_stat_code http_stat_msg
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP http_raw_header http_request_line http_method http_uri http_raw_uri http_protocol http_response_line http_stat_code http_stat_msg
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP fast_pattern uricontent urilen isdataat pcre pkt_data file_data base64_decode base64_data
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP http_user_agent http_accept http_accept_enc http_accept_lang http_connection http_content_type http_content_len
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP byte_test byte_jump byte_extract ftpbounce asn1 cvs dce_iface dce_opnum dce_stub_data
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP http_referer http_start http_header_names http_server_body http_host http_raw_host
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP filename fileext filemagic filestore filemd5 filesha1 filesha256 filesize
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP dns_query tls_cert_subject tls_cert_issuer tls_cert_serial tls_cert_fingerprint
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP tls_sni tls_cert_notbefore tls_cert_notafter tls_cert_expired tls_cert_valid
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP tls.version tls.subject tls.issuerdn tls.fingerprint tls.store ja3_hash ja3_string
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP modbus dnp3_func dnp3_ind dnp3_obj dnp3_data enip_command cip_service
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP app-layer-protocol app-layer-event xbits iprep lua luajit
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP fast_pattern prefilter uricontent urilen isdataat pcre pkt_data file_data base64_decode base64_data
|
||||||
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP byte_test byte_jump byte_extract ftpdata_command ftpbounce asn1 cvs dce_iface dce_opnum dce_stub_data
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP sip_method sip_stat_code sip_header sip_body gtp_type gtp_info gtp_version ssl_version
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP sip_method sip_stat_code sip_header sip_body gtp_type gtp_info gtp_version ssl_version
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP ssl_state fragoffset ttl tos id ipopts fragbits dsize flags flow flowbits seq ack window
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP ssl_state fragoffset ttl tos id ipopts geoip fragbits dsize flags flow flowbits flowint seq ack window
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP itype icode icmp_id icmp_seq rpc ip_proto sameip stream_reassemble stream_size
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP itype icode icmp_id icmp_seq rpc ip_proto sameip stream_reassemble stream_size
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP logto session resp react tag activates activated_by count replace detection_filter
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP logto session resp react tag activates activated_by count replace detection_filter
|
||||||
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP threshold reference sd_pattern file_type file_group
|
syn keyword HogRuleOption skipwhite contained nextgroup=HogRuleSROP threshold reference sd_pattern file_type file_group
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
" Language: Inno Setup File (iss file) and My InnoSetup extension
|
" Language: Inno Setup File (iss file) and My InnoSetup extension
|
||||||
" Maintainer: Jason Mills (jmills@cs.mun.ca)
|
" Maintainer: Jason Mills (jmills@cs.mun.ca)
|
||||||
" Previous Maintainer: Dominique St<53>phan (dominique@mggen.com)
|
" Previous Maintainer: Dominique St<53>phan (dominique@mggen.com)
|
||||||
" Last Change: 2004 Dec 14
|
" Last Change: 2019 Sep 27
|
||||||
"
|
"
|
||||||
" Todo:
|
" Todo:
|
||||||
" - The paramter String: is matched as flag string (because of case ignore).
|
" - The paramter String: is matched as flag string (because of case ignore).
|
||||||
@ -45,13 +45,13 @@ syn match issParam "Components:\|Description:\|GroupDescription:\|Types:\|Extra
|
|||||||
syn match issParam "StatusMsg:\|RunOnceId:\|Tasks:"
|
syn match issParam "StatusMsg:\|RunOnceId:\|Tasks:"
|
||||||
syn match issParam "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:"
|
syn match issParam "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:"
|
||||||
|
|
||||||
syn match issComment "^\s*;.*$"
|
syn match issComment "^\s*;.*$" contains=@Spell
|
||||||
|
|
||||||
" folder constant
|
" folder constant
|
||||||
syn match issFolder "{[^{]*}"
|
syn match issFolder "{[^{]*}" contains=@NoSpell
|
||||||
|
|
||||||
" string
|
" string
|
||||||
syn region issString start=+"+ end=+"+ contains=issFolder
|
syn region issString start=+"+ end=+"+ contains=issFolder,@Spell
|
||||||
|
|
||||||
" [Dirs]
|
" [Dirs]
|
||||||
syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall
|
syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Jargon File
|
" Language: Jargon File
|
||||||
" Maintainer: <rms@poczta.onet.pl>
|
" Maintainer: Dan Church (https://github.com/h3xx)
|
||||||
" Last Change: 2001 May 26
|
" Last Change: 2019 Sep 27
|
||||||
"
|
"
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -11,7 +11,7 @@ endif
|
|||||||
syn match jargonChaptTitle /:[^:]*:/
|
syn match jargonChaptTitle /:[^:]*:/
|
||||||
syn match jargonEmailAddr /[^<@ ^I]*@[^ ^I>]*/
|
syn match jargonEmailAddr /[^<@ ^I]*@[^ ^I>]*/
|
||||||
syn match jargonUrl +\(http\|ftp\)://[^\t )"]*+
|
syn match jargonUrl +\(http\|ftp\)://[^\t )"]*+
|
||||||
syn match jargonMark /{[^}]*}/
|
syn region jargonMark start="{" end="}"
|
||||||
|
|
||||||
" Define the default highlighting.
|
" Define the default highlighting.
|
||||||
" Only when an item doesn't have highlighting yet
|
" Only when an item doesn't have highlighting yet
|
||||||
|
@ -48,7 +48,7 @@ syn match ldSpecSections '\.\%(text\|data\|bss\|symver\)\>'
|
|||||||
|
|
||||||
syn match ldNumber display '\<0[xX]\x\+\>'
|
syn match ldNumber display '\<0[xX]\x\+\>'
|
||||||
syn match ldNumber display '\d\+[KM]\>' contains=ldNumberMult
|
syn match ldNumber display '\d\+[KM]\>' contains=ldNumberMult
|
||||||
syn match ldNumberMult display '[KM]\>'
|
syn match ldNumberMult display '\(\d\+\)\@<=[KM]\>'
|
||||||
syn match ldOctal contained display '\<0\o\+\>'
|
syn match ldOctal contained display '\<0\o\+\>'
|
||||||
\ contains=ldOctalZero
|
\ contains=ldOctalZero
|
||||||
syn match ldOctalZero contained display '\<0'
|
syn match ldOctalZero contained display '\<0'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Reva Forth
|
" Language: Reva Forth
|
||||||
" Version: 2011.2
|
" Version: 2011.2
|
||||||
" Last Change: 2012/02/13
|
" Last Change: 2019 Sep 27
|
||||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||||
" URL: http://ronware.org/reva/
|
" URL: http://ronware.org/reva/
|
||||||
" Filetypes: *.rf *.frt
|
" Filetypes: *.rf *.frt
|
||||||
@ -150,7 +150,7 @@ syn match revaInclude '\<\(include\|needs\)\s\+\S\+'
|
|||||||
" Define the default highlighting.
|
" Define the default highlighting.
|
||||||
if !exists("did_reva_syntax_inits")
|
if !exists("did_reva_syntax_inits")
|
||||||
let did_reva_syntax_inits=1
|
let did_reva_syntax_inits=1
|
||||||
" The default methods for highlighting. Can be overriden later.
|
" The default methods for highlighting. Can be overridden later.
|
||||||
hi def link revaEOF cIf0
|
hi def link revaEOF cIf0
|
||||||
hi def link revaHelpStuff special
|
hi def link revaHelpStuff special
|
||||||
hi def link revaHelpDesc Comment
|
hi def link revaHelpDesc Comment
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Language: SPEC: Build/install scripts for Linux RPM packages
|
" Language: SPEC: Build/install scripts for Linux RPM packages
|
||||||
" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com
|
" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com
|
||||||
" Former Maintainer: Donovan Rebbechi elflord@panix.com (until March 2014)
|
" Former Maintainer: Donovan Rebbechi elflord@panix.com (until March 2014)
|
||||||
" Last Change: 2019 May 07
|
" Last Change: 2019 Sep 27
|
||||||
|
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -71,7 +71,7 @@ syn keyword specMacroNameOther contained buildroot buildsubdir distribution dist
|
|||||||
syn match specMacroNameOther contained '\<\(PATCH\|SOURCE\)\d*\>'
|
syn match specMacroNameOther contained '\<\(PATCH\|SOURCE\)\d*\>'
|
||||||
|
|
||||||
"valid _macro names from /usr/lib/rpm/macros
|
"valid _macro names from /usr/lib/rpm/macros
|
||||||
syn keyword specMacroNameLocal contained _arch _binary_payload _bindir _build _build_alias _build_cpu _builddir _build_os _buildshell _buildsubdir _build_vendor _bzip2bin _datadir _dbpath _dbpath_rebuild _defaultdocdir _docdir _excludedocs _exec_prefix _fixgroup _fixowner _fixperms _ftpport _ftpproxy _gpg_path _gzipbin _host _host_alias _host_cpu _host_os _host_vendor _httpport _httpproxy _includedir _infodir _install_langs _install_script_path _instchangelog _langpatt _lib _libdir _libexecdir _localstatedir _mandir _netsharedpath _oldincludedir _os _pgpbin _pgp_path _prefix _preScriptEnvironment _provides _rpmdir _rpmfilename _sbindir _sharedstatedir _signature _sourcedir _source_payload _specdir _srcrpmdir _sysconfdir _target _target_alias _target_cpu _target_os _target_platform _target_vendor _timecheck _tmppath _topdir _usr _usrsrc _var _vendor
|
syn keyword specMacroNameLocal contained _arch _binary_payload _bindir _build _build_alias _build_cpu _builddir _build_os _buildshell _buildsubdir _build_vendor _bzip2bin _datadir _dbpath _dbpath_rebuild _defaultdocdir _docdir _excludedocs _exec_prefix _fixgroup _fixowner _fixperms _ftpport _ftpproxy _gpg_path _gzipbin _host _host_alias _host_cpu _host_os _host_vendor _httpport _httpproxy _includedir _infodir _install_langs _install_script_path _instchangelog _langpatt _lib _libdir _libexecdir _localstatedir _mandir _netsharedpath _oldincludedir _os _pgpbin _pgp_path _prefix _preScriptEnvironment _provides _rpmdir _rpmfilename _sbindir _sharedstatedir _signature _sourcedir _source_payload _specdir _srcrpmdir _sysconfdir _target _target_alias _target_cpu _target_os _target_platform _target_vendor _timecheck _tmppath _topdir _usr _unitdir _usrsrc _var _vendor
|
||||||
|
|
||||||
|
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user