diff options
author | jgmdev <jgmdev@gmail.com> | 2022-04-12 19:43:29 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-05-22 13:20:25 -0400 |
commit | 826fbc80a3295a64e6a23caf41a6580107ab9660 (patch) | |
tree | 248aa98c0b4a151ef1748945f7b80f559fcb2edc | |
parent | cd4d2ba1a34ba93f1ac78de2ef66088c4491046c (diff) | |
download | lite-xl-plugins-826fbc80a3295a64e6a23caf41a6580107ab9660.tar.gz lite-xl-plugins-826fbc80a3295a64e6a23caf41a6580107ab9660.zip |
language_yaml: also support bracket lists after hyphens
-rw-r--r-- | plugins/language_yaml.lua | 8 |
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 |