[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: `=' not as punctuation in sh-mode syntax table]
From: |
Richard Stallman |
Subject: |
address@hidden: `=' not as punctuation in sh-mode syntax table] |
Date: |
Sat, 08 May 2004 18:00:09 -0400 |
What do people think of this idea?
------- Start of forwarded message -------
From: Frederik Fouvry <address@hidden>
To: address@hidden
Date: Fri, 7 May 2004 20:08:38 +0200 (CEST)
Subject: `=' not as punctuation in sh-mode syntax table
Reply-To: address@hidden
...
On the basis of the documentation of the syntax classes `symbol
constituent' and `punctuation character', I propose that `='
should be added to sh-mode-syntax-table as punctuation (now it is
a symbol):
(?= . "_")
The symbol constituent documentation:
===========
- Syntax class: symbol constituent
"Symbol constituents" (designated by `_') are the extra characters
that are used in variable and command names along with word
constituents. For example, the symbol constituents class is used
in Lisp mode to indicate that certain characters may be part of
symbol names even though they are not part of English words.
These characters are `$&*+-_<>'. In standard C, the only
non-word-constituent character that is valid in symbols is
underscore (`_').
============
I do not think this applies to `='.
I would tend to consider `$' as punctuation as well, but the case
is less clear.
Regards,
Frederik Fouvry
- address@hidden: `=' not as punctuation in sh-mode syntax table],
Richard Stallman <=