SublimeText / CoffeeScript

Syntax highlighting and checking, commands, shortcuts, snippets, watched compilation and more.
439 stars 64 forks source link

@_$element not being highlighted. #221

Closed Overload119 closed 1 month ago

Overload119 commented 9 years ago

Anyone know any fixes?

I can't get this to properly highlight, I've tried a bunch of different color schemes.

Overload119 commented 9 years ago

Here's a snippet that can replicate the issue.

    @_numWordsInLine = {}
    @_wordKeyTo$ElMap = {}
    $(@_$lineEls).each (lineEl, lineIdx, list) =>
      for wordEl, wordIdx in lineEl.children
        @_wordKeyTo$ElMap["#{lineIdx}:#{wordIdx}"] = $(wordEl)
      @_numWordsInLine[lineIdx] = lineEl.children.length