From bf91352fce84881c82bfb7e95db4292881d10b0f Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 11 Apr 2017 14:41:30 +0000 Subject: [PATCH] Modified comments in Code.js --- src/core/operations/Code.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/operations/Code.js b/src/core/operations/Code.js index c938222f..613c6b42 100755 --- a/src/core/operations/Code.js +++ b/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")