JuliaEditorSupport / julia-vim

Vim support for Julia.
http://julialang.org/
Other
753 stars 94 forks source link

some type parameters are now improperly recognized as symbols #241

Closed ExpandingMan closed 3 years ago

ExpandingMan commented 3 years ago

2021-03-03-101714_343x92_scrot

Think this is happening only after the very latest commits.

ExpandingMan commented 3 years ago

actually, it's worse than that, this also happens in function arguments 2021-03-03-102033_216x52_scrot

ExpandingMan commented 3 years ago

If this occurred because of the change that was supposed to make typeof not be highlighted as a type in arguments, I think that behavior would be infinitely preferable to this one, so either an option or a documented way to change it back would be much appreciated

ExpandingMan commented 3 years ago

It's so hard to read the vim regex code, but I guess it must have been this commit? Again, if there's no way to fix it (I know pure regex is very limiting and there's no way to actually analyze program logic here), I think it's probably safe to say most would prefer the previous behavior.

carlobaldassi commented 3 years ago

Sorry. My excuse is that the colon is ridiculously overloaded in Julia...

ExpandingMan commented 3 years ago

Goddamn, you are fast! Looks pretty much perfect now, thanks!!