summaryrefslogtreecommitdiffstats
path: root/syntax/basic/decorator.vim
blob: 1a8fc2c7cd78161cfa52fcd285ed6ad185ab82cc (plain) (blame)
1
2
3
4
5
6
7
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]*\>/
  \ nextgroup=typescriptArgumentList,typescriptTypeArguments
  \ contains=@_semantic,typescriptDotNotation

endif