summaryrefslogtreecommitdiffstats
path: root/syntax/basic/decorator.vim
blob: c27b9b7ec4ee0d31c0dca4fb4e737b6cbfd15303 (plain) (blame)
1
2
3
4
5
6
7
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
  finish
endif

syntax match typescriptDecorator /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/
  \ nextgroup=typescriptArgumentList,typescriptTypeArguments
  \ contains=@_semantic,typescriptDotNotation