diff options
author | Eduardo Julian | 2019-09-15 23:17:55 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-09-15 23:17:55 -0400 |
commit | c2577a665818b14adb7b0a0c1eaf326144d4447d (patch) | |
tree | 7f81ac38d677ef54a26c456f5a4ff96363ef093b /lux-mode | |
parent | 7f72a44157581d4f7f37d3627abb63749b9b9793 (diff) |
Added the ":let" macro to enable reuse of type fragments in larger types.
Diffstat (limited to 'lux-mode')
-rw-r--r-- | lux-mode/lux-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lux-mode/lux-mode.el b/lux-mode/lux-mode.el index 8f66e2717..ca8178c6a 100644 --- a/lux-mode/lux-mode.el +++ b/lux-mode/lux-mode.el @@ -245,7 +245,7 @@ Called by `imenu--generic-function'." (control//contract (altRE "pre" "post")) ;; Type (type//syntax (altRE "|" "&" "->" "All" "Ex" "Rec" "primitive" "\\$" "type")) - (type//checking (altRE ":" ":coerce" ":~" ":assume" ":of" ":cast" ":share" ":by-example" ":hole")) + (type//checking (altRE ":" ":coerce" ":let" ":~" ":assume" ":of" ":cast" ":share" ":by-example" ":hole")) (type//abstract (altRE "abstract:" ":abstraction" ":representation" ":transmutation" "\\^:representation")) (type//unit (altRE "unit:" "scale:")) (type//poly (altRE "poly:" "derived:")) @@ -433,6 +433,7 @@ This function also returns nil meaning don't specify the indentation." (define-lux-indent (function 'defun) (let 'defun) + (:let 'defun) (case 'defun) (do 'defun) (exec 'defun) |