mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
24 lines
485 B
CoffeeScript
24 lines
485 B
CoffeeScript
Token = require './token'
|
|
{Emitter} = require 'emissary'
|
|
|
|
### Internal ###
|
|
module.exports =
|
|
class NullGrammar
|
|
Emitter.includeInto(this)
|
|
|
|
name: 'Null Grammar'
|
|
scopeName: 'text.plain.null-grammar'
|
|
|
|
getScore: -> 0
|
|
|
|
tokenizeLine: (line) ->
|
|
{ tokens: [new Token(value: line, scopes: ['null-grammar.text.plain'])] }
|
|
|
|
tokenizeLines: (text) ->
|
|
lines = text.split('\n')
|
|
for line, i in lines
|
|
{tokens} = @tokenizeLine(line)
|
|
tokens
|
|
|
|
grammarUpdated: -> # noop
|