Mercurial > vim
comparison src/testdir/test3.in @ 10516:09bb1836cdb5 v8.0.0148
commit https://github.com/vim/vim/commit/c6aa475a27e3ed1645446b014c32ebf68d005d49
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 7 15:39:43 2017 +0100
patch 8.0.0148: wrong indent in C preprocessor with line continuation
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 07 Jan 2017 15:45:03 +0100 |
parents | 0bbbe99c8432 |
children | 814126a34c9d |
comparison
equal
deleted
inserted
replaced
10515:9eca508ac61f | 10516:09bb1836cdb5 |
---|---|
2321 h, | 2321 h, |
2322 i; | 2322 i; |
2323 JSEND | 2323 JSEND |
2324 | 2324 |
2325 STARTTEST | 2325 STARTTEST |
2326 :set cin cino& | |
2327 /start of define | |
2328 =/end of define | |
2329 ENDTEST | |
2330 | |
2331 /* start of define */ | |
2332 { | |
2333 } | |
2334 #define AAA \ | |
2335 BBB\ | |
2336 CCC | |
2337 | |
2338 #define CNT \ | |
2339 1 + \ | |
2340 2 + \ | |
2341 4 | |
2342 /* end of define */ | |
2343 | |
2344 STARTTEST | |
2326 :g/^STARTTEST/.,/^ENDTEST/d | 2345 :g/^STARTTEST/.,/^ENDTEST/d |
2327 :1;/start of AUTO/,$wq! test.out | 2346 :1;/start of AUTO/,$wq! test.out |
2328 ENDTEST | 2347 ENDTEST |