From 20a029a3215d1e9816812c3484f65164b8faa613 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 26 Oct 2025 16:53:46 +1300 Subject: Allow quote characters to be used in identifiers The single-quote character is used in register names on some processor architectures. The double-quote character is also allowed to be used in identifiers for consistency, it could be confusing otherwise. --- src/stages/syntactic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stages') diff --git a/src/stages/syntactic.rs b/src/stages/syntactic.rs index 227b399..a65faf9 100644 --- a/src/stages/syntactic.rs +++ b/src/stages/syntactic.rs @@ -8,7 +8,7 @@ pub fn parse_syntactic>(source_code: &str, path: Option

) -> } fn parse_syntactic_from_tokeniser(mut t: Tokeniser, in_macro: bool) -> Result>, Vec>> { - t.add_delimiters(&['@','&','%',';',':','|','{','}','(',')','[',']','#','~','"','\'']); + t.add_delimiters(&['@','&','%',';',':','|','{','}','(',')','[',']','#','~']); let mut tokens = Vec::new(); let mut errors = Vec::new(); -- cgit v1.2.3-70-g09d2