comparison src/misc1.c @ 2807:11e62fb6f815 v7.3.179

updated for version 7.3.179 Problem: C-indent doesn't handle colon in string correctly. Solution: Skip the string. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Tue, 10 May 2011 11:56:30 +0200
parents ac639ca9f58f
children ed47d18b39c6
comparison
equal deleted inserted replaced
2806:27b142f1f434 2807:11e62fb6f815
5799 s = cin_skipcomment(line); 5799 s = cin_skipcomment(line);
5800 if (*s == NUL) 5800 if (*s == NUL)
5801 continue; 5801 continue;
5802 } 5802 }
5803 5803
5804 if (s[0] == ':') 5804 if (s[0] == '"')
5805 s = skip_string(s) + 1;
5806 else if (s[0] == ':')
5805 { 5807 {
5806 if (s[1] == ':') 5808 if (s[1] == ':')
5807 { 5809 {
5808 /* skip double colon. It can't be a constructor 5810 /* skip double colon. It can't be a constructor
5809 * initialization any more */ 5811 * initialization any more */