angular-ui / AngularJS-sublime-package

AngularJS code completion, snippets, go to definition, quick panel search, and more.
MIT License
1.42k stars 169 forks source link

Selecting a word with a $ sign next to it does not highlight other occurrences of the same selection #46

Closed alexilyaev closed 10 years ago

alexilyaev commented 10 years ago

I'm not sure if it's a bug in ST3 or in this package. But selecting $timeout should highlight other $timeout occurrences in the code, and currently it doesn't.

word_separators was not included in the User Preferences.

Similar ticket was opened in the SublimeText project on GitHub: https://github.com/SublimeText/Issues/issues/212

subhaze commented 10 years ago

This plugin does modify the word separators for js, but, the only modification is removing the $ so that it is considered part of the word. This was done because of the heavy usage of that character in js, especially angular. Having it removed fixes some bugs in the completion expansion process.

The file: https://github.com/angular-ui/AngularJS-sublime-package/blob/master/JavaScript.sublime-settings

Having said that, this plugin does not deal with any selection highlighting, so I'd say this is a ST3 bug.