diff options
| author | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-06-24 19:14:05 -0300 |
|---|---|---|
| committer | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-06-26 12:17:53 -0300 |
| commit | acdd33c7548a420d9e797c7cbff748c909be2e71 (patch) | |
| tree | e58d02c3e09f4aa8eee375393e9c9a4e2c79421e | |
| parent | 910af8322c7d3658bcb5dcc7c8ce148aba3de1e7 (diff) | |
remove redundant '-' identifier check
| -rw-r--r-- | crates/typst-syntax/src/lexer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-syntax/src/lexer.rs b/crates/typst-syntax/src/lexer.rs index ea769212..ba11c50a 100644 --- a/crates/typst-syntax/src/lexer.rs +++ b/crates/typst-syntax/src/lexer.rs @@ -1099,7 +1099,7 @@ fn is_valid_in_label_literal(c: char) -> bool { /// Whether a character can be part of a string in a decorator. #[inline] fn is_valid_in_decorator_string(c: char) -> bool { - is_id_continue(c) || c == '@' || c == '/' || c == '-' + is_id_continue(c) || c == '@' || c == '/' } /// Returns true if this string is valid in a label literal. |
