Fix lexing of %w'1 2', %r'foo(bar)?' and similar syntax (Fixes #315)