how to prevent syntax match for repeated chars

19 views
Skip to first unread message

Erhy

unread,
Jun 1, 2017, 4:09:09 PM6/1/17
to vim_use
Hello,
the syntax script highlights + ++ +++
I want highlight only for one +

Have you a tip for me?
Erhy

Erhy

unread,
Jun 2, 2017, 10:24:52 AM6/2/17
to vim_use
Am Donnerstag, 1. Juni 2017 22:09:09 UTC+2 schrieb Erhy:
> Hello,
> the syntax script highlights + ++ +++
> I want highlight only for one +

for

syn match scilabArithmetic "[+-/\\*\^]\{1}"
I wrote also for each operator
e.g.
syn match scilabOverrun "[\*]\{2,}"

and assigned scilabOverrun to Error:
hi def link scilabOverrun Error

Reply all
Reply to author
Forward
0 new messages