make some additional comments re: off-by-one error errors
This commit is contained in:
parent
2027490614
commit
e9fee4c0e1
|
@ -357,6 +357,11 @@
|
||||||
{:type :synthetic :data [;terms] :token origin})
|
{:type :synthetic :data [;terms] :token origin})
|
||||||
|
|
||||||
# collections
|
# 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]
|
(defn- tup [parser]
|
||||||
(def origin (current parser))
|
(def origin (current parser))
|
||||||
(advance parser) # consume the :lparen
|
(advance parser) # consume the :lparen
|
||||||
|
@ -1140,7 +1145,7 @@
|
||||||
(do
|
(do
|
||||||
# (comment
|
# (comment
|
||||||
(def source `
|
(def source `
|
||||||
(,,,,,1, 2 bar, foo)
|
(,,,,,1, 2, foo)
|
||||||
|
|
||||||
`)
|
`)
|
||||||
(def scanned (s/scan source))
|
(def scanned (s/scan source))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user