[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need to recognize non-ASCII identifiers

From: Martin Stjernholm
Subject: Re: need to recognize non-ASCII identifiers
Date: Thu, 03 Apr 2003 01:15:09 +0200
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux)

Dave Love <d.love@dl.ac.uk> wrote:

> cc-mode needs to recognize non-ASCII identifiers.  I guess this should
> be done for all languages, since Java is defined to use Unicode and
> you can use non-ASCII charsets in C.

Yes, furthermore it would hardly be a problem if CC Mode is more
lenient in this regard than the compiler.

> This will only work cleanly in Emacs 21, which should use replacements
> in regexp char classes like `[:alnum:]' instead of `a-zA-Z0-9' and
> similar in the relevant places.

Even in other versions there's the possibility to use \sw etc. The
problem has been that there's no character class that matches all
alphabetic characters but not the digits. However, you mentioned
[:alpha:] which would presumably do just that.

You said it works in Emacs 21, but I haven't been able to find any doc
on these new character classes in the manual for Emacs 21.2. Where can
I read about it?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]