Open cursork opened 10 years ago
Thanks Neil, this sounds awfully familiar; I must have broken your fix to this very same problem when refactoring for the new syntax_keyword variables. Using syntax match
for just the outliers sounds like a good solution; I'll take a look at this in the evening.
Ha sorry - it seemed familiar to me too but I managed to convince myself I was imagining it! For some unknown reason :anguished:
Thanks for taking a look.
For reference: https://github.com/guns/vim-clojure-highlight/pull/1
:+1:
:+1:
Any chance of getting this merged? Biting me a little now too.
Any reason this hasn't been merged yet?
I believe there was, but I'll have another look.
Is there any temporary fix that we could do to avoid this issue? I am experiencing the same issue
Users with vim-clojure-static and vim-clojure-highlight see errors and broken highlighting when opening some test files. The culprit is
[midje.sweet :refer :all]
as that includes a functioncontains
. And this is illegal in Vim:Similarly a couple of other words (oneline, concealends) will not be recognised; but I'd be very surprised if they turned up in much code!
Note that my example code attached still doesn't highlight 'contains' correctly - for the life of me I can't figure out why as the regular expression generated appears under clojureFunc when I call
:syntax
and pasting that regexp into a manual:syntax match
is fine.