about summary refs log tree commit diff stats
path: root/shell
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-30 17:20:42 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-30 17:20:42 -0700
commit961ce67569ae5b0285f7e12d15652f98ef17d9b4 (patch)
treee8e6c610c307ea0d3b6bf43342d381b690497ad2 /shell
parent4cc603deebe0a7b0d86783dc8278d1c6c548de22 (diff)
downloadmu-961ce67569ae5b0285f7e12d15652f98ef17d9b4.tar.gz
.
Diffstat (limited to 'shell')
-rw-r--r--shell/tokenize.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/tokenize.mu b/shell/tokenize.mu
index 19b7c258..b4c2a3e5 100644
--- a/shell/tokenize.mu
+++ b/shell/tokenize.mu
@@ -15,15 +15,15 @@ fn tokenize in: (addr gap-buffer), out: (addr stream cell), trace: (addr trace)
     break-if-!=
     #
     next-token in, token, trace
-    var skip?/eax: boolean <- comment-token? token
-    compare skip?, 0/false
-    loop-if-!=
     var error?/eax: boolean <- has-errors? trace
     compare error?, 0/false
     {
       break-if-=
       return
     }
+    var skip?/eax: boolean <- comment-token? token
+    compare skip?, 0/false
+    loop-if-!=
     write-to-stream out, token  # shallow-copy text-data
     loop
   }