changeset 28666:91faff07670a v8.2.4857

patch 8.2.4857: Yaml indent for multiline is wrong Commit: https://github.com/vim/vim/commit/f4f579b46b27f5e1689912a3e84c6a2a96efd143 Author: asmka <asmka9@gmail.com> Date: Mon May 2 10:46:49 2022 +0100 patch 8.2.4857: Yaml indent for multiline is wrong Problem: Yaml indent for multiline is wrong. Solution: Adjust patterns. (closes https://github.com/vim/vim/issues/10328, closes https://github.com/vim/vim/issues/8740)
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 May 2022 12:00:03 +0200
parents d7e39c4eebd2
children 7782b07d29ca
files runtime/indent/testdir/yaml.in runtime/indent/testdir/yaml.ok src/version.c
diffstat 3 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/indent/testdir/yaml.in
+++ b/runtime/indent/testdir/yaml.in
@@ -17,3 +17,9 @@ map: val
 map: multiline
 value
 # END_INDENT
+
+# START_INDENT
+map: |
+line1
+line2
+# END_INDENT
--- a/runtime/indent/testdir/yaml.ok
+++ b/runtime/indent/testdir/yaml.ok
@@ -17,3 +17,9 @@ map: val
 map: multiline
   value
 # END_INDENT
+
+# START_INDENT
+map: |
+  line1
+  line2
+# END_INDENT
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4857,
+/**/
     4856,
 /**/
     4855,