mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Rename format to {}
This commit is contained in:
parent
64bc85741a
commit
198c06e2e8
7 changed files with 17 additions and 11 deletions
|
|
@ -5,8 +5,4 @@ return [[
|
|||
:string="string"
|
||||
:list="list"
|
||||
:pair="pair"
|
||||
|
||||
(Default formatter: doesn't do anything and let built-in formatters do the job)
|
||||
$ format(v)
|
||||
@v
|
||||
]]
|
||||
|
|
|
|||
|
|
@ -117,6 +117,13 @@ functions = {
|
|||
return v
|
||||
end
|
||||
},
|
||||
-- format
|
||||
["{}(v)"] = {
|
||||
mode = "raw",
|
||||
value = function(v)
|
||||
return v
|
||||
end
|
||||
},
|
||||
-- pair methods
|
||||
["name(p::pair)"] = {
|
||||
mode = "untyped raw",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue