[jEdit-Syntax-devel] problem with coloring 2 character
Brought to you by:
marcel-boehme,
oliverhe
From: Lusso L. <lus...@ti...> - 2003-06-28 15:38:27
|
Hi, I'm writing an editor for jess, a language for expert system. Text and symbol coloring work well, but i have to color the sequence => and <- I try to write this code: [...] case '=' : if (length - i > 1) { if (array[i1] == '>') { addToken(i - lastOffset, Token.NULL); addToken(2, Token.LABEL); addToken(length-(i+2),Token.NULL); lastOffset = lastKeyword = length; break loop; } } break; [...] but if I insert a line like: (pippo pluto) => (assert minni) all the text after the => isn't colored... If I change "break loop" with "break" and I try to modify the line an ArrayIndexOutOfBoundsException is throw... Please help me! |