Skip to content

Commit efc0c33

Browse files
committed
Make sure to overwrite vim's built-in syntax highlighting
1 parent 5a319ea commit efc0c33

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

syntax/typescript.vim

+3-2
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,11 @@ syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparen
223223
" }}}
224224

225225
" Define the default highlighting.
226-
" For version 5.7 and earlier: only when not done already
226+
" For version 5.7 and earlier: only when not done already by this script
227227
" For version 5.8 and later: only when an item doesn't have highlighting yet
228+
" For version 8.1.1486 and later: only when not done already by this script (need to override vim's new typescript support)
228229
if version >= 508 || !exists("did_typescript_syn_inits")
229-
if version < 508
230+
if version < 508 || has('patch-8.1.1486')
230231
let did_typescript_syn_inits = 1
231232
command -nargs=+ HiLink hi link <args>
232233
else

0 commit comments

Comments
 (0)