Okay so I noticed a difference where Javier is using storage-class for
const, map and chan. I however have them only as keywords as per the
language specification on
golang.org. Not sure which is best here for
the purpose of highlighting, but var, struct and type probably belong
with const, map and chan. Also, I would think adding [] and "" to the
group would be useful.
In implementing the gtksourceview lang spec I stuck close to the
language specification on
golang.org. However I separated out the
deprecated built-in functions panic* and print* as well as goto to be
highlighted as errors. I also added some funky error indication to
string and char literals, highlighting invalid escapes, overfull char
literals and unfinished literals. Also I've included most of the \x \u
\U differences from C (for string and char literals) but I only now
noticed I've forgotten to update this for numbers.
Tonic