All of the 'color' statements work EXCEPT for the following (cut'n'paste
from the nanorc.sample file):
color red "\<[A-Z_]{2,}\>"
color green "\<(float|char|int|void|static|const|struct)\>"
color brightyellow "\<(if|while|do|else|case|switch)\>"
I have switched around the colors to make sure that all the colors can be
displayed on my terminal setup.
If I change the second and third line to:
color green "(float|char|int|void|static|const|struct)"
color brightyellow "(if|while|do|else|case|switch)"
It works somewhat, but if those character strings are present inside a
larger word they will be highlighted, which is obviously not desired behavior.
Basically I need to fix the two regexp expression to find the C keywords,
and I need a better expression to find operator symbols
(+,-,=,&,%,!,|,~,.) etc.