We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83daed1 commit 8c8357cCopy full SHA for 8c8357c
.scripts/gen-option/parse.ts
@@ -110,7 +110,8 @@ function parseBlock(name: string, body: string): Option | undefined {
110
const reTags = /(?:[ \t]+\*[^*\s]+\*)+[ \t]*$/.source;
111
const reShortNames = /(?:[ \t]+'\w+')*/.source;
112
const reType = /[ \t]+(?<type>\w+)/.source;
113
- const reDefaults = /[ \t]+(?<defaults>\(.*?(?:\n\t{3,}[ \t].*?)*?\))/.source;
+ const reDefaults =
114
+ /[ \t]+(?<defaults>\(.*?(?:\n(?:\t{3,}| {24,})[ \t].*?)*?\))/.source;
115
const reDefinition =
116
`^'${name}'${reShortNames}(?:${reType}(?:${reDefaults})?)?(?:${reTags})?$`;
117
const m1 = body.match(new RegExp(reDefinition, "dm"));
0 commit comments