> { name = 'my.new.scope'; > begin = "trace\('"; > end = "\'\)"; > } note that it should be before any other rule could catch pieces of it: when I do something like that, I create a new language where I first define my additions then include the base grammar.