From bdfc62184d303a3bdcea7f500bd8a8b2b8a3b7ed Mon Sep 17 00:00:00 2001 From: Grissiom Date: Thu, 2 Dec 2010 23:42:48 +0800 Subject: [PATCH] fish_indent: indent "case" with the same level as "swith" --- fish_indent.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fish_indent.c b/fish_indent.c index f3184c4c4..14cf5a6cf 100644 --- a/fish_indent.c +++ b/fish_indent.c @@ -125,6 +125,11 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags ) { indent--; } + /* case should have the same indent level as switch*/ + else if( wcscmp( unesc, L"case" ) == 0 ) + { + indent--; + } else if( wcscmp( unesc, L"end" ) == 0 ) { indent--;