From 3f010de748ffccf304c4be09863f77d4020d610d Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 25 Aug 2022 21:31:54 -0400 Subject: Added support for type-based polymorphism. --- lux-mode/lux-mode.el | 5 ++++- 1 file changed, 4 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 a94b2f166..d9ab66394 100644 --- a/lux-mode/lux-mode.el +++ b/lux-mode/lux-mode.el @@ -365,6 +365,7 @@ Called by `imenu--generic-function'." (control//pattern-matching (altRE "open")) (control//logic (altRE "and" "or")) (control//contract (altRE "pre" "post")) + (control//polymorphism (altRE "method")) ;; Type (type//syntax (altRE "Union" "Or" "Variant" "Tuple" "And" "Record" @@ -403,7 +404,8 @@ Called by `imenu--generic-function'." (let ((control (altRE control//flow control//pattern-matching control//logic - control//contract)) + control//contract + control//polymorphism)) (type (altRE type//syntax type//checking type//primitive @@ -589,6 +591,7 @@ This function also returns nil meaning don't specify the indentation." ("inlined" 'defun) ("context" 'defun) ("primitive" 'defun) + ("method" 'defun) ("analysis" 'defun) ("synthesis" 'defun) -- cgit v1.2.3