diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 03:38:06 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 04:09:24 -0400 |
| commit | fe57a8a4e410e19f05a4137709632ee375b1c2aa (patch) | |
| tree | 4cc06cc0d009d4cf78d611ba9b09f7e0da90d03d /src/nvim/testdir | |
| parent | 012cd35bfbe2c175a31a2fba14cf1bdee6f06e8c (diff) | |
| download | rneovim-fe57a8a4e410e19f05a4137709632ee375b1c2aa.tar.gz rneovim-fe57a8a4e410e19f05a4137709632ee375b1c2aa.tar.bz2 rneovim-fe57a8a4e410e19f05a4137709632ee375b1c2aa.zip | |
vim-patch:8.0.0999: indenting raw C++ strings is wrong
Problem: Indenting raw C++ strings is wrong.
Solution: Add special handling of raw strings. (Christian Brabandt)
https://github.com/vim/vim/commit/dde81312b031211752d1fcb8539d79f90f324a2e
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cindent.vim | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_cindent.vim b/src/nvim/testdir/test_cindent.vim index 444c4c4109..d352e8feff 100644 --- a/src/nvim/testdir/test_cindent.vim +++ b/src/nvim/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 |