From 1d9b29d67ddf856fcc5d30a1392a7b8c410b13ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 8 Oct 2019 17:21:49 +0800 Subject: =?UTF-8?q?=E6=9A=82=E4=B8=94=E5=86=99=E6=AD=BB=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- syntaxes/lua.tmLanguage.json | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/syntaxes/lua.tmLanguage.json b/syntaxes/lua.tmLanguage.json index 044476f4..4bf26842 100644 --- a/syntaxes/lua.tmLanguage.json +++ b/syntaxes/lua.tmLanguage.json @@ -197,21 +197,12 @@ "name": "keyword.local.lua" }, { - "begin": "(?<=local)", - "end": "(?=[a-zA-Z_=])", - "patterns": [ - { - "include": "#comment" - }, - { - "match": "<\\s*([a-zA-Z_][a-zA-Z0-9_]*)", - "captures": { - "1": { - "name": "string.tag.lua" - } - } + "match": "<\\s*(const|close)\\s*\\>", + "captures": { + "1": { + "name": "string.tag.lua" } - ] + } }, { "match": "\\b(function)\\b", -- cgit v1.2.3