mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 17:19:31 +00:00
Merge behavior of : and = into single = operator for pairs; add assignment with _._ operator in function references
This commit is contained in:
parent
48cabbf4c0
commit
88157b04b9
19 changed files with 104 additions and 38 deletions
14
test/tests/pair operator.lua
Normal file
14
test/tests/pair operator.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
local _={}
|
||||
_[5]={}
|
||||
_[4]={tags=_[5],text="[name=1, 3=p, test=foo, ho=ah, name=test]"}
|
||||
_[3]={_[4]}
|
||||
_[2]={"return"}
|
||||
_[1]={"text",_[3]}
|
||||
return {_[1],_[2]}
|
||||
--[[
|
||||
{ "text", { {
|
||||
tags = {},
|
||||
text = "[name=1, 3=p, test=foo, ho=ah, name=test]"
|
||||
} } }
|
||||
{ "return" }
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue