vim-patch:8.0.0148 #7344

Problem:    When a C preprocessor statement has two line continuations the
            following line does not have the right indent. (Ken Takata)
Solution:   Add the indent of the previous continuation line. (Hirohito
            Higashi)

c6aa475a27
This commit is contained in:
ckelsel
2017-09-30 21:43:03 +08:00
committed by Justin M. Keyes
parent 9ad7529f70
commit c0e45d97b0
3 changed files with 83 additions and 35 deletions

View File

@@ -4718,4 +4718,38 @@ describe('cindent', function()
JSEND
]=])
end)
it('line continuations in macros / vim-patch 8.0.0148', function()
insert_([=[
/* start of define */
{
}
#define AAA \
BBB\
CCC
#define CNT \
1 + \
2 + \
4
/* end of define */]=])
feed_command('set cino&')
feed_command('/start of define')
feed('=/end of define<cr>')
expect([=[
/* start of define */
{
}
#define AAA \
BBB\
CCC
#define CNT \
1 + \
2 + \
4
/* end of define */]=])
end)
end)