diff options
| author | Natsu Kagami <natsukagami@gmail.com> | 2024-02-12 14:42:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-12 14:42:27 +0000 |
| commit | e61102180281fbc87af31614b581c97c2446e2c2 (patch) | |
| tree | 403b19fecd118017a405dcc6b26061bbae861d3d /crates | |
| parent | 9f1e0390c1dfb5643fd3cc419e28888f1d17a95b (diff) | |
lexer: Allow emphasis in Korean text without spaces (#3397)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst-syntax/src/lexer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/typst-syntax/src/lexer.rs b/crates/typst-syntax/src/lexer.rs index a9ffb216..f0cf8846 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 ) }) }; |
