>>>> "Hrvoje" == Hrvoje Niksic
<hniksic(a)xemacs.org> writes:
Hrvoje> Adrian Aichner <Adrian.Aichner(a)t-online.de> writes:
> BTW, why does imenu-syntax-alist not define word-constituent
syntax
> for the ! character?
Hrvoje> Perhaps because `!' is not a word constituent?
Hrvoje> Minirant: I *hate* modes that define non-alphanumeric symbol
Hrvoje> constituent characters as word constituents -- it totally breaks M-b
Hrvoje> and M-f, making them essentially equivalent to M-C-b and M-C-f when
Hrvoje> moving over symbols.
Hi Hrvoje, are you suggesting `!' should be removed from the string
initializing dsssl-font-lock-keywords?
http://www.swiss.ai.mit.edu/projects/scheme/documentation/scheme_2.html#S...
suggests that `!' should be quite common in MIT Scheme at least:
1.3.5 Naming Conventions
A predicate is a procedure that always returns a boolean value (#t or
#f). By convention, predicates usually have names that end in `?'.
A mutation procedure is a procedure that alters a data structure. By
convention, mutation procedures usually have names that end in `!'.
I'd suggest keeping it and whatever we do to keep 'imenu-syntax-alist
in sync:
(set (make-local-variable 'imenu-syntax-alist)
'(("+-*/.<>=?$%_&~^:" . "w")))
I'd suggest to move that word constituent string into a defconst and
using it in dsssl-font-lock-keywords and 'imenu-syntax-alist.
Sound good?
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/