Skip to content

Commit a00f9b7

Browse files
committed
formatting
1 parent 04ae1b6 commit a00f9b7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/parser/cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Cache } from "../cache.ts";
22

3-
export const CACHE = new Cache();
3+
export const cache = new Cache();
44

55
export function clearCache(): void {
6-
CACHE.clear();
6+
cache.clear();
77
}

src/parser/lexer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import { settings } from "../settings.ts";
10-
import { CACHE } from "./cache.ts";
10+
import { cache } from "./cache.ts";
1111
import {
1212
allAtLeastOnce,
1313
choice,
@@ -112,7 +112,7 @@ const longWord = choiceOnlyOne(matchString("a"), matchString("n"))
112112
)
113113
.skip(spaces);
114114

115-
Parser.startCache(CACHE);
115+
Parser.startCache(cache);
116116

117117
/** Parses X ala X constructions if allowed by the settings. */
118118
const xAlaX = lazy(() => {

src/parser/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
SimpleHeadedWordUnit,
2828
SimpleWordUnit,
2929
} from "./ast.ts";
30-
import { CACHE } from "./cache.ts";
30+
import { cache } from "./cache.ts";
3131
import { everyWordUnitInFullClause } from "./extract.ts";
3232
import {
3333
CLAUSE_RULE,
@@ -61,7 +61,7 @@ import { describe, Token } from "./token.ts";
6161

6262
const spaces = match(/\s*/, "spaces");
6363

64-
Parser.startCache(CACHE);
64+
Parser.startCache(cache);
6565

6666
/** Parses a specific type of token. */
6767
function specificToken<T extends Token["type"]>(

0 commit comments

Comments
 (0)