I am playing around with vim syntax, matching expressions like name.subname
regardless of their layout. Here is a match pattern I came upon which does exactly what I want:
Now, I wish that subname
would be the only colored part of my matches. This is a job for \zs
, right? Here is the result:
Why is this so? Why does \zs
break my pattern? How can I get all subnames
in the first section colored and not the ones in the second section?