Update Lua grammar (#144544)

fixes #144543
This commit is contained in:
最萌小汐 2022-03-07 19:39:44 +08:00 committed by GitHub
parent 1e33effe41
commit bd3165e417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View file

@ -6,7 +6,7 @@
"git": {
"name": "sumneko/lua.tmbundle",
"repositoryUrl": "https://github.com/sumneko/lua.tmbundle",
"commitHash": "e531d0a651f1de222c6059d6e2edaca61b4dd4c4"
"commitHash": "9b79cbc54c3267065fca3d7b5b3845d1efbd091d"
}
},
"licenseDetail": [

View file

@ -29,7 +29,10 @@
{
"language": "lua",
"scopeName": "source.lua",
"path": "./syntaxes/lua.tmLanguage.json"
"path": "./syntaxes/lua.tmLanguage.json",
"tokenTypes": {
"comment.line.double-dash.doc.lua": "other"
}
}
]
},

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/e531d0a651f1de222c6059d6e2edaca61b4dd4c4",
"version": "https://github.com/sumneko/lua.tmbundle/commit/9b79cbc54c3267065fca3d7b5b3845d1efbd091d",
"name": "Lua",
"scopeName": "source.lua",
"patterns": [
@ -188,7 +188,11 @@
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*\\??:)",
"name": "support.type.property-name.lua"
"name": "entity.name.class.lua"
},
{
"match": "(?<=[^.]\\.|:)\\b([a-zA-Z_][a-zA-Z0-9_]*)",
"name": "entity.other.attribute.lua"
},
{
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b",