Skip to content

Commit 411a68b

Browse files
committed
Fix an unnecessarily-lazy parser
1 parent 6969f52 commit 411a68b

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/language/parsing/atom.ts

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,22 @@ export const atomWithAdditionalQuotationRequirements = (
4848
additionalQuoteRequiringComponent: Parser<unknown>,
4949
) =>
5050
optionallySurroundedByParentheses(
51-
lazy(() =>
52-
oneOf([
53-
map(
54-
oneOrMore(
55-
butNot(
56-
anySingleCharacter,
57-
oneOf([
58-
...atomComponentsRequiringQuotation,
59-
additionalQuoteRequiringComponent,
60-
]),
61-
'a character sequence requiring quotation',
62-
),
51+
oneOf([
52+
map(
53+
oneOrMore(
54+
butNot(
55+
anySingleCharacter,
56+
oneOf([
57+
...atomComponentsRequiringQuotation,
58+
additionalQuoteRequiringComponent,
59+
]),
60+
'a character sequence requiring quotation',
6361
),
64-
characters => characters.join(''),
6562
),
66-
quotedAtomParser,
67-
]),
68-
),
63+
characters => characters.join(''),
64+
),
65+
quotedAtomParser,
66+
]),
6967
)
7068

7169
export const unquotedAtomParser = map(

0 commit comments

Comments
 (0)