Fix syntax error highlighting

Updated for Ruby >= 1.9