diff core/src/luan/impl/LuanParser.java @ 763:98df1c19ed7d

add \u chars
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 26 Jul 2016 02:59:28 -0600
parents 960e5117e5bf
children 47add8eeb513
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)));