aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_sh.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2021-04-16 00:13:56 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2021-04-16 00:13:56 +0200
commitb09046a719cafa8f75c542123828cd76be460a2a (patch)
tree3981aee1e9d7b24cf3a3e8fb623d7929776a0109 /plugins/language_sh.lua
parent702ad43fe3af4e64fbdd2b32bfd4b0fbc7244bf8 (diff)
downloadlite-xl-plugins-b09046a719cafa8f75c542123828cd76be460a2a.tar.gz
lite-xl-plugins-b09046a719cafa8f75c542123828cd76be460a2a.zip
Use a simpler pattern for language_sh
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 60d2809..7b9c0d8 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" },
},