-
Notifications
You must be signed in to change notification settings - Fork 69
Namespace highlight #31
Comments
Can you give an example? Are you after highlighting just the |
Well, it'll be nice highlighting the entire namespace on lines with Examples:
Highlights:
I started learning Vimscript, but syntax files are still Chinese to me. Would this namespace highlight be hard to accomplish? |
Thank you for the examples! I wouldn't necessarily say it's difficult to accomplish, however I'm not sold on the alternative highlighting. I'm going to leave this issue open for more people to weigh in with their opinions. One caveat, though, is example 2 where |
I'm inclined to agree with @StanAngeloff, mostly. There's really only two instances you can be sure that the last item is a class vs. namespace:
One of these situations (2) is already covered by existing highlight rules, the keyword before I do think it could be nice to highlight the |
As part of #45 and once merged you should be able to specify different highlighting for the class/namespace following Archiving discussion. |
@StanAngeloff I agree with: @swekaj 's
Is there a way to accomplish this currently? Btw thanks for all your work! |
Closes #31 (and more specifically #31 (comment)) The new highlighting groups are linked to their parents to avoid breaking existing syntax colouring.
Closes StanAngeloff#31 (and more specifically StanAngeloff#31 (comment)) The new highlighting groups are linked to their parents to avoid breaking existing syntax colouring.
Is it possible to highlight a namespace?
I've been using this to highlight backslashes:
syn match phpParent "\\" contained
.. but that's not too smart.Thank you very much for your work.
The text was updated successfully, but these errors were encountered: