From ad89736832865aa5c2cab01ec55b252648dcb2aa Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 10 May 2022 12:55:55 -0500 Subject: [PATCH] refactor(parser): Clarify precedence levels --- crates/typos/src/tokens.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/typos/src/tokens.rs b/crates/typos/src/tokens.rs index 734f3a5..9dc7eff 100644 --- a/crates/typos/src/tokens.rs +++ b/crates/typos/src/tokens.rs @@ -183,10 +183,10 @@ mod parser { // - Make sure you always consume it terminated(uuid_literal, sep1), terminated(hash_literal, sep1), - terminated(hex_literal, sep1), - terminated(dec_literal, sep1), + terminated(base64_literal, sep1), // base64 should be quoted or something terminated(ordinal_literal, sep1), - terminated(base64_literal, sep1), + terminated(hex_literal, sep1), + terminated(dec_literal, sep1), // Allow digit-prefixed words terminated(email_literal, sep1), terminated(url_literal, sep1), terminated(css_color, sep1),