summaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-11-15 17:27:14 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-11-15 17:27:14 +0100
commitd15651463ab5c3dd6609e548527a8ea18ab80c98 (patch)
treed148d7d3f48beefe0d1b7864355ff54ea6b55f50 /indent
parent0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2 (diff)
downloadvim-polyglot-d15651463ab5c3dd6609e548527a8ea18ab80c98.tar.gz
vim-polyglot-d15651463ab5c3dd6609e548527a8ea18ab80c98.zip
Updatev4.1.1
Diffstat (limited to 'indent')
-rw-r--r--indent/typescript.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/indent/typescript.vim b/indent/typescript.vim
index cf2d107a..f630a34c 100644
--- a/indent/typescript.vim
+++ b/indent/typescript.vim
@@ -67,8 +67,8 @@ let s:var_stmt = '^\s*var'
let s:comma_first = '^\s*,'
let s:comma_last = ',\s*$'
-let s:ternary = '^\s\+[?|:]'
-let s:ternary_q = '^\s\+?'
+let s:ternary = '^\s\+[?:]'
+let s:ternary_q = '^\s\+?[.?]\@!'
" 2. Auxiliary Functions {{{1
" ======================