vim-jp/vim-cpp

Autoindenting still happens in raw string literals

MarkLodato opened this issue · 2 comments

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.

This repository doesn't contains indent/cpp.vim. So please report it to vim-dev.

Ah, thanks. Reported.