Skip to content

Commit 5bf7b07

Browse files
committed
Update pattern post process
1 parent ce34827 commit 5bf7b07

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

plugin/syntax/postprocess.vim

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,38 @@
99
if &filetype == 'javascript'
1010
syntax cluster javascriptLibraryFuncs contains=@javascriptQFunctions,@javascript_Functions,@javascriptBFunctions,@javascriptpFunctions
1111
syntax cluster javascriptLibraryAttrs contains=@javascriptQAttrs,@javascript_Attrs,@javascriptBAttrs,@javascriptpAttrs
12-
syntax match javascriptLMethods /[0-9A-Za-z_)]\@<=\.\h\w*(\@=/ containedin=ALL contains=@javascriptLibraryFuncs
13-
syntax match javascriptLAttrs /[0-9A-Za-z_)]\@<=\.\h\w*/ containedin=ALL contains=@javascriptLibraryAttrs
12+
syntax match javascriptLMethods /[0-9A-Za-z_$)]\@<=\.\h\w*(\@=/ containedin=ALL contains=@javascriptLibraryFuncs
13+
syntax match javascriptLAttrs /[0-9A-Za-z_$)]\@<=\.\h\w*/ containedin=ALL contains=@javascriptLibraryAttrs
1414
endif
1515

1616
if &filetype == 'coffee'
1717
syntax cluster coffeeLibraryFuncs contains=@coffeeQFunctions,@coffee_Functions,@coffeeBFunctions,@coffeepFunctions
1818
syntax cluster coffeeLibraryAttrs contains=@coffeeQAttrs,@coffee_Attrs,@coffeeBAttrs,@coffeepAttrs
19-
syntax match coffeeLMethods /[0-9A-Za-z_)]\.\h\w*(\@=/ containedin=ALL contains=@coffeeLibraryFuncs
20-
syntax match coffeeLMethods /[0-9A-Za-z_)]\.\h\w* \+[0-9A-Za-z_([{'"]\@=/ containedin=ALL contains=@coffeeLibraryFuncs
21-
syntax match coffeeLMethods /[0-9A-Za-z_)]\.\h\w* \([-=]>\)\@=/ containedin=ALL contains=@coffeeLibraryFuncs
22-
syntax match coffeeLAttrs /[0-9A-Za-z_)]\.\h\w*/ containedin=ALL contains=@coffeeLibraryAttrs
19+
syntax match coffeeLMethods /[0-9A-Za-z_$)]\@<=\.\h\w*(\@=/ containedin=ALL contains=@coffeeLibraryFuncs
20+
syntax match coffeeLMethods /[0-9A-Za-z_$)]\@<=\.\h\w* \+[0-9A-Za-z_$([{'"]\@=/ containedin=ALL contains=@coffeeLibraryFuncs
21+
syntax match coffeeLMethods /[0-9A-Za-z_$)]\@<=\.\h\w* \([-=]>\)\@=/ containedin=ALL contains=@coffeeLibraryFuncs
22+
syntax match coffeeLAttrs /[0-9A-Za-z_$)]\@<=\.\h\w*/ containedin=ALL contains=@coffeeLibraryAttrs
2323
endif
2424

2525
if &filetype == 'ls'
2626
syntax cluster lsLibraryFuncs contains=@lsQFunctions,@ls_Functions,@lsBFunctions,@lspFunctions
2727
syntax cluster lsLibraryAttrs contains=@lsQAttrs,@ls_Attrs,@lsBAttrs,@lspAttrs
2828
" ).fun!
29-
" !fun!
30-
" ).fun(
31-
" !fun()
29+
" ).fun()
30+
" fun0!fun!
31+
" fun0!fun()
3232
" obj.fun!
3333
" obj.fun()
34-
syntax match lsLMethods /\(\w[\.!]\|).\)\h\w*[(!]\@=/ containedin=ALL contains=@lsLibraryFuncs
34+
syntax match lsLMethods /\([0-9A-Za-z_$][.!]\|)\.\)\@<=\h\w*[(!]\@=/ containedin=ALL contains=@lsLibraryFuncs
3535
" ).fun arg
3636
" !fun arg
3737
" obj.fun arg
38-
syntax match lsLMethods /\(\w[\.!]\|).\)\h\w* \+[0-9A-Za-z_([{\'"]\@=/ containedin=ALL contains=@lsLibraryFuncs
38+
syntax match lsLMethods /\([0-9A-Za-z_$][.!]\|)\.\)\@<=\h\w* \+[0-9A-Za-z_$([{\'"]\@=/ containedin=ALL contains=@lsLibraryFuncs
3939
" ).fun funarg
4040
" !fun funarg
4141
" obj.fun funarg
42-
syntax match lsLMethods /\(\w[\.!]\|).\)\h\w* \(!\?[~-]>\)\@=/ containedin=ALL contains=@lsLibraryFuncs
42+
syntax match lsLMethods /\([0-9A-Za-z_$][.!]\|)\.\)\@<=\h\w* \(!\?[~-]>\)\@=/ containedin=ALL contains=@lsLibraryFuncs
4343
syntax match lsLPipe /|>/ containedin=ALL skipwhite nextgroup=@lspFunctions
4444
syntax match lsLCompose />>/ containedin=ALL skipwhite nextgroup=@lspFunctions
45-
syntax match lsLAttrs /\(\w[\.!]\|)\.\)\h\w*/ containedin=ALL contains=@lsLibraryAttrs
45+
syntax match lsLAttrs /\([0-9A-Za-z_$][.!]\|)\.\)\@<=\h\w*/ containedin=ALL contains=@lsLibraryAttrs
4646
endif

0 commit comments

Comments
 (0)