summaryrefslogtreecommitdiff
path: root/crates/typst-syntax
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-06-24 19:14:05 -0300
committerPgBiel <9021226+PgBiel@users.noreply.github.com>2024-06-26 12:17:53 -0300
commitacdd33c7548a420d9e797c7cbff748c909be2e71 (patch)
treee58d02c3e09f4aa8eee375393e9c9a4e2c79421e /crates/typst-syntax
parent910af8322c7d3658bcb5dcc7c8ce148aba3de1e7 (diff)
remove redundant '-' identifier check
Diffstat (limited to 'crates/typst-syntax')
-rw-r--r--crates/typst-syntax/src/lexer.rs2
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.