At the moment, sidekick looks at the mode of the buffer to choose which parser it
uses (the getParserForBuffer method).
But some buffers have more than one mode, take jsp with some java in as an exemple.
it would be quite useful to be able to use java completions within a jsp buffer, completion
of beanshell within an actions.xml file, ...
Submitted | rfrancois - 2009-04-02 08:46:32 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | None |
Resolution | None |
2009-04-02 13:54:52 *anonymous |
You're mentioning completion, but what about the actual parsing? If a different parser is used for an inner block in the buffer, that belongs to a different mode, then how is the sidekick tree part created for that block? It should be the same wrt completion I think. |
---|---|
2009-04-02 14:13:44 rfrancois |
Yes, that is tricky.
|
2009-04-02 14:23:59 daleanson |
Sidekick already has some framework for parsing different modes within the same file. See sidekick.enhanced.PartialParser, and see the HTML sidekick (in XML sidekick) for an example of how it delegates to the javascript and css sidekicks for <script> and <style> sections within the html document. |
2009-04-02 14:38:16 rfrancois |
Nice \! Did not know about that. Thank you.
|
2014-07-19 03:58:30.922000 ezust |
Related ticket: https://sourceforge.net/p/jedit/plugin-feature-requests/240/ |