Skip to content

Commit

Permalink
Fix issue #22, change filenames with dashes to camelcase module names.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaach committed Nov 11, 2010
1 parent e468e41 commit 6387a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jison/cli-wrapper.js
Expand Up @@ -27,7 +27,7 @@ function processGrammar (rawGrammar, lex, name) {
var opt = grammar.options || {};
if (lex) grammar.lex = require("./jisonlex").parse(lex);
if (!opt.moduleType) opt.moduleType = "commonjs";
if (!opt.moduleName && name) opt.moduleName = name;
if (!opt.moduleName && name) opt.moduleName = name.replace(/-\w/g, function (match){ return match.charAt(1).toUpperCase(); });

var generator = new JISON.Generator(grammar, opt);
return generator.generate(opt);
Expand Down

0 comments on commit 6387a8c

Please sign in to comment.