Skip to content

Commit fa567fe

Browse files
committed
this is actually needed
1 parent 0eb37e7 commit fa567fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/parser/lexer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ const longWord = choiceOnlyOne(matchString("a"), matchString("n"))
116116
)
117117
.skip(spaces);
118118

119+
Parser.startCache(cache);
120+
119121
/** Parses X ala X constructions if allowed by the settings. */
120122
const xAlaX = lazy(() => {
121123
if (settings.xAlaXPartialParsing) {
@@ -129,6 +131,8 @@ const xAlaX = lazy(() => {
129131
})
130132
.map<Token>((word) => ({ type: "x ala x", word }));
131133

134+
Parser.endCache();
135+
132136
/** Parses a punctuation. */
133137
const punctuation = choiceOnlyOne(
134138
match(/[.,:;?!·\u{F199C}\u{F199D}]+/u, "punctuation")

0 commit comments

Comments
 (0)