X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Flua.yaml;h=934f6a317508b665647314dd5e2b404c63393c35;hb=54c23cae72d7237bc898a59f79aad0acffdf0ffe;hp=e5dab4efd9071c0f7c9cd8dcc5d156c54855d894;hpb=e289d440348a46646355018a00704a284f1bfb96;p=micro.git diff --git a/runtime/syntax/lua.yaml b/runtime/syntax/lua.yaml index e5dab4ef..934f6a31 100644 --- a/runtime/syntax/lua.yaml +++ b/runtime/syntax/lua.yaml @@ -4,7 +4,7 @@ detect: filename: "\\.lua$" rules: - - statement: "\\b(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return)\\b" + - statement: "\\b(do|end|while|break|repeat|until|if|elseif|then|else|for|in|function|local|return)\\b" - statement: "\\b(not|and|or)\\b" - statement: "\\b(debug|string|math|table|io|coroutine|os|utf8|bit32)\\b\\." - statement: "\\b(_ENV|_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\s*\\("