0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

runtime(vim): Use supported syntax in indent tests

For now, prefer mis-indentation of enum values (see #16289)
rather than invalid syntax.

Related to #13670 and #14224.

closes: #16292

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Aliaksei Budavei 2024-12-25 10:18:15 +01:00 committed by Christian Brabandt
parent e62d93ead1
commit 9739086de2
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -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