aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-04-12 19:43:29 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 13:20:25 -0400
commit826fbc80a3295a64e6a23caf41a6580107ab9660 (patch)
tree248aa98c0b4a151ef1748945f7b80f559fcb2edc /plugins
parentcd4d2ba1a34ba93f1ac78de2ef66088c4491046c (diff)
downloadlite-xl-plugins-826fbc80a3295a64e6a23caf41a6580107ab9660.tar.gz
lite-xl-plugins-826fbc80a3295a64e6a23caf41a6580107ab9660.zip
language_yaml: also support bracket lists after hyphens
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_yaml.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/language_yaml.lua b/plugins/language_yaml.lua
index 0f1c452..fdc26fa 100644
--- a/plugins/language_yaml.lua
+++ b/plugins/language_yaml.lua
@@ -79,6 +79,14 @@ syntax.add {
pattern = { "^%s*{", "}" },
syntax = yaml_bracket_list, type = "operator"
},
+ {
+ pattern = { "^%s*%-%s*%[", "%]" },
+ syntax = yaml_bracket_list, type = "operator"
+ },
+ {
+ pattern = { "^%s*%-%s*{", "}" },
+ syntax = yaml_bracket_list, type = "operator"
+ },
-- rule to optimize space handling
{ pattern = "%s+", type = "normal" },
--- all the other rules