Skip to content

Commit 95f73a3

Browse files
committed
reorder context clause parsing
1 parent 1dc894b commit 95f73a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,8 @@ const clause = choice<Clause>(
593593
)
594594
.filter(filter(CLAUSE_RULE));
595595
const contextClause = choice<ContextClause>(
596+
wordUnit(new Set(["anu"]), '"anu"').map((anu) => ({ type: "anu", anu })),
597+
nanpa.map((nanpa) => ({ ...nanpa, type: "nanpa" })),
596598
sequence(
597599
preposition,
598600
many(optionalComma.with(preposition)),
@@ -605,8 +607,6 @@ const contextClause = choice<ContextClause>(
605607
type: "prepositions",
606608
prepositions,
607609
})),
608-
nanpa.map((nanpa) => ({ ...nanpa, type: "nanpa" })),
609-
wordUnit(new Set(["anu"]), '"anu"').map((anu) => ({ type: "anu", anu })),
610610
clause,
611611
)
612612
.filter(filter(CONTEXT_CLAUSE_RULE));

0 commit comments

Comments
 (0)