HTD / NST

New Source Tree Komodo Addon
32 stars 20 forks source link

Node.js - Type - support #40

Open hilferd opened 10 years ago

hilferd commented 10 years ago

Hi, please add case 'Node.js': in getLineParser() otherwise, no outline is there for files typed 'Node.js'

like this:

  var getLineParser = function(self) {
    switch (self.lang = d.language) {
      case 'Node.js':
      case 'JavaScript':
        p = new LineParserJS(self.lang,
                             ['name.prototype = {',
                              '*name = {',
                              'name : {'],
                            ['id.prototype.name = function()',
                             'function name() {',
                             '*name = function() {',
                             '*name : function() {']);
        break;
      case 'ActionScript':
        p = new LineParserJS(self.lang,