Skip to content

Commit 8fdfad6

Browse files
committed
📝 Add text for code-block in comments
1 parent a962607 commit 8fdfad6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/gen-function/parse.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Counter, regexIndexOf } from "./utils.ts";
77
* It extract a function definition block like below and return
88
* a list of `Definition`.
99
*
10-
* ```
10+
* ```text
1111
* cursor({lnum}, {col} [, {off}]) *cursor()*
1212
* cursor({list})
1313
* Positions the cursor at the column ...
@@ -38,7 +38,7 @@ export function parse(content: string): Definition[] {
3838
*
3939
* A function definition block is constrcuted with following parts
4040
*
41-
* ```
41+
* ```text
4242
* cursor({lnum}, {col} [, {off}]) <- variant
4343
* cursor({list}) <- variant
4444
* Positions the cursor at the column ... <- document
@@ -84,7 +84,7 @@ function parseBlock(fn: string, body: string): Definition {
8484
*
8585
* A variant is constructed with following parts
8686
*
87-
* ```
87+
* ```text
8888
* fn args
8989
* ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
9090
* cursor({lnum}, {col} [, {off}])

scripts/gen-option/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { regexIndexOf } from "./utils.ts";
77
* It extract a option definition block like below and return
88
* a list of `Definition`.
99
*
10-
* ```
10+
* ```text
1111
* *'aleph'* *'al'* *aleph* *Aleph*
1212
* 'aleph' 'al' number (default 224)
1313
* global

0 commit comments

Comments
 (0)