diff options
Diffstat (limited to 'syntax/basic/decorator.vim')
-rw-r--r-- | syntax/basic/decorator.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/syntax/basic/decorator.vim b/syntax/basic/decorator.vim index 2a7a1dd1..7f5456cd 100644 --- a/syntax/basic/decorator.vim +++ b/syntax/basic/decorator.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'syntax/basic/decorator.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" }) +if len(files) > 0 + exec 'source ' . files[0] + finish +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 syntax match typescriptDecorator /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/ |