From 79d2ac05666e0429ca76d5debca130d89c053167 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Tue, 8 Jan 2013 22:19:55 +0100 Subject: [PATCH] Fixed some comments and removed unwanted spaces --- Objective-J/acorn.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Objective-J/acorn.js b/Objective-J/acorn.js index 3746ed3cc..86e556f7f 100644 --- a/Objective-J/acorn.js +++ b/Objective-J/acorn.js @@ -178,7 +178,8 @@ if (!exports.acorn) { var tokAfterImport; // This is the tokenizer's state for Objective-J. 'nodeMessageSendObjectExpression' - // is used to store the expression that is already parsed when + // is used to store the expression that is already parsed when a subscript was + // not really a subscript var nodeMessageSendObjectExpression; @@ -628,7 +629,7 @@ if (!exports.acorn) { if (next === 61) return finishOp(_bin6, input.charCodeAt(tokPos+2) === 61 ? 3 : 2); return finishOp(code === 61 ? _eq : _prefix, 1); } - + function readToken_at(code) { // '@' var next = input.charCodeAt(++tokPos); if (next === 34 || next === 39) // Read string if "'" or '"' @@ -1512,7 +1513,7 @@ if (!exports.acorn) { if (tokType !== _colon) { selectors.push(parseIdent(true)); if (first && tokType !== _colon) break; - } else + } else selectors.push(null); expect(_colon, "Expected ':' in selector"); var argument = {}; @@ -1539,7 +1540,7 @@ if (!exports.acorn) { element.body = parseBlock(true); inFunction = oldInFunc; labels = oldLabels; return finishNode(element, "MethodDeclarationStatement"); - } else + } else return parseStatement(); }