[BACK]Return to indent_off_on.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/tests/usr.bin/indent/indent_off_on.c between version 1.1 and 1.2

version 1.1, 2021/10/19 20:20:25 version 1.2, 2021/10/19 20:41:42
Line 116  int   decl   ;
Line 116  int   decl   ;
 /* INDENT               ON              */  /* INDENT               ON              */
 int decl;  int decl;
 #indent end  #indent end
   
   
   #indent input
   /*INDENT OFF*/
   /* No formatting takes place here. */
   int format( void ) {{{
   /*INDENT ON*/
   }}}
   #indent end
   
   #indent run
   /*INDENT OFF*/
   /* No formatting takes place here. */
   int format( void ) {{{
   /* $ XXX: Why is the INDENT ON comment indented? */
   /* $ XXX: Why does the INDENT ON comment get spaces, but not the OFF comment? */
                           /* INDENT ON */
   }
   }
   }
   #indent end
   
   
   #indent input
   /* INDENT OFF */
   void indent_off ( void ) ;
   /*  INDENT */
   void indent_on ( void ) ;
   /* INDENT OFF */
   void indent_off ( void ) ;
           /* INDENT ON */
   void indent_on ( void ) ;       /* the comment may be indented */
   /* INDENT               OFF                                     */
   void indent_off ( void ) ;
   /* INDENTATION ON */
   void indent_still_off ( void ) ;        /* due to the word 'INDENTATION' */
   /* INDENT ON * */
   void indent_still_off ( void ) ;        /* due to the extra '*' at the end */
   /* INDENT ON */
   void indent_on ( void ) ;
   /* INDENT: OFF */
   void indent_still_on ( void ) ; /* due to the colon in the middle */
   /* INDENT OFF */                /* extra comment */
   void indent_still_on ( void ) ; /* due to the extra comment to the right */
   #indent end
   
   #indent run
   /* INDENT OFF */
   void indent_off ( void ) ;
   /* $ XXX: The double space from the below comment got merged to a single */
   /* $ XXX: space even though the comment might be regarded to be still in */
   /* $ XXX: the OFF section. */
   /* INDENT */
   void
   indent_on(void);
   /* INDENT OFF */
   void indent_off ( void ) ;
   /* $ XXX: The below comment got moved from column 9 to column 1. */
   /* INDENT ON */
   void
   indent_on(void);                /* the comment may be indented */
   /* INDENT               OFF                                     */
   void indent_off ( void ) ;
   /* INDENTATION ON */
   void indent_still_off ( void ) ;        /* due to the word 'INDENTATION' */
   /* INDENT ON * */
   void indent_still_off ( void ) ;        /* due to the extra '*' at the end */
   /* INDENT ON */
   void
   indent_on(void);
   /* INDENT: OFF */
   void
   indent_still_on(void);          /* due to the colon in the middle */
   /* $ The extra comment got moved to the left since there is no code in */
   /* $ that line. */
   /* INDENT OFF *//* extra comment */
   void
   indent_still_on(void);          /* due to the extra comment to the right */
   #indent end

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>