summaryrefslogtreecommitdiffstats
path: root/syntax/basic/symbols.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/basic/symbols.vim')
-rw-r--r--syntax/basic/symbols.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/basic/symbols.vim b/syntax/basic/symbols.vim
index 5728316a..c4c025ac 100644
--- a/syntax/basic/symbols.vim
+++ b/syntax/basic/symbols.vim
@@ -5,7 +5,7 @@ syntax match typescriptUnaryOp /[+\-~!]/
\ nextgroup=@typescriptValue
\ skipwhite
-syntax region typescriptTernary matchgroup=typescriptTernaryOp start=/?/ end=/:/ contained contains=@typescriptValue,@typescriptComments nextgroup=@typescriptValue skipwhite skipempty
+syntax region typescriptTernary matchgroup=typescriptTernaryOp start=/?[.?]\@!/ end=/:/ contained contains=@typescriptValue,@typescriptComments nextgroup=@typescriptValue skipwhite skipempty
syntax match typescriptAssign /=/ nextgroup=@typescriptValue
\ skipwhite skipempty