|
9 | 9 | if &filetype == 'javascript' |
10 | 10 | syntax cluster javascriptLibraryFuncs contains=@javascriptQFunctions,@javascript_Functions,@javascriptBFunctions,@javascriptpFunctions |
11 | 11 | 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 |
14 | 14 | endif |
15 | 15 |
|
16 | 16 | if &filetype == 'coffee' |
17 | 17 | syntax cluster coffeeLibraryFuncs contains=@coffeeQFunctions,@coffee_Functions,@coffeeBFunctions,@coffeepFunctions |
18 | 18 | 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 |
23 | 23 | endif |
24 | 24 |
|
25 | 25 | if &filetype == 'ls' |
26 | 26 | syntax cluster lsLibraryFuncs contains=@lsQFunctions,@ls_Functions,@lsBFunctions,@lspFunctions |
27 | 27 | syntax cluster lsLibraryAttrs contains=@lsQAttrs,@ls_Attrs,@lsBAttrs,@lspAttrs |
28 | 28 | " ).fun! |
29 | | - " !fun! |
30 | | - " ).fun( |
31 | | - " !fun() |
| 29 | + " ).fun() |
| 30 | + " fun0!fun! |
| 31 | + " fun0!fun() |
32 | 32 | " obj.fun! |
33 | 33 | " 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 |
35 | 35 | " ).fun arg |
36 | 36 | " !fun arg |
37 | 37 | " 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 |
39 | 39 | " ).fun funarg |
40 | 40 | " !fun funarg |
41 | 41 | " 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 |
43 | 43 | syntax match lsLPipe /|>/ containedin=ALL skipwhite nextgroup=@lspFunctions |
44 | 44 | 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 |
46 | 46 | endif |
0 commit comments