Skip to content

Commit 6a40033

Browse files
committed
Coalton as a sub-mode in lisp files
1 parent 2ed5873 commit 6a40033

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

content/en/modes/coalton-lang.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,27 @@ NEW as of January, 2025.
1010
1111
Lem's Coalton mode provides:
1212

13-
- code highlighting for `.coal` files.
14-
- indentation support.
15-
- show autodoc for Coalton functions.
16-
- its arguments can be different from definitions since the information is from Swank, just like Common Lisp.
17-
- compilation commands: `coalton-compile-defun` (on the usual `C-c C-c`) and `M-x coalton-compile-region`
13+
- support for `.coal` files
14+
- support for Coalton code inside `coalton-toplevel` in lisp-mode
15+
- code highlighting
16+
- indentation support
17+
- show autodoc for Coalton functions
18+
- its arguments can be different from definitions since the information is from Swank, just like Common Lisp
19+
- compilation commands: `coalton-compile-defun` (on the usual `C-c C-c`) and `M-x coalton-compile-region`.
20+
21+
22+
`coalton-mode` is enabled as a sub-mode inside the `coalton-toplevel`
23+
form in lisp-mode: that means that in the following file, the type
24+
`Integer` is highlighted even in lisp-mode:
25+
26+
~~~lisp
27+
;; Just for testing: test.lisp
28+
(defpackage foo
29+
(:use :coalton-prelude))
30+
(in-package :foo)
31+
32+
(coalton-toplevel
33+
(declare foo (Integer -> Integer))
34+
...
35+
)
36+
~~~

0 commit comments

Comments
 (0)