From 515f5953d9aa526d40c305f32a97047697ce8dce Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 4 Jun 2019 10:35:44 +0800 Subject: =?UTF-8?q?=E5=85=81=E8=AE=B8local=20tag=E6=89=93=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- syntaxes/lua.tmLanguage.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'syntaxes/lua.tmLanguage.json') diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json index b2ecc8eb..3fcbda67 100644 --- a/syntaxes/lua.tmLanguage.json +++ b/syntaxes/lua.tmLanguage.json @@ -225,16 +225,22 @@ "name": "keyword.control.lua" }, { - "match": "\\b(local)\\b(?:\\s*)*", + "match": "\\b(local)\\b", "name": "keyword.local.lua" }, { - "captures": { - "1": { - "name": "string.tag.lua" + "begin": "(?<=local)", + "end": "(?=[a-zA-Z_=])", + "patterns": [ + { + "match": "<\\s*([a-zA-Z_][a-zA-Z0-9_]*)", + "captures": { + "1": { + "name": "string.tag.lua" + } + } } - }, - "match": "<([a-zA-Z_][a-zA-Z0-9_]*)>" + ] }, { "match": "\\b(function)\\b", -- cgit v1.2.3