@@ -32,15 +32,19 @@ syn match ostFileDivider "^__$" conceal
3232
3333syn match ostStateNotRun " ^|.*" contains =ostStatePrefix,ostTestNamespace
3434syn match ostStateRunning " ^-.*" contains =ostStatePrefix,ostTestNamespace,ostRunningSuffix
35- syn match ostStatePassed " ^\* .*" contains =ostStatePrefix,ostTestNamespace
36- syn match ostStateFailed " ^!.*" contains =ostStatePrefix,ostTestNamespace
35+ syn match ostStatePassed " ^\* .*" contains =ostStatePrefix,ostTestNamespace,ostStatePassedGlyph,ostCompletePrefixDivider
36+ syn match ostStateFailed " ^!.*" contains =ostStatePrefix,ostTestNamespace,ostStateFailedGlyph,ostCompletePrefixDivider
3737syn match ostStatePrefix " ^[|\* !-]" conceal contained
3838syn match ostTestNamespace " \% (\w\+\.\) *\z e\w\+ " conceal contained
3939
4040syn match ostRunningSuffix " -- .*" contained contains =ostRunningSpinner,ostRunningSuffixDivider
4141syn match ostRunningSuffixDivider " \z s--" conceal contained
4242syn match ostRunningSpinner " -- \z s.*" contained
4343
44+ syn match ostStatePassedGlyph " \% (|| \)\@ <=.\{ -}\z e || " contained
45+ syn match ostStateFailedGlyph " \% (|| \)\@ <=.\{ -}\z e || " contained
46+ syn match ostCompletePrefixDivider " || " conceal contained
47+
4448syn region ostFailure start =" ^>" end =" ^[^>]" me =s - 1 contains =ostFailurePrefix,ostStackLoc,ostStackNoLoc fold
4549syn match ostFailurePrefix " ^>" conceal contained
4650syn region ostStackLoc start =" __ " hs =e + 1 end =" __ " he =e - 1 contains =ostStackFile,ostStackDelimiter,ostStackNamespace contained keepend
@@ -66,7 +70,9 @@ hi def link ostStateNotRun Comment
6670hi def link ostStateRunning Identifier
6771hi def link ostRunningSpinner Normal
6872hi def link ostStatePassed Title
73+ hi def link ostStatePassedGlyph Title
6974hi def link ostStateFailed WarningMsg
75+ hi def link ostStateFailedGlyph WarningMsg
7076hi def link ostStackLoc Identifier
7177hi def link ostOutput Comment
7278
@@ -78,6 +84,7 @@ hi def link ostFileDivider NonText
7884hi def link ostStatePrefix NonText
7985hi def link ostFailurePrefix NonText
8086hi def link ostRunningSuffixDivider NonText
87+ hi def link ostCompletePrefixDivider NonText
8188hi def link ostStackDelimiter NonText
8289hi def link ostStackFileDelimiter NonText
8390hi def link ostStackNoLocDelimiter NonText
0 commit comments