Skip to content

Commit

Permalink
Missing Semicolons
Browse files Browse the repository at this point in the history
Added semicolons in a few places
  • Loading branch information
redchair123 committed Sep 25, 2012
1 parent 746a829 commit 9b75319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/jison.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,8 @@ lrGeneratorMixin.generateCommonJSModule = function generateCommonJSModule (opt)
+ "\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {"
+ "\nexports.parser = "+moduleName+";"
+ "\nexports.Parser = "+moduleName+".Parser;"
+ "\nexports.parse = function () { return "+moduleName+".parse.apply("+moduleName+", arguments); }"
+ "\nexports.main = "+ String(opt.moduleMain || commonjsMain)
+ "\nexports.parse = function () { return "+moduleName+".parse.apply("+moduleName+", arguments); };"
+ "\nexports.main = "+ String(opt.moduleMain || commonjsMain) + ";"
+ "\nif (typeof module !== 'undefined' && require.main === module) {\n"
+ " exports.main(typeof process !== 'undefined' ? process.argv.slice(1) : require(\"system\").args);\n}"
+ "\n}"
Expand Down
4 changes: 2 additions & 2 deletions lib/jison/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function prepareStartConditions (conditions) {
}

function buildActions (dict, tokens) {
var actions = [dict.actionInclude || '', "var YYSTATE=YY_START"];
var actions = [dict.actionInclude || '', "var YYSTATE=YY_START;"];
var tok;
var toks = {};

Expand Down Expand Up @@ -344,7 +344,7 @@ RegExpLexer.prototype = {
out += ";\nlexer.rules = [" + this.rules + "]";
out += ";\nlexer.conditions = " + JSON.stringify(this.conditions);
if (this.moduleInclude) out += ";\n"+this.moduleInclude;
out += ";\nreturn lexer;})()";
out += ";\nreturn lexer;})();";
return out;
},
generateCommonJSModule: function generateCommonJSModule(opt) {
Expand Down

0 comments on commit 9b75319

Please sign in to comment.