Skip to content

Commit e9f3a16

Browse files
committed
Merge pull request #698 from osiris43/master
Fix for issue #673
2 parents 0c6829f + 70b27bc commit e9f3a16

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tasks/parser.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ module.exports = function(grunt) {
44
grunt.registerTask('parser', 'Generate jison parser.', function() {
55
var done = this.async();
66

7-
var child = childProcess.spawn('./node_modules/.bin/jison', ['-m', 'js', 'src/handlebars.yy', 'src/handlebars.l'], {stdio: 'inherit'});
7+
var cmd = './node_modules/.bin/jison';
8+
9+
if(process.platform === 'win32'){
10+
cmd = 'node_modules\\.bin\\jison.cmd';
11+
}
12+
13+
var child = childProcess.spawn(cmd, ['-m', 'js', 'src/handlebars.yy', 'src/handlebars.l'], {stdio: 'inherit'});
814
child.on('exit', function(code) {
915
if (code != 0) {
1016
grunt.fatal('Jison failure: ' + code);

0 commit comments

Comments
 (0)