simonmar 2004/10/11 03:59:58 PDT
Modified files:
CONTRIB/haskell-modes/emacs haskell-font-lock.el
Log:
patches from Stefan <[EMAIL PROTECTED]>.
He says:
The patch below does the following things:
- Clean up the changes introduced by Dave Love. I.e. merge back the Emacs-21
code and the non-Emacs-21 code so it's more maintainable (I hate code
duplication with a passion).
- Add a feature `haskell-font-lock-symbols' which turns -> and \ into actual
arrow and lambda symbols. In Emacs-21.3, if you turn on this feature but
you don't have the appropriate fonts, you'll see square boxes instead :-(.
In future Emacsen (e.g. Emacs-CVS) the feature should work better and only
use the symbols for which you have the font(s).
- Re-enable toplevel declaration highlighting (and fix them up a bit).
- Don't create new faces. Instead, use an indirection through variables
(which can be made buffer-local or can point to new faces).
- Use standard font-lock faces where possible.
- Various simplifications.
- Fix up a problem in \(x,y) -> x+y where the first ( was not counted
because it was considered quoted by the \.
- Make the commenting of bird-style non-code more robust.
This has only really been tested with Emacs-CVS. It is supposed to work as
well as before on Emacs-20/21 and on XEmacs, but I may of course have
introduced some misbehavior.
Revision Changes Path
1.7 +204 -248 fptools/CONTRIB/haskell-modes/emacs/haskell-font-lock.el
_______________________________________________
Cvs-fptools mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-fptools