PageRenderTime 43ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms


HTML | 41 lines | 30 code | 11 blank | 0 comment | 0 complexity | 50cff55a79051d3475aabebdf0e24535 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
  2. <html xmlns="">
  3. <head>
  4. <title>JavaScriptSideKick Plugin</title>
  5. <meta name="author" content="Martin Raspe"></meta>
  6. <meta name="date" content="8.3.2006, 20:00 h"></meta>
  7. <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></meta>
  8. </head>
  9. <body>
  10. <div class="main">
  11. <h2>JavaScriptSideKick plugin</h2>
  12. <p>
  13. (c) 2005 by Martin Raspe
  14. </p>
  15. <p>Provides a SideKick structure tree for JavaScript source. It is based and depends on the SideKick plugin.
  16. </p>
  17. <p>
  18. The plugin parses JavaScript source code linewise, using regular expressions. Because of the difficulties in JavaScript parsing, only a very rudimentary representation of the file is shown, providing basic source navigation. The plugin tries to catch idioms containing the "function" keyword. To be caught, the idiom must appear first on the line (leading whitespace is ignored). The plugin scans the code for the following cases:
  19. </p>
  20. <ul>
  21. <li>a simple function declaration: <i>function</i> <b>foobar</b>() ...</li>
  22. <li>a function assigned to a variable: <b>foo</b> = <i>function</i>() ...</li>
  23. <li>a function assigned to a "var": var <b>foo</b> = <i>function</i>() ...</li>
  24. <li>a function assigned to a method name: <b></b> = <i>function</i>() ...</li>
  25. <li>a function denoting a Class (name beginning with an uppercase character): <b>Foo</b> = <i>function</i>() ...</li>
  26. <li>a method assigned to the prototype of a Class: <b></b> = <i>function</i>() ...</li>
  27. </ul>
  28. </div>
  29. </body>
  30. </html>