Update grammars (#211439)

This commit is contained in:
Alex Ross
2024-04-26 13:52:52 +02:00
committed by GitHub
parent edb368fc43
commit 5c213a1e84
19 changed files with 1346 additions and 780 deletions

View File

@@ -4,7 +4,7 @@
"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."
],
"version": "https://github.com/sumneko/lua.tmbundle/commit/94ce82cc4d45f82641a5252d7a7fd9e28c875adc",
"version": "https://github.com/sumneko/lua.tmbundle/commit/1483add845ebfb3e1e631fe372603e5fed2cdd42",
"name": "Lua",
"scopeName": "source.lua",
"patterns": [
@@ -141,8 +141,8 @@
{
"match": "<\\s*(const|close)\\s*>",
"captures": {
"1": {
"name": "string.tag.lua"
"0": {
"name": "storage.type.attribute.lua"
}
}
},
@@ -155,7 +155,7 @@
"name": "keyword.control.lua"
},
{
"match": "\\b(local|global)\\b",
"match": "\\b(local)\\b",
"name": "keyword.local.lua"
},
{
@@ -363,7 +363,7 @@
"name": "punctuation.definition.comment.begin.lua"
}
},
"end": "\\]\\1\\]",
"end": "(--)?\\]\\1\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.lua"
@@ -383,7 +383,7 @@
"name": "punctuation.definition.comment.begin.lua"
}
},
"end": "\\]\\1\\]",
"end": "(--)?\\]\\1\\]",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.end.lua"
@@ -472,7 +472,7 @@
"emmydoc": {
"patterns": [
{
"begin": "(?<=---[ \\t]*)@class",
"begin": "(?<=---)[ \\t]*@class",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -491,7 +491,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@enum",
"begin": "(?<=---)[ \\t]*@enum",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -511,7 +511,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@type",
"begin": "(?<=---)[ \\t]*@type",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -525,7 +525,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@alias",
"begin": "(?<=---)[ \\t]*@alias",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -550,7 +550,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)(@operator)\\s*(\\b[a-z]+)?",
"begin": "(?<=---)[ \\t]*(@operator)\\s*(\\b[a-z]+)?",
"beginCaptures": {
"1": {
"name": "storage.type.annotation.lua"
@@ -567,7 +567,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@cast",
"begin": "(?<=---)[ \\t]*@cast",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -596,7 +596,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@param",
"begin": "(?<=---)[ \\t]*@param",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -624,7 +624,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@return",
"begin": "(?<=---)[ \\t]*@return",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -642,7 +642,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@field",
"begin": "(?<=---)[ \\t]*@field",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -677,7 +677,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@generic",
"begin": "(?<=---)[ \\t]*@generic",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -711,7 +711,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@vararg",
"begin": "(?<=---)[ \\t]*@vararg",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -725,7 +725,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@overload",
"begin": "(?<=---)[ \\t]*@overload",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -739,7 +739,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@deprecated",
"begin": "(?<=---)[ \\t]*@deprecated",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -748,7 +748,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@meta",
"begin": "(?<=---)[ \\t]*@meta",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -757,7 +757,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@private",
"begin": "(?<=---)[ \\t]*@private",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -766,7 +766,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@protected",
"begin": "(?<=---)[ \\t]*@protected",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -775,7 +775,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@package",
"begin": "(?<=---)[ \\t]*@package",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -784,7 +784,7 @@
"end": "(?=[\\n@#])"
},
{
"begin": "(?<=---[ \\t]*)@version",
"begin": "(?<=---)[ \\t]*@version",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -803,7 +803,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@see",
"begin": "(?<=---)[ \\t]*@see",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -822,7 +822,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@diagnostic",
"begin": "(?<=---)[ \\t]*@diagnostic",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -855,7 +855,7 @@
]
},
{
"begin": "(?<=---[ \\t]*)@module",
"begin": "(?<=---)[ \\t]*@module",
"beginCaptures": {
"0": {
"name": "storage.type.annotation.lua"
@@ -869,7 +869,7 @@
]
},
{
"match": "(?<=---[ \\t]*)@(async|nodiscard)",
"match": "(?<=---)[ \\t]*@(async|nodiscard)",
"name": "storage.type.annotation.lua"
},
{