mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:bd18da9
Update runtime files. https://code.google.com/p/vim/source/detail?r=bd18da914be9d43a70713f6af02770a0d3280159
This commit is contained in:
parent
c3028e4353
commit
5f00d22853
@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
||||||
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" URL: https://github.com/shawncplus/phpcomplete.vim
|
" URL: https://github.com/shawncplus/phpcomplete.vim
|
||||||
" Last Change: 2014 Aug 10
|
" Last Change: 2014 Oct 02
|
||||||
"
|
"
|
||||||
" OPTIONS:
|
" OPTIONS:
|
||||||
"
|
"
|
||||||
@ -2344,6 +2344,9 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
|||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
if exists('no_namespace_candidate')
|
||||||
|
unlet no_namespace_candidate
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
let i += 1
|
let i += 1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: Miscrosoft Visual C
|
" Compiler: Microsoft Visual C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2005 Nov 30
|
" Last Change: 2014 Sep 20
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*autocmd.txt* For Vim version 7.4. Last change: 2014 Aug 22
|
*autocmd.txt* For Vim version 7.4. Last change: 2014 Sep 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -520,6 +520,11 @@ CursorHold When the user doesn't press a key for the time
|
|||||||
operator.
|
operator.
|
||||||
While recording the CursorHold event is not
|
While recording the CursorHold event is not
|
||||||
triggered. |q|
|
triggered. |q|
|
||||||
|
*<CursorHold>*
|
||||||
|
Internally the autocommand is triggered by the
|
||||||
|
<CursorHold> key. In an expression mapping
|
||||||
|
|getchar()| may see this character.
|
||||||
|
|
||||||
Note: Interactive commands cannot be used for
|
Note: Interactive commands cannot be used for
|
||||||
this event. There is no hit-enter prompt,
|
this event. There is no hit-enter prompt,
|
||||||
the screen is updated directly (when needed).
|
the screen is updated directly (when needed).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*eval.txt* For Vim version 7.4. Last change: 2014 Sep 09
|
*eval.txt* For Vim version 7.4. Last change: 2014 Sep 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1751,7 +1751,7 @@ confirm( {msg} [, {choices} [, {default} [, {type}]]])
|
|||||||
copy( {expr}) any make a shallow copy of {expr}
|
copy( {expr}) any make a shallow copy of {expr}
|
||||||
cos( {expr}) Float cosine of {expr}
|
cos( {expr}) Float cosine of {expr}
|
||||||
cosh( {expr}) Float hyperbolic cosine of {expr}
|
cosh( {expr}) Float hyperbolic cosine of {expr}
|
||||||
count( {list}, {expr} [, {start} [, {ic}]])
|
count( {list}, {expr} [, {ic} [, {start}]])
|
||||||
Number count how many {expr} are in {list}
|
Number count how many {expr} are in {list}
|
||||||
cscope_connection( [{num} , {dbpath} [, {prepend}]])
|
cscope_connection( [{num} , {dbpath} [, {prepend}]])
|
||||||
Number checks existence of cscope connection
|
Number checks existence of cscope connection
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 7.4. Last change: 2014 Jun 02
|
*map.txt* For Vim version 7.4. Last change: 2014 Sep 30
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1283,6 +1283,8 @@ completion can be enabled:
|
|||||||
-complete=custom,{func} custom completion, defined via {func}
|
-complete=custom,{func} custom completion, defined via {func}
|
||||||
-complete=customlist,{func} custom completion, defined via {func}
|
-complete=customlist,{func} custom completion, defined via {func}
|
||||||
|
|
||||||
|
Note: That some completion methods might expand environment variables.
|
||||||
|
|
||||||
|
|
||||||
Custom completion *:command-completion-custom*
|
Custom completion *:command-completion-custom*
|
||||||
*:command-completion-customlist*
|
*:command-completion-customlist*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*options.txt* For Vim version 7.4. Last change: 2014 Sep 09
|
*options.txt* For Vim version 7.4. Last change: 2014 Sep 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -3937,6 +3937,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
When Vim was compiled with HAVE_X11 defined, the original icon will be
|
When Vim was compiled with HAVE_X11 defined, the original icon will be
|
||||||
restored if possible |X11|. See |X11-icon| for changing the icon on
|
restored if possible |X11|. See |X11-icon| for changing the icon on
|
||||||
X11.
|
X11.
|
||||||
|
For MS-Windows the icon can be changed, see |windows-icon|.
|
||||||
|
|
||||||
*'iconstring'*
|
*'iconstring'*
|
||||||
'iconstring' string (default "")
|
'iconstring' string (default "")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*os_win32.txt* For Vim version 7.4. Last change: 2014 Aug 29
|
*os_win32.txt* For Vim version 7.4. Last change: 2014 Sep 25
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by George Reilly
|
VIM REFERENCE MANUAL by George Reilly
|
||||||
@ -364,4 +364,10 @@ Q. I use Vim under Win32s and NT. In NT, I can define the console to default to
|
|||||||
A. Edit SYSTEM.INI and add 'ScreenLines=50' to the [NonWindowsApp] section. DOS
|
A. Edit SYSTEM.INI and add 'ScreenLines=50' to the [NonWindowsApp] section. DOS
|
||||||
prompts and external DOS commands will now run in a 50-line window.
|
prompts and external DOS commands will now run in a 50-line window.
|
||||||
|
|
||||||
|
*windows-icon*
|
||||||
|
Q. I don't like the Vim icon, can I change it?
|
||||||
|
A. Yes, place your favorite icon in bitmaps/vim.ico in a directory of
|
||||||
|
'runtimepath'. For example ~/vimfiles/bitmaps/vim.ico.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:fo=tcq2:ts=8:ft=help:norl:
|
vim:tw=78:fo=tcq2:ts=8:ft=help:norl:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*syntax.txt* For Vim version 7.4. Last change: 2014 Sep 09
|
*syntax.txt* For Vim version 7.4. Last change: 2014 Sep 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -3799,7 +3799,7 @@ The 'foldnestmax' option limits the nesting of syntax folds.
|
|||||||
|
|
||||||
|
|
||||||
*:syn-contains* *E405* *E406* *E407* *E408* *E409*
|
*:syn-contains* *E405* *E406* *E407* *E408* *E409*
|
||||||
contains={groupname},..
|
contains={group-name},..
|
||||||
|
|
||||||
The "contains" argument is followed by a list of syntax group names. These
|
The "contains" argument is followed by a list of syntax group names. These
|
||||||
groups will be allowed to begin inside the item (they may extend past the
|
groups will be allowed to begin inside the item (they may extend past the
|
||||||
@ -3852,13 +3852,13 @@ region where contained items do match. Note that this may also limit the
|
|||||||
area that is highlighted
|
area that is highlighted
|
||||||
|
|
||||||
|
|
||||||
containedin={groupname}... *:syn-containedin*
|
containedin={group-name}... *:syn-containedin*
|
||||||
|
|
||||||
The "containedin" argument is followed by a list of syntax group names. The
|
The "containedin" argument is followed by a list of syntax group names. The
|
||||||
item will be allowed to begin inside these groups. This works as if the
|
item will be allowed to begin inside these groups. This works as if the
|
||||||
containing item has a "contains=" argument that includes this item.
|
containing item has a "contains=" argument that includes this item.
|
||||||
|
|
||||||
The {groupname}... can be used just like for "contains", as explained above.
|
The {group-name}... can be used just like for "contains", as explained above.
|
||||||
|
|
||||||
This is useful when adding a syntax item afterwards. An item can be told to
|
This is useful when adding a syntax item afterwards. An item can be told to
|
||||||
be included inside an already existing item, without changing the definition
|
be included inside an already existing item, without changing the definition
|
||||||
@ -3874,7 +3874,7 @@ keywords never contain another item, thus adding them to "containedin" won't
|
|||||||
work.
|
work.
|
||||||
|
|
||||||
|
|
||||||
nextgroup={groupname},.. *:syn-nextgroup*
|
nextgroup={group-name},.. *:syn-nextgroup*
|
||||||
|
|
||||||
The "nextgroup" argument is followed by a list of syntax group names,
|
The "nextgroup" argument is followed by a list of syntax group names,
|
||||||
separated by commas (just like with "contains", so you can also use patterns).
|
separated by commas (just like with "contains", so you can also use patterns).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*todo.txt* For Vim version 7.4. Last change: 2014 Sep 19
|
*todo.txt* For Vim version 7.4. Last change: 2014 Oct 02
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -58,6 +58,15 @@ Patch to make getregtype() return the right size for non-linux systems.
|
|||||||
(Yasuhiro Matsumoto, 2014 Jul 8)
|
(Yasuhiro Matsumoto, 2014 Jul 8)
|
||||||
Breaks test_eval. Inefficient, can we only compute y_width when needed?
|
Breaks test_eval. Inefficient, can we only compute y_width when needed?
|
||||||
|
|
||||||
|
Patch to fix 'linebreak' when applying an operator. And fix the test not
|
||||||
|
actually testing. (Christian Brabandt, 2014 Sep 23)
|
||||||
|
|
||||||
|
patch to fix issue 26. (Christian)
|
||||||
|
|
||||||
|
Test 11 and 100 do not work properly on Windows.
|
||||||
|
Patch by Ken Takata (2014 Sep 25)
|
||||||
|
Alternative patch Oct 1.
|
||||||
|
|
||||||
Problem that a previous silent ":throw" causes a following try/catch not to
|
Problem that a previous silent ":throw" causes a following try/catch not to
|
||||||
work. (ZyX, 2013 Sep 28)
|
work. (ZyX, 2013 Sep 28)
|
||||||
|
|
||||||
@ -65,26 +74,15 @@ Patch to avoid problems with encoding conversion with diff.vim.
|
|||||||
(Yasuhiro Matsumoto, 2014 Sep 1.
|
(Yasuhiro Matsumoto, 2014 Sep 1.
|
||||||
Depends on current language, language of file can be different.
|
Depends on current language, language of file can be different.
|
||||||
|
|
||||||
Patch for C/C++ syntax string handling. (Brian Bi, 2014 Sep 13)
|
Add books from Steve Oualline to Vim website. (2014 Sep 25)
|
||||||
|
|
||||||
When using a visual selection of multiple words and doing CTRL-W_] it jumps to
|
|
||||||
the tag matching the word under the cursor, not the selected text.
|
|
||||||
(Patrick hemmer)
|
|
||||||
Patch by Christian, 2014 Aug 8.
|
|
||||||
|
|
||||||
Completion for :buf does not use 'wildignorecase'. (Akshay H, 2014 May 31)
|
|
||||||
|
|
||||||
'backupcopy' should be global-local, so that some files can be written in a
|
|
||||||
different way. Patch by Christian, 2014 Sep 17.
|
|
||||||
|
|
||||||
Patch to handle list with some items locked. (ZyX, 2014 Aug 17)
|
|
||||||
Prefer the second solution.
|
|
||||||
|
|
||||||
Issue 252. Patch by Christian, 2014 Aug 26.
|
|
||||||
|
|
||||||
":cd C:\Windows\System32\drivers\etc*" does not work, even though the
|
":cd C:\Windows\System32\drivers\etc*" does not work, even though the
|
||||||
directory exists. (Sergio Gallelli, 2013 Dec 29)
|
directory exists. (Sergio Gallelli, 2013 Dec 29)
|
||||||
|
|
||||||
|
Patch to have the fold and sign column and at the last line of the buffer.
|
||||||
|
(Marco Hinz, 2014 Sep 25)
|
||||||
|
Alternate suggestion: let all columns continue, also number column.
|
||||||
|
|
||||||
Patch by Marcin Szamotulski to add count to :close (2014 Aug 10, update Aug
|
Patch by Marcin Szamotulski to add count to :close (2014 Aug 10, update Aug
|
||||||
14, Aug 30)
|
14, Aug 30)
|
||||||
Make ":1close" close the first window.
|
Make ":1close" close the first window.
|
||||||
@ -92,29 +90,53 @@ Patch by Marcin Szamotulski to add count to :close (2014 Aug 10, update Aug
|
|||||||
Make ":-1close" close the previous window.
|
Make ":-1close" close the previous window.
|
||||||
Doesn't look right, asked for updates.
|
Doesn't look right, asked for updates.
|
||||||
|
|
||||||
Patch to add a special key name for K_CURSORHOLD. (Hirohito Higashi, 2014 Aug
|
Patch to handle multi-byte printer name on MS-Windows. (Yasuhiro Matsumoto,
|
||||||
10)
|
2014 Sept 28)
|
||||||
|
|
||||||
|
Two patches by Christian, 2014 Sep 29:
|
||||||
|
- Combination of precedes listchar and 'showbreak' doesn't work well.
|
||||||
|
- Moving cursor is off when 'nu' and 'sbr' are set.
|
||||||
|
|
||||||
The entries added by matchaddpos() are returned by getmatches() but can't be
|
The entries added by matchaddpos() are returned by getmatches() but can't be
|
||||||
set with setmatches(). (lcd47, 2014 Jun 29)
|
set with setmatches(). (lcd47, 2014 Jun 29)
|
||||||
|
|
||||||
|
Patch to fix window title for a command window on MS-Windows. (Yasuhiro
|
||||||
|
Matsumoto, 2014 Sep 28)
|
||||||
|
|
||||||
|
Patch to fix that 0x80 in abbreviation isn't handled correctly.
|
||||||
|
(Christian Brabandt, 2014 Oct 1)
|
||||||
|
|
||||||
|
Patch to fix issue 57, on the issue.
|
||||||
|
|
||||||
|
Patch for issue 101, maintainer unreachable.
|
||||||
|
|
||||||
|
Remove restriction in NSIS installer that the end of the path must be "Vim".
|
||||||
|
(Tim Lebedkov, 2014 Sep 24)
|
||||||
|
|
||||||
Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
|
Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
|
||||||
|
|
||||||
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
|
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
|
||||||
|
|
||||||
|
'foldexpr' applies to help. (Paul Marshall, 2014 Sep 24)
|
||||||
|
|
||||||
Value returned by virtcol() changes depending on how lines wrap. This is
|
Value returned by virtcol() changes depending on how lines wrap. This is
|
||||||
inconsistent with the documentation.
|
inconsistent with the documentation.
|
||||||
|
|
||||||
|
On MS-Windows running tests with Mercurial has problems when the input files
|
||||||
|
are changed. (Ken Takata, Taro Muraoka, 2014 Sep 25)
|
||||||
|
|
||||||
MS-Windows: Crash opening very long file name starting with "\\".
|
MS-Windows: Crash opening very long file name starting with "\\".
|
||||||
(Christian Brock, 2012 Jun 29)
|
(Christian Brock, 2012 Jun 29)
|
||||||
|
|
||||||
ml_updatechunk() is slow when retrying for another encoding. (John Little,
|
ml_updatechunk() is slow when retrying for another encoding. (John Little,
|
||||||
2014 Sep 11)
|
2014 Sep 11)
|
||||||
|
|
||||||
Syntax highlighting slow (hangs) in SASS file. (Niek Bosch, 2013 Aug 21)
|
Make comments in the test Makefile silent. (Kartik Agaram, 2014 Sep 24)
|
||||||
|
|
||||||
Patch to allow for a different icon on MS-Windows. (Yasuhiro Matsumoto, 2014
|
When in 'comments' "n:x" follows after three-part comment directly it repeats
|
||||||
Sep 7).
|
any one-character from the previous line. (Kartik Agaram, 2014 Sep 19)
|
||||||
|
|
||||||
|
Syntax highlighting slow (hangs) in SASS file. (Niek Bosch, 2013 Aug 21)
|
||||||
|
|
||||||
Adding "~" to 'cdpath' doesn't work for completion? (Davido, 2013 Aug 19)
|
Adding "~" to 'cdpath' doesn't work for completion? (Davido, 2013 Aug 19)
|
||||||
|
|
||||||
@ -165,6 +187,8 @@ from?
|
|||||||
Problem with upwards search on Windows (works OK on Linux). (Brett Stahlman,
|
Problem with upwards search on Windows (works OK on Linux). (Brett Stahlman,
|
||||||
2014 Jun 8)
|
2014 Jun 8)
|
||||||
|
|
||||||
|
Patch to load TCL dynamically. (Ken Takata, 2014 Sep 20)
|
||||||
|
|
||||||
Include a plugin manager with Vim? Neobundle seems to be the best currently.
|
Include a plugin manager with Vim? Neobundle seems to be the best currently.
|
||||||
Long message about this from ZyX, 2014 Mar 23. And following replies.
|
Long message about this from ZyX, 2014 Mar 23. And following replies.
|
||||||
Also see http://vim-wiki.mawercer.de/wiki/topic/vim%20plugin%20managment.html
|
Also see http://vim-wiki.mawercer.de/wiki/topic/vim%20plugin%20managment.html
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*windows.txt* For Vim version 7.4. Last change: 2014 Mar 25
|
*windows.txt* For Vim version 7.4. Last change: 2014 Sep 23
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -726,18 +726,21 @@ the buffer. The result is that all buffers will use the 'encoding' encoding
|
|||||||
|
|
||||||
CTRL-W ] *CTRL-W_]* *CTRL-W_CTRL-]*
|
CTRL-W ] *CTRL-W_]* *CTRL-W_CTRL-]*
|
||||||
CTRL-W CTRL-] Split current window in two. Use identifier under cursor as a
|
CTRL-W CTRL-] Split current window in two. Use identifier under cursor as a
|
||||||
tag and jump to it in the new upper window. Make new window N
|
tag and jump to it in the new upper window.
|
||||||
high.
|
In Visual mode uses the Visually selected text as a tag.
|
||||||
|
Make new window N high.
|
||||||
|
|
||||||
*CTRL-W_g]*
|
*CTRL-W_g]*
|
||||||
CTRL-W g ] Split current window in two. Use identifier under cursor as a
|
CTRL-W g ] Split current window in two. Use identifier under cursor as a
|
||||||
tag and perform ":tselect" on it in the new upper window.
|
tag and perform ":tselect" on it in the new upper window.
|
||||||
|
In Visual mode uses the Visually selected text as a tag.
|
||||||
Make new window N high.
|
Make new window N high.
|
||||||
|
|
||||||
*CTRL-W_g_CTRL-]*
|
*CTRL-W_g_CTRL-]*
|
||||||
CTRL-W g CTRL-] Split current window in two. Use identifier under cursor as a
|
CTRL-W g CTRL-] Split current window in two. Use identifier under cursor as a
|
||||||
tag and perform ":tjump" on it in the new upper window. Make
|
tag and perform ":tjump" on it in the new upper window.
|
||||||
new window N high.
|
In Visual mode uses the Visually selected text as a tag.
|
||||||
|
Make new window N high.
|
||||||
|
|
||||||
CTRL-W f *CTRL-W_f* *CTRL-W_CTRL-F*
|
CTRL-W f *CTRL-W_f* *CTRL-W_CTRL-F*
|
||||||
CTRL-W CTRL-F Split current window in two. Edit file name under cursor.
|
CTRL-W CTRL-F Split current window in two. Edit file name under cursor.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2014 May 26
|
" Last Change: 2014 Sep 23
|
||||||
|
|
||||||
" Quit when a (custom) syntax file was already loaded
|
" Quit when a (custom) syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -35,28 +35,37 @@ syn match cSpecial display contained "\\\(x\x\+\|\o\{1,3}\|.\|$\)"
|
|||||||
if !exists("c_no_utf")
|
if !exists("c_no_utf")
|
||||||
syn match cSpecial display contained "\\\(u\x\{4}\|U\x\{8}\)"
|
syn match cSpecial display contained "\\\(u\x\{4}\|U\x\{8}\)"
|
||||||
endif
|
endif
|
||||||
if exists("c_no_cformat")
|
|
||||||
syn region cString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,@Spell extend
|
if !exists("c_no_cformat")
|
||||||
" cCppString: same as cString, but ends at end of line
|
" Highlight % items in strings.
|
||||||
if !exists("cpp_no_cpp11") " ISO C++11
|
|
||||||
syn region cCppString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
|
||||||
else
|
|
||||||
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
|
||||||
endif
|
|
||||||
syn region cCppOut2 contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=cSpaceError,cCppSkip
|
|
||||||
syn region cCppSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip
|
|
||||||
else
|
|
||||||
if !exists("c_no_c99") " ISO C99
|
if !exists("c_no_c99") " ISO C99
|
||||||
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlLjzt]\|ll\|hh\)\=\([aAbdiuoxXDOUfFeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlLjzt]\|ll\|hh\)\=\([aAbdiuoxXDOUfFeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
||||||
else
|
else
|
||||||
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlL]\|ll\)\=\([bdiuoxXDOUfeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlL]\|ll\)\=\([bdiuoxXDOUfeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
||||||
endif
|
endif
|
||||||
syn match cFormat display "%%" contained
|
syn match cFormat display "%%" contained
|
||||||
|
endif
|
||||||
|
|
||||||
|
" cCppString: same as cString, but ends at end of line
|
||||||
|
if s:ft ==# "cpp" && !exists("cpp_no_cpp11")
|
||||||
|
" ISO C++11
|
||||||
|
syn region cString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||||
|
syn region cCppString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||||
|
elseif s:ft ==# "c" && !exists("c_no_c11")
|
||||||
|
" ISO C99
|
||||||
|
syn region cString start=+\%(L\|U\|u8\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||||
|
syn region cCppString start=+\%(L\|U\|u8\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||||
|
else
|
||||||
|
" older C or C++
|
||||||
syn region cString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
syn region cString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||||
" cCppString: same as cString, but ends at end of line
|
|
||||||
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
syn region cCppOut2 contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=cSpaceError,cCppSkip
|
||||||
|
syn region cCppSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip
|
||||||
|
|
||||||
|
syn cluster cStringGroup contains=cCppString,cCppOut2,cCppSkip
|
||||||
|
|
||||||
syn match cCharacter "L\='[^\\]'"
|
syn match cCharacter "L\='[^\\]'"
|
||||||
syn match cCharacter "L'[^']*'" contains=cSpecial
|
syn match cCharacter "L'[^']*'" contains=cSpecial
|
||||||
if exists("c_gnu")
|
if exists("c_gnu")
|
||||||
@ -70,12 +79,9 @@ syn match cSpecialCharacter display "L\='\\\o\{1,3}'"
|
|||||||
syn match cSpecialCharacter display "'\\x\x\{1,2}'"
|
syn match cSpecialCharacter display "'\\x\x\{1,2}'"
|
||||||
syn match cSpecialCharacter display "L'\\x\x\+'"
|
syn match cSpecialCharacter display "L'\\x\x\+'"
|
||||||
|
|
||||||
if !exists("c_no_c11") " ISO C11
|
if (s:ft ==# "c" && !exists("c_no_c11")) || (s:ft ==# "cpp" && !exists("cpp_no_cpp11"))
|
||||||
if exists("c_no_cformat")
|
" ISO C11 or ISO C++ 11
|
||||||
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,@Spell extend
|
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||||
else
|
|
||||||
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
|
||||||
endif
|
|
||||||
syn match cCharacter "[Uu]'[^\\]'"
|
syn match cCharacter "[Uu]'[^\\]'"
|
||||||
syn match cCharacter "[Uu]'[^']*'" contains=cSpecial
|
syn match cCharacter "[Uu]'[^']*'" contains=cSpecial
|
||||||
if exists("c_gnu")
|
if exists("c_gnu")
|
||||||
@ -102,24 +108,24 @@ endif
|
|||||||
" This should be before cErrInParen to avoid problems with #define ({ xxx })
|
" This should be before cErrInParen to avoid problems with #define ({ xxx })
|
||||||
if exists("c_curly_error")
|
if exists("c_curly_error")
|
||||||
syn match cCurlyError "}"
|
syn match cCurlyError "}"
|
||||||
syn region cBlock start="{" end="}" contains=ALLBUT,cBadBlock,cCurlyError,@cParenGroup,cErrInParen,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell fold
|
syn region cBlock start="{" end="}" contains=ALLBUT,cBadBlock,cCurlyError,@cParenGroup,cErrInParen,cCppParen,cErrInBracket,cCppBracket,@cStringGroup,@Spell fold
|
||||||
else
|
else
|
||||||
syn region cBlock start="{" end="}" transparent fold
|
syn region cBlock start="{" end="}" transparent fold
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"catch errors caused by wrong parenthesis and brackets
|
" Catch errors caused by wrong parenthesis and brackets.
|
||||||
" also accept <% for {, %> for }, <: for [ and :> for ] (C99)
|
" Also accept <% for {, %> for }, <: for [ and :> for ] (C99)
|
||||||
" But avoid matching <::.
|
" But avoid matching <::.
|
||||||
syn cluster cParenGroup contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserLabel,cBitField,cOctalZero,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom
|
syn cluster cParenGroup contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserLabel,cBitField,cOctalZero,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom
|
||||||
if exists("c_no_curly_error")
|
if exists("c_no_curly_error")
|
||||||
if s:ft ==# 'cpp' && !exists("cpp_no_cpp11")
|
if s:ft ==# 'cpp' && !exists("cpp_no_cpp11")
|
||||||
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell
|
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,@cStringGroup,@Spell
|
||||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
||||||
syn match cParenError display ")"
|
syn match cParenError display ")"
|
||||||
syn match cErrInParen display contained "^^<%\|^%>"
|
syn match cErrInParen display contained "^^<%\|^%>"
|
||||||
else
|
else
|
||||||
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,cCppString,@Spell
|
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,@cStringGroup,@Spell
|
||||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
||||||
syn match cParenError display ")"
|
syn match cParenError display ")"
|
||||||
@ -127,13 +133,13 @@ if exists("c_no_curly_error")
|
|||||||
endif
|
endif
|
||||||
elseif exists("c_no_bracket_error")
|
elseif exists("c_no_bracket_error")
|
||||||
if s:ft ==# 'cpp' && !exists("cpp_no_cpp11")
|
if s:ft ==# 'cpp' && !exists("cpp_no_cpp11")
|
||||||
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell
|
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,@cStringGroup,@Spell
|
||||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
||||||
syn match cParenError display ")"
|
syn match cParenError display ")"
|
||||||
syn match cErrInParen display contained "<%\|%>"
|
syn match cErrInParen display contained "<%\|%>"
|
||||||
else
|
else
|
||||||
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,cCppString,@Spell
|
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,@cStringGroup,@Spell
|
||||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
|
||||||
syn match cParenError display ")"
|
syn match cParenError display ")"
|
||||||
@ -141,19 +147,19 @@ elseif exists("c_no_bracket_error")
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
if s:ft ==# 'cpp' && !exists("cpp_no_cpp11")
|
if s:ft ==# 'cpp' && !exists("cpp_no_cpp11")
|
||||||
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell
|
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,@cStringGroup,@Spell
|
||||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell
|
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell
|
||||||
syn match cParenError display "[\])]"
|
syn match cParenError display "[\])]"
|
||||||
syn match cErrInParen display contained "<%\|%>"
|
syn match cErrInParen display contained "<%\|%>"
|
||||||
syn region cBracket transparent start='\[\|<::\@!' end=']\|:>' contains=ALLBUT,@cParenGroup,cErrInParen,cCppParen,cCppBracket,cCppString,@Spell
|
syn region cBracket transparent start='\[\|<::\@!' end=']\|:>' contains=ALLBUT,@cParenGroup,cErrInParen,cCppParen,cCppBracket,@cStringGroup,@Spell
|
||||||
else
|
else
|
||||||
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell
|
syn region cParen transparent start='(' end=')' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,@cStringGroup,@Spell
|
||||||
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
" cCppParen: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell
|
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell
|
||||||
syn match cParenError display "[\])]"
|
syn match cParenError display "[\])]"
|
||||||
syn match cErrInParen display contained "[\]{}]\|<%\|%>"
|
syn match cErrInParen display contained "[\]{}]\|<%\|%>"
|
||||||
syn region cBracket transparent start='\[\|<::\@!' end=']\|:>' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cErrInParen,cCppParen,cCppBracket,cCppString,@Spell
|
syn region cBracket transparent start='\[\|<::\@!' end=']\|:>' end='}'me=s-1 contains=ALLBUT,cBlock,@cParenGroup,cErrInParen,cCppParen,cCppBracket,@cStringGroup,@Spell
|
||||||
endif
|
endif
|
||||||
" cCppBracket: same as cParen but ends at end-of-line; used in cDefine
|
" cCppBracket: same as cParen but ends at end-of-line; used in cDefine
|
||||||
syn region cCppBracket transparent start='\[\|<::\@!' skip='\\$' excludenl end=']\|:>' end='$' contained contains=ALLBUT,@cParenGroup,cErrInParen,cParen,cBracket,cString,@Spell
|
syn region cCppBracket transparent start='\[\|<::\@!' skip='\\$' excludenl end=']\|:>' end='$' contained contains=ALLBUT,@cParenGroup,cErrInParen,cParen,cBracket,cString,@Spell
|
||||||
@ -376,7 +382,7 @@ syn region cPreProc start="^\s*\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>
|
|||||||
" Highlight User Labels
|
" Highlight User Labels
|
||||||
syn cluster cMultiGroup contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cCppParen,cCppBracket,cCppString
|
syn cluster cMultiGroup contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cCppParen,cCppBracket,cCppString
|
||||||
if s:ft ==# 'c' || exists("cpp_no_cpp11")
|
if s:ft ==# 'c' || exists("cpp_no_cpp11")
|
||||||
syn region cMulti transparent start='?' skip='::' end=':' contains=ALLBUT,@cMultiGroup,@Spell
|
syn region cMulti transparent start='?' skip='::' end=':' contains=ALLBUT,@cMultiGroup,@Spell,@cStringGroup
|
||||||
endif
|
endif
|
||||||
" Avoid matching foo::bar() in C++ by requiring that the next char is not ':'
|
" Avoid matching foo::bar() in C++ by requiring that the next char is not ':'
|
||||||
syn cluster cLabelGroup contains=cUserLabel
|
syn cluster cLabelGroup contains=cUserLabel
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
" Language: Valgrind Memory Debugger Output
|
" Language: Valgrind Memory Debugger Output
|
||||||
" Maintainer: Roger Luethi <rl@hellgate.ch>
|
" Maintainer: Roger Luethi <rl@hellgate.ch>
|
||||||
" Program URL: http://devel-home.kde.org/~sewardj/
|
" Program URL: http://devel-home.kde.org/~sewardj/
|
||||||
" Last Change: 2012 Apr 30
|
" Last Change: 2014 Oct 02
|
||||||
"
|
"
|
||||||
" Notes: mostly based on strace.vim and xml.vim
|
" Notes: mostly based on strace.vim and xml.vim
|
||||||
|
"
|
||||||
|
" Contributors: Christoph Gysin <christoph.gysin@gmail.com>
|
||||||
|
|
||||||
" 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")
|
||||||
@ -65,7 +67,7 @@ syn match valgrindAt "at\s\@=" contained
|
|||||||
syn match valgrindAddr "\(\W\)\@<=0x\x\+" contained
|
syn match valgrindAddr "\(\W\)\@<=0x\x\+" contained
|
||||||
syn match valgrindFunc "\(: \)\@<=\w\+" contained
|
syn match valgrindFunc "\(: \)\@<=\w\+" contained
|
||||||
syn match valgrindBin "\((\(with\|\)in \)\@<=\S\+\()\)\@=" contained
|
syn match valgrindBin "\((\(with\|\)in \)\@<=\S\+\()\)\@=" contained
|
||||||
syn match valgrindSrc "\((\)\@<=.*:\d\+\()\)\@=" contained
|
syn match valgrindSrc "\((\)\@<=[^)]*:\d\+\()\)\@=" contained
|
||||||
|
|
||||||
" Define the default highlighting
|
" Define the default highlighting
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user