The way I do this in rouge is with the `group` helper, where you pass a block to the rule.

``` ruby
rule /...big regex with groups.../ do
  group 'Name.Class'; group 'Punctuation'; group 'Name.Function'
  pop!
end