mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Add text buffer syntax
This commit is contained in:
parent
ccaa40a99d
commit
e9606cdee0
13 changed files with 345 additions and 145 deletions
|
|
@ -53,6 +53,16 @@ local function parse(state)
|
|||
end
|
||||
end
|
||||
end
|
||||
-- get list of properties
|
||||
-- (unlike scoped, does not includes subnamespaces)
|
||||
if line.properties then
|
||||
line.properties = {}
|
||||
for name in pairs(state.variables) do
|
||||
if name:sub(1, #namespace) == namespace and not name:sub(#namespace+1):match("%.") then
|
||||
table.insert(line.properties, name)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
-- expressions
|
||||
if line.expression then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue