Mode woes
Submitted by Friday, 6 February, 2009 - 17:09
on
Hi all,
I've gotten a new Mode to work for the most part, but am still having trouble with Auto-Indent and RegExp tags. By the way, I'm using jEdit v4.3pre16, java 1.6u11, and Windows (XP).
Auto-Indent: I'm going for
begin/if
stuff
else/elseif
more stuff
endif/end
So I tried
It indents properly, but it doesn't unindent. Narrowing it down, the UnindentThisLine tag is working exactly like the IndentNextLines tag. For example,
will indent the lines following "else" or "end".
I thought it was a bug, but UnindentThisLine works prefectly with java mode. Not sure what I'm doing wrong, though. The props and main rule set is
%%
%g
[\d.+-]+[ef]
RegExp tags: As you can see in the rules above, I have a digits RegExp tag and a SEQ - neither one of them works. For digits, I'm trying to display decimals and negatives with the same highlight as numbers, using DIGIT_RE="[^%][.-](?=[0-9])". The decimal and negative display as Operators (which I have them defined as later) in every case I can think of ".4", "4.4", "-4", "423.543-45". Tried it as [.-](?=[0-9]) and that didn't work either.
The SEQ_REGEXP tag is supposed to display anything like "%.3f" as a solitary operator. Instead, it displays the "%." as operators, the number(s) as digit, and when I type in the last letter the number and letter become null. I've tried this with and without the hash character to no avail.
I know I'm looking over something, but I can't tell what and have exhausted my possibilities. Any help is much appreciated, thanks.