summaryrefslogtreecommitdiff
path: root/server/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/parser')
-rw-r--r--server/src/parser/ast.lua3
-rw-r--r--server/src/parser/grammar.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua
index 9bd406b7..77edeb5e 100644
--- a/server/src/parser/ast.lua
+++ b/server/src/parser/ast.lua
@@ -368,6 +368,9 @@ local defs = {
obj[max-1] = nil
return obj
end,
+ Lua = function (...)
+ return {...}
+ end,
}
return function (self, lua, mode)
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index 0efe4056..e2dad474 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -388,7 +388,7 @@ LocalFunction
]]
grammar 'Lua' [[
-Lua <- (Sp Action)* Sp
+Lua <- (Sp Action)* -> Lua Sp
]]
return function (lua, mode, parser_)