Add U+2063 as seperator to hashtag

This commit is contained in:
Marie 2023-12-25 19:49:29 +01:00
parent 4ead124a2a
commit 48ae6c9e6c

View file

@ -579,7 +579,7 @@ export const language = P.createLanguage({
hashtag: r => { hashtag: r => {
const mark = P.str('#'); const mark = P.str('#');
const hashTagChar = P.seq([ const hashTagChar = P.seq([
P.notMatch(P.alt([P.regexp(/[ \u3000\t.,!?'"#:/[\]【】()「」()<>]/), space, newLine])), P.notMatch(P.alt([P.regexp(/[ \u3000\t., \u2063\t.,!?'"#:/[\]【】()「」()<>]/), space, newLine])),
P.char, P.char,
], 1); ], 1);
const innerItem: P.Parser<any> = P.lazy(() => P.alt([ const innerItem: P.Parser<any> = P.lazy(() => P.alt([