elixir-lang/elixir — pull request #731 by kimshrier (2012-12-22 10:25:42+00:00)
Title: add octal and hex escapes for characters

This implements the suggestion in issue 726.

Hex escapes can have 1 or 2 digits and the x can be upper or lower case. Examples:

?\xA
?\X1b

Octal escapes can have 1, 2, or 3 digits and the o can be upper or lower case. In addition, for 3 digit octal numbers, the first one must be =< 3. Examples:

?\o1
?\O21
?\o377