diff --git a/package.json b/package.json index cbe64c3ba73a1d3ec4a6ec19ca3bf1f0fad0a2ee..816388ed171ec94f200e58c643a92fc7771bb6dd 100644 --- a/package.json +++ b/package.json @@ -1082,6 +1082,22 @@ "scope": "resource", "type": "integer" }, + "Lua.hint.arrayIndex": { + "default": "Auto", + "enum": [ + "Enable", + "Auto", + "Disable" + ], + "markdownDescription": "%config.hint.arrayIndex%", + "markdownEnumDescriptions": [ + "%config.hint.arrayIndex.Enable%", + "%config.hint.arrayIndex.Auto%", + "%config.hint.arrayIndex.Disable%" + ], + "scope": "resource", + "type": "string" + }, "Lua.hint.enable": { "default": false, "markdownDescription": "%config.hint.enable%", @@ -1510,7 +1526,12 @@ { "language": "lua", "path": "./syntaxes/lua.tmLanguage.json", - "scopeName": "source.lua" + "scopeName": "source.lua", + "tokenTypes": { + "comment.line.double-dash.doc.lua": "other", + "string.quoted.double.lua": "other", + "string.quoted.single.lua": "other" + } } ], "semanticTokenScopes": [ diff --git a/package/package.lua b/package/package.lua index 5eca4851d97f9247123482eed66e24b505691d11..f5390e42c26eec054d731a1a573812f94e3f1d5a 100644 --- a/package/package.lua +++ b/package/package.lua @@ -39,7 +39,12 @@ return { { language = "lua", scopeName = "source.lua", - path = "./syntaxes/lua.tmLanguage.json" + path = "./syntaxes/lua.tmLanguage.json", + tokenTypes = { + ["comment.line.double-dash.doc.lua"] = "other", + ["string.quoted.single.lua"] = "other", + ["string.quoted.double.lua"] = "other", + }, } }, semanticTokenScopes = { diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json index 535264dbe9fdaab0000a0fd89b6b2798995ecb3a..01cdf0bfdf1879a1035adb0e5d17dbe22661d9c4 100644 --- a/syntaxes/lua.tmLanguage.json +++ b/syntaxes/lua.tmLanguage.json @@ -364,19 +364,29 @@ "name": "comment.line.double-dash.lua" }, { - "begin": "---?", + "begin": "---", "beginCaptures": { "0": { "name": "punctuation.definition.comment.lua" } }, "end": "\\n", - "name": "comment.line.double-dash.lua", + "name": "comment.line.double-dash.doc.lua", "patterns": [ { "include": "#luadoc" } ] + }, + { + "begin": "--", + "beginCaptures": { + "0": { + "name": "punctuation.definition.comment.lua" + } + }, + "end": "\\n", + "name": "comment.line.double-dash.lua" } ] },