I would like to know how to highlight multiple tokens in the same line.
For example, if I want to highlight the value of 'a', I can write something like this:
syn match num 'a=\zs\d\+\ze,b=\d\+.*'
This would highlight the number 42 in
Now what if I want to highlight both numbers? I know that something like
'a=\zs\d\+\ze,b=\zs\d\+\ze.*' won't work because it only highlights the last number.
Please note that I don't want to highlight all the numbers in the line, so if I have a string like
(a=1,b=2,c=3), I only want to highlight
2 (i.e. the values of
Edit: Also note that
b should be adjacent, with
(a=1,b=2,b=3) should highlight only