1 /* start of AUTO matically checked vim: set ts=4 : */
90 /* Test for 'cindent' do/while mixed with if/else: */
105 /* Test for 'cindent' with two ) on a continuation line */
107 if (asdfasdf;asldkfj asdlkfj as;ldkfj sal;d
108 aal;sdkjf ( ;asldfkja;sldfk
109 al;sdjfka ;slkdf ) sa;ldkjfsa dlk;)
116 // foo() these three lines should remain in column 0
120 /* Test for continuation and unterminated lines: */
133 testje for indent with empty line
143 (not a joke || testing
147 (not a joke || testing
183 if (alskdfj ;alsdkfjal;skdjf (;sadlkfsa ;dlkf j;alksdfj ;alskdjf
185 awith cino=(0 ;lf this one goes to below the paren with ==
186 ;laksjfd ;lsakdjf ;alskdf asd)
258 test) { /* this line doesn't work right */
267 if (!(vim_strchr(p_cpo, CPO_BUFOPTGLOB) != NULL && entering) &&
268 (bp_to->b_p_initialized ||
269 (!entering && vim_strchr(p_cpo, CPO_BUFOPT) != NULL)))
278 /* Special Comments : This function has the added complexity (compared */
279 /* : to addtolist) of having to check for a detail */
280 /* : texture and add that to the list first. */
282 char *(array[100]) = {
342 /* where does this go? */
354 c; /* Hey, NOW it indents?! */
362 /* Hey, what am I doing here? Is this coz of the ","? */
411 hello with ":set comments= cino=c5"
415 hello with ":set comments= cino="
436 int foo() {return 1;}
454 if (clipboard.state == SELECT_DONE
455 && ((row == clipboard.start.lnum
456 && col >= clipboard.start.col)
457 || row > clipboard.start.lnum))
479 int fooRet = foo(pBar1, false /*fKB*/,
480 true /*fPTB*/, 3 /*nT*/, false /*fDF*/);
504 int x; // no extra indent because of the ;
509 char *tab[] = {"aaa",
514 char *a[] = {"aaa", "bbb",
518 char *tab[] = {"aaa",
519 "xx", /* xx */}; /* asdf */
575 int b ) : BaseClass(a)
603 Constructor::Constructor(int a,
613 Constructor::Constructor(int a,
619 Constructor::Constructor(int a,
620 int b ) /*x*/ : /*x*/ BaseClass(a),
629 int Test() { return FALSE; }
630 int Test1() { return TRUE; }
632 CAbc(int a, int b ) :
647 public: // <-- this was incoreectly indented before!!
653 class CAbc : public BaseClass1,
684 void asdf() /* ind_maxparen may cause trouble here */
716 a = cond ? foo() : asdf
743 Foo::Foo (int one, int two)
748 Constructor::Constructor(int a,
779 (void) MyFancyFuasdfadsfnction(
802 /* insert " about life, the universe, and the rest" after "serious" */
808 * Testing for comments, without 'cin' set
818 the end of the comment, try inserting a line below */
828 var = this + that + vec[0] * vec[0]
850 main ( int first_par, /*
884 cmd; /* this should go under the } */
893 } else { /* Start (two words) end */
906 } else { /* Start (two words) end */
909 n(); /* should be under the if () */
952 } while ( a ); /* add text under this line */
978 ** A different comment
1121 int Test() { return FALSE; }
1141 averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(
1148 /* those are ugly, but consequent */
1150 func()->asd(asdasdf,
1151 averylongfunctionname(
1153 dec)->averylongfunctionname(
1164 averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(