Selaa lähdekoodia

fixed $ escaping

Nicolas Cannasse 14 vuotta sitten
vanhempi
commit
99b1d3ab9e
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      std/haxe/macro/Format.hx

+ 6 - 0
std/haxe/macro/Format.hx

@@ -97,6 +97,12 @@ class Format {
 				var len = i - start;
 				var ident = str.substr(start, len);
 				add( { expr : EConst(CIdent(ident)), pos : make(len) } );
+			} else if( c == '$'.code ) {
+				start = i++;
+				continue;
+			} else {
+				start = i - 1;
+				continue;
 			}
 			start = i;
 		}