editor-plugins icon indicating copy to clipboard operation
editor-plugins copied to clipboard

Vim: Highlight `FOObar` as a type instead of a global constant

Open xfcasio opened this issue 4 months ago • 2 comments

As the title suggests, highlight types that start with multiple capitalized characters as user types instead of global constants.

xfcasio avatar Aug 10 '25 00:08 xfcasio

I recommend:

syn match c3UserType display "_*[A-Z][A-Z0-9_]*[a-z][a-zA-Z0-9_]*"

And a user defined attribute should hav the same regex but start with @, so could you please update that one as well?

lerno avatar Aug 11 '25 21:08 lerno

good now?

xfcasio avatar Aug 13 '25 05:08 xfcasio