Update syntax/cpp.vim

85 views
Skip to first unread message

mattn

unread,
May 13, 2014, 9:43:58 PM5/13/14
to vim...@googlegroups.com
Hi list.

syntax/cpp.vim is updated. cpp raw string literals was broken.
And older code affect to 7.4.253 . I get some report that vim crashed with cpp syntax.

diff -r 32de51778c27 runtime/syntax/cpp.vim
--- a/runtime/syntax/cpp.vim Tue May 13 20:23:24 2014 +0200
+++ b/runtime/syntax/cpp.vim Wed May 14 10:39:47 2014 +0900
@@ -2,7 +2,7 @@
" Language: C++
" Current Maintainer: vim-jp (https://github.com/vim-jp/cpp-vim)
" Previous Maintainer: Ken Shan <ccs...@post.harvard.edu>
-" Last Change: 2012 Jun 14
+" Last Change: 2014 May 13

" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -39,6 +39,9 @@
syn keyword cppExceptions noexcept
syn keyword cppStorageClass constexpr decltype
syn keyword cppConstant nullptr
+ syn region cppRawString matchgroup=cppRawDelimiter
+ \ start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+
+ \ end=+)\z1"+ contains=@Spell
endif

" The minimum and maximum operators in GNU C++
@@ -62,6 +65,8 @@
HiLink cppStructure Structure
HiLink cppBoolean Boolean
HiLink cppConstant Constant
+ HiLink cppRawDelimiter Delimiter
+ HiLink cppRawString String
delcommand HiLink
endif


https://gist.github.com/a9c3deac5f8e60bb0091

Thanks.
- Yasuhiro Matsumoto

Bram Moolenaar

unread,
May 14, 2014, 2:07:57 PM5/14/14
to mattn, vim...@googlegroups.com

Yasuhiro Matsumoto wrote:

> syntax/cpp.vim is updated. cpp raw string literals was broken.
> And older code affect to 7.4.253 . I get some report that vim crashed
> with cpp syntax.

Thanks, I'll include it.


--
hundred-and-one symptoms of being an internet addict:
165. You have a web page burned into your glasses

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Bram Moolenaar

unread,
May 14, 2014, 2:10:56 PM5/14/14
to Bram Moolenaar, mattn, vim...@googlegroups.com

I wrote:

> Yasuhiro Matsumoto wrote:
>
> > syntax/cpp.vim is updated. cpp raw string literals was broken.
> > And older code affect to 7.4.253 . I get some report that vim crashed
> > with cpp syntax.
>
> Thanks, I'll include it.

Except that that line continuation has to be removed.

--
hundred-and-one symptoms of being an internet addict:
166. You have been on your computer soo long that you didn't realize
you had grandchildren.

mattn

unread,
May 15, 2014, 12:18:28 AM5/15/14
to vim...@googlegroups.com, Bram Moolenaar, mattn
Reply all
Reply to author
Forward
0 new messages