{Emitter} = require 'emissary'

module.exports =
class NullGrammar
  Emitter.includeInto(this)

  name: 'Null Grammar'
  scopeName: 'text.plain.null-grammar'

  constructor: ->
    @scopes = ['null-grammar.text.plain']

  getScore: -> 0

  tokenizeLine: (line) ->
    tokens: [{value: line, @scopes}]

  tokenizeLines: (text) ->
    lines = text.split('\n')
    for line in lines
      {tokens} = @tokenizeLine(line)
      tokens

  grammarUpdated: -> # noop

{Emitter} = require 'emissary'

module.exports =
class NullGrammar
  Emitter.includeInto(this)

  name: 'Null Grammar'
  scopeName: 'text.plain.null-grammar'

  getScore: -> 0

  tokenizeLine: (line) ->
    tokens: [{value: line, scopes: ['null-grammar.text.plain']}]

  tokenizeLines: (text) ->
    lines = text.split('\n')
    for line in lines
      {tokens} = @tokenizeLine(line)
      tokens

  grammarUpdated: -> # noop

Return new scopes array for each line tokenized
Return new scopes array for each line tokenized

Downstream consumers may tweak the tokens returned and it shouldn't
affect future lines tokenized which would happen if the same array
was pushed each time.
