commit | aede6ceba3030db559f503268be9cad75a08ca39 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue May 10 11:56:30 2011 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue May 10 11:56:30 2011 +0200 |
tree | 766abe7cd9b694aae5d17005e03f421c23c81360 | |
parent | 4ae06c1fa5973496deb74ef06dd116843bf0b647 [diff] [blame] |
updated for version 7.3.179 Problem: C-indent doesn't handle colon in string correctly. Solution: Skip the string. (Lech Lorens)
diff --git a/src/misc1.c b/src/misc1.c index 3a94c3c..a5c4607 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -5801,7 +5801,9 @@ continue; } - if (s[0] == ':') + if (s[0] == '"') + s = skip_string(s) + 1; + else if (s[0] == ':') { if (s[1] == ':') {