Some code (mame for example) is using this style of comments
where using //***** as separators ; nano is parsing //* as multi-line comment
instead of one-line-comment, sow code highlighting is broken.
This is a simple c file for example
//***********************
// A nice extended comment
//***********************
int b = 20;
/* comment */
int main(){
b += 40; //* new comment
return b;
}
<EOF>
This cannot be fixed, because nano uses regexes for coloring things, and always applies all coloring rules to any line -- there is no mechanism to make a rule stop the processing of further rules. So, '//' cannot prevent the recognition of '/*' on the same line. You yourself can edit the c.nanorc file and make this change: It should probably look like this: //************************* // A nice extended comment //************************* Benno