decodeContent -> decodeTokens

This commit is contained in:
Nathan Sobo
2015-05-12 21:05:33 +02:00
parent 2765753791
commit bf6754981b
2 changed files with 2 additions and 2 deletions

View File

@@ -4114,7 +4114,7 @@ describe "TextEditor", ->
grammar = atom.grammars.selectGrammar("text.js")
{line, tags} = grammar.tokenizeLine("var i; // http://github.com")
tokens = atom.grammars.decodeContent(line, tags)
tokens = atom.grammars.decodeTokens(line, tags)
expect(tokens[0].value).toBe "var"
expect(tokens[0].scopes).toEqual ["source.js", "storage.modifier.js"]

View File

@@ -148,7 +148,7 @@ class TokenizedLine
Object.defineProperty @prototype, 'tokens', get: ->
offset = 0
atom.grammars.decodeContent @text, @tags, @parentScopes.slice(), (tokenProperties, index) =>
atom.grammars.decodeTokens @text, @tags, @parentScopes.slice(), (tokenProperties, index) =>
switch @specialTokens[index]
when SoftTab
tokenProperties.isAtomic = true