PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. <!-- jEdit buffer-local properties: -->
  2. <!-- :indentSize=1:noTabs=true: -->
  3. <!-- :xml.root=users-guide.xml: -->
  4. <chapter id="updating-modes"><title>Updating Edit Modes for jEdit 4.1/4.2</title>
  5. <para>
  6. In jEdit 4.1, the mode file grammar has been cleaned up somewhat. As a result, some
  7. edit modes written for jEdit 4.0 and earlier need to be updated:
  8. </para>
  9. <itemizedlist>
  10. <listitem>
  11. <para>
  12. Defining <literal>&lt;WHITESPACE&gt;</literal> rules is no longer necessary
  13. and doing so will print warnings to the activity logs.
  14. </para>
  15. </listitem>
  16. <listitem>
  17. <para>
  18. The <literal>&lt;KEYWORDS&gt;</literal> tag no longer accepts an
  19. <literal>IGNORE_CASE</literal> attribute.
  20. Set the <literal>IGNORE_CASE</literal> attribute of the
  21. <literal>&lt;RULES&gt;</literal> tag instead.
  22. </para>
  23. </listitem>
  24. <listitem>
  25. <para>
  26. The <literal>&lt;END&gt;</literal> tag of the <literal>&lt;SPAN&gt;</literal> rule
  27. used to be optional, in which case
  28. any occurrence of the start string would cause the remainder of the buffer
  29. to be highlighted with the span. In jEdit 4.1, the <literal>&lt;END&gt;</literal>
  30. tag can no longer be omitted, however
  31. a <literal>&lt;SEQ&gt;</literal> tag with a <literal>DELEGATE</literal> attribute
  32. can be used to achieve the same effect as endless span.
  33. </para>
  34. </listitem>
  35. <listitem>
  36. <para>
  37. Defining <literal>&lt;SEQ TYPE="NULL"&gt;</literal> rules for word separators
  38. is no longer necessary. Now, any non-alphanumeric character not appearing in
  39. a keyword definition or the ruleset's <literal>NO_WORD_SEP</literal> attribute
  40. is considered a word separator.
  41. </para>
  42. </listitem>
  43. </itemizedlist>
  44. </chapter>