diff options
author | Johan Klokkhammer Helsing <johanhelsing@gmail.com> | 2015-11-03 22:04:15 +0100 |
---|---|---|
committer | Johan Klokkhammer Helsing <johanhelsing@gmail.com> | 2015-12-13 13:06:48 +0100 |
commit | 3b472e55b327dc1c4fc034c665398e70d0f7dc77 (patch) | |
tree | b6915ed824c3dffc6c16cf9e6bb79bff6ff47fca /test/functional/legacy/003_cindent_spec.lua | |
parent | b0796227166698561506b686dbdf795675e09de1 (diff) | |
download | rneovim-3b472e55b327dc1c4fc034c665398e70d0f7dc77.tar.gz rneovim-3b472e55b327dc1c4fc034c665398e70d0f7dc77.tar.bz2 rneovim-3b472e55b327dc1c4fc034c665398e70d0f7dc77.zip |
vim-patch:7.4.803
Problem: C indent does not support C11 raw strings. (Mark Lodato)
Solution: Do not change indent inside the raw string.
https://github.com/vim/vim/commit/f7bb86dc593913d055e4cce16cec43f6271adda3
Diffstat (limited to 'test/functional/legacy/003_cindent_spec.lua')
-rw-r--r-- | test/functional/legacy/003_cindent_spec.lua | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/test/functional/legacy/003_cindent_spec.lua b/test/functional/legacy/003_cindent_spec.lua index 50909e625d..19694550f4 100644 --- a/test/functional/legacy/003_cindent_spec.lua +++ b/test/functional/legacy/003_cindent_spec.lua @@ -901,6 +901,23 @@ describe('cindent', function() { 111111111111111111; } + void getstring() { + /* Raw strings */ + const char* s = R"( + test { + # comment + field: 123 + } + )"; + } + void getstring() { + const char* s = R"foo( + test { + # comment + field: 123 + } + )foo"; + } /* end of AUTO */ ]=]) @@ -1790,6 +1807,23 @@ describe('cindent', function() { 111111111111111111; } + void getstring() { + /* Raw strings */ + const char* s = R"( + test { + # comment + field: 123 + } + )"; + } + void getstring() { + const char* s = R"foo( + test { + # comment + field: 123 + } + )foo"; + } /* end of AUTO */ ]=]) @@ -4214,7 +4248,7 @@ describe('cindent', function() ]=]) end) - it('54 is working', function() + it('javascript indent / vim-patch 7.4.670', function() insert_([=[ JSSTART |