3 ms·
AFAIK, ST2 doesn't have a plugin for a Javascript interpreter (though I haven't used ST2 for over a year now). You could extend the javascript.sublime-language
by caipre 13y ago
AFAIK, ST2 doesn't have a plugin for a Javascript interpreter (though I haven't used ST2 for over a year now). You could extend the javascript.sublime-language file, but that only supports regexes so you won't have the same context as with the AST.
Your main point stands though: all major editors have the ability to add plugins to achieve this same functionality.
- shawndumas 13y agohttp://ternjs.net http://ternjs.net Tern is a stand-alone code-analysis engine for JavaScript. It is intended to be used with a code editor plugin to enhance the editor's support for intelligent JavaScript editing. Features provided are: *Autocompletion on variables and properties *Function argument hints *Querying the type of an expression *Finding the definition of something *Automatic refactoring There is currently Tern support for the following editors: *Emacs *Vim *Sublime Text *Brackets (built in to the base editor)
- coldtea 13y ago>AFAIK, ST2 doesn't have a plugin for a Javascript interpreter Yes, but the important thing is that it CAN have one, same as Emacs could. For example, it has a Go plugin which uses the Go AST.