clojure-emacs / parseedn

EDN parser for Emacs Lisp
62 stars 15 forks source link

Parse error for valid EDN #18

Open favetelinguis opened 5 months ago

favetelinguis commented 5 months ago

I have the following EDN string from a Babashka task that fail to parse in parseedn:

(parseedn-read-str "{ remake {:doc \"Text\"
                    :task (do (run 'pm-build)
                    (run 'db-stop)
                    (run 'db-rm)
                    (run 'db-create))}}")

Running the following in Clojure works fine

(edn/read-string "{
  remake {:doc \"Text\"
          :task (do (run 'pm-build)
                    (run 'db-stop)
                    (run 'db-rm)
                    (run 'db-create))}}")
vemv commented 5 months ago

Thanks for the report!

I'll try to repro.

Is there anything special in this input? It wouldn't seem so at first glance

favetelinguis commented 5 months ago

I dont think there is anything special. The code is more or less taken from the Babashka book on tasks.

vemv commented 5 months ago

It's the ' characters.

Let's see what we can do about them.

I don't see them in https://github.com/edn-format/edn though!