zjhmale / intellij-clojure-pretty-symbol

Pretty symbols for your Clojure development with IntelliJ IDEA
39 stars 2 forks source link

all regex should include a mandatory space at the end #9

Closed jimpil closed 8 years ago

jimpil commented 8 years ago

Example:

(partial f :a) => should trigger (partial-amount :whatever) => should NOT trigger

In general, i think you should make all your regexes trigger only if the token in question appears as standalone. That would mean that a /space is always the last character. Hope that helps :)

zjhmale commented 8 years ago

thx, i will fix it tomorrow.

jimpil commented 8 years ago

Without having given this too much thought, i think it would make sense to require a \space before AND after the token in question. So basically you can replace the initial "(" character with a \space. Then this (for example) would work:

(map partial fn-coll arg-coll)

zjhmale commented 8 years ago

good point! maybe i should refactor the folding strategy :)