summaryrefslogtreecommitdiffstats
path: root/syntax/basic/members.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/basic/members.vim')
-rw-r--r--syntax/basic/members.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/basic/members.vim b/syntax/basic/members.vim
index 45fafbcc..17465093 100644
--- a/syntax/basic/members.vim
+++ b/syntax/basic/members.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptConstructor contained constructor
\ nextgroup=@typescriptCallSignature
\ skipwhite skipempty
@@ -48,3 +45,4 @@ syntax region typescriptComputedMember contained matchgroup=typescriptPropert
\ contains=@typescriptValue,typescriptMember,typescriptMappedIn
\ nextgroup=@memberNextGroup
\ skipwhite skipempty
+endif