Skip to content

Commit

Permalink
Coalton as a sub-mode in lisp files
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Jan 14, 2025
1 parent 2ed5873 commit 6a40033
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions content/en/modes/coalton-lang.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,27 @@ NEW as of January, 2025.
Lem's Coalton mode provides:

- code highlighting for `.coal` files.
- indentation support.
- show autodoc for Coalton functions.
- its arguments can be different from definitions since the information is from Swank, just like Common Lisp.
- compilation commands: `coalton-compile-defun` (on the usual `C-c C-c`) and `M-x coalton-compile-region`
- support for `.coal` files
- support for Coalton code inside `coalton-toplevel` in lisp-mode
- code highlighting
- indentation support
- show autodoc for Coalton functions
- its arguments can be different from definitions since the information is from Swank, just like Common Lisp
- compilation commands: `coalton-compile-defun` (on the usual `C-c C-c`) and `M-x coalton-compile-region`.


`coalton-mode` is enabled as a sub-mode inside the `coalton-toplevel`
form in lisp-mode: that means that in the following file, the type
`Integer` is highlighted even in lisp-mode:

~~~lisp
;; Just for testing: test.lisp
(defpackage foo
(:use :coalton-prelude))
(in-package :foo)
(coalton-toplevel
(declare foo (Integer -> Integer))
...
)
~~~

0 comments on commit 6a40033

Please sign in to comment.