mirror of
https://github.com/atom/atom.git
synced 2026-02-05 20:25:04 -05:00
19 lines
401 B
CoffeeScript
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
|