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