This is quite stupid.
Saying emacs is better but showing that emacs do actually the same sublime text mistake....
Emacs is extensible; ST too.
It does not inherently understand require.js. Nor does ST. With Emacs's JS2-mode, thanks to its AST, it is possible to augment the library so that it does understand require.js -- and the author does so without resorting to piles-upon-piles of regexp hacks.
Your main point stands though: all major editors have the ability to add plugins to achieve this same functionality.
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)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.