A grammar extension to the Scenarios module has special considerations. It specifies an XML file containing an expression grammar definition just like those described above, with information specific to this module, including:

Note that the chapter Adding Custom Events, Actions, and Conditions to Scenarios contains a detailed example of extending the grammar editor for scenarios. It shows how to add a custom condition to the grammar editor. The example is in the section Extending the Expression Editor.