Hi Daniel,
no there are no hooks yet in the grammar to introduce custom
attributes.
What you can do is to create a new Xtext project with the wizard
"Xtext project from existing ecore model" and reference one of the
genmodels belonging to the grammars you want to adapt
(styles.genmodel, shapes.genmodel or spray.genmodel) and copy the
grammar beginning from the first rule into the newly created
.xtext file. Add a generate grammar statement so you can add new
constructs to the grammar. But that means you have to
recreate/copy the intrastructure from the old grammar and grammar
UI plug-in. And for triggering the existing generator that only
works with the metamodel of the old grammar you may also have to
do a model to model transformation to the old grammar/old meta
model and for your custom generator you use the new generator.
As an alternative, depending on how you want to extend the
existing grammar you may also consider to write a completely new
grammar that just references the old grammar, so you can then on
model level just e.g. reference in the file written in your new
grammar elements from a the file written in the existing grammar
to enrich them.
Best regards,
Joerg