From e61102180281fbc87af31614b581c97c2446e2c2 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Mon, 12 Feb 2024 14:42:27 +0000 Subject: [PATCH] lexer: Allow emphasis in Korean text without spaces (#3397) --- crates/typst-syntax/src/lexer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/typst-syntax/src/lexer.rs b/crates/typst-syntax/src/lexer.rs index a9ffb216a..f0cf8846d 100644 --- a/crates/typst-syntax/src/lexer.rs +++ b/crates/typst-syntax/src/lexer.rs @@ -345,7 +345,10 @@ impl Lexer<'_> { c.is_alphanumeric() && !matches!( c.script(), - Script::Han | Script::Hiragana | Script::Katakana + Script::Han + | Script::Hiragana + | Script::Katakana + | Script::Hangul ) }) };