Update lua grammar (#183107)

This commit is contained in:
Alex Ross
2023-05-22 12:15:44 +02:00
committed by GitHub
parent eb1dd49915
commit 5784d8bb81
2 changed files with 11 additions and 29 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/d0d89a3734dd36938d8498a3c16bc734291727cb",
"version": "https://github.com/sumneko/lua.tmbundle/commit/3a18700941737c3ab66ac5964696f141aee61800",
"name": "Lua",
"scopeName": "source.lua",
"patterns": [
@@ -184,7 +184,7 @@
},
{
"match": "\\b(and|or|not|\\|\\||\\&\\&|\\!)\\b",
"name": "keyword.operator.logical.lua"
"name": "keyword.operator.lua"
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
@@ -372,7 +372,10 @@
"name": "comment.block.lua",
"patterns": [
{
"include": "#comment_documentation_bracket"
"include": "#emmydoc"
},
{
"include": "#ldoc_tag"
}
]
},
@@ -437,36 +440,15 @@
"name": "comment.block.lua",
"patterns": [
{
"include": "#comment_documentation_asterisk"
"include": "#emmydoc"
},
{
"include": "#ldoc_tag"
}
]
}
]
},
"comment_documentation_asterisk": {
"begin": "(?<=/\\*\\*)([^*]|\\*(?!/))*$",
" ": "^[ \\t]*\\*(?!/)(?=([^*]|[*](?!/))*$)",
"patterns": [
{
"include": "#emmydoc"
},
{
"include": "#ldoc_tag"
}
]
},
"comment_documentation_bracket": {
"begin": "(?<=--\\[\\[)([^-]|\\-(?!\\]\\]))*$",
"while": "^[ \\t]*-*(?!\\]\\])(?=([^-]|[-](?!\\]\\]))*$)",
"patterns": [
{
"include": "#emmydoc"
},
{
"include": "#ldoc_tag"
}
]
},
"emmydoc": {
"patterns": [
{