/* jshint node:true */

'use strict';

var CssComb       = require('csscomb'),
    csscomb       = new CssComb(),
    gutil         = require('gulp-util'),
    transform     = require('stream').Transform,
    bufferstreams = require('bufferstreams'),

    PLAGIN_NAME   = 'gulp-csscomb';

module.exports = function () {

    var stream = new transform({ objectMode: true });

    stream._transform = function(file, unused, done) {
        // Pass through if null
        if (file.isNull()) {
            stream.push(file);
            done();
            return;
        }

        if (file.isStream()) {
            file.contents = file.contents.pipe(new bufferstreams(function (err, buffer, cb) {
                if (err) {
                    cb(gutil.PluginError(PLAGIN_NAME, err));
                }
                var output = csscomb.processString(String(buffer));
                cb(null, new Buffer(output));
            }));
            stream.push(file);
            done();
        } else {
            var css = String(file.contents);
            gutil.log(css);
            var output = csscomb.processString(css);
            file.contents = new Buffer(output);
            stream.push(file);
            done();
        }
    };

    return stream;
};
@@ -794,24 +794,81 @@
           %7D%0A
+                var syntax = file.path.split('.').pop();%0A
             
@@ -920,16 +920,24 @@
 (buffer)
+, syntax
 );%0A     
@@ -1082,62 +1082,42 @@
 var 
-css = String(file.contents);%0A            gutil.log(css
+syntax = file.path.split('.').pop(
 );%0A 
@@ -1162,19 +1162,45 @@
 sString(
-css
+String(file.contents), syntax
 );%0A     

Add file extension check