aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/tool/compiler/language/lux/phase/directive.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/tool/compiler/language/lux/phase/directive.lux')
-rw-r--r--stdlib/source/library/lux/tool/compiler/language/lux/phase/directive.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/library/lux/tool/compiler/language/lux/phase/directive.lux b/stdlib/source/library/lux/tool/compiler/language/lux/phase/directive.lux
index 882ac3a6e..ef7cffba4 100644
--- a/stdlib/source/library/lux/tool/compiler/language/lux/phase/directive.lux
+++ b/stdlib/source/library/lux/tool/compiler/language/lux/phase/directive.lux
@@ -54,17 +54,17 @@
(case macroA
(^ (///analysis.constant macro_name))
(do !
- [?macro (//extension.lift (meta.find_macro macro_name))
+ [?macro (//extension.lift (meta.macro macro_name))
macro (case ?macro
(#.Some macro)
- (wrap macro)
+ (in macro)
#.None
- (//.throw ..macro_was_not_found macro_name))]
+ (//.except ..macro_was_not_found macro_name))]
(//extension.lift (///analysis/macro.expand expander macro_name macro inputs)))
_
- (//.throw ..invalid_macro_call code))))]
+ (//.except ..invalid_macro_call code))))]
(case expansion
(^ (list& <lux_def_module> referrals))
(|> (recur archive <lux_def_module>)
@@ -76,4 +76,4 @@
(\ ! map (list\fold /.merge_requirements /.no_requirements)))))
_
- (//.throw ..not_a_directive code))))))
+ (//.except ..not_a_directive code))))))