From 411b29791b1e1505ac875bac777b6cd5a6ca07a0 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Wed, 4 Sep 2013 15:58:52 -0400 Subject: [PATCH] Formatting Just being consistent. In every other place where a between comparison is done, the lower limit is on the left. It's a whole lot easier to see it's a between comparison when the limits are in order. --- acorn.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acorn.js b/acorn.js index ade6e3f92b..3be5cecb39 100644 --- a/acorn.js +++ b/acorn.js @@ -517,13 +517,13 @@ var ch = input.charCodeAt(tokPos); if (ch === 32) { // ' ' ++tokPos; - } else if(ch === 13) { + } else if (ch === 13) { ++tokPos; var next = input.charCodeAt(tokPos); - if(next === 10) { + if (next === 10) { ++tokPos; } - if(options.locations) { + if (options.locations) { ++tokCurLine; tokLineStart = tokPos; } @@ -531,7 +531,7 @@ ++tokPos; ++tokCurLine; tokLineStart = tokPos; - } else if(ch < 14 && ch > 8) { + } else if (ch > 8 && ch < 14) { ++tokPos; } else if (ch === 47) { // '/' var next = input.charCodeAt(tokPos+1);