Files
atom/src/app/null-grammar.coffee

21 lines
405 B
CoffeeScript

Token = require 'token'
EventEmitter = require 'event-emitter'
_ = require 'underscore'
###
# Internal #
###
module.exports =
class NullGrammar
name: 'Null Grammar'
scopeName: 'text.plain.null-grammar'
getScore: -> 0
tokenizeLine: (line) ->
{ tokens: [new Token(value: line, scopes: ['null-grammar.text.plain'])] }
grammarUpdated: -> # noop
_.extend NullGrammar.prototype, EventEmitter