Added support for \r in string literals.

This commit is contained in:
arookas 2016-02-22 12:46:22 -05:00
parent 40891d00d7
commit a1d3cd3d49

View file

@ -100,6 +100,7 @@ namespace arookas {
case 'b': sb.Append('\b'); break; case 'b': sb.Append('\b'); break;
case 'f': sb.Append('\f'); break; case 'f': sb.Append('\f'); break;
case 'n': sb.Append('\n'); break; case 'n': sb.Append('\n'); break;
case 'r': sb.Append('\r'); break;
case 't': sb.Append('\t'); break; case 't': sb.Append('\t'); break;
case 'v': sb.Append('\v'); break; case 'v': sb.Append('\v'); break;
case 'x': sb.Append(UnescapeHex(value, j + 2, out i)); continue; case 'x': sb.Append(UnescapeHex(value, j + 2, out i)); continue;