better name for package names

This commit is contained in:
Scott Richmond 2024-05-10 15:02:55 -04:00
parent f1a1e9ec62
commit 064b5df2dd

View File

@ -222,7 +222,7 @@
(defn recur [scanner pkg]
(let [curr (current-char scanner)]
(cond
(terminates? curr) (add-token scanner :pkg :none)
(terminates? curr) (add-token scanner :pkg-name :none)
(word-char? curr) (recur (advance scanner) (buffer/push pkg curr))
:else (add-error scanner (string "unexpected " curr " after pkg name " pkg)))))
(recur scanner (buffer char)))