#9 JavaScript code completion

open
Dale Anson
None
5
2007-09-30
2006-09-07
Rich Sezov
No

Adding JavaScript code completion (sidekick?--not sure
how this is implemented) would make JEdit the ultimate
web developer's tool.

Discussion

  • Alan Ezust
    Alan Ezust
    2006-09-07

    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.

     
  • Dale Anson
    Dale Anson
    2006-09-07

    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.

     
  • Dale Anson
    Dale Anson
    2006-09-07

    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 :)

     
  • Dale Anson
    Dale Anson
    2006-09-07

    • assigned_to: nobody --> daleanson
     
  • Rich Sezov
    Rich Sezov
    2006-09-26

    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?

     
    • labels: 871559 -->
    • milestone: 619623 -->