1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 00:59:31 +00:00

Implicitly call references like functions

This commit is contained in:
Étienne Fildadut 2022-09-10 17:58:34 +09:00
parent 95462391e3
commit 1263c32572
9 changed files with 505 additions and 73 deletions

View file

@ -244,6 +244,14 @@ lua_functions = {
return get_variable(anselme.running.state, v.value)
end
},
["&_(v::variable reference)"] = {
mode = "unannotated raw",
value = function(v) return v end
},
["&_(fn::function reference)"] = {
mode = "unannotated raw",
value = function(v) return v end
},
-- format
["{}(v)"] = {
mode = "raw",