소스 검색

Modified comments in Code.js

n1474335 8 년 전
부모
커밋
bf91352fce
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/core/operations/Code.js

+ 1 - 2
src/core/operations/Code.js

@@ -273,8 +273,7 @@ const Code = {
                 .replace(/\s*,\s*/g, ", ")
                 .replace(/\s*{/g, " {")
                 .replace(/}\n/g, "}\n\n")
-                // I was told not to look at this.
-                // I looked anyhow. 
+                // Hacky horribleness
                 .replace(/(if|for|while|with|elif|elseif)\s*\(([^\n]*)\)\s*\n([^{])/gim, "$1 ($2)\n    $3")
                 .replace(/(if|for|while|with|elif|elseif)\s*\(([^\n]*)\)([^{])/gim, "$1 ($2) $3")
                 .replace(/else\s*\n([^{])/gim, "else\n    $1")