From 0678bd8a0c41bfd96a70e6951ce00aaa52c38f97 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sun, 6 Apr 2014 14:39:01 +0200 Subject: [PATCH] PEG.js grammar: Add missing semicolon Fixes the following JSHint error: lib/parser.js: line 108, col 54, Missing semicolon. --- lib/parser.js | 2 +- src/parser.pegjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/parser.js b/lib/parser.js index 92cdb34..1ed8054 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -105,7 +105,7 @@ module.exports = (function() { peg$c34 = function(expression) { return expression; }, peg$c35 = void 0, peg$c36 = function(name) { - return { type: "rule_ref", name: name } + return { type: "rule_ref", name: name }; }, peg$c37 = function(operator, code) { return { type: OPS_TO_SEMANTIC_PREDICATE_TYPES[operator], code: code }; diff --git a/src/parser.pegjs b/src/parser.pegjs index 430bdf8..493951d 100644 --- a/src/parser.pegjs +++ b/src/parser.pegjs @@ -155,7 +155,7 @@ PrimaryExpression RuleReferenceExpression = name:IdentifierName !(__ (StringLiteral __)? "=") { - return { type: "rule_ref", name: name } + return { type: "rule_ref", name: name }; } SemanticPredicateExpression