diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-26 17:49:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-26 17:49:01 +0200 |
commit | dde81312b031211752d1fcb8539d79f90f324a2e (patch) | |
tree | bb5a3ebc22593448ad0409a5a4c5c7e2fcd7f5eb /src/testdir | |
parent | a4f99f5a8b827162a26ca4e4d59f4f224503398a (diff) |
patch 8.0.0999: indenting raw C++ strings is wrongv8.0.0999
Problem: Indenting raw C++ strings is wrong.
Solution: Add special handling of raw strings. (Christian Brabandt)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_cindent.vim | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim index 444c4c4109..d352e8feff 100644 --- a/src/testdir/test_cindent.vim +++ b/src/testdir/test_cindent.vim @@ -68,9 +68,18 @@ func Test_cino_extern_c() call assert_equal(pair[2], getline(len(lines) + 1), 'Failed for "' . string(lines) . '"') endfor - - bwipe! endfunc +func! Test_cindent_rawstring() + new + setl cindent + call feedkeys("i" . + \ "int main() {\<CR>" . + \ "R\"(\<CR>" . + \ ")\";\<CR>" . + \ "statement;\<Esc>", "x") + call assert_equal("\tstatement;", getline(line('.'))) + bw! +endfunction " vim: shiftwidth=2 sts=2 expandtab |