I am currently writing a c3 syntax file for vim and I have some issues with a highlight.
I have this line:
syntax match ModuleName "\<module\>\s*\zs[a-z][a-zA-Z0-9_]*\ze;" display
and this line:
syntax keyword ModuleKeyword module
that are conflicting but I would like to have both of them colored is there any way that it is possible?
the should be colored like this:
/*keyword*/module /*c3name*/moduleName/*none*/;
/*keyword*/module /*c3name*/moduleName/*none*/::/*c3name*/otherName/*none*/;
/*keyword*/import /*c3name*/moduleName/*none*/;
/*keyword*/import /*c3name*/moduleName/*none*/::/*c3name*/otherName/*none*/;
the comments give the color schemes that the word after them is supposed to use for highlitghing here is a file for testing the highlitghing: main.c3
here is the complete file: c3.vim
for now the keyword module is colored properly and I can have the name colored if I remove this line:
syntax keyword ModuleKeyword module
but then the keyword is not colored anymore
main.c3is a 404 right now and is susceptible to change or whatnot in the future. Include the relevant content of the file in the question.