nicosantangelo / sublime-gulp

Run Gulp tasks and use snippets from Sublime Text
https://sublime-gulp.nicosantangelo.com/
MIT License
155 stars 18 forks source link

Gulpfile errors if the last line is a comment #42

Closed matthias-vogt closed 9 years ago

matthias-vogt commented 9 years ago

So I was getting an error in my gulpfile and had absolutely no idea what it was caused by and it turns out that it the last line of my gulpfile is an inline comment, it errors.

Example code:

// Include gulp
var gulp = require('gulp');

// Changed html / php
gulp.task('test', function(files) {
    console.log("I work!");
});

// Default Task
gulp.task('default', ['test']);

//You shall not work

The code works if executed by the command line and multiline comments work fine. I am using OSX 10.11 and the latest gulp version

nicosantangelo commented 9 years ago

Yes! This is a known bug, #37 , I didn't have time (yet) to fix it but it's on the roadmap!

If you don't mind, I'll close this so it doesn't get duplicated but for any more feedback please let me know in the other issue.

Thanks :)

matthias-vogt commented 9 years ago

Oh, my bad, sorry about that.