Mercurial Hosting > luan
changeset 763:98df1c19ed7d
add \u chars
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 26 Jul 2016 02:59:28 -0600 |
parents | 3f461f85243d |
children | d2f61d5be9cc |
files | core/src/luan/impl/LuanParser.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/src/luan/impl/LuanParser.java Wed Jul 20 23:55:59 2016 -0600 +++ b/core/src/luan/impl/LuanParser.java Tue Jul 26 02:59:28 2016 -0600 @@ -1734,6 +1734,8 @@ int start = parser.currentIndex(); if( parser.match('x') && HexDigit() && HexDigit() ) return parser.success((char)Integer.parseInt(parser.textFrom(start+1),16)); + if( parser.match('u') && HexDigit() && HexDigit() && HexDigit() && HexDigit() ) + return parser.success((char)Integer.parseInt(parser.textFrom(start+1),16)); if( Digit() ) { if( Digit() ) Digit(); // optional return parser.success((char)Integer.parseInt(parser.textFrom(start)));