How are we going to deal with C++14 features in syntax highlighting?

119 views
Skip to first unread message

Brian Bi

unread,
Sep 12, 2014, 8:20:35 PM9/12/14
to vim...@googlegroups.com
cpp.vim has a lot of if statements like this:

if !exists("cpp_no_cpp11") ... endif

for C++11-only features. C++14 adds binary literals and digit separators and I'm interested in adding these to cpp.vim. In analogy, should I just wrap them in

if !exists("cpp_no_cpp14") ... endif

blocks?

Bram Moolenaar

unread,
Sep 13, 2014, 10:00:08 AM9/13/14
to Brian Bi, vim...@googlegroups.com
I think that's a good idea. Some people will be using an older compiler
that doesn't support the C++14 features and they want to see that
reflected in the syntax highlighting.

--
hundred-and-one symptoms of being an internet addict:
127. You bring your laptop and cellular phone to church.

/// 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 ///

mattn

unread,
Sep 14, 2014, 1:53:04 PM9/14/14
to vim...@googlegroups.com, bbi...@gmail.com
OK, I'll do it in later.
Thanks
Reply all
Reply to author
Forward
0 new messages