5 Commits

Author SHA1 Message Date
Nobuyoshi Nakada 0f08914ac0 Support multiple elements \u syntax 2016-12-01 16:48:43 +09:00
Nobuyoshi Nakada bd9bc7786f Fix assertion argument orders 2016-12-01 16:48:43 +09:00
Tomoyuki Sahara 8df73d250b remove tests for unicode chars in regular expression literals.
mruby does not parse escape characters in a regular expression
literal (ref #2007).  It is parsed by the external mrbgem that
provides Regexp class, if any.  These tests should not be in
mruby core but in the mrbgem.
2014-04-06 17:13:29 +09:00
chasonr 8162295ba2 Small correction to the test identification. 2014-03-23 22:31:49 -04:00
chasonr 509cbc51eb Implement \u notation for strings and regexes.
This change adds the \u notation for double quoted strings and regular
expressions.  It does not implement the \u notation for character literals.
Both the \uNNNN and \u{NNNN} notations are supported.

\uNNNN is implemented by emitting equivalent UTF-8; that is, "\u4000" is
equivalent to "\xE4\x80\x80".

Unlike CRuby, the \u{NNNN} notation allows only one character per pair of
braces; I see no way to lift this restriction without remodeling the parser.
2014-03-23 21:46:00 -04:00