]> rethought.computer Git - sorel-lang.git/commitdiff
fix comments, again keep/f71038f058aa120ea6ff93e4288932ea02705bdb
authorBryan English <bryan@rethought.computer>
Mon, 9 Feb 2026 14:32:20 +0000 (09:32 -0500)
committerBryan English <bryan@rethought.computer>
Tue, 10 Feb 2026 04:08:55 +0000 (04:08 +0000)
rel-lang/sorelc/src/tokenizer.rs

index 093c0124707bf2a31958cd4859542686f6a0a416..d546c6b9c2f6ff50f13b1372c629bc2dd7b374e5 100644 (file)
@@ -86,6 +86,7 @@ pub fn tokenize<'a>(input: &'a str) -> Result<Vec<Token<'a>>> {
         }
 
         if in_line_comment {
+            word_or_num_start = None;
             if char == '\n' {
                 in_line_comment = false;
                 last_is_whitespace = true; // not really true, but means don't need space after
@@ -175,4 +176,13 @@ mod tests {
         ");
         println!("result: {:?}", result);
     }
+
+    #[test]
+    fn strings() {
+        let result = tokenize("
+dup \\ ( stuff )
+\"hello!\"
+");
+        println!("result: {:?}", result);
+    }
 }