/jEdit/tags/jedit-4-2-pre14/doc/users-guide/updating-modes.xml
XML | 45 lines | 41 code | 1 blank | 3 comment | 0 complexity | 0d5916624202d7afe855d6f5dc6ad3d0 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
- <!-- jEdit buffer-local properties: -->
- <!-- :indentSize=1:noTabs=true: -->
- <!-- :xml.root=users-guide.xml: -->
- <chapter id="updating-modes"><title>Updating Edit Modes for jEdit 4.1/4.2</title>
- <para>
- In jEdit 4.1, the mode file grammar has been cleaned up somewhat. As a result, some
- edit modes written for jEdit 4.0 and earlier need to be updated:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Defining <literal><WHITESPACE></literal> rules is no longer necessary
- and doing so will print warnings to the activity logs.
- </para>
- </listitem>
- <listitem>
- <para>
- The <literal><KEYWORDS></literal> tag no longer accepts an
- <literal>IGNORE_CASE</literal> attribute.
- Set the <literal>IGNORE_CASE</literal> attribute of the
- <literal><RULES></literal> tag instead.
- </para>
- </listitem>
- <listitem>
- <para>
- The <literal><END></literal> tag of the <literal><SPAN></literal> rule
- used to be optional, in which case
- any occurrence of the start string would cause the remainder of the buffer
- to be highlighted with the span. In jEdit 4.1, the <literal><END></literal>
- tag can no longer be omitted, however
- a <literal><SEQ></literal> tag with a <literal>DELEGATE</literal> attribute
- can be used to achieve the same effect as endless span.
- </para>
- </listitem>
- <listitem>
- <para>
- Defining <literal><SEQ TYPE="NULL"></literal> rules for word separators
- is no longer necessary. Now, any non-alphanumeric character not appearing in
- a keyword definition or the ruleset's <literal>NO_WORD_SEP</literal> attribute
- is considered a word separator.
- </para>
- </listitem>
- </itemizedlist>
- </chapter>