From 1781a66c3a70c9d8e976572b4650b38ffa0def67 Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 2 Jul 2022 12:47:16 +0200 Subject: [PATCH] Revert "Added emoji support for identifiers" This reverts commit 167a5077df44192c828993528b8cee22b22282f1. --- ablescript/src/lexer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ablescript/src/lexer.rs b/ablescript/src/lexer.rs index 9e4c61a8..ca5e67cd 100644 --- a/ablescript/src/lexer.rs +++ b/ablescript/src/lexer.rs @@ -104,7 +104,7 @@ pub enum Token { /// Run at the end of the program #[token("finally")] Finally, - + /// Crash with random error (see discussion #17) #[token("rlyeh")] Rlyeh, @@ -126,7 +126,7 @@ pub enum Token { Char(char), /// An identifier - #[regex(r"[\p{XID_Start}|\p{Emoji}][\p{XID_Continue}|\p{Emoji}]+", get_ident)] + #[regex(r"\p{XID_Start}[\p{XID_Continue}]+", get_ident)] #[token("and ", |_| "and".to_owned())] Identifier(String),