runtime(vim): Use supported syntax in indent tests

Commit: 
https://github.com/vim/vim/commit/9739086de2ff2f894671668be20e335cad3fba3b
Author: Aliaksei Budavei <0x000...@gmail.com>
Date:   Wed Dec 25 10:18:15 2024 +0100

    runtime(vim): Use supported syntax in indent tests
    
    For now, prefer mis-indentation of enum values (see 
https://github.com/vim/vim/issues/16289)
    rather than invalid syntax.
    
    Related to #13670 and #14224.
    
    closes: #16292
    
    Signed-off-by: Aliaksei Budavei <0x000...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/indent/testdir/vim.in b/runtime/indent/testdir/vim.in
index a3c8c920b..ae52f3a94 100644
--- a/runtime/indent/testdir/vim.in
+++ b/runtime/indent/testdir/vim.in
@@ -905,15 +905,15 @@ endif
 
 " START_INDENT
 abstract class Shape
-this.color = Color.Black
-this.thickness = 10
+var color = Color.Black
+var thickness = 10
 endclass
 " END_INDENT
 
 " START_INDENT
 class OtherThing
-this.size: number
-static totalSize: number
+var size: number
+static var totalSize: number
 
 static def ClearTotalSize(): number
 var prev = totalSize
@@ -925,7 +925,7 @@ endclass
 
 " START_INDENT
 interface HasSurface
-this.size: number
+var size: number
 def Surface(): number
 endinterface
 " END_INDENT
@@ -939,10 +939,10 @@ endinterface
 
 " START_INDENT
 enum Color
-White
-Red
-Green
-Blue
+White,
+Red,
+Green,
+Blue,
 Black
 endenum
 " END_INDENT
diff --git a/runtime/indent/testdir/vim.ok b/runtime/indent/testdir/vim.ok
index 56f3d98ba..2ab4f39c0 100644
--- a/runtime/indent/testdir/vim.ok
+++ b/runtime/indent/testdir/vim.ok
@@ -905,15 +905,15 @@ endif
 
 " START_INDENT
 abstract class Shape
-    this.color = Color.Black
-    this.thickness = 10
+    var color = Color.Black
+    var thickness = 10
 endclass
 " END_INDENT
 
 " START_INDENT
 class OtherThing
-    this.size: number
-    static totalSize: number
+    var size: number
+    static var totalSize: number
 
     static def ClearTotalSize(): number
        var prev = totalSize
@@ -925,7 +925,7 @@ endclass
 
 " START_INDENT
 interface HasSurface
-    this.size: number
+    var size: number
     def Surface(): number
 endinterface
 " END_INDENT
@@ -939,11 +939,11 @@ endinterface
 
 " START_INDENT
 enum Color
-    White
-    Red
-    Green
-    Blue
-    Black
+    White,
+       Red,
+       Green,
+       Blue,
+       Black
 endenum
 " END_INDENT
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tQNiS-002XZb-9s%40256bit.org.

Raspunde prin e-mail lui