aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_sh.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2021-03-30 14:56:28 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2021-03-30 14:56:28 +0200
commit5e753c5c4bf5b086f031fa0fbbe5a3b045298ab5 (patch)
tree009cab6d467a19933b3b5c5d5e68416da159bc98 /plugins/language_sh.lua
parentafb5c04774595b9fa8be1b5f999b7dc9642ad6af (diff)
downloadlite-xl-plugins-5e753c5c4bf5b086f031fa0fbbe5a3b045298ab5.tar.gz
lite-xl-plugins-5e753c5c4bf5b086f031fa0fbbe5a3b045298ab5.zip
Fix problem with language_sh plugin
The previous pattern can match incorrectly very long sequences
Diffstat (limited to 'plugins/language_sh.lua')
-rw-r--r--plugins/language_sh.lua2
1 files changed, 1 insertions, 1 deletions
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" },
},