8000 Merge pull request #14 from oblitum/fix-raw-string-literals · ChaiScript/vim-cpp@4e2e860 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e2e860

Browse files
committed
Merge pull request vim-jp#14 from oblitum/fix-raw-string-literals
Fix support of raw string literals
2 parents 09f3b23 + 9f0a6c3 commit 4e2e860

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntax/cpp.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ if !exists("cpp_no_cpp11")
3939
syn keyword cppExceptions noexcept
4040
syn keyword cppStorageClass constexpr decltype
4141
syn keyword cppConstant nullptr
42-
" A raw-string looks like R"d(...)d" where d is a (possibly empty) sequence of
43-
" A-Z a-z 0-9 _ { } [ ] # < > % : ; . ? * + - / ^ & | ~ ! = , " '
44-
syn region cppRawString matchgroup=cppRawDelim start=+R"\z([[:alnum:]_{}[\]#<>%:;.?*+\-/\^&|~!=,"']*\)(+ end=+)\z1"+ contains=@Spell
42+
" A C++11 raw-string literal. It tries to follow 2.14.5 and 2.14.5.2 of the
43+
" standard.
44+
syn region cppRawString matchgroup=cppRawDelim start=+\%(u8\=\|[LU]\)\=R"\z(\%([ ()\\\d9-\d12]\@![\d0-\d127]\)\{,16}\)(+ end=+)\z1"+ contains=@Spell
4545
endif
4646

4747
" The minimum and maximum operators in GNU C++

0 commit comments

Comments
 (0)
0