Files
atom/src/app/null-grammar.coffee
2013-05-01 16:58:43 -07:00

19 lines
401 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