Skip to content

Commit 4226fa5

Browse files
committed
fix parser
1 parent 5609279 commit 4226fa5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/internal/parser.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -770,14 +770,7 @@ export const language = P.createLanguage<TypeTable>({
770770
},
771771

772772
search: () => {
773-
const button = P.seq(
774-
P.str('['),
775-
P.alt([
776-
P.str('検索'),
777-
P.str('search'),
778-
]),
779-
P.str(']'),
780-
).text();
773+
const button = P.regexp(/\[(search|)\]/i);
781774
return P.seq(
782775
newLine.option(),
783776
P.lineBegin,

0 commit comments

Comments
 (0)