JuliaIDE / Julia-LT

Julia plugin for Light Table
57 stars 7 forks source link

Matrix transpose not recognized by syntax highlighter #190

Open andyferris opened 9 years ago

andyferris commented 9 years ago

The matrix transposition operator .' sometimes gets confused with an opening apostrophe, and the syntax highlighter may highlight the rest of the line or even blocks of lines as string.

Try for example this snippet of a function for an LQ decomposition:

(Q,R) = qr(A.')
return (Q.',R.')
more_code_here_is_highlighted_as_string
pfitzseb commented 9 years ago

This has been fixed with 13ef237, but the latest release is older than that fix. So you could either manually replace the julia.js with the one from master or @one-more-minute tags a new release (btw, yes, I still intend to overhaul the parser... got a bit distracted by life however).