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 0eb37e7 commit fa567feCopy full SHA for fa567fe
src/parser/lexer.ts
@@ -116,6 +116,8 @@ const longWord = choiceOnlyOne(matchString("a"), matchString("n"))
116
)
117
.skip(spaces);
118
119
+Parser.startCache(cache);
120
+
121
/** Parses X ala X constructions if allowed by the settings. */
122
const xAlaX = lazy(() => {
123
if (settings.xAlaXPartialParsing) {
@@ -129,6 +131,8 @@ const xAlaX = lazy(() => {
129
131
})
130
132
.map<Token>((word) => ({ type: "x ala x", word }));
133
134
+Parser.endCache();
135
136
/** Parses a punctuation. */
137
const punctuation = choiceOnlyOne(
138
match(/[.,:;?!…·。。︒\u{F199C}\u{F199D}]+/u, "punctuation")
0 commit comments