summaryrefslogtreecommitdiffstats
path: root/syntax/basic/doc.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-04-25 21:03:34 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-04-25 21:03:34 +0200
commit68b2748af117b56208f25678c4b465af00dc64c5 (patch)
treef9038064b78513b3f99edb574cdd2943bd2fd633 /syntax/basic/doc.vim
parent14dc82fc4e6c0c08078f97a24a6c1639c1cc5113 (diff)
downloadvim-polyglot-68b2748af117b56208f25678c4b465af00dc64c5.tar.gz
vim-polyglot-68b2748af117b56208f25678c4b465af00dc64c5.zip
Update
Diffstat (limited to 'syntax/basic/doc.vim')
-rw-r--r--syntax/basic/doc.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/syntax/basic/doc.vim b/syntax/basic/doc.vim
index 44c94ef6..50f03e29 100644
--- a/syntax/basic/doc.vim
+++ b/syntax/basic/doc.vim
@@ -7,8 +7,9 @@ syntax match shellbang "^#!.*iojs\>"
"JavaScript comments
syntax keyword typescriptCommentTodo TODO FIXME XXX TBD
+syntax match typescriptMagicComment "@ts-\%(ignore\|expect-error\)\>"
syntax match typescriptLineComment "//.*"
- \ contains=@Spell,typescriptCommentTodo,typescriptRef
+ \ contains=@Spell,typescriptCommentTodo,typescriptRef,typescriptMagicComment
syntax region typescriptComment
\ start="/\*" end="\*/"
\ contains=@Spell,typescriptCommentTodo extend