From 27ac3e67fe5b30c31b1bdade996cd41df944b869 Mon Sep 17 00:00:00 2001 From: Ginger Old <18351761+laoshaw@users.noreply.github.com> Date: Sat, 3 Feb 2024 13:39:38 -0600 Subject: [PATCH] Update typescript.vim to fix highlight red on reserved keywords without this, "import", "from" are now highlighted as red. --- syntax/typescript.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/typescript.vim b/syntax/typescript.vim index f273816..b1e39f3 100644 --- a/syntax/typescript.vim +++ b/syntax/typescript.vim @@ -224,7 +224,7 @@ syn region foldBraces start=/{/ skip=/\(\/\/.*\)\|\(\/.*\/\)/ end=/}/ transparen " }}} " Define the default highlighting. -if version < 508 +if version >= 508 command -nargs=+ HiLink hi link else command -nargs=+ HiLink hi def link