If we do up some tips on porting from Pygments, Python has a `(?s)` syntax that can apply a modifier to a portion of the regex. Ruby doesn't support it, but in this case it can be applied to the whole line.