oakes / Nightcode

An IDE for Clojure
https://sekao.net/nightcode/
The Unlicense
1.4k stars 124 forks source link

Working regex marked as error in editor. Subsequent closing brackets not recognized as matched. #225

Closed NathanSmutz closed 7 years ago

NathanSmutz commented 7 years ago

The following code runs fine (ran it in a pre-parinfer version of Nightcode); but causes the current Nightcode editor to call out an error (same behavior in 2.1.4 and 2.3.5) :

(defn req-pct [s] (if-let [num-string (re-find #"(?<=Requirements\s{0,5})[-]?\d+(?=%)" s)]
                    (Double/parseDouble num-string)))

The editor seems to detect a (false?) error on the regular expression; then mark every close-paren/close-bracket/etc after the regular expression as an "Unmatched delimiter".

image

It looks like it doesn't like one of: (?<= or (?=.
I'm seeing this with the jar versions of 2.1.4 and 2.3.5 on Windows 7 64-bit.

oakes commented 7 years ago

Fixed in master, thanks!

oakes commented 7 years ago

Just released 2.3.6 which fixes this issue.