From 49b3aa010e27fc4596c001e494e8ddf929d887e1 Mon Sep 17 00:00:00 2001 From: Daniel Leong Date: Tue, 26 Jan 2021 13:54:45 -0500 Subject: [PATCH] Fix switch indentation Before commit: ```typescript switch (..) { case ..: line1... line2... break; } ``` After: ```typescript switch (..) { case ..: line1... line2... break; } ``` --- after/indent/typescriptreact.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/indent/typescriptreact.vim b/after/indent/typescriptreact.vim index 50e10a3..dde3a86 100644 --- a/after/indent/typescriptreact.vim +++ b/after/indent/typescriptreact.vim @@ -37,7 +37,7 @@ function! s:SynEOL(lnum) endfunction function! s:SynAttrJSX(synattr) - return a:synattr =~ "^tsx" + return a:synattr =~ "^tsx" && a:synattr !=# 'tsxElseOperator' endfunction function! s:SynXMLish(syns)