From 36303d6cb2ce3ab9e36d045b9516c997bd461862 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 24 Aug 2021 05:23:45 -0400 Subject: Outsourced the syntax for labelled type definitions to macros. --- lux-mode/lux-mode.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lux-mode/lux-mode.el') diff --git a/lux-mode/lux-mode.el b/lux-mode/lux-mode.el index 0e1d21866..36899dd73 100644 --- a/lux-mode/lux-mode.el +++ b/lux-mode/lux-mode.el @@ -368,7 +368,12 @@ Called by `imenu--generic-function'." (control//logic (altRE "and" "or")) (control//contract (altRE "pre" "post")) ;; Type - (type//syntax (altRE "Variant" "Or" "Tuple" "And" "->" "All" "Ex" "Rec" "primitive" "type")) + (type//syntax (altRE "Union" "Or" "Variant" + "Tuple" "And" "Record" + "Rec" + "primitive" "->" + "All" "Ex" + "type")) (type//checking (altRE ":" ":as" ":let" ":~" ":expected" ":of" ":sharing" ":by_example" ":hole")) (type//abstract (altRE "abstract:" ":abstraction" ":representation" ":transmutation" "\\^:representation")) (type//unit (altRE "unit:" "scale:")) -- cgit v1.2.3