I stumbled upon some strangeness with character handling.
user=> (require '[rewrite-clj.parser :as p])
user=> (-> "\newline" p/parse-string-all :children)
( )
I would have expected \newline to be stored in a single node.
It doesn't have rewriting repercussions because both nodes are written:
user=> (-> "\newline" p/parse-string-all str)
"\newline"
But it would not be great for analysis. Do you remember addressing this in your clj-kondo rewrite-clj fork, @borkdude?Oh stupid me. Forgot that I had to escape in string!
user=> (-> "\\newline" p/parse-string-all :children)
(<token: \newline>)I would delete the above messages... but I'd rather stay humble and oh so fallible. simple_smile
I celebrate humility and fallibility! 😊 I'd say it works better in practice than the alternatives.