|
@ -235,7 +235,7 @@ function beautify(input, settings) { |
|
|
input = arr.join("\r\n"); |
|
|
input = arr.join("\r\n"); |
|
|
} |
|
|
} |
|
|
input = input.replace(/([a-zA-Z0-9\); ])\);(@@comments[0-9]+)?@@end/g, '$1\r\n);$2@@end'); |
|
|
input = input.replace(/([a-zA-Z0-9\); ])\);(@@comments[0-9]+)?@@end/g, '$1\r\n);$2@@end'); |
|
|
input = input.replace(/[ ]?([&=:\-<>\+|\*])[ ]?/g, ' $1 '); |
|
|
|
|
|
|
|
|
input = input.replace(/[ ]?([&=:\-\+|\*]|[<>]+)[ ]?/g, ' $1 '); |
|
|
input = input.replace(/(\d+e) +([+\-]) +(\d+)/g, '$1$2$3'); // fix exponential notation format broken by previous step
|
|
|
input = input.replace(/(\d+e) +([+\-]) +(\d+)/g, '$1$2$3'); // fix exponential notation format broken by previous step
|
|
|
input = input.replace(/[ ]?([,])[ ]?/g, '$1 '); |
|
|
input = input.replace(/[ ]?([,])[ ]?/g, '$1 '); |
|
|
input = input.replace(/[ ]?(['"])(THEN)/g, '$1 $2'); |
|
|
input = input.replace(/[ ]?(['"])(THEN)/g, '$1 $2'); |
|
|