Home | History | Annotate | Line # | Download | only in indent
opt_sc.c revision 1.7
      1  1.7  rillig /* $NetBSD: opt_sc.c,v 1.7 2022/04/24 09:04:12 rillig Exp $ */
      2  1.1  rillig 
      3  1.3  rillig /*
      4  1.3  rillig  * Tests for the options '-sc' and '-nsc'.
      5  1.3  rillig  *
      6  1.3  rillig  * The option '-sc' starts continuation lines of block comments with " * ".
      7  1.3  rillig  *
      8  1.3  rillig  * The option '-nsc' does not use asterisks for aligning the continuation
      9  1.3  rillig  * lines of comments.
     10  1.3  rillig  */
     11  1.3  rillig 
     12  1.7  rillig //indent input
     13  1.1  rillig /* comment
     14  1.1  rillig without
     15  1.1  rillig asterisks
     16  1.1  rillig */
     17  1.7  rillig //indent end
     18  1.3  rillig 
     19  1.7  rillig //indent run -sc
     20  1.3  rillig /*
     21  1.3  rillig  * comment without asterisks
     22  1.3  rillig  */
     23  1.7  rillig //indent end
     24  1.3  rillig 
     25  1.7  rillig //indent run -nsc
     26  1.3  rillig /*
     27  1.3  rillig comment without asterisks
     28  1.3  rillig  */
     29  1.7  rillig //indent end
     30  1.3  rillig 
     31  1.1  rillig 
     32  1.7  rillig //indent input
     33  1.1  rillig /*
     34  1.1  rillig ** This comment style is used by Lua.
     35  1.1  rillig */
     36  1.7  rillig //indent end
     37  1.1  rillig 
     38  1.3  rillig /* XXX: The additional '*' is debatable. */
     39  1.7  rillig //indent run -sc
     40  1.3  rillig /*
     41  1.3  rillig  * * This comment style is used by Lua.
     42  1.1  rillig  */
     43  1.7  rillig //indent end
     44  1.1  rillig 
     45  1.3  rillig /* This comment, as rewritten by indent, is not actually used by Lua. */
     46  1.7  rillig //indent run -nsc
     47  1.1  rillig /*
     48  1.3  rillig  * This comment style is used by Lua.
     49  1.1  rillig  */
     50  1.7  rillig //indent end
     51  1.1  rillig 
     52  1.5  rillig 
     53  1.1  rillig /*
     54  1.3  rillig  * Comments that start with '*' or '-' do not get modified at all.
     55  1.3  rillig  */
     56  1.7  rillig //indent input
     57  1.3  rillig /**
     58  1.3  rillig  * Javadoc, adopted by several other programming languages.
     59  1.1  rillig  */
     60  1.7  rillig //indent end
     61  1.1  rillig 
     62  1.7  rillig //indent run-equals-input -sc
     63  1.1  rillig 
     64  1.7  rillig //indent run-equals-input -nsc
     65