vim-jp / vim-cpp

c or cpp syntax files
147 stars 44 forks source link

Autoindenting still happens in raw string literals #28

Closed MarkLodato closed 9 years ago

MarkLodato commented 10 years ago

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.

mattn commented 9 years ago

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

MarkLodato commented 9 years ago

Ah, thanks. Reported.