diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-05-10 11:39:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-05-10 11:39:19 +0200 |
commit | 4ae06c1fa5973496deb74ef06dd116843bf0b647 (patch) | |
tree | ee4daefee496c8a6e79bbcd8d88b00e9aaaa5d6a /src/testdir | |
parent | 3c9c99cb2c7839b96101ba0f41e93f8991adf531 (diff) | |
download | vim-4ae06c1fa5973496deb74ef06dd116843bf0b647.zip |
updated for version 7.3.178
Problem: C-indent doesn't handle code right after { correctly.
Solution: Fix detecting unterminated line. (Lech Lorens)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test3.in | 16 | ||||
-rw-r--r-- | src/testdir/test3.ok | 12 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/testdir/test3.in b/src/testdir/test3.in index 62402fb98..8576e275a 100644 --- a/src/testdir/test3.in +++ b/src/testdir/test3.in @@ -1344,6 +1344,22 @@ func(int a } STARTTEST +:set cino& +2kdd=][ +ENDTEST + +void func(void) +{ + if(x==y) + if(y==z) + foo=1; + else { bar=1; + baz=2; + } + printf("Foo!\n"); +} + +STARTTEST :g/^STARTTEST/.,/^ENDTEST/d :1;/start of AUTO/,$wq! test.out ENDTEST diff --git a/src/testdir/test3.ok b/src/testdir/test3.ok index 4e2a64811..3764453a7 100644 --- a/src/testdir/test3.ok +++ b/src/testdir/test3.ok @@ -1204,3 +1204,15 @@ func(int a { } + +void func(void) +{ + if(x==y) + if(y==z) + foo=1; + else { bar=1; + baz=2; + } + printf("Foo!\n"); +} + |