diff options
author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-03-30 14:56:28 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-03-30 14:56:28 +0200 |
commit | 5e753c5c4bf5b086f031fa0fbbe5a3b045298ab5 (patch) | |
tree | 009cab6d467a19933b3b5c5d5e68416da159bc98 | |
parent | afb5c04774595b9fa8be1b5f999b7dc9642ad6af (diff) | |
download | lite-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
-rw-r--r-- | plugins/language_sh.lua | 2 |
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" }, }, |