Browse Source

PEG.js grammar: Add missing semicolon

Fixes the following JSHint error:

  lib/parser.js: line 108, col 54, Missing semicolon.
redux
David Majda 8 years ago
parent
commit
0678bd8a0c
  1. 2
      lib/parser.js
  2. 2
      src/parser.pegjs

2
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 };

2
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

Loading…
Cancel
Save