From 5e753c5c4bf5b086f031fa0fbbe5a3b045298ab5 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Tue, 30 Mar 2021 14:56:28 +0200 Subject: Fix problem with language_sh plugin The previous pattern can match incorrectly very long sequences --- plugins/language_sh.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/language_sh.lua') diff --git a/plugins/language_sh.lua b/plugins/language_sh.lua index c4153c2..60d2809 100644 --- a/plugins/language_sh.lua +++ b/plugins/language_sh.lua @@ -13,7 +13,7 @@ syntax.add { { pattern = "%f[%w_][%d%.]+%f[^%w_]", type = "number" }, { pattern = "[!<>|&%[%]=*]", type = "operator" }, { pattern = "%f[%S]%-[%w%-_]+", type = "function" }, - { pattern = "${.*}", type = "keyword2" }, + { pattern = "${[^}]*}", type = "keyword2" }, { pattern = "$[%a_@*][%w_]*", type = "keyword2" }, { pattern = "[%a_][%w_]*", type = "symbol" }, }, -- cgit v1.2.3