|
5 | 5 | " Version: 0.9.10 |
6 | 6 | " URL: http://backbonejs.org/ |
7 | 7 |
|
8 | | -syntax keyword javascriptBackbone Backbone Collection Model View Events Router History Sync Utility containedin=ALL |
9 | | - |
10 | | -syntax cluster javascriptBFunctions contains=javascriptBEvents,javascriptBModel,javascriptBCollection,javascriptBRouter,javascriptBHistory,javascriptBSync,javascriptBView,javascriptBUtility |
11 | | -syntax cluster javascriptBAttrs contains=javascriptBModelAttrs,javascriptBCollectionAttrs,javascriptBRouterAttrs,javascriptBSyncAttrs,javascriptBViewAttrs |
12 | | - |
13 | | -syntax keyword javascriptBEvents contained on off trigger once listenTo stopListening |
14 | | -syntax keyword javascriptBModel contained extend constructor initialize get set escape has unset clear |
15 | | -syntax keyword javascriptBModel contained toJSON sync fetch save destroy validate validationError url parse |
16 | | -syntax keyword javascriptBModel contained clone isNew hasChanged changedAttributes previous previousAttributes |
17 | | -syntax keyword javascriptBCollection contained extend constructor initialize toJSON sync add remove reset update get at |
18 | | -syntax keyword javascriptBCollection contained push pop unshift shift length comparator sort pluck where url parse clone fetch create |
19 | | -syntax keyword javascriptBRouter contained extend constructor initialize route navigate |
20 | | -syntax keyword javascriptBHistory contained start |
21 | | -syntax keyword javascriptBSync contained ajax |
22 | | -syntax keyword javascriptBView contained extend constructor initialize setElement render remove delegateEvents undelegateEvents |
23 | | -syntax keyword javascriptBUtility contained noConflict |
24 | | - |
25 | | -syntax keyword javascriptBModelAttrs contained id idAttribute cid attributes changed defaults urlRoot |
26 | | -syntax keyword javascriptBCollectionAttrs contained model models length comparator url |
27 | | -syntax keyword javascriptBRouterAttrs contained routes |
28 | | -syntax keyword javascriptBSyncAttrs contained emulateHTTP emulateJSON |
29 | | -syntax keyword javascriptBViewAttrs contained el attributes |
30 | | -syntax keyword javascriptBViewAttrs match /$el/ |
31 | | - |
32 | | - |
33 | | - |
34 | | -syntax keyword coffeeBackbone Backbone Collection Model View Events Router History Sync Utility containedin=ALL |
35 | | - |
36 | | -syntax cluster coffeeBFunctions contains=coffeeBEvents,coffeeBModel,coffeeBCollection,coffeeBRouter,coffeeBHistory,coffeeBSync,coffeeBView,coffeeBUtility |
37 | | -syntax cluster coffeeBAttrs contains=coffeeBModelAttrs,coffeeBCollectionAttrs,coffeeBRouterAttrs,coffeeBSyncAttrs,coffeeBViewAttrs |
38 | | - |
39 | | -syntax keyword coffeeBEvents contained on off trigger once listenTo stopListening |
40 | | -syntax keyword coffeeBModel contained extend constructor initialize get set escape has unset clear id idAttribute cid attributes |
41 | | -syntax keyword coffeeBModel contained changed defaults toJSON sync fetch save destroy validate validationError url urlRoot parse |
42 | | -syntax keyword coffeeBModel contained clone isNew hasChanged changedAttributes previous previousAttributes |
43 | | -syntax keyword coffeeBCollection contained extend model constructor initialize models toJSON sync add remove reset update get at |
44 | | -syntax keyword coffeeBCollection contained push pop unshift shift length comparator sort pluck where url parse clone fetch create |
45 | | -syntax keyword coffeeBRouter contained extend routes constructor initialize route navigate |
46 | | -syntax keyword coffeeBHistory contained start |
47 | | -syntax keyword coffeeBSync contained sync ajax emulateHTTP emulateJSON |
48 | | -syntax keyword coffeeBView contained extend constructor initialize el $el setElement attributes render remove delegateEvents |
49 | | -syntax keyword coffeeBView contained undelegateEvents |
50 | | -syntax keyword coffeeBUtility contained noConflict |
51 | | - |
52 | | -syntax keyword coffeeBModelAttrs contained id idAttribute cid attributes changed defaults urlRoot |
53 | | -syntax keyword coffeeBCollectionAttrs contained model models length comparator url |
54 | | -syntax keyword coffeeBRouterAttrs contained routes |
55 | | -syntax keyword coffeeBSyncAttrs contained emulateHTTP emulateJSON |
56 | | -syntax keyword coffeeBViewAttrs contained el attributes |
57 | | -syntax keyword coffeeBViewAttrs match /$el/ |
58 | | - |
59 | | - |
60 | | - |
61 | | -syntax keyword lsBackbone Backbone Collection Model View Events Router History Sync Utility containedin=ALL |
62 | | - |
63 | | -syntax cluster lsBFunctions contains=lsBEvents,lsBModel,lsBCollection,lsBRouter,lsBHistory,lsBSync,lsBView,lsBUtility |
64 | | -syntax cluster lsBAttrs contains=lsBModelAttrs,lsBCollectionAttrs,lsBRouterAttrs,lsBSyncAttrs,lsBViewAttrs |
65 | | - |
66 | | -syntax keyword lsBEvents contained on off trigger once listenTo stopListening |
67 | | -syntax keyword lsBModel contained extend constructor initialize get set escape has unset clear id idAttribute cid attributes |
68 | | -syntax keyword lsBModel contained changed defaults toJSON sync fetch save destroy validate validationError url urlRoot parse |
69 | | -syntax keyword lsBModel contained clone isNew hasChanged changedAttributes previous previousAttributes |
70 | | -syntax keyword lsBCollection contained extend model constructor initialize models toJSON sync add remove reset update get at |
71 | | -syntax keyword lsBCollection contained push pop unshift shift length comparator sort pluck where url parse clone fetch create |
72 | | -syntax keyword lsBRouter contained extend routes constructor initialize route navigate |
73 | | -syntax keyword lsBHistory contained start |
74 | | -syntax keyword lsBSync contained sync ajax emulateHTTP emulateJSON |
75 | | -syntax keyword lsBView contained extend constructor initialize el $el setElement attributes render remove delegateEvents |
76 | | -syntax keyword lsBView contained undelegateEvents |
77 | | -syntax keyword lsBUtility contained noConflict |
78 | | - |
79 | | -syntax keyword lsBModelAttrs contained id idAttribute cid attributes changed defaults urlRoot |
80 | | -syntax keyword lsBCollectionAttrs contained model models length comparator url |
81 | | -syntax keyword lsBRouterAttrs contained routes |
82 | | -syntax keyword lsBSyncAttrs contained emulateHTTP emulateJSON |
83 | | -syntax keyword lsBViewAttrs contained el attributes |
84 | | -syntax keyword lsBViewAttrs match /$el/ |
| 8 | +if &filetype == 'javascript' |
| 9 | + |
| 10 | + syntax keyword javascriptBackbone Backbone Collection Model View Events Router History Sync Utility containedin=ALLBUT,javascriptComment |
| 11 | + |
| 12 | + syntax cluster javascriptBFunctions contains=javascriptBEvents,javascriptBModel,javascriptBCollection,javascriptBRouter,javascriptBHistory,javascriptBSync,javascriptBView,javascriptBUtility |
| 13 | + syntax cluster javascriptBAttrs contains=javascriptBModelAttrs,javascriptBCollectionAttrs,javascriptBRouterAttrs,javascriptBSyncAttrs,javascriptBViewAttrs |
| 14 | + |
| 15 | + syntax keyword javascriptBEvents contained on off trigger once listenTo stopListening |
| 16 | + syntax keyword javascriptBModel contained extend constructor initialize get set escape has unset clear |
| 17 | + syntax keyword javascriptBModel contained toJSON sync fetch save destroy validate validationError url parse |
| 18 | + syntax keyword javascriptBModel contained clone isNew hasChanged changedAttributes previous previousAttributes |
| 19 | + syntax keyword javascriptBCollection contained extend constructor initialize toJSON sync add remove reset update get at |
| 20 | + syntax keyword javascriptBCollection contained push pop unshift shift length comparator sort pluck where url parse clone fetch create |
| 21 | + syntax keyword javascriptBRouter contained extend constructor initialize route navigate |
| 22 | + syntax keyword javascriptBHistory contained start |
| 23 | + syntax keyword javascriptBSync contained ajax |
| 24 | + syntax keyword javascriptBView contained extend constructor initialize setElement render remove delegateEvents undelegateEvents |
| 25 | + syntax keyword javascriptBUtility contained noConflict |
| 26 | + |
| 27 | + syntax keyword javascriptBModelAttrs contained id idAttribute cid attributes changed defaults urlRoot |
| 28 | + syntax keyword javascriptBCollectionAttrs contained model models length comparator url |
| 29 | + syntax keyword javascriptBRouterAttrs contained routes |
| 30 | + syntax keyword javascriptBSyncAttrs contained emulateHTTP emulateJSON |
| 31 | + syntax keyword javascriptBViewAttrs contained el attributes |
| 32 | + syntax keyword javascriptBViewAttrs match /$el/ |
85 | 33 |
|
| 34 | +endif |
| 35 | + |
| 36 | +if &filetype == 'coffee' |
| 37 | + |
| 38 | + syntax keyword coffeeBackbone Backbone Collection Model View Events Router History Sync Utility containedin=ALLBUT,coffeeComment |
| 39 | + |
| 40 | + syntax cluster coffeeBFunctions contains=coffeeBEvents,coffeeBModel,coffeeBCollection,coffeeBRouter,coffeeBHistory,coffeeBSync,coffeeBView,coffeeBUtility |
| 41 | + syntax cluster coffeeBAttrs contains=coffeeBModelAttrs,coffeeBCollectionAttrs,coffeeBRouterAttrs,coffeeBSyncAttrs,coffeeBViewAttrs |
| 42 | + |
| 43 | + syntax keyword coffeeBEvents contained on off trigger once listenTo stopListening |
| 44 | + syntax keyword coffeeBModel contained extend constructor initialize get set escape has unset clear id idAttribute cid attributes |
| 45 | + syntax keyword coffeeBModel contained changed defaults toJSON sync fetch save destroy validate validationError url urlRoot parse |
| 46 | + syntax keyword coffeeBModel contained clone isNew hasChanged changedAttributes previous previousAttributes |
| 47 | + syntax keyword coffeeBCollection contained extend model constructor initialize models toJSON sync add remove reset update get at |
| 48 | + syntax keyword coffeeBCollection contained push pop unshift shift length comparator sort pluck where url parse clone fetch create |
| 49 | + syntax keyword coffeeBRouter contained extend routes constructor initialize route navigate |
| 50 | + syntax keyword coffeeBHistory contained start |
| 51 | + syntax keyword coffeeBSync contained sync ajax emulateHTTP emulateJSON |
| 52 | + syntax keyword coffeeBView contained extend constructor initialize el $el setElement attributes render remove delegateEvents |
| 53 | + syntax keyword coffeeBView contained undelegateEvents |
| 54 | + syntax keyword coffeeBUtility contained noConflict |
| 55 | + |
| 56 | + syntax keyword coffeeBModelAttrs contained id idAttribute cid attributes changed defaults urlRoot |
| 57 | + syntax keyword coffeeBCollectionAttrs contained model models length comparator url |
| 58 | + syntax keyword coffeeBRouterAttrs contained routes |
| 59 | + syntax keyword coffeeBSyncAttrs contained emulateHTTP emulateJSON |
| 60 | + syntax keyword coffeeBViewAttrs contained el attributes |
| 61 | + syntax keyword coffeeBViewAttrs match /$el/ |
| 62 | + |
| 63 | +endif |
| 64 | + |
| 65 | +if &filetype == 'ls' |
| 66 | + |
| 67 | + syntax keyword lsBackbone Backbone Collection Model View Events Router History Sync Utility containedin=ALLBUT,lsComment |
| 68 | + |
| 69 | + syntax cluster lsBFunctions contains=lsBEvents,lsBModel,lsBCollection,lsBRouter,lsBHistory,lsBSync,lsBView,lsBUtility |
| 70 | + syntax cluster lsBAttrs contains=lsBModelAttrs,lsBCollectionAttrs,lsBRouterAttrs,lsBSyncAttrs,lsBViewAttrs |
| 71 | + |
| 72 | + syntax keyword lsBEvents contained on off trigger once listenTo stopListening |
| 73 | + syntax keyword lsBModel contained extend constructor initialize get set escape has unset clear id idAttribute cid attributes |
| 74 | + syntax keyword lsBModel contained changed defaults toJSON sync fetch save destroy validate validationError url urlRoot parse |
| 75 | + syntax keyword lsBModel contained clone isNew hasChanged changedAttributes previous previousAttributes |
| 76 | + syntax keyword lsBCollection contained extend model constructor initialize models toJSON sync add remove reset update get at |
| 77 | + syntax keyword lsBCollection contained push pop unshift shift length comparator sort pluck where url parse clone fetch create |
| 78 | + syntax keyword lsBRouter contained extend routes constructor initialize route navigate |
| 79 | + syntax keyword lsBHistory contained start |
| 80 | + syntax keyword lsBSync contained sync ajax emulateHTTP emulateJSON |
| 81 | + syntax keyword lsBView contained extend constructor initialize el $el setElement attributes render remove delegateEvents |
| 82 | + syntax keyword lsBView contained undelegateEvents |
| 83 | + syntax keyword lsBUtility contained noConflict |
| 84 | + |
| 85 | + syntax keyword lsBModelAttrs contained id idAttribute cid attributes changed defaults urlRoot |
| 86 | + syntax keyword lsBCollectionAttrs contained model models length comparator url |
| 87 | + syntax keyword lsBRouterAttrs contained routes |
| 88 | + syntax keyword lsBSyncAttrs contained emulateHTTP emulateJSON |
| 89 | + syntax keyword lsBViewAttrs contained el attributes |
| 90 | + syntax keyword lsBViewAttrs match /$el/ |
86 | 91 |
|
| 92 | +endif |
87 | 93 |
|
88 | 94 | " Define the default highlighting. |
89 | 95 | " For version 5.7 and earlier: only when not done already |
|
0 commit comments