Problem: C indent wrong when * immediately follows comment. (John Bowler)
Solution: Do not see "/*" after "*" as a comment start. (closes #2321)
{
/*
* A comment may contain / * or / /, it may also start or end
- * with / * /. Ignore a / * after / /.
+ * with / * /. Ignore a / * after / / and after *.
*/
if (pos.col == 0)
continue;
}
else if ( linep[pos.col - 1] == '/'
&& linep[pos.col] == '*'
+ && (pos.col == 1 || linep[pos.col - 2] != '*')
&& (int)pos.col < comment_col)
{
count++;
4
/* end of define */
+STARTTEST
+:set cin cino&
+/a = second
+ox\e
+ENDTEST
+
+{
+ a = second/*bug*/*line;
+}
+
STARTTEST
:g/^STARTTEST/.,/^ENDTEST/d
:1;/start of AUTO/,$wq! test.out
4
/* end of define */
+
+{
+ a = second/*bug*/*line;
+ x
+}
+
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1291,
/**/
1290,
/**/