Files
JiboViteDocs/node_modules/@shikijs/langs/dist/lua.mjs

9 lines
17 KiB
JavaScript
Raw Normal View History

2026-05-03 12:12:57 -04:00
import c from './c.mjs'
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Lua\",\"name\":\"lua\",\"patterns\":[{\"begin\":\"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.local.lua\"},\"2\":{\"name\":\"keyword.control.lua\"}},\"end\":\"(?<=[-\\\\]\\\"')\\\\[{}])\",\"name\":\"meta.function.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"begin\":\"(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.lua\"}},\"end\":\"(\\\\))|(?=[-\\\\]\\\"'\\\\[{}])|(?<!\\\\.)\\\\.(?!\\\\.)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.finish.lua\"}},\"name\":\"meta.parameter.lua\",\"patterns\":[{\"include\":\"#comment\"},{\"captures\":{\"1\":{\"name\":\"constant.language.lua\"},\"2\":{\"name\":\"variable.parameter.function.lua\"}},\"match\":\"(\\\\.{3})\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\"},{\"match\":\"[A-Z_a-z][0-9A-Z_a-z]*\",\"name\":\"variable.parameter.function.lua\"},{\"match\":\",\",\"name\":\"punctuation.separator.arguments.lua\"},{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.separator.arguments.lua\"}},\"end\":\"(?=[),])\",\"patterns\":[{\"include\":\"#emmydoc.type\"}]}]},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)\",\"name\":\"entity.name.class.lua\"},{\"match\":\"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\",\"name\":\"entity.name.function.lua\"}]},{\"match\":\"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(\\\\.\\\\h*)?([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])0[Xx]\\\\.\\\\h+([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?\",\"name\":\"constant.numeric.float.hexadecimal.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(?![.0-9EPep])\",\"name\":\"constant.numeric.integer.hexadecimal.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])\\\\d+(\\\\.\\\\d*)?([Ee]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])\\\\.\\\\d+([Ee]-?\\\\d*)?\",\"name\":\"constant.numeric.float.lua\"},{\"match\":\"(?<![.\\\\w\\\\d])\\\\d+(?![.0-9EPep])\",\"name\":\"constant.numeric.integer.lua\"},{\"include\":\"#string\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.lua\"}},\"match\":\"\\\\A(#!).*$\\\\n?\",\"name\":\"comment.line.shebang.lua\"},{\"include\":\"#comment\"},{\"captures\":{\"1\":{\"name\":\"keyword.control.goto.lua\"},\"2\":{\"name\":\"string.tag.lua\"}},\"match\":\"\\\\b(goto)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\"},{\"captures\":{\"1\":{\"name\":\"punctuation.section.embedded.begin.lua\"},\"2\":{\"name\":\"punctuation.section.embedded.end.lua\"}},\"match\":\"(::)\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(::)\",\"name\":\"string.tag.lua\"},{\"captures\":{\"0\":{\"name\":\"storage.type.attribute.lua\"}},\"match\":\"<\\\\s*(c(?:onst|lose))\\\\s*>\"},{\"match\":\"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>\",\"name\":\"storage.type.generic.lua\"},{\"match\":\"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b\",\"name\":\"keyword.control.lua\"},{\"match\":\"\\\\b(local)\\\\b\",\"name\":\"keyword.local.lua\"},{\"captures\":{\"1\":{\"name\":\"keyword.global.lua\"}},\"match\":\"^\\\\s*(global)\\\\b(?!\\\\s*=)\"},{\"match\":\"\\\\b(function)\\\\b(?![,:])\",\"name\":\"keyword.control.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(std(?:in|out|err))|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<!\\\\.)\\\\.{3}(?!\\\\.)\",\"name\":\"constant.language.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(self)\\\\b\",\"name\":\"variable.language.self.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"support.function.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))\",\"name\":\"entity.name.tag.lua\"},{\"match\":\"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|
export default [
...c,
lang
]