"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/first-mate/lib/null-grammar.js" (8 Mar 2017, 893 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 (function() {
    2   var Grammar, NullGrammar,
    3     __hasProp = {}.hasOwnProperty,
    4     __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
    5 
    6   Grammar = require('./grammar');
    7 
    8   module.exports = NullGrammar = (function(_super) {
    9     __extends(NullGrammar, _super);
   10 
   11     function NullGrammar(registry) {
   12       var name, scopeName;
   13       name = 'Null Grammar';
   14       scopeName = 'text.plain.null-grammar';
   15       NullGrammar.__super__.constructor.call(this, registry, {
   16         name: name,
   17         scopeName: scopeName
   18       });
   19     }
   20 
   21     NullGrammar.prototype.getScore = function() {
   22       return 0;
   23     };
   24 
   25     return NullGrammar;
   26 
   27   })(Grammar);
   28 
   29 }).call(this);