0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -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 " START_INDENT
abstract class Shape abstract class Shape
this.color = Color.Black var color = Color.Black
this.thickness = 10 var thickness = 10
endclass endclass
" END_INDENT " END_INDENT
" START_INDENT " START_INDENT
class OtherThing class OtherThing
this.size: number var size: number
static totalSize: number static var totalSize: number
static def ClearTotalSize(): number static def ClearTotalSize(): number
var prev = totalSize var prev = totalSize
@ -925,7 +925,7 @@ endclass
" START_INDENT " START_INDENT
interface HasSurface interface HasSurface
this.size: number var size: number
def Surface(): number def Surface(): number
endinterface endinterface
" END_INDENT " END_INDENT
@ -939,10 +939,10 @@ endinterface
" START_INDENT " START_INDENT
enum Color enum Color
White White,
Red Red,
Green Green,
Blue Blue,
Black Black
endenum endenum
" END_INDENT " END_INDENT

View File

@ -905,15 +905,15 @@ endif
" START_INDENT " START_INDENT
abstract class Shape abstract class Shape
this.color = Color.Black var color = Color.Black
this.thickness = 10 var thickness = 10
endclass endclass
" END_INDENT " END_INDENT
" START_INDENT " START_INDENT
class OtherThing class OtherThing
this.size: number var size: number
static totalSize: number static var totalSize: number
static def ClearTotalSize(): number static def ClearTotalSize(): number
var prev = totalSize var prev = totalSize
@ -925,7 +925,7 @@ endclass
" START_INDENT " START_INDENT
interface HasSurface interface HasSurface
this.size: number var size: number
def Surface(): number def Surface(): number
endinterface endinterface
" END_INDENT " END_INDENT
@ -939,11 +939,11 @@ endinterface
" START_INDENT " START_INDENT
enum Color enum Color
White White,
Red Red,
Green Green,
Blue Blue,
Black Black
endenum endenum
" END_INDENT " END_INDENT