Browse Source

Build: Strip /* */

Mr.doob 9 years ago
parent
commit
a807822d27
1 changed files with 1 additions and 0 deletions
  1. 1 0
      utils/build/build.py

+ 1 - 0
utils/build/build.py

@@ -63,6 +63,7 @@ def main(argv=None):
 					tmp.write(u'THREE.ShaderChunk[ \'' + os.path.splitext(os.path.basename(filename))[0] + u'\'] = "')
 					tmp.write(u'THREE.ShaderChunk[ \'' + os.path.splitext(os.path.basename(filename))[0] + u'\'] = "')
 					text = f.read()
 					text = f.read()
 					text = re.sub(r"\t*//.*\n", "", text) # strip comments
 					text = re.sub(r"\t*//.*\n", "", text) # strip comments
+					text = re.sub(r"\t*\/\*[\s\S]*\*\/\n", "", text) # remove /* */
 					text = re.sub(r"\n+", '\\\\n', text) # line breaks to \n
 					text = re.sub(r"\n+", '\\\\n', text) # line breaks to \n
 					tmp.write(text)
 					tmp.write(text)
 					tmp.write(u'";\n\n')
 					tmp.write(u'";\n\n')