I have set up some syntax highlights for some patterns, for example: sc.nextInt()
nextInt will be highlighted as a Function... Then I have included :set iskeyword+=(,.,)
in order for autocompletion to offer completions with brackets and dots in popups, but these settings disable any set highlights around the newly set keywords. (nextInt() will no be highlighted anymore etc.) I was wondering if there is a better solution or a way to go around this.
:syntax match
instead of:syntax keyword
if you’re concerned aboutiskeyword
affecting the syntax-keywords.autocmd Syntax * syntax match Function "\v<%(\h|\$)%(\w|\$)*>\ze\_s*\(\_.{-}\)" containedin=CONTAINED
w
,b
and so on.