opt_sc.c revision 1.5
1/* $NetBSD: opt_sc.c,v 1.5 2021/11/20 11:13:18 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/* 55 * Comments that start with '*' or '-' do not get modified at all. 56 */ 57#indent input 58/** 59 * Javadoc, adopted by several other programming languages. 60 */ 61#indent end 62 63#indent run-equals-input -sc 64 65#indent run-equals-input -nsc 66