mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-22 05:55:13 +00:00
fix opts of internal parsing
This commit is contained in:
parent
f1d942be62
commit
b3efd45f2a
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@
|
|||
|
||||
function applyParser(input, startRule, opts) {
|
||||
const parseFunc = peg$parse;
|
||||
const parseOpts = { ...(opts || {}) };
|
||||
const parseOpts = {
|
||||
fnNameList: options.fnNameList,
|
||||
nestLimit: (nestLimit - depth),
|
||||
...(opts || {}),
|
||||
};
|
||||
if (startRule) parseOpts.startRule = startRule;
|
||||
return parseFunc(input, parseOpts);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue