I've looked at it. It'll take a lot of work, I think.
Right now, the javascript sidekick parser is a few regular
expressions. They do an okay job of parsing javascript, but
it could be better. They are not sufficient to implement
code completion. Really, what's needed is a better parser.
I've looked for a decent javacc parser for javascript, but
haven't found one. I adjusted the html sidekick to delegate
to the css sidekick so in-line <style> tags are parsed into
the html tree, it would be awesome to do the same thing with
with in-line javascript.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=935841
SideKick has a completion mechanism. XML already has a
JavaScriptSideKick which has no completion yet.
Anyone who wants to work on that should be committing to the
XML plugin SVN. If you volunteer, speak to me about getting
commit privileges.
Logged In: YES
user_id=187628
I've looked at it. It'll take a lot of work, I think.
Right now, the javascript sidekick parser is a few regular
expressions. They do an okay job of parsing javascript, but
it could be better. They are not sufficient to implement
code completion. Really, what's needed is a better parser.
I've looked for a decent javacc parser for javascript, but
haven't found one. I adjusted the html sidekick to delegate
to the css sidekick so in-line <style> tags are parsed into
the html tree, it would be awesome to do the same thing with
with in-line javascript.
Logged In: YES
user_id=187628
Hmm, I googled again and found a relatively recent jjt file
for ecmascript. I'll add this to my growing list of things
I don't have time for :)
Logged In: YES
user_id=927854
If it helps, it looks like Vim 7.0 has JavaScript code
completion. I don't know if the formats are compatible, but
maybe their script could be used?