diff options
author | Eduardo Julian | 2022-06-24 22:38:07 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-06-24 22:38:07 -0400 |
commit | a384e0c9426d6110fa4c104a1327808a0aff91b0 (patch) | |
tree | f4af3d7122e1cc18c00b269562c592f81ad3ca3d /lux-mode | |
parent | 7249707e7c09be68dfb7507ba363efd3300a0141 (diff) |
Generalized machinery for context-aware macros.
Diffstat (limited to 'lux-mode')
-rw-r--r-- | lux-mode/lux-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lux-mode/lux-mode.el b/lux-mode/lux-mode.el index fbba53c20..5877a72f4 100644 --- a/lux-mode/lux-mode.el +++ b/lux-mode/lux-mode.el @@ -394,11 +394,11 @@ Called by `imenu--generic-function'." (function-application (altRE "|>" "<|" "left" "right" "all")) (function-definition (altRE "function" "|>>" "<<|")) (remember (altRE "remember" "to_do" "fix_me")) + (extension (altRE "analysis" "synthesis" "generation" "directive")) (definition (altRE "\\.require" "def" "inlined" "type:" "program:" "macro" "syntax" - "exception:" - "analysis" "synthesis" "generation" "directive"))) + "exception:"))) (let ((control (altRE control//flow control//pattern-matching control//logic @@ -430,6 +430,7 @@ Called by `imenu--generic-function'." function-application function-definition remember + extension definition ;; ;;;;;;;;;;;;;;;;;;;;;; "with_expansions" @@ -577,7 +578,6 @@ This function also returns nil meaning don't specify the indentation." (define-lux-indent ("function" 'defun) - ("macro" 'defun) ("syntax" 'defun) ("template" 'defun) @@ -585,6 +585,7 @@ This function also returns nil meaning don't specify the indentation." ("def" 'defun) ("inlined" 'defun) + ("context" 'defun) ("primitive" 'defun) ("analysis" 'defun) ("synthesis" 'defun) |