mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-19 08:53:41 -05:00
15 lines
824 B
VimL
15 lines
824 B
VimL
if polyglot#init#is_disabled(expand('<sfile>:p'), 'typescript', 'syntax/yats/es6-regexp.vim')
|
|
finish
|
|
endif
|
|
|
|
syntax keyword typescriptGlobal containedin=typescriptIdentifierName RegExp nextgroup=typescriptGlobalRegExpDot,typescriptFuncCallArg
|
|
syntax match typescriptGlobalRegExpDot /\./ contained nextgroup=typescriptRegExpStaticProp,typescriptProp
|
|
syntax keyword typescriptRegExpStaticProp contained lastIndex
|
|
hi def link typescriptRegExpStaticProp Keyword
|
|
syntax keyword typescriptRegExpProp contained dotAll global ignoreCase multiline source sticky
|
|
syntax cluster props add=typescriptRegExpProp
|
|
hi def link typescriptRegExpProp Keyword
|
|
syntax keyword typescriptRegExpMethod contained exec test nextgroup=typescriptFuncCallArg
|
|
syntax cluster props add=typescriptRegExpMethod
|
|
hi def link typescriptRegExpMethod Keyword
|