mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
update Lua-grammar (#144975)
* update Lua-grammar * Update test Co-authored-by: Alex Ross <alros@microsoft.com>
This commit is contained in:
parent
bcbf1684e2
commit
9422f0a568
|
@ -6,7 +6,7 @@
|
||||||
"git": {
|
"git": {
|
||||||
"name": "sumneko/lua.tmbundle",
|
"name": "sumneko/lua.tmbundle",
|
||||||
"repositoryUrl": "https://github.com/sumneko/lua.tmbundle",
|
"repositoryUrl": "https://github.com/sumneko/lua.tmbundle",
|
||||||
"commitHash": "9b79cbc54c3267065fca3d7b5b3845d1efbd091d"
|
"commitHash": "43da68bb99b948782e57985f633fa0c395190674"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"licenseDetail": [
|
"licenseDetail": [
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||||
"Once accepted there, we are happy to receive an update request."
|
"Once accepted there, we are happy to receive an update request."
|
||||||
],
|
],
|
||||||
"version": "https://github.com/sumneko/lua.tmbundle/commit/9b79cbc54c3267065fca3d7b5b3845d1efbd091d",
|
"version": "https://github.com/sumneko/lua.tmbundle/commit/43da68bb99b948782e57985f633fa0c395190674",
|
||||||
"name": "Lua",
|
"name": "Lua",
|
||||||
"scopeName": "source.lua",
|
"scopeName": "source.lua",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
|
@ -170,10 +170,6 @@
|
||||||
"match": "(?<![^.]\\.|:)\\b(async)\\b(?!\\s*=(?!=))",
|
"match": "(?<![^.]\\.|:)\\b(async)\\b(?!\\s*=(?!=))",
|
||||||
"name": "entity.name.tag.lua"
|
"name": "entity.name.tag.lua"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"match": "(?<![^.]\\.|:)\\b(unknown|any|boolean|number|integer|thread|table|string|userdata|lightuserdata|function|method)\\b(?!\\s*=(?!=))",
|
|
||||||
"name": "support.type.lua"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"match": "(?<![^.]\\.|:)\\b(coroutine\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(loadlib|seeall|searchpath)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\.(char|codes|codepoint|len|offset))\\b(?!\\s*=(?!=))",
|
"match": "(?<![^.]\\.|:)\\b(coroutine\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(loadlib|seeall|searchpath)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\.(char|codes|codepoint|len|offset))\\b(?!\\s*=(?!=))",
|
||||||
"name": "support.function.library.lua"
|
"name": "support.function.library.lua"
|
||||||
|
@ -184,7 +180,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
|
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
|
||||||
"name": "entity.name.function.lua"
|
"name": "support.function.any-method.lua"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*\\??:)",
|
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*\\??:)",
|
||||||
|
|
|
@ -409,14 +409,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"c": "fact",
|
"c": "fact",
|
||||||
"t": "source.lua entity.name.function.lua",
|
"t": "source.lua support.function.any-method.lua",
|
||||||
"r": {
|
"r": {
|
||||||
"dark_plus": "entity.name.function: #DCDCAA",
|
"dark_plus": "support.function: #DCDCAA",
|
||||||
"light_plus": "entity.name.function: #795E26",
|
"light_plus": "support.function: #795E26",
|
||||||
"dark_vs": "default: #D4D4D4",
|
"dark_vs": "default: #D4D4D4",
|
||||||
"light_vs": "default: #000000",
|
"light_vs": "default: #000000",
|
||||||
"hc_black": "entity.name.function: #DCDCAA",
|
"hc_black": "support.function: #DCDCAA",
|
||||||
"hc_light": "entity.name.function: #795E26"
|
"hc_light": "support.function: #795E26"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -805,14 +805,14 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"c": "fact",
|
"c": "fact",
|
||||||
"t": "source.lua entity.name.function.lua",
|
"t": "source.lua support.function.any-method.lua",
|
||||||
"r": {
|
"r": {
|
||||||
"dark_plus": "entity.name.function: #DCDCAA",
|
"dark_plus": "support.function: #DCDCAA",
|
||||||
"light_plus": "entity.name.function: #795E26",
|
"light_plus": "support.function: #795E26",
|
||||||
"dark_vs": "default: #D4D4D4",
|
"dark_vs": "default: #D4D4D4",
|
||||||
"light_vs": "default: #000000",
|
"light_vs": "default: #000000",
|
||||||
"hc_black": "entity.name.function: #DCDCAA",
|
"hc_black": "support.function: #DCDCAA",
|
||||||
"hc_light": "entity.name.function: #795E26"
|
"hc_light": "support.function: #795E26"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue