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 matchinstead of:syntax keywordif you’re concerned aboutiskeywordaffecting the syntax-keywords.autocmd Syntax * syntax match Function "\v<%(\h|\$)%(\w|\$)*>\ze\_s*\(\_.{-}\)" containedin=CONTAINEDw,band so on.