diff options
author | Eduardo Julian | 2018-07-04 18:28:38 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-07-04 18:28:38 -0400 |
commit | 01ca61865cf816808151fdecccd84bc6da8194ff (patch) | |
tree | 7df603f4429a89be2673b102b1ee85ec754e3c3b /stdlib/source/lux.lux | |
parent | 971d5d8aceb5087d3b3aef9db45abe9bc9c7c844 (diff) |
- Implemented ":cast" macro, and used it to implement both ":abstraction" and ":representation".
- Fix: You shouldn't be able to resolve tags if you haven't imported a module (even if they are exported).
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux.lux | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux index 55499d6cc..31f5165ea 100644 --- a/stdlib/source/lux.lux +++ b/stdlib/source/lux.lux @@ -6341,3 +6341,12 @@ _ (fail "Wrong syntax for alias:"))) + +(def: #export (cursor-description [file line column]) + (-> Cursor Text) + (let [separator ", " + fields ($_ "lux text concat" + (text/encode file) separator + (nat/encode line) separator + (nat/encode column))] + ($_ "lux text concat" "[" fields "]"))) |