Hi,
I have a strange behavior in mode files when using DELEGATE between two modes, essentially
the DELEGATE command is ignored.
Find attached two mode files, plus a testcase. To reproduce:
1) Copy the testcase and mode file somewhere e.g. /path/to/bug
2) add the mode files to your .jedit/modes/catalog by adding the following lines:
<MODE NAME="spp1" FILE="\path\to\bug\spp1.xml" FILE_NAME_GLOB="{\*.bug}" />
<MODE NAME="spp2" FILE="\path\to\bug\spp2.xml" />
3) open the testcase sde_dvs.bug in jedit
According to the mode files all @TEST@ should be highlighted in LITERAL4.
But infact the last @TEST@ in the line 1 and the @TEST@ inside \!(...)\! are not highlighted\!
Both occurences are highlighted according to spp2::MAIN rule (set and string get KEYWORD1)
But although in spp2::MAIN I have an import DELEGATE=spp1::AT which should highlight
@TEST@ as LITERAL4 they do not get highlighted.
Note: If in spp2::MAIN I explicitly write a SPAN to grab the @TEST@ it works.
Submitted | captainhunt - 2011-11-24 10:55:25 | Assigned | daleanson |
---|---|---|---|
Priority | 5 | Labels | editor core |
Status | open | Group | None |
Resolution | None |
2011-11-24 10:55:30 captainhunt |
at-in-tclpp.tgz (1.1Kio) |
---|---|
2012-01-12 05:09:23 ezust |
- **assigned_to**: nobody --> daleanson |
2012-03-16 18:12:36 daleanson |
I'm not sure what you're trying to accomplish with these modes. One delegates to the other which delegates back to the first. What mode is your sde_dvs.bug supposed to be? If it is set as spp2, it is highlighted as you seem to want it to. It's not clear to me why you need two different modes for this. |
2012-03-16 18:12:36 daleanson |
- **status**: open --> pending |
2012-03-21 10:33:15 captainhunt |
- **status**: pending --> open |
2012-03-21 10:33:15 captainhunt |
Hi,
|
2013-11-11 23:58:26 daleanson |
Is this still an issue? Since it involved a couple of non-standard edit modes, I'm inclined to close this ticket. |
2013-11-11 23:58:26 daleanson |
- **status**: open --> pending |
2013-11-12 08:28:20 captainhunt |
Yes the issue is still pending, and forces us to keep a lot of code definition dublicated.
|
2013-11-12 08:28:20 captainhunt |
- **status**: pending --> open |