+1

Clojure not accepting bigint's [Fix included]

Morten Linderud 7 years ago 0

Valid Clojure code:

(+ 1 2)

(+ 1N 2N)

However, first is correct with the Sublime syntax file, and the second is incorrect.

Fix:

inside Clojure.tmLanguage, change the regex for constant.numeric.integer.clojure from (-|\+)?\b[0-9]+\b to:

(-|\+)?\b[0-9](|N)+\b


There might be better fixes but this atleast does not show invalid syntax :)