Bug: cindent does not work with C++11 raw string literals

29 views
Skip to first unread message

Mark Lodato

unread,
Mar 1, 2015, 4:37:27 PM3/1/15
to vim...@vim.org
Recent version of Vim support syntax highlighting for C++11 raw string
literals works great, but indentation still does not work. Instead,
cindent tries to indent the string like it's code.

For example, try to type the following (tested on 7.4.589):

const char* s = R"(
test {
# comment
field: 123
}
)";

As you type, vim will annoyingly move `# comment` and `field:` to the
first column because it thinks they are a preprocessor macro and a
label, respectively.

Any chance this could be fixed?

Thanks!
Mark
Reply all
Reply to author
Forward
0 new messages