feat: parse <plain> in parseSimple (#146)

This commit is contained in:
anatawa12 2024-06-15 14:05:57 +09:00 committed by GitHub
parent 2c7e152644
commit 7dbd9f2889
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,6 +170,7 @@ export const language = P.createLanguage<TypeTable>({
return P.alt([ return P.alt([
r.unicodeEmoji, // Regexp r.unicodeEmoji, // Regexp
r.emojiCode, // ":" r.emojiCode, // ":"
r.plainTag, // "<plain>" // to NOT parse emojiCode inside `<plain>`
r.text, r.text,
]); ]);
}, },