|
23 | 23 | ;; You should have received a copy of the GNU General Public License
|
24 | 24 | ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
25 | 25 |
|
26 |
| -;;; Commentary: |
27 |
| - |
28 |
| -;; Purpose: |
29 |
| -;; |
30 |
| -;; To support fontification of standard Haskell keywords, symbols, |
31 |
| -;; functions, etc. Supports full Haskell 1.4 as well as LaTeX- and |
32 |
| -;; Bird-style literate scripts. |
33 |
| -;; |
34 |
| -;; Installation: |
35 |
| -;; |
36 |
| -;; To turn font locking on for all Haskell buffers under the Haskell |
37 |
| -;; mode of Moss&Thorn, add this to .emacs: |
38 |
| -;; |
39 |
| -;; (add-hook 'haskell-mode-hook 'turn-on-haskell-font-lock) |
40 |
| -;; |
41 |
| -;; Otherwise, call `turn-on-haskell-font-lock'. |
42 |
| -;; |
43 |
| -;; |
44 |
| -;; Customisation: |
45 |
| -;; |
46 |
| -;; The colours and level of font locking may be customised. See the |
47 |
| -;; documentation on `turn-on-haskell-font-lock' for more details. |
48 |
| -;; |
49 |
| -;; Present Limitations/Future Work (contributions are most welcome!): |
50 |
| -;; |
51 |
| -;; . Debatable whether `()' `[]' `(->)' `(,)' `(,,)' etc. should be |
52 |
| -;; highlighted as constructors or not. Should the `->' in |
53 |
| -;; `id :: a -> a' be considered a constructor or a keyword? If so, |
54 |
| -;; how do we distinguish this from `\x -> x'? What about the `\'? |
55 |
| -;; |
56 |
| -;; . XEmacs can support both `--' comments and `{- -}' comments |
57 |
| -;; simultaneously. If XEmacs is detected, this should be used. |
58 |
| -;; |
59 |
| -;; . Support for GreenCard? |
60 |
| -;; |
61 |
| -;; |
62 |
| -;; All functions/variables start with |
63 |
| -;; `(turn-(on/off)-)haskell-font-lock' or `haskell-fl-'. |
64 |
| - |
65 |
| -;;; Change Log: |
66 |
| - |
67 |
| -;; Version 1.3: |
68 |
| -;; From Dave Love: |
69 |
| -;; Support for proper behaviour (including with Unicode identifiers) |
70 |
| -;; in Emacs 21 only hacked in messily to avoid disturbing the old |
71 |
| -;; stuff. Needs integrating more cleanly. Allow literate comment |
72 |
| -;; face to be customized. Some support for fontifying definitions. |
73 |
| -;; (I'm not convinced the faces should be customizable -- fontlock |
74 |
| -;; faces are normally expected to be consistent.) |
75 |
| -;; |
76 |
| -;; Version 1.2: |
77 |
| -;; Added support for LaTeX-style literate scripts. Allow whitespace |
78 |
| -;; after backslash to end a line for string continuations. |
79 |
| -;; |
80 |
| -;; Version 1.1: |
81 |
| -;; Use own syntax table. Use backquote (neater). Stop ''' being |
82 |
| -;; highlighted as quoted character. Fixed `\"' fontification bug |
83 |
| -;; in comments. |
84 |
| -;; |
85 |
| -;; Version 1.0: |
86 |
| -;; Brought over from Haskell mode v1.1. |
87 | 26 |
|
88 | 27 | ;;; Code:
|
89 | 28 |
|
|
0 commit comments