From acdd33c7548a420d9e797c7cbff748c909be2e71 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Mon, 24 Jun 2024 19:14:05 -0300 Subject: [PATCH] remove redundant '-' identifier check --- crates/typst-syntax/src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-syntax/src/lexer.rs b/crates/typst-syntax/src/lexer.rs index ea769212f..ba11c50a0 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.