1
0
Fork 0
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:
Étienne Fildadut 2022-09-27 17:05:06 +09:00
parent ccaa40a99d
commit e9606cdee0
13 changed files with 345 additions and 145 deletions

View file

@ -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