1- import type { Node , NodeWithoutIndent } from "./nodes .ts" ;
1+ import type { Node , NodeWithoutIndent } from "./node/node .ts" ;
22import type { BaseLine } from "./base.ts" ;
33
44export type Line =
@@ -7,8 +7,10 @@ export type Line =
77 section : {
88 /** section number */
99 number : number ;
10+
1011 /** section開始行なら`true` */
1112 start : boolean ;
13+
1214 /** section終了行なら`true` */
1315 end : boolean ;
1416 } ;
@@ -38,33 +40,46 @@ export type Line =
3840
3941/** the type which represents a line in a block */
4042export interface Block {
41- /** the number of indents */ indent : number ;
42- /** is the start line of this block */ start : boolean ;
43- /** is the end line of this block */ end : boolean ;
43+ /** the number of indents */
44+ indent : number ;
45+
46+ /** is the start line of this block */
47+ start : boolean ;
48+
49+ /** is the end line of this block */
50+ end : boolean ;
4451}
4552
4653/** the type which represents a line in a code block */
4754export interface CodeBlock extends Block {
48- /** the language of the code block */ lang : string ;
49- /** the file name of the code block */ filename ?: string ;
55+ /** the language of the code block */
56+ lang : string ;
57+
58+ /** the file name of the code block */
59+ filename ?: string ;
5060}
5161
5262/** the type which represents a line in a table block */
5363export interface TableBlock extends Block {
54- /** the title of the table block */ title : string ;
55- /** cells included in the present line */ cells : string [ ] ;
64+ /** the title of the table block */
65+ title : string ;
66+
67+ /** cells included in the present line */
68+ cells : string [ ] ;
5669}
5770
5871/** Helpfeel記法 */
5972export interface Helpfeel {
6073 prefix : "?" ;
74+
6175 /** Helpfeel本文 */
6276 entry : string ;
6377}
6478
6579/** Command Line記法 */
6680export interface Cli {
6781 prefix : "$" | "%" ;
82+
6883 /** Command Line本文 */
6984 command : string ;
7085}
0 commit comments