diff options
| author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-10-26 16:53:46 +1300 |
|---|---|---|
| committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-10-27 09:59:49 +1300 |
| commit | 20a029a3215d1e9816812c3484f65164b8faa613 (patch) | |
| tree | fb6cec6ac44a28c11f0dfe487864befceadca516 | |
| parent | 120b6f7043937cb1b72f2d52f6cb97fb5d0e3fc6 (diff) | |
| download | torque-asm-20a029a3215d1e9816812c3484f65164b8faa613.zip | |
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.
| -rw-r--r-- | src/stages/syntactic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<P: Into<PathBuf>>(source_code: &str, path: Option<P>) -> } fn parse_syntactic_from_tokeniser(mut t: Tokeniser, in_macro: bool) -> Result<Vec<Tracked<SyntacticToken>>, Vec<Tracked<SyntacticError>>> { - t.add_delimiters(&['@','&','%',';',':','|','{','}','(',')','[',']','#','~','"','\'']); + t.add_delimiters(&['@','&','%',';',':','|','{','}','(',')','[',']','#','~']); let mut tokens = Vec::new(); let mut errors = Vec::new(); |
