]> git.lizzy.rs Git - micro.git/commitdiff
update lua.yaml (#1892)
authorXeroOl <xerool6@gmail.com>
Fri, 16 Oct 2020 05:44:48 +0000 (00:44 -0500)
committerGitHub <noreply@github.com>
Fri, 16 Oct 2020 05:44:48 +0000 (01:44 -0400)
added `break` as a keyword

runtime/syntax/lua.yaml

index e5dab4efd9071c0f7c9cd8dcc5d156c54855d894..934f6a317508b665647314dd5e2b404c63393c35 100644 (file)
@@ -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*\\("