From 19c5c8044f948b6b9759944511afba9dc5c18d75 Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 30 May 2019 11:18:22 +0800 Subject: =?UTF-8?q?=E6=94=B9=E4=B8=80=E4=B8=8B=E7=9D=80=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- syntaxes/lua.tmLanguage.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'syntaxes/lua.tmLanguage.json') diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json index cb395f03..b2ecc8eb 100644 --- a/syntaxes/lua.tmLanguage.json +++ b/syntaxes/lua.tmLanguage.json @@ -224,16 +224,17 @@ "match": "\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\b", "name": "keyword.control.lua" }, + { + "match": "\\b(local)\\b(?:\\s*)*", + "name": "keyword.local.lua" + }, { "captures": { "1": { - "name": "keyword.local.lua" - }, - "2": { "name": "string.tag.lua" } }, - "match": "\\b(local)\\b(?:\\s*<([a-zA-Z_][a-zA-Z0-9_]*)>)" + "match": "<([a-zA-Z_][a-zA-Z0-9_]*)>" }, { "match": "\\b(function)\\b", -- cgit v1.2.3