Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
decodeContent -> decodeTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sobo committed May 12, 2015
1 parent a1b86e9 commit efd70b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/text-editor-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
2 changes: 1 addition & 1 deletion src/tokenized-line.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efd70b8

Please sign in to comment.