about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-29 20:07:13 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-29 20:07:13 -0700
commitb625c6304eca827c04eda719fa6f7927294b80bc (patch)
treeec6e3f97bf2fc66e6d17f1c9768570bf2b0b9e55 /400.mu
parente55d3f5814d0f243d9d6a51f05433c14f0939055 (diff)
downloadmu-b625c6304eca827c04eda719fa6f7927294b80bc.tar.gz
support non-line-oriented processing in next-word
Immediately this simplifies support for comments in image data.
Diffstat (limited to '400.mu')
-rw-r--r--400.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/400.mu b/400.mu
index ec050342..6640a524 100644
--- a/400.mu
+++ b/400.mu
@@ -96,8 +96,8 @@ sig to-decimal-digit in: grapheme -> _/eax: int
 # bad name alert
 # next-word really tokenizes
 # next-raw-word really reads whitespace-separated words
-sig next-word line: (addr stream byte), out: (addr slice)  # skips '#' comments
-sig next-raw-word line: (addr stream byte), out: (addr slice)  # does not skip '#' comments
+sig next-word line: (addr stream byte), out: (addr slice)  # merges '#' comments into a single word
+sig next-raw-word line: (addr stream byte), out: (addr slice)  # does not merge '#' comments
 sig skip-chars-matching in: (addr stream byte), delimiter: byte
 sig skip-chars-matching-whitespace in: (addr stream byte)
 sig skip-chars-not-matching in: (addr stream byte), delimiter: byte