When writing a raw string literal, the autoindent still tries to indent labels (whenever you type a colon) or directives (whenever you type # at the start of a line). For example, suppose you intend to type the following:
const char* s = R"(
test {
bar {
# comment
field: 123
}
}
)";
Vim will move the #comment and field: to the leftmost column because it thinks they are preprocessor directives and labels, respectively.
When writing a raw string literal, the autoindent still tries to indent labels (whenever you type a colon) or directives (whenever you type # at the start of a line). For example, suppose you intend to type the following:
Vim will move the
#comment
andfield:
to the leftmost column because it thinks they are preprocessor directives and labels, respectively.