Searching XEmacs
help
Quick Links About XEmacs Getting XEmacs Customizing XEmacs Troubleshooting XEmacs Developing XEmacs

Syntax table improvements

Matt Tucker <tuck@whistlingfish.net>

Status

The patch has been committed. It passes the old make check for syntax and regex, and several bugs have already been fixed.

Please test.

Description

This patch ports (from GNU Emacs) support for the following features:

  1. A new text property 'syntax-table, which is one of:
    a syntax table

    Overrides the buffer's table when determining the syntax for this character.

    (syntax-code . matching-char)

    Specifies the syntax for this occurrence of the character. matching-char, if used, specifies the character returned by (matching-paren char). It can be excluded, in which case nil is returned.

    nil

    Equivalent to the property not existing: default to the buffer's syntax table.

  2. Two new syntax classes:
    generic comment delimiter

    Starts or ends a special kind of comment. Any generic comment delimiter matches any other comment delimiter, but not a comment starter or comment ender. Intended for use in the syntax-table text property.

    generic string delimiter

    Analogous to the generic comment delimiter, for strings.

These features can be used by modes which deal with files or text that have more sophisticated parsing requirements than XEmacs can usually handle.

A prime example (and in fact the only one I know) of such a mode would be cperl-mode (for Perl). Because Perl's syntax is so hairy, XEmacs has (until now) had a very difficult time dealing with Perl files, and required a lot of weird hacks to be able to indent and colorize them properly.

This patch bring XEmacs up to the level of GNU Emacs as regards its ability to handle Perl.

Open bugs

None.

Other open issues

Discussion

Closed bugs

None.

Made with XEmacs!
Valid XHTML 1.0!
Checked by Linklint
Site content repository:
Alioth.debian.org Logo
Primary mirrors:
SourceForge Logo Tux.Org Logo This page is part of the XEmacs website <http://www.xemacs.org>
Contents copyright © 2000 -- 2002; all rights reserved.
Missing links, inquiries about implementation, kudos to: webmaster@xemacs.org
Discussion of XEmacs features, installation, problems: XEmacs mailing lists
This page last modified Tue Dec 22 11:17:41 2009 UTC.

Conform with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Automatically validated by PSGML

AltStyle によって変換されたページ (->オリジナル) /