make some additional comments re: off-by-one error errors

This commit is contained in:
Scott Richmond 2024-07-16 20:16:28 -04:00
parent 2027490614
commit e9fee4c0e1

View File

@ -357,6 +357,11 @@
{:type :synthetic :data [;terms] :token origin})
# collections
### XXX: the current panic/capture structure in this, script, etc. is blowing up when the LAST element (line, tuple member, etc.) has an error
# it does, however, work perfectly well when there isn't one
# there's something about advancing past the breaking token, or not
# aslo, I removed the captures here around nonbinding and separators, and we got into a loop with a panic
# oy
(defn- tup [parser]
(def origin (current parser))
(advance parser) # consume the :lparen
@ -1140,7 +1145,7 @@
(do
# (comment
(def source `
(,,,,,1, 2 bar, foo)
(,,,,,1, 2, foo)
`)
(def scanned (s/scan source))