Browse Source

one more haxe4 fix wrt invalid identifiers

Nicolas Cannasse 6 năm trước cách đây
mục cha
commit
0948a9038e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hxd/res/FileTree.hx

+ 1 - 1
hxd/res/FileTree.hx

@@ -325,7 +325,7 @@ class FileTree {
 		for( f in tree.files ) {
 			// handle duplicates
 			if( fident.get(f.ident) != f.relPath )
-				f.ident += "_" + f.ext;
+				f.ident += "_" + makeIdent(f.ext);
 			var ftype = extensions.get(f.ext);
 			if( ftype == null ) ftype = defaultExt;
 			var epath = { expr : EConst(CString(f.relPath)), pos : pos };