yks-element 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/README.md +10 -20
  2. package/lib/yks.js +1 -1
  3. package/package.json +1 -1
  4. package/lib/00155bd406dacc6f2d79b8de025719ac.js +0 -48
  5. package/lib/01fd21b5525a03456f881515f1002134.js +0 -18
  6. package/lib/0242eebc51caa2b134602e86ed3be3cf.js +0 -18
  7. package/lib/027e36a1f41877209eca741a54467a40.js +0 -16
  8. package/lib/028a3e5cd150f029676e21c0ba88f7e6.js +0 -18
  9. package/lib/036680d9c1d332cf478c5823cd2a47db.js +0 -9
  10. package/lib/039a0e6e22fee41c6f074e9745f20ff4.js +0 -9
  11. package/lib/0410ca02b96655ac3c08452105cdad32.js +0 -168
  12. package/lib/057c0c1a0dff072cbb9819e95cb739cf.js +0 -170
  13. package/lib/06b29b48315cd443a04a6b3fac315dcf.js +0 -2518
  14. package/lib/07312a5fd7bf0e4c902ae8a92d42a69a.js +0 -18
  15. package/lib/086d94781c70156042f95d5fa61d995a.js +0 -427
  16. package/lib/0871aac6c551218cdd4a5690ace7b38c.js +0 -45
  17. package/lib/08ead5ce2617fb6ce642b5ba343bd62c.js +0 -9
  18. package/lib/08f2ebda31cf24e86831115fde674fad.js +0 -16
  19. package/lib/0955faac884af83a837117d815a9cc04.js +0 -2522
  20. package/lib/0ab8bd2c1e69b03bc24b70523a70e30a.js +0 -293
  21. package/lib/0c2b3b3b66a73e289e2ca47cf22ef150.js +0 -9
  22. package/lib/0cdc14741de08dc4af237c4e1124d661.js +0 -642
  23. package/lib/0dd0f45c3dde9af3fcf9706e6a2a1edd.js +0 -9
  24. package/lib/0e13b643b6e88e8fd6328d50acabfda8.js +0 -56
  25. package/lib/0e6175d2306c7bd33ad73acb96313103.js +0 -330
  26. package/lib/0ebb7559af3a19776ac2272fbbc77a11.js +0 -82
  27. package/lib/0ee3d8835fa32648b51c9a73bff3324e.js +0 -18
  28. package/lib/0f1ed761f7bd80b36c267d65764b87ca.js +0 -344
  29. package/lib/0faaa4d3cf56de624fb5dd12e7fa18c9.js +0 -18
  30. package/lib/11115bde71f6d8245d7cb05b89dbfbc1.js +0 -18
  31. package/lib/1136d59010460a6c7277688011fc86dc.js +0 -145
  32. package/lib/119d8ff08e82b0f391f59f1fe657130f.js +0 -9
  33. package/lib/12738aa8461e4775d7f380a5d1953893.js +0 -279
  34. package/lib/13b157cfddcb9a76ae0800b47a8f0122.js +0 -9
  35. package/lib/142d258626093a8c3187029538e32bbc.js +0 -9
  36. package/lib/155500be4d3113e94dca99f997defb7a.js +0 -9
  37. package/lib/15bd2f4de9aefea698aea59ecd36327f.js +0 -16
  38. package/lib/173ea2d9126a53f1d6cb61ef26219598.js +0 -16
  39. package/lib/17c85759d562794da4d2ff11f1b9b3bd.js +0 -9
  40. package/lib/182aa449781ff6997bc12b8eb3611ccb.js +0 -3122
  41. package/lib/182fa653555b8340835b3bf4f7192ae2.js +0 -9
  42. package/lib/1865ebc428856723187c96ea096a68e7.js +0 -3294
  43. package/lib/188744ad64e26326b70337714cc840c8.js +0 -151
  44. package/lib/18a893070398343ab529fdb7b62f1b6d.js +0 -9
  45. package/lib/18b69bf761ab7d8645f68794096dcb46.js +0 -16
  46. package/lib/1ac4b99c62f756d61d25417728b2e5f8.js +0 -104
  47. package/lib/1afe87852eca4b28294075c659ff8c45.js +0 -9
  48. package/lib/1b6f35b7d53ed37d0823a2081ab95fac.js +0 -402
  49. package/lib/1b8199f34db41b72375a9947d4ef84a4.js +0 -348
  50. package/lib/1c71dfe2ae40884baae78d14e2568eb1.js +0 -9
  51. package/lib/1c9874850164cfdaa7e1d212d09124a7.js +0 -9
  52. package/lib/1cac3566cdfb6be0f51c3f2ade7c1603.js +0 -16
  53. package/lib/1cb8df3a3416707163473b1ee9268faf.js +0 -9
  54. package/lib/1cbff31b1abe2c3f9eb1113b4cfa5cb6.js +0 -18
  55. package/lib/1d051fbb1bd28c0b89641f417930f078.js +0 -192
  56. package/lib/1dda5460bcee9fb6faa67d22b6448454.js +0 -9
  57. package/lib/1e16076242211185847c3208ffb79bad.js +0 -2750
  58. package/lib/1e46a85215aeb52a8ed19cf62d1b3362.js +0 -9
  59. package/lib/1ea9cb4eff3a4f4c27ff63263151eba2.js +0 -16
  60. package/lib/1f1abd5e247cf6b2e9a3db6303277572.js +0 -9
  61. package/lib/1fd353d022bf5027ba193d0b0b9995ed.js +0 -9
  62. package/lib/2031467f3d02be43b638c5e3ccba3996.js +0 -9
  63. package/lib/207fa26d9d4b4c2d5af507fa6db04339.js +0 -185
  64. package/lib/20b085f014791c3916e38d818e76ef3c.js +0 -318
  65. package/lib/20f8061729d26f9786679bbf7af0b87a.js +0 -9
  66. package/lib/214a729dcea91ee8a56f8ef43e17243a.js +0 -9
  67. package/lib/21888fda037b96f7d9c9261cbef5bbbc.js +0 -338
  68. package/lib/21dca974f7343f200597e43a55766c6e.js +0 -9
  69. package/lib/2251070349dc9ecad4cb9f2be8a15c13.js +0 -3834
  70. package/lib/22ddca0f2cac653ae8eebd716e965aa7.js +0 -9
  71. package/lib/22e2ec10d48dca8a66c53f9a41271023.js +0 -459
  72. package/lib/238b48c537406ead43a4005567d5a013.js +0 -268
  73. package/lib/23ad6224fd6059c31c199b6d6d420628.js +0 -16
  74. package/lib/23da774e43bdbc0fee7d11009ee014b2.js +0 -18
  75. package/lib/242fb5a92733d151e9ca303fcd3ae7ff.js +0 -9
  76. package/lib/251c1b0aa30bc78444e22999d6a2e6f1.js +0 -19
  77. package/lib/2681042a598b029b51d51f7669b81c4d.js +0 -9
  78. package/lib/26916d87ee46ad72f432b9a59e6fd198.js +0 -16
  79. package/lib/269bb81eeebec9d70536fede3f17dac5.js +0 -9
  80. package/lib/272c72bab8da763aef48ecb7934c9586.js +0 -18
  81. package/lib/279a2126957722bd396f011c41d616f2.js +0 -2017
  82. package/lib/2818bca0cd2a7e31aa1a7d0698a1312b.js +0 -342
  83. package/lib/2836e58974a8e2730a9b6bec1921dd3d.js +0 -199
  84. package/lib/2863331c75e78da46cd0d6c9a0399846.js +0 -567
  85. package/lib/28b3223a7121c1e1392918647cfd3ea4.js +0 -2785
  86. package/lib/28f7c5b28bbad7b0bac0cc3cc5b89bad.js +0 -9
  87. package/lib/2984fab606909e16083d98c4581fd484.js +0 -1626
  88. package/lib/2a4c96bd91c25806d68325751fb0c958.js +0 -16
  89. package/lib/2ac58492ad5a1b5244deb0fef1e5a773.js +0 -9
  90. package/lib/2bba99eb717e1aa22e45284a964ca73f.js +0 -9
  91. package/lib/2bf178d3af8ceb86a2c5588fa5b0434a.js +0 -18
  92. package/lib/2c41df6060672e75b4ab09e4a5d43049.js +0 -74
  93. package/lib/2c48ebc44a87762b127d573fd4ed4d49.js +0 -18
  94. package/lib/2c6ae8805adc9206e70eb29818e71a4f.js +0 -9
  95. package/lib/2d0362619c6807297b4b207bad2940cd.js +0 -18
  96. package/lib/2d53cfacb6a695f378ca997fcee7efb3.js +0 -16
  97. package/lib/2dcf359bda4d96fcd06e8b0b7bc039bf.js +0 -305
  98. package/lib/2df83568e34903d7d3e0051e3a95c459.js +0 -450
  99. package/lib/2ecf7f87e692b92a347ff145a2e6212e.js +0 -768
  100. package/lib/2f6dcc38e5ad378438bea99c47e20e28.js +0 -16
  101. package/lib/2fd1880f79d0f2ffb10daaf928266181.js +0 -317
  102. package/lib/30335c579bfc2de8dcf574523ef13020.js +0 -325
  103. package/lib/309668174423f4bc9dbe529041f8e48c.js +0 -1276
  104. package/lib/30e3bb6a531e1c812558474a78d50e51.js +0 -18
  105. package/lib/313a120714418a06223767f908e52a06.js +0 -393
  106. package/lib/31459a657ac30dcaa54765c6d76d8c81.js +0 -9
  107. package/lib/318f90759f2ff0d2a437350e87578172.js +0 -9
  108. package/lib/31bcb02e59d84ce2e38b85616a0b44db.js +0 -9
  109. package/lib/31f3f1c32b27587832d28b634351325c.js +0 -9
  110. package/lib/32cea5ceeb0f16ead13364fac0c3214d.js +0 -197
  111. package/lib/330543be2120b9dcc9bec41ba5e05805.js +0 -9
  112. package/lib/33443ec129774bb1add5795cc8895137.js +0 -9
  113. package/lib/33b2bdaf684e9e4ad47970682aa5b00d.js +0 -154
  114. package/lib/33df99ab21a0e281c0626e261c1638bc.js +0 -9
  115. package/lib/34166ea54cd1328fee335538a4fb7d5c.js +0 -2580
  116. package/lib/34f05dc84111ffe37a1d5b5aacff7488.js +0 -9
  117. package/lib/34f52a56877a14fbb7e9d37469ebbf15.js +0 -254
  118. package/lib/35858a47038a7be957df49854e8e5eea.js +0 -9
  119. package/lib/35b519c2ce83bbe55e6ba35bd379db4e.js +0 -445
  120. package/lib/35dc4119f9e28cb9baba1475537460bb.js +0 -9
  121. package/lib/3734f5f0d471b4551566c56c7149b602.js +0 -9
  122. package/lib/3792c6a2af140883f2b4a70d783d442f.js +0 -16
  123. package/lib/38528de2a5c097da375fd0a076667441.js +0 -9
  124. package/lib/38b9892d0c5fa60cb6c0496fcbae4c05.js +0 -477
  125. package/lib/3a820eb0c0fb52f9b75e34214b5f8c9c.js +0 -226
  126. package/lib/3baeab62d681338ba3287f0a50e5dad1.js +0 -9
  127. package/lib/3bbeadbf33a4c2c131ec271b9b103a59.js +0 -1255
  128. package/lib/3c126add795585b0bcdab07451b9c398.js +0 -57579
  129. package/lib/3c2688e4b9137acb04affdd5e0c154fa.js +0 -391
  130. package/lib/3c58f68d787710c79906a2cd6d248295.js +0 -9
  131. package/lib/3cab7110c6a090f72c540dcc1cfbe3b5.js +0 -9
  132. package/lib/3cce0c7e1a8e1148f97de59a4b1ee73f.js +0 -9
  133. package/lib/3cf64ec91a700bfa1dece0957c49c7dc.js +0 -9
  134. package/lib/3cfffbb4555d5856b82186750e7b2b65.js +0 -253
  135. package/lib/3ddb5ebdc00b5a39bd4aedae80e1e1fb.js +0 -1757
  136. package/lib/3dfe9a3e745ca1e3755291ac5c5a4a24.js +0 -16
  137. package/lib/3e6808cd6eefd1be1040403985581374.js +0 -9
  138. package/lib/3e6a7169aea2691d9a23761b355fddc1.js +0 -580
  139. package/lib/3f043d654fe1e1895f0f2d65861e21aa.js +0 -18
  140. package/lib/3fb7fc8a302c8083706f70dff565dcbe.js +0 -1254
  141. package/lib/3fba2de8f5fff55907837780285f7481.js +0 -3066
  142. package/lib/40505d6c2f34fc08502d3e596573c7f8.js +0 -9
  143. package/lib/41251dac588b04bea51a664d331ff40a.js +0 -412
  144. package/lib/41c9592c46bdb2ee5d35a45a28cdd46c.js +0 -18
  145. package/lib/41f85ea0c545f0539b6ae2753eb1f79c.js +0 -9
  146. package/lib/43a9bcfc200d80676bc68fe9a3c8ab6d.js +0 -9
  147. package/lib/443b217c1337c10d168828ffd8f93528.js +0 -250
  148. package/lib/45de113a9f4cd75a8a71a2e6f4f91c95.js +0 -129
  149. package/lib/48ef2bea2256bfb13400738d7be7025f.js +0 -18
  150. package/lib/49152f07a653743e724f599386af2d7c.js +0 -16
  151. package/lib/49456231db02d9338914cee404f1b864.js +0 -2577
  152. package/lib/494f806d0f1ce92dfbbc4f80f34086a8.js +0 -2741
  153. package/lib/4a02cfb7dd2f107d184dc23fce76eebb.js +0 -387
  154. package/lib/4ab40446885d7f476b5c21fd390b0e23.js +0 -18
  155. package/lib/4cbd6f8a4f52821c1d3476139078797d.js +0 -9
  156. package/lib/4d694d41a0c1b3eaad752a8352c5661c.js +0 -9
  157. package/lib/4e347d330ecc5e8dcff367c024911892.js +0 -67
  158. package/lib/4e79f5ab805c7bfe58091ad27689b35e.js +0 -350
  159. package/lib/4ec4239f7011262fb987ab393a945110.js +0 -2416
  160. package/lib/4ee8da21e528c64675b310845a654de5.js +0 -18
  161. package/lib/5094b30d2471cc7312746173d8a4bb25.js +0 -9
  162. package/lib/50990da99a99a307711c6890db7397bd.js +0 -18
  163. package/lib/51e6ccd3ea9d7443949b155b113eebd5.js +0 -9
  164. package/lib/530deeb11db43fceba9bdf6054d0205e.js +0 -18
  165. package/lib/5343fc74a2893a130daa6ff1bff15621.js +0 -388
  166. package/lib/53ba4b759877a16fe3dbf842b4804538.js +0 -1393
  167. package/lib/540bba54b49ea7a6ec513270449132db.js +0 -9
  168. package/lib/540ec89580e27e662f5b0b323d70fd95.js +0 -18
  169. package/lib/544cdec50f7d5ee773f1023634bc8c59.js +0 -311
  170. package/lib/553aa6bb3b625428f4df57f5885d50f3.js +0 -9
  171. package/lib/557dc611a621064762e5796567cbec28.js +0 -18
  172. package/lib/5589658498306bc6e9b1eaead4b2c222.js +0 -231
  173. package/lib/573b79a51fa9a0e40000dd478d13f4d7.js +0 -184
  174. package/lib/57c2d2eb6a844a8c9ecd932c6d4067b0.js +0 -9
  175. package/lib/59120b5217fb17fd60c30c7f393921f6.js +0 -49
  176. package/lib/59543cab15a42dfc13060f00cf904cb2.js +0 -1860
  177. package/lib/59621f6df1f47f3cdbe959a670025c7b.js +0 -349
  178. package/lib/5b672566d0c18327a0da6515bd9035ab.js +0 -135
  179. package/lib/5bd58f2ebad7e63ff72a891fb43e2b38.js +0 -9
  180. package/lib/5d1543d89f404122d87ebbfb99b51a7a.js +0 -125
  181. package/lib/5df037f2a5d3b5c66d894dcbd21d0816.js +0 -1209
  182. package/lib/5eeee1acc01b04328cf42db0715bb7f5.js +0 -9
  183. package/lib/5f6f5026d13b2a9b884a8144a119cf9e.js +0 -9
  184. package/lib/5fbd38e4ab27403be200a3eb30384030.js +0 -286
  185. package/lib/60da7742294eac1092684664b706b11e.js +0 -632
  186. package/lib/60fc15a66fa7ba74ccd248f85b50fbe5.js +0 -9
  187. package/lib/61c62ea9a6f8f097fef7bbf63bad8923.js +0 -2339
  188. package/lib/6220ec418ec41a0ea2d8800c24bca639.js +0 -213
  189. package/lib/626617463b05d66ef839305eb1ace8e3.js +0 -78
  190. package/lib/62f1660714df9d262535c413ec4535ef.js +0 -16
  191. package/lib/63b236091dce5c38c8150dcf792457ba.js +0 -16
  192. package/lib/64f5157a095478101beea396e6f539c2.js +0 -335
  193. package/lib/64f93b6b093bba4147485023263cf65f.js +0 -9
  194. package/lib/65e9e719bfb286e3d617eccd6604bb5f.js +0 -16
  195. package/lib/66de9caaffb9ac6b2762a83eec7b9587.js +0 -9
  196. package/lib/671016bacf5ec687a2b9fe8e1d9e4218.js +0 -18
  197. package/lib/682658f2844cd4eee41af0221bcf8dd6.js +0 -120
  198. package/lib/68cf9a0e1eaff7cc991e970a855108f8.js +0 -9
  199. package/lib/697c2df91bf7c729d317c620a3cd77bd.js +0 -9
  200. package/lib/6ac188cc35ae0d38d3647a2eef17b2fc.js +0 -409
  201. package/lib/6bd258d83c216261a3311d59ba8ee34d.js +0 -18
  202. package/lib/6e88d3943f4c3a068493aad131cd4898.js +0 -9
  203. package/lib/6e9ca56e0fa3e784eab3da45f8d0d8ac.js +0 -9
  204. package/lib/6f0543453c605ea6d673a3bd31dd1090.js +0 -9
  205. package/lib/6ff41783e24317d71bac349acf29459f.js +0 -18
  206. package/lib/70f9578a3a4e83be56a998aacc7fac80.js +0 -449
  207. package/lib/716afffe05a2fc1a2a8f5c34221fba3f.js +0 -278
  208. package/lib/71bbf2d4b6293b54d672c2812fa8323e.js +0 -138
  209. package/lib/727184c92f9da8d8b0c013fd79cf32fe.js +0 -9
  210. package/lib/729151a662f8055d864efe142b48ba27.js +0 -120
  211. package/lib/72ea341d3b973200daae3cdf95fc40f9.js +0 -2691
  212. package/lib/730a06424debf3bfdaf03370df2177bd.js +0 -9
  213. package/lib/731a5afa4ad31a0a038e5742b5e98dd7.js +0 -59
  214. package/lib/73ca62c494dfdfee1f16213f88d5b3bc.js +0 -16
  215. package/lib/73e4df62b3639bb0465a1b59163d2eac.js +0 -361
  216. package/lib/7580bcf90c3e2026e05b37255bf61c1f.js +0 -1293
  217. package/lib/769ae488953faab19b33deee8331b789.js +0 -409
  218. package/lib/7745f3e776488705a38e62f85adad54d.js +0 -16
  219. package/lib/777bbf0a7ab200cd0c25bb83731450a5.js +0 -234
  220. package/lib/77cec85a8ab17451a509ed9d3b30df18.js +0 -308
  221. package/lib/781fca4f412ab92c4ebd788467ae2e97.js +0 -378
  222. package/lib/783bd9a28d2a45d4c721a6a89b11699f.js +0 -1067
  223. package/lib/78a7313929094809f734ad2e59e197e3.js +0 -618
  224. package/lib/79e0b3ad503310cab7a365134b0c9cf3.js +0 -2923
  225. package/lib/7a6833382e61e00bee32f0bfa809d003.js +0 -768
  226. package/lib/7b28e997ea39fe6dc3e83c44eca5c587.js +0 -18
  227. package/lib/7cef38946c33fa981d6d2c86c62428e0.js +0 -9
  228. package/lib/7d007aac1c748641b522339e2ac0fbaf.js +0 -2845
  229. package/lib/7d46cd8e5efaac33d5bf823ed4268841.js +0 -9
  230. package/lib/7e98c4d98664d6f7bcc52a07f21a1f9f.js +0 -9
  231. package/lib/7f10fe526aec57bd522af77ea6ac2b62.js +0 -9
  232. package/lib/80eb1b0b5703e92094de41a810d24007.js +0 -443
  233. package/lib/8105009e77ebb88abf8665ac5ae28c91.js +0 -227
  234. package/lib/814057700de193461611e3e87fe31b9c.js +0 -1610
  235. package/lib/81508a4a9fff65810b6f8e17ce3996a7.js +0 -456
  236. package/lib/817d52a47a4657b8a4dab79e057f5fb0.js +0 -9
  237. package/lib/822a4447c3ed956ee2e4620cb476d60e.js +0 -392
  238. package/lib/833b242747fd7b098d46011e4289bc3f.js +0 -9
  239. package/lib/83ea78d42f1a8e5f7346f3a30140ebfb.js +0 -9
  240. package/lib/8556209505fb59065be2b2447cfdb25d.js +0 -750
  241. package/lib/857bad1d4069806ce36bacbedb429722.js +0 -14259
  242. package/lib/86080d8c5fe43520ce7a6e70a2eb4732.js +0 -516
  243. package/lib/867fb2b26eef123915aff8634c0bbf4a.js +0 -9
  244. package/lib/87b758062566250308e676d10074337b.js +0 -136
  245. package/lib/8833a126ef9d8892bfb372d227f7f088.js +0 -9
  246. package/lib/8870430db332faf22d90e12f1620ee84.js +0 -9
  247. package/lib/892f2033266a9827d3bf6bd4315677bc.js +0 -18
  248. package/lib/89859a411a50c90f1e669deaf8a6775f.js +0 -9
  249. package/lib/89a47a0051ac0b3885ef8af2476526f0.js +0 -9
  250. package/lib/89b4957483c0fda92fa78a9fa2af1645.js +0 -92
  251. package/lib/8a8a1644af027b4abdb3d6083c9955d8.js +0 -288
  252. package/lib/8abeef6a68ee08e5bf12281dec186e2c.js +0 -108
  253. package/lib/8b06720820b9c72663405e0b3a3d2001.js +0 -1395
  254. package/lib/8b403118d591f67d12f9885715ee4ad5.js +0 -502
  255. package/lib/8b6c6eddf77150952b8fbf4e5efe2700.js +0 -16
  256. package/lib/8bdee0874b771c1eb1f31ff621294dc4.js +0 -212
  257. package/lib/8c530519258e4b3b00a0692332d85bbf.js +0 -4770
  258. package/lib/8c5f030ed5d170844b1b3583cecf54c4.js +0 -321
  259. package/lib/8c66a2b37b2c38fa00a15c2a7450947e.js +0 -1906
  260. package/lib/8ed43cdfdd838056af84f9840f79af2d.js +0 -129
  261. package/lib/8f2a42fe0e894777b68908b3a78b82f5.js +0 -346
  262. package/lib/90643b9da87302fef490f3f48af806e2.js +0 -9
  263. package/lib/909037dfc8091283e4134bc6e5448e2b.js +0 -9
  264. package/lib/9142b3f5bf59ae79b69c505c6964f395.js +0 -16
  265. package/lib/91c7448bc6eb27a1d06db8e292e1a8cf.js +0 -555
  266. package/lib/92c379ded8761c0541b8e1d165ba781d.js +0 -232
  267. package/lib/92cf63e9a949f08d97a74d9ed17392ed.js +0 -9
  268. package/lib/9405408bc4c1c18469c1eefd766f06b9.js +0 -274
  269. package/lib/94a0179602c94d55621a35e41c97ed5c.js +0 -9
  270. package/lib/96801bb73ed08f0f25218527e5bdaaa7.js +0 -18
  271. package/lib/96e3c47a608b9a6e9362ff9d05bbc860.js +0 -18
  272. package/lib/9737a936e499f40b0c36f497031321b1.js +0 -208
  273. package/lib/97d15c029119bb1a0a1640736097aa31.js +0 -16
  274. package/lib/97fdcd4009ecde2477e3c1a605932517.js +0 -272
  275. package/lib/985b400088bf5e23fb83e70d9948eccb.js +0 -9
  276. package/lib/9874181c924bc65b0e3b8f51b3ae93df.js +0 -16
  277. package/lib/9955feb95d88844fc661cfa178ea4694.js +0 -3277
  278. package/lib/998c5f13555e18b42e9bf826578b2e16.js +0 -9
  279. package/lib/99fc1d5bce3320a8fbf9ce9a8d6b9e2f.js +0 -16
  280. package/lib/9aafe4a55ece5a23a8c7658cc25325fc.js +0 -16
  281. package/lib/9accd7b58ca45adc71ff333cb4c52eee.js +0 -18
  282. package/lib/9b24c141c4ab1fb899b2b0f1b8ee33ac.js +0 -16
  283. package/lib/9c202aefac35a5ff49d3d3795e9932bc.js +0 -9
  284. package/lib/9d0f4f65be2f50ad54488089f126feda.js +0 -9
  285. package/lib/9d8bbe9529a9f66ee4d6c4f6f376fa2c.js +0 -1381
  286. package/lib/9e357a97da26127713394684a51946b8.js +0 -9
  287. package/lib/9e4e95d996934ef66be6d1a85e3664c2.js +0 -18
  288. package/lib/9e69cb39701c3578226b39536edd4dd7.js +0 -9
  289. package/lib/9e83fd7a5db2121eb7faae412c537d5c.js +0 -477
  290. package/lib/9eea27d77b60c76da9cc3893debdeda7.js +0 -74
  291. package/lib/a07b6e4197eca283e090784508b6d540.js +0 -2381
  292. package/lib/a0e8234e951b18226479ae8e42b1c93d.js +0 -357
  293. package/lib/a19137421c9f3cc98071541e5e963bde.js +0 -98
  294. package/lib/a19af7abc527c42ce54ba987a9415f60.js +0 -279
  295. package/lib/a26463d029a2515171748a1ebcca53c3.js +0 -9
  296. package/lib/a311e02008e0f00a37305a12d479159a.js +0 -9
  297. package/lib/a3c1e3c29abb7292332b270897165234.js +0 -586
  298. package/lib/a4e757143b7d39ef56b848ed1d29c6da.js +0 -2409
  299. package/lib/a53f122656a01ecdca71c42673652f34.js +0 -4072
  300. package/lib/a57084011e3d6966b4b6efca1f38ae67.js +0 -18
  301. package/lib/a622989f636724d14d53e8d14109fde1.js +0 -346
  302. package/lib/a62714eeb3aaae12f4a27774e869ee6f.js +0 -255
  303. package/lib/a81cd084ae545af4318d919f40a91fa2.js +0 -318
  304. package/lib/a861e5537ad18a87bd993445c930764c.js +0 -309
  305. package/lib/a8f124f2e0e0523eb45659ef81ec2a8b.js +0 -186
  306. package/lib/aaf660b90ac538fc99a895fa3834507c.js +0 -322
  307. package/lib/ab16c1237e6e04bbf0024ee2bae42130.js +0 -9
  308. package/lib/ab629526f508af92330c5df96676044d.js +0 -18
  309. package/lib/ab97e619322ba5f39d521ef73502cf48.js +0 -204
  310. package/lib/acc30207efba7ab5b7b509b599f37e6f.js +0 -9
  311. package/lib/ad806674b28b94be3406af2d34899870.js +0 -16
  312. package/lib/adbb57fa182dce548204311d3be6dffa.js +0 -9
  313. package/lib/add52c11fde0c2170a733fb50e8115db.js +0 -2454
  314. package/lib/ae3310b649786304c4aac9ab5d423e94.js +0 -475
  315. package/lib/aecb26a2eb6c7e44cf7b73ef096dc6a5.js +0 -164
  316. package/lib/afb72b77b4edf3430441b8280c9fb6a9.js +0 -9
  317. package/lib/b02513e1d0cc664936e1ba9cb5a923af.js +0 -9
  318. package/lib/b131314d1ea62fa7bba91a4da8360298.js +0 -9
  319. package/lib/b26ac1601176c0fde051d667e573863f.js +0 -2436
  320. package/lib/b2ea05f3f240a06db30a5de0fa5012b2.js +0 -1459
  321. package/lib/b435aebcb57d65080cfd510e0a9d5d9d.js +0 -9
  322. package/lib/b830d88aa22a866a208be27af90526a7.js +0 -9
  323. package/lib/b8c600a9527c786c1cc59d21f60193ed.js +0 -742
  324. package/lib/bae95bdb1bbcc0969e0e40fb72539df3.js +0 -9
  325. package/lib/bb7afd142656785e03deb43ec5d49526.js +0 -323
  326. package/lib/bbd62124f6d03e01eb4332f55ead999d.js +0 -9
  327. package/lib/bbfbf8a18d2c6b577f613f7684e13d4b.js +0 -380
  328. package/lib/bc26ab0797e975ba01e701683935864b.js +0 -9
  329. package/lib/beebd365e9d52fb45e4e2e0e8f3f25f3.js +0 -78
  330. package/lib/c051c769f84d00d933e12224dfaebd7b.js +0 -7090
  331. package/lib/c088ea7c1fc0c66a644a908ecad590e6.js +0 -1401
  332. package/lib/c23b1f80ab9746b425f3848bdaacc144.js +0 -9
  333. package/lib/c2b4975093d5885f2e8ff09c4fabe8f7.js +0 -27
  334. package/lib/c2ded7fafb683b89f9fb51f37400cfb5.js +0 -602
  335. package/lib/c38a3226f3858a47ba9fb788dc7b44fc.js +0 -9
  336. package/lib/c3b0cd15adcc12a549e7ac5d165ac1f4.js +0 -9
  337. package/lib/c3ee66447735372b0459983d11153db5.js +0 -16
  338. package/lib/c448dbcc87b3a8382bc29284f8ccd11f.js +0 -318
  339. package/lib/c57721ccc0d5a41063560477b0bc7d02.js +0 -457
  340. package/lib/c6c186b45f36f18d9ce1fb2bc07fa5e3.js +0 -272
  341. package/lib/c6f608398c43e25821557ee65cda5e58.js +0 -9
  342. package/lib/c7ce5b5383c7658be6582f9712b20241.js +0 -790
  343. package/lib/c7d3b0afe7600a632fbf44ee8d84996e.js +0 -9
  344. package/lib/c839f8e61d644bd6930589eff240ff48.js +0 -5841
  345. package/lib/c8fa7b978e3d1a3d8871518e9cb83968.js +0 -293
  346. package/lib/c99de01dd8fcf7af2080074f8a3e8ef6.js +0 -18
  347. package/lib/ca1483809659f6c87cc6f588891d2bd4.js +0 -9
  348. package/lib/ca66e3089e6c4a01fceaa4c4675d4da1.js +0 -245
  349. package/lib/cad6fbe6e921174297d7734303ba247a.js +0 -387
  350. package/lib/cbc9092524363d014f77a62f36ff1540.js +0 -174
  351. package/lib/cbd92a6b4e6e2fc9ea2464d82df1305d.js +0 -374
  352. package/lib/cf0a04afa21ac9ba23a1de0416a03105.js +0 -9
  353. package/lib/cf6b4e5dec4a192e62b1dcb7878bc5bb.js +0 -19
  354. package/lib/cf90a0e6a2989274c84edd1dc44db5e1.js +0 -318
  355. package/lib/cfbb8ac8b034c4ecdb1d74d5a0aa997e.js +0 -210
  356. package/lib/d005c2353bc934b0d4fc4238808f1259.js +0 -19
  357. package/lib/d112fccc383541781adddd56d2d29a7d.js +0 -1329
  358. package/lib/d2bee538ff0c2eb104ee3a32dc6545de.js +0 -16
  359. package/lib/d359506111994701cea5613b7666f1c0.js +0 -18
  360. package/lib/d37f0f78c06e883be0e04a3be861fb68.js +0 -277
  361. package/lib/d424588d01445a9c14ec1f5681eca0e6.js +0 -69
  362. package/lib/d465c0a35c6ef244bf587b0e6bdb4019.js +0 -9
  363. package/lib/d4b6ff63e9caf8e009194725fdb28294.js +0 -2589
  364. package/lib/d58a44852ccf290e290f798d594ceaf1.js +0 -116
  365. package/lib/d59d13db0f151770597f301a137ee206.js +0 -554
  366. package/lib/d66813bade53d7a1eeb0fb22223c9120.js +0 -9
  367. package/lib/d6ea3dc0dc78e3b4768d60556ec71aae.js +0 -921
  368. package/lib/d750a8dbf9dd09c0a33b9986e79e3c8c.js +0 -9
  369. package/lib/d754905fe54aac6f3c350df34f51a0b6.js +0 -9
  370. package/lib/d7889907dbb51f58ceadb3e1eec03a5d.js +0 -9
  371. package/lib/d8d4867d7fff5b67bbbdd47e637b3a6c.js +0 -17
  372. package/lib/da0827f4d8af0fc29eb75e28166177d3.js +0 -16
  373. package/lib/dab7702d658b1b41983f79f5bcac4fd7.js +0 -2502
  374. package/lib/dabc32896dd99d88e7b0f27f99d9f3d1.js +0 -199
  375. package/lib/db6c0056cef31f6654438a92a8aca336.js +0 -16
  376. package/lib/dbfe76a5b35e105c53ee5e24e7aecea9.js +0 -16
  377. package/lib/dd0c5a4ed6f5fb11d7cf1f1eff6d60e0.js +0 -243
  378. package/lib/dd40dfc7840568927fdef65087a233ed.js +0 -9
  379. package/lib/dda326057180e4a9865574a97d14bcc5.js +0 -498
  380. package/lib/de020738b0103e8faeb314d46d9c2c01.js +0 -239
  381. package/lib/de055fa0609f610ae1992b080f00c59e.js +0 -19
  382. package/lib/df45474c1375a8a5476097ade35f708c.js +0 -130
  383. package/lib/dfcf55f148a1c3a275c32ba307579b9b.js +0 -262
  384. package/lib/e03035341d2106650617dd1fcc8f9449.js +0 -16
  385. package/lib/e0a28b17e30569d83ad05f7d1a29fc11.js +0 -18
  386. package/lib/e0e2b1267a5d4acb4dda3a4a598cd8a5.js +0 -9
  387. package/lib/e100a40535c8ae342c0ad33bcd5d64a9.js +0 -585
  388. package/lib/e110e3db3be6ddf70601eb2702f22acf.js +0 -313
  389. package/lib/e12b5d4b9067b678942c6e49b6e982ac.js +0 -480
  390. package/lib/e19330270e6bc1ee8999d324a435aadf.js +0 -200
  391. package/lib/e2792218bae78a6aef6764de4e61fd82.js +0 -9
  392. package/lib/e28135172e9bc8cda916c86776d44203.js +0 -9
  393. package/lib/e2d132960212ec2beddd241dd7593d2b.js +0 -1332
  394. package/lib/e354197c37ec292280f982aba242ae46.js +0 -110
  395. package/lib/e365a7884e56d015bf238dff35e12cd0.js +0 -10843
  396. package/lib/e3d11b16ffc27b99f8fa8dc16d1474a5.js +0 -16
  397. package/lib/e479a0392cfe75cd566a510cf0a9cbf1.js +0 -316
  398. package/lib/e4d51c8b4202d444cb39db4e7642d7d9.js +0 -9
  399. package/lib/e6555a04d885d35af1b77d1ea7f71374.js +0 -265
  400. package/lib/e6a1d1f679385aaa06472b3ba6a31104.js +0 -16
  401. package/lib/e6b156303e195d37bbaf6bc12cecbbb5.js +0 -2935
  402. package/lib/e6debe4d13e93851fa0535e27f258266.js +0 -2474
  403. package/lib/e728712368c13c8aab76ad59e143b345.js +0 -9
  404. package/lib/e745f8fb4f054a3f5b66ccad100a1217.js +0 -9
  405. package/lib/e85c03bb74a03136c066c6e2093c5014.js +0 -18
  406. package/lib/e85d326b81c95df9bb7325c6468b61ba.js +0 -201
  407. package/lib/e86b459e406840ac8eaf63fcfcf817e5.js +0 -264
  408. package/lib/e8b30aff1e922139ce1feffb337fdf58.js +0 -150
  409. package/lib/e96618f2248a28f9239a2c652eff0b1e.js +0 -287
  410. package/lib/e970a8b8e51d2b1fe9d44e1b2c741ff1.js +0 -16
  411. package/lib/ea89161d379a9e55da8a3ecf89b2431b.js +0 -183
  412. package/lib/ec0bbb0ae01a2eac8dd4f36da4eb1e73.js +0 -74
  413. package/lib/ed4e3116f7d95675f9f2ccd0ede27490.js +0 -252
  414. package/lib/ed72112dc346ee7976809d4693f0dcba.js +0 -16
  415. package/lib/edd8457765d7fc38c3fc00b71e3dcce0.js +0 -18
  416. package/lib/efc508c36f4e417ec6bd5ec72989443b.js +0 -9
  417. package/lib/f017fb07fd7b0b8db9c5341bec72eb34.js +0 -395
  418. package/lib/f13fe511a9069c65f44deab412b47724.js +0 -836
  419. package/lib/f1e5afe8cfefc6ab380dd2510f4e331d.js +0 -2611
  420. package/lib/f2195d2eae3dbef7e3798e115209dcd7.js +0 -9
  421. package/lib/f233af729cc30f9b3af99d3e9a0a2409.js +0 -256
  422. package/lib/f2494721164a79754987fc480a293ddc.js +0 -557
  423. package/lib/f2cd6e7579511c57435b54b760147916.js +0 -443
  424. package/lib/f2cfc0e604350e23bfcd7c78165b1411.js +0 -9
  425. package/lib/f2e306454ac91234ddb8a5c6a838635b.js +0 -94
  426. package/lib/f34c660c7a713eb0664cc9e6a48e85ce.js +0 -18
  427. package/lib/f36f4038005be804fc28f2cf96e89ca4.js +0 -3519
  428. package/lib/f3a0f6e7e442de2ae51eddbf4eb98d97.js +0 -9
  429. package/lib/f3de8b166131cd8116c58b72e74de979.js +0 -56
  430. package/lib/f50d7c4ce743ce495230d19bd33fefab.js +0 -9
  431. package/lib/f5292be525fc36a337ce7bfb792070de.js +0 -9
  432. package/lib/f56d1624f84c7ea412383f5dc2535fe5.js +0 -3380
  433. package/lib/f61f1aaed3f32a7dabd977a6f47ecd5f.js +0 -9
  434. package/lib/f6d0fea0854403a43f86a04e3db40850.js +0 -16
  435. package/lib/f6e49568b937ae1f55e5fd35391456e6.js +0 -9
  436. package/lib/f7443e8232a7e4289b9f2ed4a512750c.js +0 -9
  437. package/lib/f80c6eb0f52a68464b21211240e3d6e6.js +0 -9
  438. package/lib/f81ee1c4aaf66bb5c9c3b56816fcf9ec.js +0 -18
  439. package/lib/f88127ad8950e3c94c3af6c65a7120fa.js +0 -9
  440. package/lib/f9395802478bac162b30e96f9124ab98.js +0 -275
  441. package/lib/f98a70bc7ea9c1711963a8879739b6ec.js +0 -210
  442. package/lib/fa100e0900a8c3255a4388d06ee51ed0.js +0 -513
  443. package/lib/fa1618cda4da7d5362c381ea2d5f7321.js +0 -9
  444. package/lib/faf460076b3383fdc3ecc224068964cf.js +0 -9
  445. package/lib/fafa44ae58fa8a874e008aa32408cb02.js +0 -2438
  446. package/lib/fb9eb8450ed17fce1ab64c6f239c0ed5.js +0 -270
  447. package/lib/fc2291e5687166730bc9040250deb4dc.js +0 -192
  448. package/lib/fc6ba43496896432983dff35a140ed34.js +0 -324
  449. package/lib/fe4607153f9dc163f7fcfd9e5112d082.js +0 -18
  450. package/lib/fea21d07929a3bfd1791e338b3643845.js +0 -8913
  451. package/lib/ffa203dcaae3e64846fe72a12c66f52a.js +0 -16
  452. package/lib/ffa6632dc8b1f24b217b89a5976d340c.js +0 -1487
  453. package/lib/fffbc895129cdb3efeafa5b234743aa0.js +0 -9
  454. /package/lib/{ca5623b927b1e84f612a0d33b758dc07.js → 03a5f5b2b97a8fc289399d92fba810d0.js} +0 -0
  455. /package/lib/{0b3587e0f3fd518d1ec22d14ba147660.js → 0d5aa4cf4cd6ced22d689adc35468925.js} +0 -0
  456. /package/lib/{615baa5f68e26f620f7e032683bd4b50.js → 237d897892d45083fa60f6b81d5254ee.js} +0 -0
  457. /package/lib/{503f9ce3546623bbbbb78ee6363d7a79.js → 283970c76db99e2d0d90f0e7c45494f9.js} +0 -0
  458. /package/lib/{acc7448b80728a73c9a4046b3ec4407f.js → 28785bea435918d49b290d27bf660baa.js} +0 -0
  459. /package/lib/{1840080076c4078d157a5b05d0d95551.js → 2fc0239242a898632ca8aa451cb930c2.js} +0 -0
  460. /package/lib/{80c81bb26b21258a1b765122345ec38b.js → 367def81f25c0a08527f9a4e86e70c56.js} +0 -0
  461. /package/lib/{643ef4de6914010141d57fcfbb21823f.js → 41ae585cdbb9c2e8eefff5d30193029f.js} +0 -0
  462. /package/lib/{c6d4a590e14107a8a5ad505d66241032.js → 5e55b301888460bd06c8e26d1011e01a.js} +0 -0
  463. /package/lib/{c9b9a1dd6c2e609511c3361642370120.js → 62a96977e725e8bc809dc80afe0fedf1.js} +0 -0
  464. /package/lib/{1a68c4ad5a712aab108814672bf0e7b7.js → 6c6d192b6860b4508a14c2d04769a35e.js} +0 -0
  465. /package/lib/{039af9192b9bb277966ceb4e4ce29c41.js → 8a31266178067a316bb2503147cdb5cb.js} +0 -0
  466. /package/lib/{0510e05d595927fa703cb56d8f13065d.js → 8c6220f01c8d5232db7dd6f8410fae08.js} +0 -0
  467. /package/lib/{014f8e91bc4baf39175490216b0e3ae3.js → 947d538f92dd1e146e4a3c41e4eacb92.js} +0 -0
  468. /package/lib/{6813d64f169561dbff03e9a9c462ba83.js → a2746fc96d535b19c120d4b87dc86ef1.js} +0 -0
  469. /package/lib/{a1126819c6d0a10f20464c174f78fcfb.js → a709bba98acec5da3ea6258e245514cb.js} +0 -0
  470. /package/lib/{fd5c5250dc8b0ef84eec8e5e54d6588f.js → add6c4cce3d9d8f1de24094ebb4bfa5b.js} +0 -0
  471. /package/lib/{8d5f887ab72833490ccc03f5855f4d4f.js → b13d991d1e4a016abea3fe5837261690.js} +0 -0
  472. /package/lib/{49852db8b337fb8e781a58d82c81ead5.js → c3832579be376308fa819b04e7b0c66f.js} +0 -0
  473. /package/lib/{a1561f47e5391d4d132a0ec704474d90.js → cc65d108f0e7cfb200de1d0bcf115005.js} +0 -0
  474. /package/lib/{f58ee8ca364e28090c10b602eef235b1.js → d83cda12aee0c87c8b381a1234bf7798.js} +0 -0
  475. /package/lib/{69e9e34a4d2799561f7d50987beb9387.js → fd39a83fd8083f7924f23beb597cb741.js} +0 -0
@@ -1,3834 +0,0 @@
1
- ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
2
- var oop = require("../../lib/oop");
3
- var BaseFoldMode = require("./fold_mode").FoldMode;
4
- var FoldMode = exports.FoldMode = function (defaultMode, subModes) {
5
- this.defaultMode = defaultMode;
6
- this.subModes = subModes;
7
- };
8
- oop.inherits(FoldMode, BaseFoldMode);
9
- (function () {
10
- this.$getMode = function (state) {
11
- if (typeof state != "string")
12
- state = state[0];
13
- for (var key in this.subModes) {
14
- if (state.indexOf(key) === 0)
15
- return this.subModes[key];
16
- }
17
- return null;
18
- };
19
- this.$tryMode = function (state, session, foldStyle, row) {
20
- var mode = this.$getMode(state);
21
- return (mode ? mode.getFoldWidget(session, foldStyle, row) : "");
22
- };
23
- this.getFoldWidget = function (session, foldStyle, row) {
24
- return (this.$tryMode(session.getState(row - 1), session, foldStyle, row) ||
25
- this.$tryMode(session.getState(row), session, foldStyle, row) ||
26
- this.defaultMode.getFoldWidget(session, foldStyle, row));
27
- };
28
- this.getFoldWidgetRange = function (session, foldStyle, row) {
29
- var mode = this.$getMode(session.getState(row - 1));
30
- if (!mode || !mode.getFoldWidget(session, foldStyle, row))
31
- mode = this.$getMode(session.getState(row));
32
- if (!mode || !mode.getFoldWidget(session, foldStyle, row))
33
- mode = this.defaultMode;
34
- return mode.getFoldWidgetRange(session, foldStyle, row);
35
- };
36
- }).call(FoldMode.prototype);
37
-
38
- });
39
-
40
- ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
41
- var oop = require("../../lib/oop");
42
- var Range = require("../../range").Range;
43
- var BaseFoldMode = require("./fold_mode").FoldMode;
44
- var FoldMode = exports.FoldMode = function (voidElements, optionalEndTags) {
45
- BaseFoldMode.call(this);
46
- this.voidElements = voidElements || {};
47
- this.optionalEndTags = oop.mixin({}, this.voidElements);
48
- if (optionalEndTags)
49
- oop.mixin(this.optionalEndTags, optionalEndTags);
50
- };
51
- oop.inherits(FoldMode, BaseFoldMode);
52
- var Tag = function () {
53
- this.tagName = "";
54
- this.closing = false;
55
- this.selfClosing = false;
56
- this.start = { row: 0, column: 0 };
57
- this.end = { row: 0, column: 0 };
58
- };
59
- function is(token, type) {
60
- return token.type.lastIndexOf(type + ".xml") > -1;
61
- }
62
- (function () {
63
- this.getFoldWidget = function (session, foldStyle, row) {
64
- var tag = this._getFirstTagInLine(session, row);
65
- if (!tag)
66
- return this.getCommentFoldWidget(session, row);
67
- if (tag.closing || (!tag.tagName && tag.selfClosing))
68
- return foldStyle === "markbeginend" ? "end" : "";
69
- if (!tag.tagName || tag.selfClosing || this.voidElements.hasOwnProperty(tag.tagName.toLowerCase()))
70
- return "";
71
- if (this._findEndTagInLine(session, row, tag.tagName, tag.end.column))
72
- return "";
73
- return "start";
74
- };
75
- this.getCommentFoldWidget = function (session, row) {
76
- if (/comment/.test(session.getState(row)) && /<!-/.test(session.getLine(row)))
77
- return "start";
78
- return "";
79
- };
80
- this._getFirstTagInLine = function (session, row) {
81
- var tokens = session.getTokens(row);
82
- var tag = new Tag();
83
- for (var i = 0; i < tokens.length; i++) {
84
- var token = tokens[i];
85
- if (is(token, "tag-open")) {
86
- tag.end.column = tag.start.column + token.value.length;
87
- tag.closing = is(token, "end-tag-open");
88
- token = tokens[++i];
89
- if (!token)
90
- return null;
91
- tag.tagName = token.value;
92
- if (token.value === "") { //skip empty tag name token for fragment
93
- token = tokens[++i];
94
- if (!token)
95
- return null;
96
- tag.tagName = token.value;
97
- }
98
- tag.end.column += token.value.length;
99
- for (i++; i < tokens.length; i++) {
100
- token = tokens[i];
101
- tag.end.column += token.value.length;
102
- if (is(token, "tag-close")) {
103
- tag.selfClosing = token.value == '/>';
104
- break;
105
- }
106
- }
107
- return tag;
108
- }
109
- else if (is(token, "tag-close")) {
110
- tag.selfClosing = token.value == '/>';
111
- return tag;
112
- }
113
- tag.start.column += token.value.length;
114
- }
115
- return null;
116
- };
117
- this._findEndTagInLine = function (session, row, tagName, startColumn) {
118
- var tokens = session.getTokens(row);
119
- var column = 0;
120
- for (var i = 0; i < tokens.length; i++) {
121
- var token = tokens[i];
122
- column += token.value.length;
123
- if (column < startColumn - 1)
124
- continue;
125
- if (is(token, "end-tag-open")) {
126
- token = tokens[i + 1];
127
- if (is(token, "tag-name") && token.value === "") {
128
- token = tokens[i + 2];
129
- }
130
- if (token && token.value == tagName)
131
- return true;
132
- }
133
- }
134
- return false;
135
- };
136
- this.getFoldWidgetRange = function (session, foldStyle, row) {
137
- var firstTag = this._getFirstTagInLine(session, row);
138
- if (!firstTag) {
139
- return this.getCommentFoldWidget(session, row) && session.getCommentFoldRange(row, session.getLine(row).length);
140
- }
141
- var tags = session.getMatchingTags({ row: row, column: 0 });
142
- if (tags) {
143
- return new Range(tags.openTag.end.row, tags.openTag.end.column, tags.closeTag.start.row, tags.closeTag.start.column);
144
- }
145
- };
146
- }).call(FoldMode.prototype);
147
-
148
- });
149
-
150
- ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict";
151
- var oop = require("../../lib/oop");
152
- var Range = require("../../range").Range;
153
- var BaseFoldMode = require("./fold_mode").FoldMode;
154
- var FoldMode = exports.FoldMode = function (commentRegex) {
155
- if (commentRegex) {
156
- this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
157
- this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
158
- }
159
- };
160
- oop.inherits(FoldMode, BaseFoldMode);
161
- (function () {
162
- this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
163
- this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
164
- this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
165
- this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
166
- this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
167
- this._getFoldWidgetBase = this.getFoldWidget;
168
- this.getFoldWidget = function (session, foldStyle, row) {
169
- var line = session.getLine(row);
170
- if (this.singleLineBlockCommentRe.test(line)) {
171
- if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
172
- return "";
173
- }
174
- var fw = this._getFoldWidgetBase(session, foldStyle, row);
175
- if (!fw && this.startRegionRe.test(line))
176
- return "start"; // lineCommentRegionStart
177
- return fw;
178
- };
179
- this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
180
- var line = session.getLine(row);
181
- if (this.startRegionRe.test(line))
182
- return this.getCommentRegionBlock(session, line, row);
183
- var match = line.match(this.foldingStartMarker);
184
- if (match) {
185
- var i = match.index;
186
- if (match[1])
187
- return this.openingBracketBlock(session, match[1], row, i);
188
- var range = session.getCommentFoldRange(row, i + match[0].length, 1);
189
- if (range && !range.isMultiLine()) {
190
- if (forceMultiline) {
191
- range = this.getSectionRange(session, row);
192
- }
193
- else if (foldStyle != "all")
194
- range = null;
195
- }
196
- return range;
197
- }
198
- if (foldStyle === "markbegin")
199
- return;
200
- var match = line.match(this.foldingStopMarker);
201
- if (match) {
202
- var i = match.index + match[0].length;
203
- if (match[1])
204
- return this.closingBracketBlock(session, match[1], row, i);
205
- return session.getCommentFoldRange(row, i, -1);
206
- }
207
- };
208
- this.getSectionRange = function (session, row) {
209
- var line = session.getLine(row);
210
- var startIndent = line.search(/\S/);
211
- var startRow = row;
212
- var startColumn = line.length;
213
- row = row + 1;
214
- var endRow = row;
215
- var maxRow = session.getLength();
216
- while (++row < maxRow) {
217
- line = session.getLine(row);
218
- var indent = line.search(/\S/);
219
- if (indent === -1)
220
- continue;
221
- if (startIndent > indent)
222
- break;
223
- var subRange = this.getFoldWidgetRange(session, "all", row);
224
- if (subRange) {
225
- if (subRange.start.row <= startRow) {
226
- break;
227
- }
228
- else if (subRange.isMultiLine()) {
229
- row = subRange.end.row;
230
- }
231
- else if (startIndent == indent) {
232
- break;
233
- }
234
- }
235
- endRow = row;
236
- }
237
- return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
238
- };
239
- this.getCommentRegionBlock = function (session, line, row) {
240
- var startColumn = line.search(/\s*$/);
241
- var maxRow = session.getLength();
242
- var startRow = row;
243
- var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
244
- var depth = 1;
245
- while (++row < maxRow) {
246
- line = session.getLine(row);
247
- var m = re.exec(line);
248
- if (!m)
249
- continue;
250
- if (m[1])
251
- depth--;
252
- else
253
- depth++;
254
- if (!depth)
255
- break;
256
- }
257
- var endRow = row;
258
- if (endRow > startRow) {
259
- return new Range(startRow, startColumn, endRow, line.length);
260
- }
261
- };
262
- }).call(FoldMode.prototype);
263
-
264
- });
265
-
266
- ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
267
- var oop = require("../../lib/oop");
268
- var MixedFoldMode = require("./mixed").FoldMode;
269
- var XmlFoldMode = require("./xml").FoldMode;
270
- var CStyleFoldMode = require("./cstyle").FoldMode;
271
- var FoldMode = exports.FoldMode = function (voidElements, optionalTags) {
272
- MixedFoldMode.call(this, new XmlFoldMode(voidElements, optionalTags), {
273
- "js-": new CStyleFoldMode(),
274
- "css-": new CStyleFoldMode()
275
- });
276
- };
277
- oop.inherits(FoldMode, MixedFoldMode);
278
-
279
- });
280
-
281
- ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"], function(require, exports, module){"use strict";
282
- var oop = require("../../lib/oop");
283
- var Behaviour = require("../behaviour").Behaviour;
284
- var TokenIterator = require("../../token_iterator").TokenIterator;
285
- function is(token, type) {
286
- return token && token.type.lastIndexOf(type + ".xml") > -1;
287
- }
288
- var XmlBehaviour = function () {
289
- this.add("string_dquotes", "insertion", function (state, action, editor, session, text) {
290
- if (text == '"' || text == "'") {
291
- var quote = text;
292
- var selected = session.doc.getTextRange(editor.getSelectionRange());
293
- if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
294
- return {
295
- text: quote + selected + quote,
296
- selection: false
297
- };
298
- }
299
- var cursor = editor.getCursorPosition();
300
- var line = session.doc.getLine(cursor.row);
301
- var rightChar = line.substring(cursor.column, cursor.column + 1);
302
- var iterator = new TokenIterator(session, cursor.row, cursor.column);
303
- var token = iterator.getCurrentToken();
304
- if (rightChar == quote && (is(token, "attribute-value") || is(token, "string"))) {
305
- return {
306
- text: "",
307
- selection: [1, 1]
308
- };
309
- }
310
- if (!token)
311
- token = iterator.stepBackward();
312
- if (!token)
313
- return;
314
- while (is(token, "tag-whitespace") || is(token, "whitespace")) {
315
- token = iterator.stepBackward();
316
- }
317
- var rightSpace = !rightChar || rightChar.match(/\s/);
318
- if (is(token, "attribute-equals") && (rightSpace || rightChar == '>') || (is(token, "decl-attribute-equals") && (rightSpace || rightChar == '?'))) {
319
- return {
320
- text: quote + quote,
321
- selection: [1, 1]
322
- };
323
- }
324
- }
325
- });
326
- this.add("string_dquotes", "deletion", function (state, action, editor, session, range) {
327
- var selected = session.doc.getTextRange(range);
328
- if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
329
- var line = session.doc.getLine(range.start.row);
330
- var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
331
- if (rightChar == selected) {
332
- range.end.column++;
333
- return range;
334
- }
335
- }
336
- });
337
- this.add("autoclosing", "insertion", function (state, action, editor, session, text) {
338
- if (text == '>') {
339
- var position = editor.getSelectionRange().start;
340
- var iterator = new TokenIterator(session, position.row, position.column);
341
- var token = iterator.getCurrentToken() || iterator.stepBackward();
342
- if (!token || !(is(token, "tag-name") || is(token, "tag-whitespace") || is(token, "attribute-name") || is(token, "attribute-equals") || is(token, "attribute-value")))
343
- return;
344
- if (is(token, "reference.attribute-value"))
345
- return;
346
- if (is(token, "attribute-value")) {
347
- var tokenEndColumn = iterator.getCurrentTokenColumn() + token.value.length;
348
- if (position.column < tokenEndColumn)
349
- return;
350
- if (position.column == tokenEndColumn) {
351
- var nextToken = iterator.stepForward();
352
- if (nextToken && is(nextToken, "attribute-value"))
353
- return;
354
- iterator.stepBackward();
355
- }
356
- }
357
- if (/^\s*>/.test(session.getLine(position.row).slice(position.column)))
358
- return;
359
- while (!is(token, "tag-name")) {
360
- token = iterator.stepBackward();
361
- if (token.value == "<") {
362
- token = iterator.stepForward();
363
- break;
364
- }
365
- }
366
- var tokenRow = iterator.getCurrentTokenRow();
367
- var tokenColumn = iterator.getCurrentTokenColumn();
368
- if (is(iterator.stepBackward(), "end-tag-open"))
369
- return;
370
- var element = token.value;
371
- if (tokenRow == position.row)
372
- element = element.substring(0, position.column - tokenColumn);
373
- if (this.voidElements && this.voidElements.hasOwnProperty(element.toLowerCase()))
374
- return;
375
- return {
376
- text: ">" + "</" + element + ">",
377
- selection: [1, 1]
378
- };
379
- }
380
- });
381
- this.add("autoindent", "insertion", function (state, action, editor, session, text) {
382
- if (text == "\n") {
383
- var cursor = editor.getCursorPosition();
384
- var line = session.getLine(cursor.row);
385
- var iterator = new TokenIterator(session, cursor.row, cursor.column);
386
- var token = iterator.getCurrentToken();
387
- if (is(token, "") && token.type.indexOf("tag-close") !== -1) {
388
- if (token.value == "/>")
389
- return;
390
- while (token && token.type.indexOf("tag-name") === -1) {
391
- token = iterator.stepBackward();
392
- }
393
- if (!token) {
394
- return;
395
- }
396
- var tag = token.value;
397
- var row = iterator.getCurrentTokenRow();
398
- token = iterator.stepBackward();
399
- if (!token || token.type.indexOf("end-tag") !== -1) {
400
- return;
401
- }
402
- if (this.voidElements && !this.voidElements[tag] || !this.voidElements) {
403
- var nextToken = session.getTokenAt(cursor.row, cursor.column + 1);
404
- var line = session.getLine(row);
405
- var nextIndent = this.$getIndent(line);
406
- var indent = nextIndent + session.getTabString();
407
- if (nextToken && nextToken.value === "</") {
408
- return {
409
- text: "\n" + indent + "\n" + nextIndent,
410
- selection: [1, indent.length, 1, indent.length]
411
- };
412
- }
413
- else {
414
- return {
415
- text: "\n" + indent
416
- };
417
- }
418
- }
419
- }
420
- }
421
- });
422
- };
423
- oop.inherits(XmlBehaviour, Behaviour);
424
- exports.XmlBehaviour = XmlBehaviour;
425
-
426
- });
427
-
428
- ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"], function(require, exports, module){"use strict";
429
- var TokenIterator = require("../token_iterator").TokenIterator;
430
- var commonAttributes = [
431
- "accesskey",
432
- "class",
433
- "contenteditable",
434
- "contextmenu",
435
- "dir",
436
- "draggable",
437
- "dropzone",
438
- "hidden",
439
- "id",
440
- "inert",
441
- "itemid",
442
- "itemprop",
443
- "itemref",
444
- "itemscope",
445
- "itemtype",
446
- "lang",
447
- "spellcheck",
448
- "style",
449
- "tabindex",
450
- "title",
451
- "translate"
452
- ];
453
- var eventAttributes = [
454
- "onabort",
455
- "onblur",
456
- "oncancel",
457
- "oncanplay",
458
- "oncanplaythrough",
459
- "onchange",
460
- "onclick",
461
- "onclose",
462
- "oncontextmenu",
463
- "oncuechange",
464
- "ondblclick",
465
- "ondrag",
466
- "ondragend",
467
- "ondragenter",
468
- "ondragleave",
469
- "ondragover",
470
- "ondragstart",
471
- "ondrop",
472
- "ondurationchange",
473
- "onemptied",
474
- "onended",
475
- "onerror",
476
- "onfocus",
477
- "oninput",
478
- "oninvalid",
479
- "onkeydown",
480
- "onkeypress",
481
- "onkeyup",
482
- "onload",
483
- "onloadeddata",
484
- "onloadedmetadata",
485
- "onloadstart",
486
- "onmousedown",
487
- "onmousemove",
488
- "onmouseout",
489
- "onmouseover",
490
- "onmouseup",
491
- "onmousewheel",
492
- "onpause",
493
- "onplay",
494
- "onplaying",
495
- "onprogress",
496
- "onratechange",
497
- "onreset",
498
- "onscroll",
499
- "onseeked",
500
- "onseeking",
501
- "onselect",
502
- "onshow",
503
- "onstalled",
504
- "onsubmit",
505
- "onsuspend",
506
- "ontimeupdate",
507
- "onvolumechange",
508
- "onwaiting"
509
- ];
510
- var globalAttributes = commonAttributes.concat(eventAttributes);
511
- var attributeMap = {
512
- "a": { "href": 1, "target": { "_blank": 1, "top": 1 }, "ping": 1, "rel": { "nofollow": 1, "alternate": 1, "author": 1, "bookmark": 1, "help": 1, "license": 1, "next": 1, "noreferrer": 1, "prefetch": 1, "prev": 1, "search": 1, "tag": 1 }, "media": 1, "hreflang": 1, "type": 1 },
513
- "abbr": {},
514
- "address": {},
515
- "area": { "shape": 1, "coords": 1, "href": 1, "hreflang": 1, "alt": 1, "target": 1, "media": 1, "rel": 1, "ping": 1, "type": 1 },
516
- "article": { "pubdate": 1 },
517
- "aside": {},
518
- "audio": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
519
- "b": {},
520
- "base": { "href": 1, "target": 1 },
521
- "bdi": {},
522
- "bdo": {},
523
- "blockquote": { "cite": 1 },
524
- "body": { "onafterprint": 1, "onbeforeprint": 1, "onbeforeunload": 1, "onhashchange": 1, "onmessage": 1, "onoffline": 1, "onpopstate": 1, "onredo": 1, "onresize": 1, "onstorage": 1, "onundo": 1, "onunload": 1 },
525
- "br": {},
526
- "button": { "autofocus": 1, "disabled": { "disabled": 1 }, "form": 1, "formaction": 1, "formenctype": 1, "formmethod": 1, "formnovalidate": 1, "formtarget": 1, "name": 1, "value": 1, "type": { "button": 1, "submit": 1 } },
527
- "canvas": { "width": 1, "height": 1 },
528
- "caption": {},
529
- "cite": {},
530
- "code": {},
531
- "col": { "span": 1 },
532
- "colgroup": { "span": 1 },
533
- "command": { "type": 1, "label": 1, "icon": 1, "disabled": 1, "checked": 1, "radiogroup": 1, "command": 1 },
534
- "data": {},
535
- "datalist": {},
536
- "dd": {},
537
- "del": { "cite": 1, "datetime": 1 },
538
- "details": { "open": 1 },
539
- "dfn": {},
540
- "dialog": { "open": 1 },
541
- "div": {},
542
- "dl": {},
543
- "dt": {},
544
- "em": {},
545
- "embed": { "src": 1, "height": 1, "width": 1, "type": 1 },
546
- "fieldset": { "disabled": 1, "form": 1, "name": 1 },
547
- "figcaption": {},
548
- "figure": {},
549
- "footer": {},
550
- "form": { "accept-charset": 1, "action": 1, "autocomplete": 1, "enctype": { "multipart/form-data": 1, "application/x-www-form-urlencoded": 1 }, "method": { "get": 1, "post": 1 }, "name": 1, "novalidate": 1, "target": { "_blank": 1, "top": 1 } },
551
- "h1": {},
552
- "h2": {},
553
- "h3": {},
554
- "h4": {},
555
- "h5": {},
556
- "h6": {},
557
- "head": {},
558
- "header": {},
559
- "hr": {},
560
- "html": { "manifest": 1 },
561
- "i": {},
562
- "iframe": { "name": 1, "src": 1, "height": 1, "width": 1, "sandbox": { "allow-same-origin": 1, "allow-top-navigation": 1, "allow-forms": 1, "allow-scripts": 1 }, "seamless": { "seamless": 1 } },
563
- "img": { "alt": 1, "src": 1, "height": 1, "width": 1, "usemap": 1, "ismap": 1 },
564
- "input": {
565
- "type": { "text": 1, "password": 1, "hidden": 1, "checkbox": 1, "submit": 1, "radio": 1, "file": 1, "button": 1, "reset": 1, "image": 31, "color": 1, "date": 1, "datetime": 1, "datetime-local": 1, "email": 1, "month": 1, "number": 1, "range": 1, "search": 1, "tel": 1, "time": 1, "url": 1, "week": 1 },
566
- "accept": 1, "alt": 1, "autocomplete": { "on": 1, "off": 1 }, "autofocus": { "autofocus": 1 }, "checked": { "checked": 1 }, "disabled": { "disabled": 1 }, "form": 1, "formaction": 1, "formenctype": { "application/x-www-form-urlencoded": 1, "multipart/form-data": 1, "text/plain": 1 }, "formmethod": { "get": 1, "post": 1 }, "formnovalidate": { "formnovalidate": 1 }, "formtarget": { "_blank": 1, "_self": 1, "_parent": 1, "_top": 1 }, "height": 1, "list": 1, "max": 1, "maxlength": 1, "min": 1, "multiple": { "multiple": 1 }, "name": 1, "pattern": 1, "placeholder": 1, "readonly": { "readonly": 1 }, "required": { "required": 1 }, "size": 1, "src": 1, "step": 1, "width": 1, "files": 1, "value": 1
567
- },
568
- "ins": { "cite": 1, "datetime": 1 },
569
- "kbd": {},
570
- "keygen": { "autofocus": 1, "challenge": { "challenge": 1 }, "disabled": { "disabled": 1 }, "form": 1, "keytype": { "rsa": 1, "dsa": 1, "ec": 1 }, "name": 1 },
571
- "label": { "form": 1, "for": 1 },
572
- "legend": {},
573
- "li": { "value": 1 },
574
- "link": { "href": 1, "hreflang": 1, "rel": { "stylesheet": 1, "icon": 1 }, "media": { "all": 1, "screen": 1, "print": 1 }, "type": { "text/css": 1, "image/png": 1, "image/jpeg": 1, "image/gif": 1 }, "sizes": 1 },
575
- "main": {},
576
- "map": { "name": 1 },
577
- "mark": {},
578
- "math": {},
579
- "menu": { "type": 1, "label": 1 },
580
- "meta": { "http-equiv": { "content-type": 1 }, "name": { "description": 1, "keywords": 1 }, "content": { "text/html; charset=UTF-8": 1 }, "charset": 1 },
581
- "meter": { "value": 1, "min": 1, "max": 1, "low": 1, "high": 1, "optimum": 1 },
582
- "nav": {},
583
- "noscript": { "href": 1 },
584
- "object": { "param": 1, "data": 1, "type": 1, "height": 1, "width": 1, "usemap": 1, "name": 1, "form": 1, "classid": 1 },
585
- "ol": { "start": 1, "reversed": 1 },
586
- "optgroup": { "disabled": 1, "label": 1 },
587
- "option": { "disabled": 1, "selected": 1, "label": 1, "value": 1 },
588
- "output": { "for": 1, "form": 1, "name": 1 },
589
- "p": {},
590
- "param": { "name": 1, "value": 1 },
591
- "pre": {},
592
- "progress": { "value": 1, "max": 1 },
593
- "q": { "cite": 1 },
594
- "rp": {},
595
- "rt": {},
596
- "ruby": {},
597
- "s": {},
598
- "samp": {},
599
- "script": { "charset": 1, "type": { "text/javascript": 1 }, "src": 1, "defer": 1, "async": 1 },
600
- "select": { "autofocus": 1, "disabled": 1, "form": 1, "multiple": { "multiple": 1 }, "name": 1, "size": 1, "readonly": { "readonly": 1 } },
601
- "small": {},
602
- "source": { "src": 1, "type": 1, "media": 1 },
603
- "span": {},
604
- "strong": {},
605
- "style": { "type": 1, "media": { "all": 1, "screen": 1, "print": 1 }, "scoped": 1 },
606
- "sub": {},
607
- "sup": {},
608
- "svg": {},
609
- "table": { "summary": 1 },
610
- "tbody": {},
611
- "td": { "headers": 1, "rowspan": 1, "colspan": 1 },
612
- "textarea": { "autofocus": { "autofocus": 1 }, "disabled": { "disabled": 1 }, "form": 1, "maxlength": 1, "name": 1, "placeholder": 1, "readonly": { "readonly": 1 }, "required": { "required": 1 }, "rows": 1, "cols": 1, "wrap": { "on": 1, "off": 1, "hard": 1, "soft": 1 } },
613
- "tfoot": {},
614
- "th": { "headers": 1, "rowspan": 1, "colspan": 1, "scope": 1 },
615
- "thead": {},
616
- "time": { "datetime": 1 },
617
- "title": {},
618
- "tr": {},
619
- "track": { "kind": 1, "src": 1, "srclang": 1, "label": 1, "default": 1 },
620
- "section": {},
621
- "summary": {},
622
- "u": {},
623
- "ul": {},
624
- "var": {},
625
- "video": { "src": 1, "autobuffer": 1, "autoplay": { "autoplay": 1 }, "loop": { "loop": 1 }, "controls": { "controls": 1 }, "width": 1, "height": 1, "poster": 1, "muted": { "muted": 1 }, "preload": { "auto": 1, "metadata": 1, "none": 1 } },
626
- "wbr": {}
627
- };
628
- var elements = Object.keys(attributeMap);
629
- function is(token, type) {
630
- return token.type.lastIndexOf(type + ".xml") > -1;
631
- }
632
- function findTagName(session, pos) {
633
- var iterator = new TokenIterator(session, pos.row, pos.column);
634
- var token = iterator.getCurrentToken();
635
- while (token && !is(token, "tag-name")) {
636
- token = iterator.stepBackward();
637
- }
638
- if (token)
639
- return token.value;
640
- }
641
- function findAttributeName(session, pos) {
642
- var iterator = new TokenIterator(session, pos.row, pos.column);
643
- var token = iterator.getCurrentToken();
644
- while (token && !is(token, "attribute-name")) {
645
- token = iterator.stepBackward();
646
- }
647
- if (token)
648
- return token.value;
649
- }
650
- var HtmlCompletions = function () {
651
- };
652
- (function () {
653
- this.getCompletions = function (state, session, pos, prefix) {
654
- var token = session.getTokenAt(pos.row, pos.column);
655
- if (!token)
656
- return [];
657
- if (is(token, "tag-name") || is(token, "tag-open") || is(token, "end-tag-open"))
658
- return this.getTagCompletions(state, session, pos, prefix);
659
- if (is(token, "tag-whitespace") || is(token, "attribute-name"))
660
- return this.getAttributeCompletions(state, session, pos, prefix);
661
- if (is(token, "attribute-value"))
662
- return this.getAttributeValueCompletions(state, session, pos, prefix);
663
- var line = session.getLine(pos.row).substr(0, pos.column);
664
- if (/&[a-z]*$/i.test(line))
665
- return this.getHTMLEntityCompletions(state, session, pos, prefix);
666
- return [];
667
- };
668
- this.getTagCompletions = function (state, session, pos, prefix) {
669
- return elements.map(function (element) {
670
- return {
671
- value: element,
672
- meta: "tag",
673
- score: 1000000
674
- };
675
- });
676
- };
677
- this.getAttributeCompletions = function (state, session, pos, prefix) {
678
- var tagName = findTagName(session, pos);
679
- if (!tagName)
680
- return [];
681
- var attributes = globalAttributes;
682
- if (tagName in attributeMap) {
683
- attributes = attributes.concat(Object.keys(attributeMap[tagName]));
684
- }
685
- return attributes.map(function (attribute) {
686
- return {
687
- caption: attribute,
688
- snippet: attribute + '="$0"',
689
- meta: "attribute",
690
- score: 1000000
691
- };
692
- });
693
- };
694
- this.getAttributeValueCompletions = function (state, session, pos, prefix) {
695
- var tagName = findTagName(session, pos);
696
- var attributeName = findAttributeName(session, pos);
697
- if (!tagName)
698
- return [];
699
- var values = [];
700
- if (tagName in attributeMap && attributeName in attributeMap[tagName] && typeof attributeMap[tagName][attributeName] === "object") {
701
- values = Object.keys(attributeMap[tagName][attributeName]);
702
- }
703
- return values.map(function (value) {
704
- return {
705
- caption: value,
706
- snippet: value,
707
- meta: "attribute value",
708
- score: 1000000
709
- };
710
- });
711
- };
712
- this.getHTMLEntityCompletions = function (state, session, pos, prefix) {
713
- var values = ['Aacute;', 'aacute;', 'Acirc;', 'acirc;', 'acute;', 'AElig;', 'aelig;', 'Agrave;', 'agrave;', 'alefsym;', 'Alpha;', 'alpha;', 'amp;', 'and;', 'ang;', 'Aring;', 'aring;', 'asymp;', 'Atilde;', 'atilde;', 'Auml;', 'auml;', 'bdquo;', 'Beta;', 'beta;', 'brvbar;', 'bull;', 'cap;', 'Ccedil;', 'ccedil;', 'cedil;', 'cent;', 'Chi;', 'chi;', 'circ;', 'clubs;', 'cong;', 'copy;', 'crarr;', 'cup;', 'curren;', 'Dagger;', 'dagger;', 'dArr;', 'darr;', 'deg;', 'Delta;', 'delta;', 'diams;', 'divide;', 'Eacute;', 'eacute;', 'Ecirc;', 'ecirc;', 'Egrave;', 'egrave;', 'empty;', 'emsp;', 'ensp;', 'Epsilon;', 'epsilon;', 'equiv;', 'Eta;', 'eta;', 'ETH;', 'eth;', 'Euml;', 'euml;', 'euro;', 'exist;', 'fnof;', 'forall;', 'frac12;', 'frac14;', 'frac34;', 'frasl;', 'Gamma;', 'gamma;', 'ge;', 'gt;', 'hArr;', 'harr;', 'hearts;', 'hellip;', 'Iacute;', 'iacute;', 'Icirc;', 'icirc;', 'iexcl;', 'Igrave;', 'igrave;', 'image;', 'infin;', 'int;', 'Iota;', 'iota;', 'iquest;', 'isin;', 'Iuml;', 'iuml;', 'Kappa;', 'kappa;', 'Lambda;', 'lambda;', 'lang;', 'laquo;', 'lArr;', 'larr;', 'lceil;', 'ldquo;', 'le;', 'lfloor;', 'lowast;', 'loz;', 'lrm;', 'lsaquo;', 'lsquo;', 'lt;', 'macr;', 'mdash;', 'micro;', 'middot;', 'minus;', 'Mu;', 'mu;', 'nabla;', 'nbsp;', 'ndash;', 'ne;', 'ni;', 'not;', 'notin;', 'nsub;', 'Ntilde;', 'ntilde;', 'Nu;', 'nu;', 'Oacute;', 'oacute;', 'Ocirc;', 'ocirc;', 'OElig;', 'oelig;', 'Ograve;', 'ograve;', 'oline;', 'Omega;', 'omega;', 'Omicron;', 'omicron;', 'oplus;', 'or;', 'ordf;', 'ordm;', 'Oslash;', 'oslash;', 'Otilde;', 'otilde;', 'otimes;', 'Ouml;', 'ouml;', 'para;', 'part;', 'permil;', 'perp;', 'Phi;', 'phi;', 'Pi;', 'pi;', 'piv;', 'plusmn;', 'pound;', 'Prime;', 'prime;', 'prod;', 'prop;', 'Psi;', 'psi;', 'quot;', 'radic;', 'rang;', 'raquo;', 'rArr;', 'rarr;', 'rceil;', 'rdquo;', 'real;', 'reg;', 'rfloor;', 'Rho;', 'rho;', 'rlm;', 'rsaquo;', 'rsquo;', 'sbquo;', 'Scaron;', 'scaron;', 'sdot;', 'sect;', 'shy;', 'Sigma;', 'sigma;', 'sigmaf;', 'sim;', 'spades;', 'sub;', 'sube;', 'sum;', 'sup;', 'sup1;', 'sup2;', 'sup3;', 'supe;', 'szlig;', 'Tau;', 'tau;', 'there4;', 'Theta;', 'theta;', 'thetasym;', 'thinsp;', 'THORN;', 'thorn;', 'tilde;', 'times;', 'trade;', 'Uacute;', 'uacute;', 'uArr;', 'uarr;', 'Ucirc;', 'ucirc;', 'Ugrave;', 'ugrave;', 'uml;', 'upsih;', 'Upsilon;', 'upsilon;', 'Uuml;', 'uuml;', 'weierp;', 'Xi;', 'xi;', 'Yacute;', 'yacute;', 'yen;', 'Yuml;', 'yuml;', 'Zeta;', 'zeta;', 'zwj;', 'zwnj;'];
714
- return values.map(function (value) {
715
- return {
716
- caption: value,
717
- snippet: value,
718
- meta: "html entity",
719
- score: 1000000
720
- };
721
- });
722
- };
723
- }).call(HtmlCompletions.prototype);
724
- exports.HtmlCompletions = HtmlCompletions;
725
-
726
- });
727
-
728
- ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
729
- var oop = require("../lib/oop");
730
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
731
- var JsDocCommentHighlightRules = function () {
732
- this.$rules = {
733
- "start": [
734
- {
735
- token: ["comment.doc.tag", "comment.doc.text", "lparen.doc"],
736
- regex: "(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",
737
- push: [
738
- {
739
- token: "lparen.doc",
740
- regex: "{",
741
- push: [
742
- {
743
- include: "doc-syntax"
744
- }, {
745
- token: "rparen.doc",
746
- regex: "}|(?=$)",
747
- next: "pop"
748
- }
749
- ]
750
- }, {
751
- token: ["rparen.doc", "text.doc", "variable.parameter.doc", "lparen.doc", "variable.parameter.doc", "rparen.doc"],
752
- regex: /(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,
753
- next: "pop"
754
- }, {
755
- token: "rparen.doc",
756
- regex: "}|(?=$)",
757
- next: "pop"
758
- }, {
759
- include: "doc-syntax"
760
- }, {
761
- defaultToken: "text.doc"
762
- }
763
- ]
764
- }, {
765
- token: ["comment.doc.tag", "text.doc", "lparen.doc"],
766
- regex: "(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|"
767
- + "implements|external|exception|throws|enum|define|extends))(\\s*)({)",
768
- push: [
769
- {
770
- token: "lparen.doc",
771
- regex: "{",
772
- push: [
773
- {
774
- include: "doc-syntax"
775
- }, {
776
- token: "rparen.doc",
777
- regex: "}|(?=$)",
778
- next: "pop"
779
- }
780
- ]
781
- }, {
782
- token: "rparen.doc",
783
- regex: "}|(?=$)",
784
- next: "pop"
785
- }, {
786
- include: "doc-syntax"
787
- }, {
788
- defaultToken: "text.doc"
789
- }
790
- ]
791
- }, {
792
- token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
793
- regex: "(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|"
794
- + "requires|param|implements|function|extends|typedef|mixes|constructor|var|"
795
- + "memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|"
796
- + "throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#\.:\/~\"\\-]*)?"
797
- }, {
798
- token: ["comment.doc.tag", "text.doc", "variable.parameter.doc"],
799
- regex: "(@method)(\\s+)(\\w[\\w\.\\(\\)]*)"
800
- }, {
801
- token: "comment.doc.tag",
802
- regex: "@access\\s+(?:private|public|protected)"
803
- }, {
804
- token: "comment.doc.tag",
805
- regex: "@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"
806
- }, {
807
- token: "comment.doc.tag",
808
- regex: "@\\w+(?=\\s|$)"
809
- },
810
- JsDocCommentHighlightRules.getTagRule(),
811
- {
812
- defaultToken: "comment.doc.body",
813
- caseInsensitive: true
814
- }
815
- ],
816
- "doc-syntax": [{
817
- token: "operator.doc",
818
- regex: /[|:]/
819
- }, {
820
- token: "paren.doc",
821
- regex: /[\[\]]/
822
- }]
823
- };
824
- this.normalizeRules();
825
- };
826
- oop.inherits(JsDocCommentHighlightRules, TextHighlightRules);
827
- JsDocCommentHighlightRules.getTagRule = function (start) {
828
- return {
829
- token: "comment.doc.tag.storage.type",
830
- regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
831
- };
832
- };
833
- JsDocCommentHighlightRules.getStartRule = function (start) {
834
- return {
835
- token: "comment.doc", // doc comment
836
- regex: /\/\*\*(?!\/)/,
837
- next: start
838
- };
839
- };
840
- JsDocCommentHighlightRules.getEndRule = function (start) {
841
- return {
842
- token: "comment.doc", // closing comment
843
- regex: "\\*\\/",
844
- next: start
845
- };
846
- };
847
- exports.JsDocCommentHighlightRules = JsDocCommentHighlightRules;
848
-
849
- });
850
-
851
- ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
852
- var oop = require("../lib/oop");
853
- var DocCommentHighlightRules = require("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules;
854
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
855
- var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
856
- var JavaScriptHighlightRules = function (options) {
857
- var keywords = {
858
- "variable.language": "Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|" + // Constructors
859
- "Namespace|QName|XML|XMLList|" + // E4X
860
- "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
861
- "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
862
- "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
863
- "SyntaxError|TypeError|URIError|" +
864
- "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
865
- "isNaN|parseFloat|parseInt|" +
866
- "JSON|Math|" + // Other
867
- "this|arguments|prototype|window|document", // Pseudo
868
- "keyword": "const|yield|import|get|set|async|await|" +
869
- "break|case|catch|continue|default|delete|do|else|finally|for|" +
870
- "if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
871
- "__parent__|__count__|escape|unescape|with|__proto__|" +
872
- "class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor",
873
- "storage.type": "const|let|var|function",
874
- "constant.language": "null|Infinity|NaN|undefined",
875
- "support.function": "alert",
876
- "constant.language.boolean": "true|false"
877
- };
878
- var keywordMapper = this.createKeywordMapper(keywords, "identifier");
879
- var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
880
- var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
881
- "u[0-9a-fA-F]{4}|" + // unicode
882
- "u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
883
- "[0-2][0-7]{0,2}|" + // oct
884
- "3[0-7][0-7]?|" + // oct
885
- "[4-7][0-7]?|" + //oct
886
- ".)";
887
- var anonymousFunctionRe = "(function)(\\s*)(\\*?)";
888
- var functionCallStartRule = {
889
- token: ["identifier", "text", "paren.lparen"],
890
- regex: "(\\b(?!" + Object.values(keywords).join("|") + "\\b)" + identifierRe + ")(\\s*)(\\()"
891
- };
892
- this.$rules = {
893
- "no_regex": [
894
- DocCommentHighlightRules.getStartRule("doc-start"),
895
- comments("no_regex"),
896
- functionCallStartRule,
897
- {
898
- token: "string",
899
- regex: "'(?=.)",
900
- next: "qstring"
901
- }, {
902
- token: "string",
903
- regex: '"(?=.)',
904
- next: "qqstring"
905
- }, {
906
- token: "constant.numeric", // hexadecimal, octal and binary
907
- regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
908
- }, {
909
- token: "constant.numeric", // decimal integers and floats
910
- regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
911
- }, {
912
- token: [
913
- "entity.name.function", "text", "keyword.operator", "text", "storage.type",
914
- "text", "storage.type", "text", "paren.lparen"
915
- ],
916
- regex: "(" + identifierRe + ")(\\s*)(=)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
917
- next: "function_arguments"
918
- }, {
919
- token: [
920
- "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
921
- ],
922
- regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(" + identifierRe + ")(\\s*)(\\()",
923
- next: "function_arguments"
924
- }, {
925
- token: [
926
- "entity.name.function", "text", "punctuation.operator",
927
- "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
928
- ],
929
- regex: "(" + identifierRe + ")(\\s*)(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
930
- next: "function_arguments"
931
- }, {
932
- token: [
933
- "text", "text", "storage.type", "text", "storage.type", "text", "paren.lparen"
934
- ],
935
- regex: "(:)(\\s*)" + anonymousFunctionRe + "(\\s*)(\\()",
936
- next: "function_arguments"
937
- }, {
938
- token: "keyword",
939
- regex: "from(?=\\s*('|\"))"
940
- }, {
941
- token: "keyword",
942
- regex: "(?:" + kwBeforeRe + ")\\b",
943
- next: "start"
944
- }, {
945
- token: "support.constant",
946
- regex: /that\b/
947
- }, {
948
- token: ["storage.type", "punctuation.operator", "support.function.firebug"],
949
- regex: /(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/
950
- }, {
951
- token: keywordMapper,
952
- regex: identifierRe
953
- }, {
954
- token: "punctuation.operator",
955
- regex: /[.](?![.])/,
956
- next: "property"
957
- }, {
958
- token: "storage.type",
959
- regex: /=>/,
960
- next: "start"
961
- }, {
962
- token: "keyword.operator",
963
- regex: /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
964
- next: "start"
965
- }, {
966
- token: "punctuation.operator",
967
- regex: /[?:,;.]/,
968
- next: "start"
969
- }, {
970
- token: "paren.lparen",
971
- regex: /[\[({]/,
972
- next: "start"
973
- }, {
974
- token: "paren.rparen",
975
- regex: /[\])}]/
976
- }, {
977
- token: "comment",
978
- regex: /^#!.*$/
979
- }
980
- ],
981
- property: [{
982
- token: "text",
983
- regex: "\\s+"
984
- }, {
985
- token: "keyword.operator",
986
- regex: /=/
987
- }, {
988
- token: [
989
- "storage.type", "text", "storage.type", "text", "paren.lparen"
990
- ],
991
- regex: anonymousFunctionRe + "(\\s*)(\\()",
992
- next: "function_arguments"
993
- }, {
994
- token: [
995
- "storage.type", "text", "storage.type", "text", "text", "entity.name.function", "text", "paren.lparen"
996
- ],
997
- regex: "(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",
998
- next: "function_arguments"
999
- }, {
1000
- token: "punctuation.operator",
1001
- regex: /[.](?![.])/
1002
- }, {
1003
- token: "support.function",
1004
- regex: "prototype"
1005
- }, {
1006
- token: "support.function",
1007
- regex: /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
1008
- }, {
1009
- token: "support.function.dom",
1010
- regex: /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
1011
- }, {
1012
- token: "support.constant",
1013
- regex: /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
1014
- }, {
1015
- token: "identifier",
1016
- regex: identifierRe
1017
- }, {
1018
- regex: "",
1019
- token: "empty",
1020
- next: "no_regex"
1021
- }
1022
- ],
1023
- "start": [
1024
- DocCommentHighlightRules.getStartRule("doc-start"),
1025
- comments("start"),
1026
- {
1027
- token: "string.regexp",
1028
- regex: "\\/",
1029
- next: "regex"
1030
- }, {
1031
- token: "text",
1032
- regex: "\\s+|^$",
1033
- next: "start"
1034
- }, {
1035
- token: "empty",
1036
- regex: "",
1037
- next: "no_regex"
1038
- }
1039
- ],
1040
- "regex": [
1041
- {
1042
- token: "regexp.keyword.operator",
1043
- regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
1044
- }, {
1045
- token: "string.regexp",
1046
- regex: "/[sxngimy]*",
1047
- next: "no_regex"
1048
- }, {
1049
- token: "invalid",
1050
- regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
1051
- }, {
1052
- token: "constant.language.escape",
1053
- regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
1054
- }, {
1055
- token: "constant.language.delimiter",
1056
- regex: /\|/
1057
- }, {
1058
- token: "constant.language.escape",
1059
- regex: /\[\^?/,
1060
- next: "regex_character_class"
1061
- }, {
1062
- token: "empty",
1063
- regex: "$",
1064
- next: "no_regex"
1065
- }, {
1066
- defaultToken: "string.regexp"
1067
- }
1068
- ],
1069
- "regex_character_class": [
1070
- {
1071
- token: "regexp.charclass.keyword.operator",
1072
- regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
1073
- }, {
1074
- token: "constant.language.escape",
1075
- regex: "]",
1076
- next: "regex"
1077
- }, {
1078
- token: "constant.language.escape",
1079
- regex: "-"
1080
- }, {
1081
- token: "empty",
1082
- regex: "$",
1083
- next: "no_regex"
1084
- }, {
1085
- defaultToken: "string.regexp.charachterclass"
1086
- }
1087
- ],
1088
- "default_parameter": [
1089
- {
1090
- token: "string",
1091
- regex: "'(?=.)",
1092
- push: [
1093
- {
1094
- token: "string",
1095
- regex: "'|$",
1096
- next: "pop"
1097
- }, {
1098
- include: "qstring"
1099
- }
1100
- ]
1101
- }, {
1102
- token: "string",
1103
- regex: '"(?=.)',
1104
- push: [
1105
- {
1106
- token: "string",
1107
- regex: '"|$',
1108
- next: "pop"
1109
- }, {
1110
- include: "qqstring"
1111
- }
1112
- ]
1113
- }, {
1114
- token: "constant.language",
1115
- regex: "null|Infinity|NaN|undefined"
1116
- }, {
1117
- token: "constant.numeric", // hexadecimal, octal and binary
1118
- regex: /0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/
1119
- }, {
1120
- token: "constant.numeric", // decimal integers and floats
1121
- regex: /(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/
1122
- }, {
1123
- token: "punctuation.operator",
1124
- regex: ",",
1125
- next: "function_arguments"
1126
- }, {
1127
- token: "text",
1128
- regex: "\\s+"
1129
- }, {
1130
- token: "punctuation.operator",
1131
- regex: "$"
1132
- }, {
1133
- token: "empty",
1134
- regex: "",
1135
- next: "no_regex"
1136
- }
1137
- ],
1138
- "function_arguments": [
1139
- comments("function_arguments"),
1140
- {
1141
- token: "variable.parameter",
1142
- regex: identifierRe
1143
- }, {
1144
- token: "punctuation.operator",
1145
- regex: ","
1146
- }, {
1147
- token: "text",
1148
- regex: "\\s+"
1149
- }, {
1150
- token: "punctuation.operator",
1151
- regex: "$"
1152
- }, {
1153
- token: "empty",
1154
- regex: "",
1155
- next: "no_regex"
1156
- }
1157
- ],
1158
- "qqstring": [
1159
- {
1160
- token: "constant.language.escape",
1161
- regex: escapedRe
1162
- }, {
1163
- token: "string",
1164
- regex: "\\\\$",
1165
- consumeLineEnd: true
1166
- }, {
1167
- token: "string",
1168
- regex: '"|$',
1169
- next: "no_regex"
1170
- }, {
1171
- defaultToken: "string"
1172
- }
1173
- ],
1174
- "qstring": [
1175
- {
1176
- token: "constant.language.escape",
1177
- regex: escapedRe
1178
- }, {
1179
- token: "string",
1180
- regex: "\\\\$",
1181
- consumeLineEnd: true
1182
- }, {
1183
- token: "string",
1184
- regex: "'|$",
1185
- next: "no_regex"
1186
- }, {
1187
- defaultToken: "string"
1188
- }
1189
- ]
1190
- };
1191
- if (!options || !options.noES6) {
1192
- this.$rules.no_regex.unshift({
1193
- regex: "[{}]", onMatch: function (val, state, stack) {
1194
- this.next = val == "{" ? this.nextState : "";
1195
- if (val == "{" && stack.length) {
1196
- stack.unshift("start", state);
1197
- }
1198
- else if (val == "}" && stack.length) {
1199
- stack.shift();
1200
- this.next = stack.shift();
1201
- if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
1202
- return "paren.quasi.end";
1203
- }
1204
- return val == "{" ? "paren.lparen" : "paren.rparen";
1205
- },
1206
- nextState: "start"
1207
- }, {
1208
- token: "string.quasi.start",
1209
- regex: /`/,
1210
- push: [{
1211
- token: "constant.language.escape",
1212
- regex: escapedRe
1213
- }, {
1214
- token: "paren.quasi.start",
1215
- regex: /\${/,
1216
- push: "start"
1217
- }, {
1218
- token: "string.quasi.end",
1219
- regex: /`/,
1220
- next: "pop"
1221
- }, {
1222
- defaultToken: "string.quasi"
1223
- }]
1224
- }, {
1225
- token: ["variable.parameter", "text"],
1226
- regex: "(" + identifierRe + ")(\\s*)(?=\\=>)"
1227
- }, {
1228
- token: "paren.lparen",
1229
- regex: "(\\()(?=[^\\(]+\\s*=>)",
1230
- next: "function_arguments"
1231
- }, {
1232
- token: "variable.language",
1233
- regex: "(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"
1234
- });
1235
- this.$rules["function_arguments"].unshift({
1236
- token: "keyword.operator",
1237
- regex: "=",
1238
- next: "default_parameter"
1239
- }, {
1240
- token: "keyword.operator",
1241
- regex: "\\.{3}"
1242
- });
1243
- this.$rules["property"].unshift({
1244
- token: "support.function",
1245
- regex: "(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|"
1246
- + "finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"
1247
- }, {
1248
- token: "constant.language",
1249
- regex: "(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"
1250
- });
1251
- if (!options || options.jsx != false)
1252
- JSX.call(this);
1253
- }
1254
- this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("no_regex")]);
1255
- this.normalizeRules();
1256
- };
1257
- oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
1258
- function JSX() {
1259
- var tagRegex = identifierRe.replace("\\d", "\\d\\-");
1260
- var jsxTag = {
1261
- onMatch: function (val, state, stack) {
1262
- var offset = val.charAt(1) == "/" ? 2 : 1;
1263
- if (offset == 1) {
1264
- if (state != this.nextState)
1265
- stack.unshift(this.next, this.nextState, 0);
1266
- else
1267
- stack.unshift(this.next);
1268
- stack[2]++;
1269
- }
1270
- else if (offset == 2) {
1271
- if (state == this.nextState) {
1272
- stack[1]--;
1273
- if (!stack[1] || stack[1] < 0) {
1274
- stack.shift();
1275
- stack.shift();
1276
- }
1277
- }
1278
- }
1279
- return [{
1280
- type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
1281
- value: val.slice(0, offset)
1282
- }, {
1283
- type: "meta.tag.tag-name.xml",
1284
- value: val.substr(offset)
1285
- }];
1286
- },
1287
- regex: "</?(?:" + tagRegex + "|(?=>))",
1288
- next: "jsxAttributes",
1289
- nextState: "jsx"
1290
- };
1291
- this.$rules.start.unshift(jsxTag);
1292
- var jsxJsRule = {
1293
- regex: "{",
1294
- token: "paren.quasi.start",
1295
- push: "start"
1296
- };
1297
- this.$rules.jsx = [
1298
- jsxJsRule,
1299
- jsxTag,
1300
- { include: "reference" }, { defaultToken: "string.xml" }
1301
- ];
1302
- this.$rules.jsxAttributes = [{
1303
- token: "meta.tag.punctuation.tag-close.xml",
1304
- regex: "/?>",
1305
- onMatch: function (value, currentState, stack) {
1306
- if (currentState == stack[0])
1307
- stack.shift();
1308
- if (value.length == 2) {
1309
- if (stack[0] == this.nextState)
1310
- stack[1]--;
1311
- if (!stack[1] || stack[1] < 0) {
1312
- stack.splice(0, 2);
1313
- }
1314
- }
1315
- this.next = stack[0] || "start";
1316
- return [{ type: this.token, value: value }];
1317
- },
1318
- nextState: "jsx"
1319
- },
1320
- jsxJsRule,
1321
- comments("jsxAttributes"),
1322
- {
1323
- token: "entity.other.attribute-name.xml",
1324
- regex: tagRegex
1325
- }, {
1326
- token: "keyword.operator.attribute-equals.xml",
1327
- regex: "="
1328
- }, {
1329
- token: "text.tag-whitespace.xml",
1330
- regex: "\\s+"
1331
- }, {
1332
- token: "string.attribute-value.xml",
1333
- regex: "'",
1334
- stateName: "jsx_attr_q",
1335
- push: [
1336
- { token: "string.attribute-value.xml", regex: "'", next: "pop" },
1337
- { include: "reference" },
1338
- { defaultToken: "string.attribute-value.xml" }
1339
- ]
1340
- }, {
1341
- token: "string.attribute-value.xml",
1342
- regex: '"',
1343
- stateName: "jsx_attr_qq",
1344
- push: [
1345
- { token: "string.attribute-value.xml", regex: '"', next: "pop" },
1346
- { include: "reference" },
1347
- { defaultToken: "string.attribute-value.xml" }
1348
- ]
1349
- },
1350
- jsxTag
1351
- ];
1352
- this.$rules.reference = [{
1353
- token: "constant.language.escape.reference.xml",
1354
- regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
1355
- }];
1356
- }
1357
- function comments(next) {
1358
- return [
1359
- {
1360
- token: "comment", // multi line comment
1361
- regex: /\/\*/,
1362
- next: [
1363
- DocCommentHighlightRules.getTagRule(),
1364
- { token: "comment", regex: "\\*\\/", next: next || "pop" },
1365
- { defaultToken: "comment", caseInsensitive: true }
1366
- ]
1367
- }, {
1368
- token: "comment",
1369
- regex: "\\/\\/",
1370
- next: [
1371
- DocCommentHighlightRules.getTagRule(),
1372
- { token: "comment", regex: "$|^", next: next || "pop" },
1373
- { defaultToken: "comment", caseInsensitive: true }
1374
- ]
1375
- }
1376
- ];
1377
- }
1378
- exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
1379
-
1380
- });
1381
-
1382
- ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module){"use strict";
1383
- var Range = require("../range").Range;
1384
- var MatchingBraceOutdent = function () { };
1385
- (function () {
1386
- this.checkOutdent = function (line, input) {
1387
- if (!/^\s+$/.test(line))
1388
- return false;
1389
- return /^\s*\}/.test(input);
1390
- };
1391
- this.autoOutdent = function (doc, row) {
1392
- var line = doc.getLine(row);
1393
- var match = line.match(/^(\s*\})/);
1394
- if (!match)
1395
- return 0;
1396
- var column = match[1].length;
1397
- var openBracePos = doc.findMatchingBracket({ row: row, column: column });
1398
- if (!openBracePos || openBracePos.row == row)
1399
- return 0;
1400
- var indent = this.$getIndent(doc.getLine(openBracePos.row));
1401
- doc.replace(new Range(row, 0, row, column - 1), indent);
1402
- };
1403
- this.$getIndent = function (line) {
1404
- return line.match(/^\s*/)[0];
1405
- };
1406
- }).call(MatchingBraceOutdent.prototype);
1407
- exports.MatchingBraceOutdent = MatchingBraceOutdent;
1408
-
1409
- });
1410
-
1411
- ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"], function(require, exports, module){"use strict";
1412
- var oop = require("../../lib/oop");
1413
- var TokenIterator = require("../../token_iterator").TokenIterator;
1414
- var CstyleBehaviour = require("../behaviour/cstyle").CstyleBehaviour;
1415
- var XmlBehaviour = require("../behaviour/xml").XmlBehaviour;
1416
- var JavaScriptBehaviour = function () {
1417
- var xmlBehaviours = new XmlBehaviour({ closeCurlyBraces: true }).getBehaviours();
1418
- this.addBehaviours(xmlBehaviours);
1419
- this.inherit(CstyleBehaviour);
1420
- this.add("autoclosing-fragment", "insertion", function (state, action, editor, session, text) {
1421
- if (text == '>') {
1422
- var position = editor.getSelectionRange().start;
1423
- var iterator = new TokenIterator(session, position.row, position.column);
1424
- var token = iterator.getCurrentToken() || iterator.stepBackward();
1425
- if (!token)
1426
- return;
1427
- if (token.value == '<') {
1428
- return {
1429
- text: "></>",
1430
- selection: [1, 1]
1431
- };
1432
- }
1433
- }
1434
- });
1435
- };
1436
- oop.inherits(JavaScriptBehaviour, CstyleBehaviour);
1437
- exports.JavaScriptBehaviour = JavaScriptBehaviour;
1438
-
1439
- });
1440
-
1441
- ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
1442
- var oop = require("../../lib/oop");
1443
- var XmlFoldMode = require("./xml").FoldMode;
1444
- var CFoldMode = require("./cstyle").FoldMode;
1445
- var FoldMode = exports.FoldMode = function (commentRegex) {
1446
- if (commentRegex) {
1447
- this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
1448
- this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
1449
- }
1450
- this.xmlFoldMode = new XmlFoldMode();
1451
- };
1452
- oop.inherits(FoldMode, CFoldMode);
1453
- (function () {
1454
- this.getFoldWidgetRangeBase = this.getFoldWidgetRange;
1455
- this.getFoldWidgetBase = this.getFoldWidget;
1456
- this.getFoldWidget = function (session, foldStyle, row) {
1457
- var fw = this.getFoldWidgetBase(session, foldStyle, row);
1458
- if (!fw) {
1459
- return this.xmlFoldMode.getFoldWidget(session, foldStyle, row);
1460
- }
1461
- return fw;
1462
- };
1463
- this.getFoldWidgetRange = function (session, foldStyle, row, forceMultiline) {
1464
- var range = this.getFoldWidgetRangeBase(session, foldStyle, row, forceMultiline);
1465
- if (range)
1466
- return range;
1467
- return this.xmlFoldMode.getFoldWidgetRange(session, foldStyle, row);
1468
- };
1469
- }).call(FoldMode.prototype);
1470
-
1471
- });
1472
-
1473
- ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"], function(require, exports, module){"use strict";
1474
- var oop = require("../lib/oop");
1475
- var TextMode = require("./text").Mode;
1476
- var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
1477
- var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1478
- var WorkerClient = require("../worker/worker_client").WorkerClient;
1479
- var JavaScriptBehaviour = require("./behaviour/javascript").JavaScriptBehaviour;
1480
- var JavaScriptFoldMode = require("./folding/javascript").FoldMode;
1481
- var Mode = function () {
1482
- this.HighlightRules = JavaScriptHighlightRules;
1483
- this.$outdent = new MatchingBraceOutdent();
1484
- this.$behaviour = new JavaScriptBehaviour();
1485
- this.foldingRules = new JavaScriptFoldMode();
1486
- };
1487
- oop.inherits(Mode, TextMode);
1488
- (function () {
1489
- this.lineCommentStart = "//";
1490
- this.blockComment = { start: "/*", end: "*/" };
1491
- this.$quotes = { '"': '"', "'": "'", "`": "`" };
1492
- this.$pairQuotesAfter = {
1493
- "`": /\w/
1494
- };
1495
- this.getNextLineIndent = function (state, line, tab) {
1496
- var indent = this.$getIndent(line);
1497
- var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
1498
- var tokens = tokenizedLine.tokens;
1499
- var endState = tokenizedLine.state;
1500
- if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1501
- return indent;
1502
- }
1503
- if (state == "start" || state == "no_regex") {
1504
- var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
1505
- if (match) {
1506
- indent += tab;
1507
- }
1508
- }
1509
- else if (state == "doc-start") {
1510
- if (endState == "start" || endState == "no_regex") {
1511
- return "";
1512
- }
1513
- }
1514
- return indent;
1515
- };
1516
- this.checkOutdent = function (state, line, input) {
1517
- return this.$outdent.checkOutdent(line, input);
1518
- };
1519
- this.autoOutdent = function (state, doc, row) {
1520
- this.$outdent.autoOutdent(doc, row);
1521
- };
1522
- this.createWorker = function (session) {
1523
- var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
1524
- worker.attachToDocument(session.getDocument());
1525
- worker.on("annotate", function (results) {
1526
- session.setAnnotations(results.data);
1527
- });
1528
- worker.on("terminate", function () {
1529
- session.clearAnnotations();
1530
- });
1531
- return worker;
1532
- };
1533
- this.$id = "ace/mode/javascript";
1534
- this.snippetFileId = "ace/snippets/javascript";
1535
- }).call(Mode.prototype);
1536
- exports.Mode = Mode;
1537
-
1538
- });
1539
-
1540
- ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
1541
- var oop = require("../lib/oop");
1542
- var lang = require("../lib/lang");
1543
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
1544
- var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
1545
- var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
1546
- var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
1547
- var supportConstantColor = exports.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
1548
- var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
1549
- var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
1550
- var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
1551
- var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
1552
- var CssHighlightRules = function () {
1553
- var keywordMapper = this.createKeywordMapper({
1554
- "support.function": supportFunction,
1555
- "support.constant": supportConstant,
1556
- "support.type": supportType,
1557
- "support.constant.color": supportConstantColor,
1558
- "support.constant.fonts": supportConstantFonts
1559
- }, "text", true);
1560
- this.$rules = {
1561
- "start": [{
1562
- include: ["strings", "url", "comments"]
1563
- }, {
1564
- token: "paren.lparen",
1565
- regex: "\\{",
1566
- next: "ruleset"
1567
- }, {
1568
- token: "paren.rparen",
1569
- regex: "\\}"
1570
- }, {
1571
- token: "string",
1572
- regex: "@(?!viewport)",
1573
- next: "media"
1574
- }, {
1575
- token: "keyword",
1576
- regex: "#[a-z0-9-_]+"
1577
- }, {
1578
- token: "keyword",
1579
- regex: "%"
1580
- }, {
1581
- token: "variable",
1582
- regex: "\\.[a-z0-9-_]+"
1583
- }, {
1584
- token: "string",
1585
- regex: ":[a-z0-9-_]+"
1586
- }, {
1587
- token: "constant.numeric",
1588
- regex: numRe
1589
- }, {
1590
- token: "constant",
1591
- regex: "[a-z0-9-_]+"
1592
- }, {
1593
- caseInsensitive: true
1594
- }],
1595
- "media": [{
1596
- include: ["strings", "url", "comments"]
1597
- }, {
1598
- token: "paren.lparen",
1599
- regex: "\\{",
1600
- next: "start"
1601
- }, {
1602
- token: "paren.rparen",
1603
- regex: "\\}",
1604
- next: "start"
1605
- }, {
1606
- token: "string",
1607
- regex: ";",
1608
- next: "start"
1609
- }, {
1610
- token: "keyword",
1611
- regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
1612
- + "|page|font|keyframes|viewport|counter-style|font-feature-values"
1613
- + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
1614
- }],
1615
- "comments": [{
1616
- token: "comment", // multi line comment
1617
- regex: "\\/\\*",
1618
- push: [{
1619
- token: "comment",
1620
- regex: "\\*\\/",
1621
- next: "pop"
1622
- }, {
1623
- defaultToken: "comment"
1624
- }]
1625
- }],
1626
- "ruleset": [{
1627
- regex: "-(webkit|ms|moz|o)-",
1628
- token: "text"
1629
- }, {
1630
- token: "punctuation.operator",
1631
- regex: "[:;]"
1632
- }, {
1633
- token: "paren.rparen",
1634
- regex: "\\}",
1635
- next: "start"
1636
- }, {
1637
- include: ["strings", "url", "comments"]
1638
- }, {
1639
- token: ["constant.numeric", "keyword"],
1640
- regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
1641
- }, {
1642
- token: "constant.numeric",
1643
- regex: numRe
1644
- }, {
1645
- token: "constant.numeric", // hex6 color
1646
- regex: "#[a-f0-9]{6}"
1647
- }, {
1648
- token: "constant.numeric", // hex3 color
1649
- regex: "#[a-f0-9]{3}"
1650
- }, {
1651
- token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
1652
- regex: pseudoElements
1653
- }, {
1654
- token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
1655
- regex: pseudoClasses
1656
- }, {
1657
- include: "url"
1658
- }, {
1659
- token: keywordMapper,
1660
- regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
1661
- }, {
1662
- token: "paren.lparen",
1663
- regex: "\\{"
1664
- }, {
1665
- caseInsensitive: true
1666
- }],
1667
- url: [{
1668
- token: "support.function",
1669
- regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
1670
- push: [{
1671
- token: "support.function",
1672
- regex: "\\)",
1673
- next: "pop"
1674
- }, {
1675
- defaultToken: "string"
1676
- }]
1677
- }],
1678
- strings: [{
1679
- token: "string.start",
1680
- regex: "'",
1681
- push: [{
1682
- token: "string.end",
1683
- regex: "'|$",
1684
- next: "pop"
1685
- }, {
1686
- include: "escapes"
1687
- }, {
1688
- token: "constant.language.escape",
1689
- regex: /\\$/,
1690
- consumeLineEnd: true
1691
- }, {
1692
- defaultToken: "string"
1693
- }]
1694
- }, {
1695
- token: "string.start",
1696
- regex: '"',
1697
- push: [{
1698
- token: "string.end",
1699
- regex: '"|$',
1700
- next: "pop"
1701
- }, {
1702
- include: "escapes"
1703
- }, {
1704
- token: "constant.language.escape",
1705
- regex: /\\$/,
1706
- consumeLineEnd: true
1707
- }, {
1708
- defaultToken: "string"
1709
- }]
1710
- }],
1711
- escapes: [{
1712
- token: "constant.language.escape",
1713
- regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
1714
- }]
1715
- };
1716
- this.normalizeRules();
1717
- };
1718
- oop.inherits(CssHighlightRules, TextHighlightRules);
1719
- exports.CssHighlightRules = CssHighlightRules;
1720
-
1721
- });
1722
-
1723
- ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module){"use strict";
1724
- var propertyMap = {
1725
- "background": { "#$0": 1 },
1726
- "background-color": { "#$0": 1, "transparent": 1, "fixed": 1 },
1727
- "background-image": { "url('/$0')": 1 },
1728
- "background-repeat": { "repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1 },
1729
- "background-position": { "bottom": 2, "center": 2, "left": 2, "right": 2, "top": 2, "inherit": 2 },
1730
- "background-attachment": { "scroll": 1, "fixed": 1 },
1731
- "background-size": { "cover": 1, "contain": 1 },
1732
- "background-clip": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1733
- "background-origin": { "border-box": 1, "padding-box": 1, "content-box": 1 },
1734
- "border": { "solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1 },
1735
- "border-color": { "#$0": 1 },
1736
- "border-style": { "solid": 2, "dashed": 2, "dotted": 2, "double": 2, "groove": 2, "hidden": 2, "inherit": 2, "inset": 2, "none": 2, "outset": 2, "ridged": 2 },
1737
- "border-collapse": { "collapse": 1, "separate": 1 },
1738
- "bottom": { "px": 1, "em": 1, "%": 1 },
1739
- "clear": { "left": 1, "right": 1, "both": 1, "none": 1 },
1740
- "color": { "#$0": 1, "rgb(#$00,0,0)": 1 },
1741
- "cursor": { "default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1 },
1742
- "display": { "none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1 },
1743
- "empty-cells": { "show": 1, "hide": 1 },
1744
- "float": { "left": 1, "right": 1, "none": 1 },
1745
- "font-family": { "Arial": 2, "Comic Sans MS": 2, "Consolas": 2, "Courier New": 2, "Courier": 2, "Georgia": 2, "Monospace": 2, "Sans-Serif": 2, "Segoe UI": 2, "Tahoma": 2, "Times New Roman": 2, "Trebuchet MS": 2, "Verdana": 1 },
1746
- "font-size": { "px": 1, "em": 1, "%": 1 },
1747
- "font-weight": { "bold": 1, "normal": 1 },
1748
- "font-style": { "italic": 1, "normal": 1 },
1749
- "font-variant": { "normal": 1, "small-caps": 1 },
1750
- "height": { "px": 1, "em": 1, "%": 1 },
1751
- "left": { "px": 1, "em": 1, "%": 1 },
1752
- "letter-spacing": { "normal": 1 },
1753
- "line-height": { "normal": 1 },
1754
- "list-style-type": { "none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1 },
1755
- "margin": { "px": 1, "em": 1, "%": 1 },
1756
- "margin-right": { "px": 1, "em": 1, "%": 1 },
1757
- "margin-left": { "px": 1, "em": 1, "%": 1 },
1758
- "margin-top": { "px": 1, "em": 1, "%": 1 },
1759
- "margin-bottom": { "px": 1, "em": 1, "%": 1 },
1760
- "max-height": { "px": 1, "em": 1, "%": 1 },
1761
- "max-width": { "px": 1, "em": 1, "%": 1 },
1762
- "min-height": { "px": 1, "em": 1, "%": 1 },
1763
- "min-width": { "px": 1, "em": 1, "%": 1 },
1764
- "overflow": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1765
- "overflow-x": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1766
- "overflow-y": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
1767
- "padding": { "px": 1, "em": 1, "%": 1 },
1768
- "padding-top": { "px": 1, "em": 1, "%": 1 },
1769
- "padding-right": { "px": 1, "em": 1, "%": 1 },
1770
- "padding-bottom": { "px": 1, "em": 1, "%": 1 },
1771
- "padding-left": { "px": 1, "em": 1, "%": 1 },
1772
- "page-break-after": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1773
- "page-break-before": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
1774
- "position": { "absolute": 1, "relative": 1, "fixed": 1, "static": 1 },
1775
- "right": { "px": 1, "em": 1, "%": 1 },
1776
- "table-layout": { "fixed": 1, "auto": 1 },
1777
- "text-decoration": { "none": 1, "underline": 1, "line-through": 1, "blink": 1 },
1778
- "text-align": { "left": 1, "right": 1, "center": 1, "justify": 1 },
1779
- "text-transform": { "capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1 },
1780
- "top": { "px": 1, "em": 1, "%": 1 },
1781
- "vertical-align": { "top": 1, "bottom": 1 },
1782
- "visibility": { "hidden": 1, "visible": 1 },
1783
- "white-space": { "nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1 },
1784
- "width": { "px": 1, "em": 1, "%": 1 },
1785
- "word-spacing": { "normal": 1 },
1786
- "filter": { "alpha(opacity=$0100)": 1 },
1787
- "text-shadow": { "$02px 2px 2px #777": 1 },
1788
- "text-overflow": { "ellipsis-word": 1, "clip": 1, "ellipsis": 1 },
1789
- "-moz-border-radius": 1,
1790
- "-moz-border-radius-topright": 1,
1791
- "-moz-border-radius-bottomright": 1,
1792
- "-moz-border-radius-topleft": 1,
1793
- "-moz-border-radius-bottomleft": 1,
1794
- "-webkit-border-radius": 1,
1795
- "-webkit-border-top-right-radius": 1,
1796
- "-webkit-border-top-left-radius": 1,
1797
- "-webkit-border-bottom-right-radius": 1,
1798
- "-webkit-border-bottom-left-radius": 1,
1799
- "-moz-box-shadow": 1,
1800
- "-webkit-box-shadow": 1,
1801
- "transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1802
- "-moz-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
1803
- "-webkit-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 }
1804
- };
1805
- var CssCompletions = function () {
1806
- };
1807
- (function () {
1808
- this.completionsDefined = false;
1809
- this.defineCompletions = function () {
1810
- if (document) {
1811
- var style = document.createElement('c').style;
1812
- for (var i in style) {
1813
- if (typeof style[i] !== 'string')
1814
- continue;
1815
- var name = i.replace(/[A-Z]/g, function (x) {
1816
- return '-' + x.toLowerCase();
1817
- });
1818
- if (!propertyMap.hasOwnProperty(name))
1819
- propertyMap[name] = 1;
1820
- }
1821
- }
1822
- this.completionsDefined = true;
1823
- };
1824
- this.getCompletions = function (state, session, pos, prefix) {
1825
- if (!this.completionsDefined) {
1826
- this.defineCompletions();
1827
- }
1828
- if (state === 'ruleset' || session.$mode.$id == "ace/mode/scss") {
1829
- var line = session.getLine(pos.row).substr(0, pos.column);
1830
- var inParens = /\([^)]*$/.test(line);
1831
- if (inParens) {
1832
- line = line.substr(line.lastIndexOf('(') + 1);
1833
- }
1834
- if (/:[^;]+$/.test(line)) {
1835
- /([\w\-]+):[^:]*$/.test(line);
1836
- return this.getPropertyValueCompletions(state, session, pos, prefix);
1837
- }
1838
- else {
1839
- return this.getPropertyCompletions(state, session, pos, prefix, inParens);
1840
- }
1841
- }
1842
- return [];
1843
- };
1844
- this.getPropertyCompletions = function (state, session, pos, prefix, skipSemicolon) {
1845
- skipSemicolon = skipSemicolon || false;
1846
- var properties = Object.keys(propertyMap);
1847
- return properties.map(function (property) {
1848
- return {
1849
- caption: property,
1850
- snippet: property + ': $0' + (skipSemicolon ? '' : ';'),
1851
- meta: "property",
1852
- score: 1000000
1853
- };
1854
- });
1855
- };
1856
- this.getPropertyValueCompletions = function (state, session, pos, prefix) {
1857
- var line = session.getLine(pos.row).substr(0, pos.column);
1858
- var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
1859
- if (!property)
1860
- return [];
1861
- var values = [];
1862
- if (property in propertyMap && typeof propertyMap[property] === "object") {
1863
- values = Object.keys(propertyMap[property]);
1864
- }
1865
- return values.map(function (value) {
1866
- return {
1867
- caption: value,
1868
- snippet: value,
1869
- meta: "property value",
1870
- score: 1000000
1871
- };
1872
- });
1873
- };
1874
- }).call(CssCompletions.prototype);
1875
- exports.CssCompletions = CssCompletions;
1876
-
1877
- });
1878
-
1879
- ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"], function(require, exports, module){"use strict";
1880
- var oop = require("../../lib/oop");
1881
- var Behaviour = require("../behaviour").Behaviour;
1882
- var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
1883
- var TokenIterator = require("../../token_iterator").TokenIterator;
1884
- var CssBehaviour = function () {
1885
- this.inherit(CstyleBehaviour);
1886
- this.add("colon", "insertion", function (state, action, editor, session, text) {
1887
- if (text === ':' && editor.selection.isEmpty()) {
1888
- var cursor = editor.getCursorPosition();
1889
- var iterator = new TokenIterator(session, cursor.row, cursor.column);
1890
- var token = iterator.getCurrentToken();
1891
- if (token && token.value.match(/\s+/)) {
1892
- token = iterator.stepBackward();
1893
- }
1894
- if (token && token.type === 'support.type') {
1895
- var line = session.doc.getLine(cursor.row);
1896
- var rightChar = line.substring(cursor.column, cursor.column + 1);
1897
- if (rightChar === ':') {
1898
- return {
1899
- text: '',
1900
- selection: [1, 1]
1901
- };
1902
- }
1903
- if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
1904
- return {
1905
- text: ':;',
1906
- selection: [1, 1]
1907
- };
1908
- }
1909
- }
1910
- }
1911
- });
1912
- this.add("colon", "deletion", function (state, action, editor, session, range) {
1913
- var selected = session.doc.getTextRange(range);
1914
- if (!range.isMultiLine() && selected === ':') {
1915
- var cursor = editor.getCursorPosition();
1916
- var iterator = new TokenIterator(session, cursor.row, cursor.column);
1917
- var token = iterator.getCurrentToken();
1918
- if (token && token.value.match(/\s+/)) {
1919
- token = iterator.stepBackward();
1920
- }
1921
- if (token && token.type === 'support.type') {
1922
- var line = session.doc.getLine(range.start.row);
1923
- var rightChar = line.substring(range.end.column, range.end.column + 1);
1924
- if (rightChar === ';') {
1925
- range.end.column++;
1926
- return range;
1927
- }
1928
- }
1929
- }
1930
- });
1931
- this.add("semicolon", "insertion", function (state, action, editor, session, text) {
1932
- if (text === ';' && editor.selection.isEmpty()) {
1933
- var cursor = editor.getCursorPosition();
1934
- var line = session.doc.getLine(cursor.row);
1935
- var rightChar = line.substring(cursor.column, cursor.column + 1);
1936
- if (rightChar === ';') {
1937
- return {
1938
- text: '',
1939
- selection: [1, 1]
1940
- };
1941
- }
1942
- }
1943
- });
1944
- this.add("!important", "insertion", function (state, action, editor, session, text) {
1945
- if (text === '!' && editor.selection.isEmpty()) {
1946
- var cursor = editor.getCursorPosition();
1947
- var line = session.doc.getLine(cursor.row);
1948
- if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
1949
- return {
1950
- text: '!important',
1951
- selection: [10, 10]
1952
- };
1953
- }
1954
- }
1955
- });
1956
- };
1957
- oop.inherits(CssBehaviour, CstyleBehaviour);
1958
- exports.CssBehaviour = CssBehaviour;
1959
-
1960
- });
1961
-
1962
- ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"], function(require, exports, module){"use strict";
1963
- var oop = require("../lib/oop");
1964
- var TextMode = require("./text").Mode;
1965
- var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
1966
- var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
1967
- var WorkerClient = require("../worker/worker_client").WorkerClient;
1968
- var CssCompletions = require("./css_completions").CssCompletions;
1969
- var CssBehaviour = require("./behaviour/css").CssBehaviour;
1970
- var CStyleFoldMode = require("./folding/cstyle").FoldMode;
1971
- var Mode = function () {
1972
- this.HighlightRules = CssHighlightRules;
1973
- this.$outdent = new MatchingBraceOutdent();
1974
- this.$behaviour = new CssBehaviour();
1975
- this.$completer = new CssCompletions();
1976
- this.foldingRules = new CStyleFoldMode();
1977
- };
1978
- oop.inherits(Mode, TextMode);
1979
- (function () {
1980
- this.foldingRules = "cStyle";
1981
- this.blockComment = { start: "/*", end: "*/" };
1982
- this.getNextLineIndent = function (state, line, tab) {
1983
- var indent = this.$getIndent(line);
1984
- var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
1985
- if (tokens.length && tokens[tokens.length - 1].type == "comment") {
1986
- return indent;
1987
- }
1988
- var match = line.match(/^.*\{\s*$/);
1989
- if (match) {
1990
- indent += tab;
1991
- }
1992
- return indent;
1993
- };
1994
- this.checkOutdent = function (state, line, input) {
1995
- return this.$outdent.checkOutdent(line, input);
1996
- };
1997
- this.autoOutdent = function (state, doc, row) {
1998
- this.$outdent.autoOutdent(doc, row);
1999
- };
2000
- this.getCompletions = function (state, session, pos, prefix) {
2001
- return this.$completer.getCompletions(state, session, pos, prefix);
2002
- };
2003
- this.createWorker = function (session) {
2004
- var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
2005
- worker.attachToDocument(session.getDocument());
2006
- worker.on("annotate", function (e) {
2007
- session.setAnnotations(e.data);
2008
- });
2009
- worker.on("terminate", function () {
2010
- session.clearAnnotations();
2011
- });
2012
- return worker;
2013
- };
2014
- this.$id = "ace/mode/css";
2015
- this.snippetFileId = "ace/snippets/css";
2016
- }).call(Mode.prototype);
2017
- exports.Mode = Mode;
2018
-
2019
- });
2020
-
2021
- ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2022
- var oop = require("../lib/oop");
2023
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2024
- var XmlHighlightRules = function (normalize) {
2025
- var tagRegex = "[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";
2026
- this.$rules = {
2027
- start: [
2028
- { token: "string.cdata.xml", regex: "<\\!\\[CDATA\\[", next: "cdata" },
2029
- {
2030
- token: ["punctuation.instruction.xml", "keyword.instruction.xml"],
2031
- regex: "(<\\?)(" + tagRegex + ")", next: "processing_instruction"
2032
- },
2033
- { token: "comment.start.xml", regex: "<\\!--", next: "comment" },
2034
- {
2035
- token: ["xml-pe.doctype.xml", "xml-pe.doctype.xml"],
2036
- regex: "(<\\!)(DOCTYPE)(?=[\\s])", next: "doctype", caseInsensitive: true
2037
- },
2038
- { include: "tag" },
2039
- { token: "text.end-tag-open.xml", regex: "</" },
2040
- { token: "text.tag-open.xml", regex: "<" },
2041
- { include: "reference" },
2042
- { defaultToken: "text.xml" }
2043
- ],
2044
- processing_instruction: [{
2045
- token: "entity.other.attribute-name.decl-attribute-name.xml",
2046
- regex: tagRegex
2047
- }, {
2048
- token: "keyword.operator.decl-attribute-equals.xml",
2049
- regex: "="
2050
- }, {
2051
- include: "whitespace"
2052
- }, {
2053
- include: "string"
2054
- }, {
2055
- token: "punctuation.xml-decl.xml",
2056
- regex: "\\?>",
2057
- next: "start"
2058
- }],
2059
- doctype: [
2060
- { include: "whitespace" },
2061
- { include: "string" },
2062
- { token: "xml-pe.doctype.xml", regex: ">", next: "start" },
2063
- { token: "xml-pe.xml", regex: "[-_a-zA-Z0-9:]+" },
2064
- { token: "punctuation.int-subset", regex: "\\[", push: "int_subset" }
2065
- ],
2066
- int_subset: [{
2067
- token: "text.xml",
2068
- regex: "\\s+"
2069
- }, {
2070
- token: "punctuation.int-subset.xml",
2071
- regex: "]",
2072
- next: "pop"
2073
- }, {
2074
- token: ["punctuation.markup-decl.xml", "keyword.markup-decl.xml"],
2075
- regex: "(<\\!)(" + tagRegex + ")",
2076
- push: [{
2077
- token: "text",
2078
- regex: "\\s+"
2079
- },
2080
- {
2081
- token: "punctuation.markup-decl.xml",
2082
- regex: ">",
2083
- next: "pop"
2084
- },
2085
- { include: "string" }]
2086
- }],
2087
- cdata: [
2088
- { token: "string.cdata.xml", regex: "\\]\\]>", next: "start" },
2089
- { token: "text.xml", regex: "\\s+" },
2090
- { token: "text.xml", regex: "(?:[^\\]]|\\](?!\\]>))+" }
2091
- ],
2092
- comment: [
2093
- { token: "comment.end.xml", regex: "-->", next: "start" },
2094
- { defaultToken: "comment.xml" }
2095
- ],
2096
- reference: [{
2097
- token: "constant.language.escape.reference.xml",
2098
- regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
2099
- }],
2100
- attr_reference: [{
2101
- token: "constant.language.escape.reference.attribute-value.xml",
2102
- regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
2103
- }],
2104
- tag: [{
2105
- token: ["meta.tag.punctuation.tag-open.xml", "meta.tag.punctuation.end-tag-open.xml", "meta.tag.tag-name.xml"],
2106
- regex: "(?:(<)|(</))((?:" + tagRegex + ":)?" + tagRegex + ")",
2107
- next: [
2108
- { include: "attributes" },
2109
- { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
2110
- ]
2111
- }],
2112
- tag_whitespace: [
2113
- { token: "text.tag-whitespace.xml", regex: "\\s+" }
2114
- ],
2115
- whitespace: [
2116
- { token: "text.whitespace.xml", regex: "\\s+" }
2117
- ],
2118
- string: [{
2119
- token: "string.xml",
2120
- regex: "'",
2121
- push: [
2122
- { token: "string.xml", regex: "'", next: "pop" },
2123
- { defaultToken: "string.xml" }
2124
- ]
2125
- }, {
2126
- token: "string.xml",
2127
- regex: '"',
2128
- push: [
2129
- { token: "string.xml", regex: '"', next: "pop" },
2130
- { defaultToken: "string.xml" }
2131
- ]
2132
- }],
2133
- attributes: [{
2134
- token: "entity.other.attribute-name.xml",
2135
- regex: tagRegex
2136
- }, {
2137
- token: "keyword.operator.attribute-equals.xml",
2138
- regex: "="
2139
- }, {
2140
- include: "tag_whitespace"
2141
- }, {
2142
- include: "attribute_value"
2143
- }],
2144
- attribute_value: [{
2145
- token: "string.attribute-value.xml",
2146
- regex: "'",
2147
- push: [
2148
- { token: "string.attribute-value.xml", regex: "'", next: "pop" },
2149
- { include: "attr_reference" },
2150
- { defaultToken: "string.attribute-value.xml" }
2151
- ]
2152
- }, {
2153
- token: "string.attribute-value.xml",
2154
- regex: '"',
2155
- push: [
2156
- { token: "string.attribute-value.xml", regex: '"', next: "pop" },
2157
- { include: "attr_reference" },
2158
- { defaultToken: "string.attribute-value.xml" }
2159
- ]
2160
- }]
2161
- };
2162
- if (this.constructor === XmlHighlightRules)
2163
- this.normalizeRules();
2164
- };
2165
- (function () {
2166
- this.embedTagRules = function (HighlightRules, prefix, tag) {
2167
- this.$rules.tag.unshift({
2168
- token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
2169
- regex: "(<)(" + tag + "(?=\\s|>|$))",
2170
- next: [
2171
- { include: "attributes" },
2172
- { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: prefix + "start" }
2173
- ]
2174
- });
2175
- this.$rules[tag + "-end"] = [
2176
- { include: "attributes" },
2177
- { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start",
2178
- onMatch: function (value, currentState, stack) {
2179
- stack.splice(0);
2180
- return this.token;
2181
- } }
2182
- ];
2183
- this.embedRules(HighlightRules, prefix, [{
2184
- token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
2185
- regex: "(</)(" + tag + "(?=\\s|>|$))",
2186
- next: tag + "-end"
2187
- }, {
2188
- token: "string.cdata.xml",
2189
- regex: "<\\!\\[CDATA\\["
2190
- }, {
2191
- token: "string.cdata.xml",
2192
- regex: "\\]\\]>"
2193
- }]);
2194
- };
2195
- }).call(TextHighlightRules.prototype);
2196
- oop.inherits(XmlHighlightRules, TextHighlightRules);
2197
- exports.XmlHighlightRules = XmlHighlightRules;
2198
-
2199
- });
2200
-
2201
- ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"], function(require, exports, module){"use strict";
2202
- var oop = require("../lib/oop");
2203
- var lang = require("../lib/lang");
2204
- var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
2205
- var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
2206
- var XmlHighlightRules = require("./xml_highlight_rules").XmlHighlightRules;
2207
- var tagMap = lang.createMap({
2208
- a: 'anchor',
2209
- button: 'form',
2210
- form: 'form',
2211
- img: 'image',
2212
- input: 'form',
2213
- label: 'form',
2214
- option: 'form',
2215
- script: 'script',
2216
- select: 'form',
2217
- textarea: 'form',
2218
- style: 'style',
2219
- table: 'table',
2220
- tbody: 'table',
2221
- td: 'table',
2222
- tfoot: 'table',
2223
- th: 'table',
2224
- tr: 'table'
2225
- });
2226
- var HtmlHighlightRules = function () {
2227
- XmlHighlightRules.call(this);
2228
- this.addRules({
2229
- attributes: [{
2230
- include: "tag_whitespace"
2231
- }, {
2232
- token: "entity.other.attribute-name.xml",
2233
- regex: "[-_a-zA-Z0-9:.]+"
2234
- }, {
2235
- token: "keyword.operator.attribute-equals.xml",
2236
- regex: "=",
2237
- push: [{
2238
- include: "tag_whitespace"
2239
- }, {
2240
- token: "string.unquoted.attribute-value.html",
2241
- regex: "[^<>='\"`\\s]+",
2242
- next: "pop"
2243
- }, {
2244
- token: "empty",
2245
- regex: "",
2246
- next: "pop"
2247
- }]
2248
- }, {
2249
- include: "attribute_value"
2250
- }],
2251
- tag: [{
2252
- token: function (start, tag) {
2253
- var group = tagMap[tag];
2254
- return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml",
2255
- "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"];
2256
- },
2257
- regex: "(</?)([-_a-zA-Z0-9:.]+)",
2258
- next: "tag_stuff"
2259
- }],
2260
- tag_stuff: [
2261
- { include: "attributes" },
2262
- { token: "meta.tag.punctuation.tag-close.xml", regex: "/?>", next: "start" }
2263
- ]
2264
- });
2265
- this.embedTagRules(CssHighlightRules, "css-", "style");
2266
- this.embedTagRules(new JavaScriptHighlightRules({ jsx: false }).getRules(), "js-", "script");
2267
- if (this.constructor === HtmlHighlightRules)
2268
- this.normalizeRules();
2269
- };
2270
- oop.inherits(HtmlHighlightRules, XmlHighlightRules);
2271
- exports.HtmlHighlightRules = HtmlHighlightRules;
2272
-
2273
- });
2274
-
2275
- ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"], function(require, exports, module){"use strict";
2276
- var oop = require("../lib/oop");
2277
- var lang = require("../lib/lang");
2278
- var TextMode = require("./text").Mode;
2279
- var JavaScriptMode = require("./javascript").Mode;
2280
- var CssMode = require("./css").Mode;
2281
- var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
2282
- var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
2283
- var HtmlFoldMode = require("./folding/html").FoldMode;
2284
- var HtmlCompletions = require("./html_completions").HtmlCompletions;
2285
- var WorkerClient = require("../worker/worker_client").WorkerClient;
2286
- var voidElements = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source", "track", "wbr"];
2287
- var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
2288
- var Mode = function (options) {
2289
- this.fragmentContext = options && options.fragmentContext;
2290
- this.HighlightRules = HtmlHighlightRules;
2291
- this.$behaviour = new XmlBehaviour();
2292
- this.$completer = new HtmlCompletions();
2293
- this.createModeDelegates({
2294
- "js-": JavaScriptMode,
2295
- "css-": CssMode
2296
- });
2297
- this.foldingRules = new HtmlFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
2298
- };
2299
- oop.inherits(Mode, TextMode);
2300
- (function () {
2301
- this.blockComment = { start: "<!--", end: "-->" };
2302
- this.voidElements = lang.arrayToMap(voidElements);
2303
- this.getNextLineIndent = function (state, line, tab) {
2304
- return this.$getIndent(line);
2305
- };
2306
- this.checkOutdent = function (state, line, input) {
2307
- return false;
2308
- };
2309
- this.getCompletions = function (state, session, pos, prefix) {
2310
- return this.$completer.getCompletions(state, session, pos, prefix);
2311
- };
2312
- this.createWorker = function (session) {
2313
- if (this.constructor != Mode)
2314
- return;
2315
- var worker = new WorkerClient(["ace"], "ace/mode/html_worker", "Worker");
2316
- worker.attachToDocument(session.getDocument());
2317
- if (this.fragmentContext)
2318
- worker.call("setOptions", [{ context: this.fragmentContext }]);
2319
- worker.on("error", function (e) {
2320
- session.setAnnotations(e.data);
2321
- });
2322
- worker.on("terminate", function () {
2323
- session.clearAnnotations();
2324
- });
2325
- return worker;
2326
- };
2327
- this.$id = "ace/mode/html";
2328
- this.snippetFileId = "ace/snippets/html";
2329
- }).call(Mode.prototype);
2330
- exports.Mode = Mode;
2331
-
2332
- });
2333
-
2334
- ace.define("ace/mode/typescript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/javascript_highlight_rules"], function(require, exports, module){/*
2335
- THIS FILE WAS AUTOGENERATED BY mode_highlight_rules.tmpl.js (UUID: 21e323af-f665-4161-96e7-5087d262557e) */
2336
- "use strict";
2337
- var oop = require("../lib/oop");
2338
- var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
2339
- var TypeScriptHighlightRules = function (options) {
2340
- var tsRules = [
2341
- {
2342
- token: ["storage.type", "text", "entity.name.function.ts"],
2343
- regex: "(function)(\\s+)([a-zA-Z0-9\$_\u00a1-\uffff][a-zA-Z0-9\d\$_\u00a1-\uffff]*)"
2344
- },
2345
- {
2346
- token: "keyword",
2347
- regex: "(?:\\b(constructor|declare|interface|as|AS|public|private|extends|export|super|readonly|module|namespace|abstract|implements)\\b)"
2348
- },
2349
- {
2350
- token: ["keyword", "storage.type.variable.ts"],
2351
- regex: "(class|type)(\\s+[a-zA-Z0-9_?.$][\\w?.$]*)"
2352
- },
2353
- {
2354
- token: "keyword",
2355
- regex: "\\b(?:super|export|import|keyof|infer)\\b"
2356
- },
2357
- {
2358
- token: ["storage.type.variable.ts"],
2359
- regex: "(?:\\b(this\\.|string\\b|bool\\b|boolean\\b|number\\b|true\\b|false\\b|undefined\\b|any\\b|null\\b|(?:unique )?symbol\\b|object\\b|never\\b|enum\\b))"
2360
- }
2361
- ];
2362
- var JSRules = new JavaScriptHighlightRules({ jsx: (options && options.jsx) == true }).getRules();
2363
- JSRules.no_regex = tsRules.concat(JSRules.no_regex);
2364
- this.$rules = JSRules;
2365
- };
2366
- oop.inherits(TypeScriptHighlightRules, JavaScriptHighlightRules);
2367
- exports.TypeScriptHighlightRules = TypeScriptHighlightRules;
2368
-
2369
- });
2370
-
2371
- ace.define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2372
- var oop = require("../lib/oop");
2373
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2374
- oop.inherits(CoffeeHighlightRules, TextHighlightRules);
2375
- function CoffeeHighlightRules() {
2376
- var identifier = "[$A-Za-z_\\x7f-\\uffff][$\\w\\x7f-\\uffff]*";
2377
- var keywords = ("this|throw|then|try|typeof|super|switch|return|break|by|continue|" +
2378
- "catch|class|in|instanceof|is|isnt|if|else|extends|for|own|" +
2379
- "finally|function|while|when|new|no|not|delete|debugger|do|loop|of|off|" +
2380
- "or|on|unless|until|and|yes|yield|export|import|default");
2381
- var langConstant = ("true|false|null|undefined|NaN|Infinity");
2382
- var illegal = ("case|const|function|var|void|with|enum|implements|" +
2383
- "interface|let|package|private|protected|public|static");
2384
- var supportClass = ("Array|Boolean|Date|Function|Number|Object|RegExp|ReferenceError|String|" +
2385
- "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" +
2386
- "SyntaxError|TypeError|URIError|" +
2387
- "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
2388
- "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray");
2389
- var supportFunction = ("Math|JSON|isNaN|isFinite|parseInt|parseFloat|encodeURI|" +
2390
- "encodeURIComponent|decodeURI|decodeURIComponent|String|");
2391
- var variableLanguage = ("window|arguments|prototype|document");
2392
- var keywordMapper = this.createKeywordMapper({
2393
- "keyword": keywords,
2394
- "constant.language": langConstant,
2395
- "invalid.illegal": illegal,
2396
- "language.support.class": supportClass,
2397
- "language.support.function": supportFunction,
2398
- "variable.language": variableLanguage
2399
- }, "identifier");
2400
- var functionRule = {
2401
- token: ["paren.lparen", "variable.parameter", "paren.rparen", "text", "storage.type"],
2402
- regex: /(?:(\()((?:"[^")]*?"|'[^')]*?'|\/[^\/)]*?\/|[^()"'\/])*?)(\))(\s*))?([\-=]>)/.source
2403
- };
2404
- var stringEscape = /\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)/;
2405
- this.$rules = {
2406
- start: [
2407
- {
2408
- token: "constant.numeric",
2409
- regex: "(?:0x[\\da-fA-F]+|(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[eE][+-]?\\d+)?)"
2410
- }, {
2411
- stateName: "qdoc",
2412
- token: "string", regex: "'''", next: [
2413
- { token: "string", regex: "'''", next: "start" },
2414
- { token: "constant.language.escape", regex: stringEscape },
2415
- { defaultToken: "string" }
2416
- ]
2417
- }, {
2418
- stateName: "qqdoc",
2419
- token: "string",
2420
- regex: '"""',
2421
- next: [
2422
- { token: "string", regex: '"""', next: "start" },
2423
- { token: "paren.string", regex: '#{', push: "start" },
2424
- { token: "constant.language.escape", regex: stringEscape },
2425
- { defaultToken: "string" }
2426
- ]
2427
- }, {
2428
- stateName: "qstring",
2429
- token: "string", regex: "'", next: [
2430
- { token: "string", regex: "'", next: "start" },
2431
- { token: "constant.language.escape", regex: stringEscape },
2432
- { defaultToken: "string" }
2433
- ]
2434
- }, {
2435
- stateName: "qqstring",
2436
- token: "string.start", regex: '"', next: [
2437
- { token: "string.end", regex: '"', next: "start" },
2438
- { token: "paren.string", regex: '#{', push: "start" },
2439
- { token: "constant.language.escape", regex: stringEscape },
2440
- { defaultToken: "string" }
2441
- ]
2442
- }, {
2443
- stateName: "js",
2444
- token: "string", regex: "`", next: [
2445
- { token: "string", regex: "`", next: "start" },
2446
- { token: "constant.language.escape", regex: stringEscape },
2447
- { defaultToken: "string" }
2448
- ]
2449
- }, {
2450
- regex: "[{}]", onMatch: function (val, state, stack) {
2451
- this.next = "";
2452
- if (val == "{" && stack.length) {
2453
- stack.unshift("start", state);
2454
- return "paren";
2455
- }
2456
- if (val == "}" && stack.length) {
2457
- stack.shift();
2458
- this.next = stack.shift() || "";
2459
- if (this.next.indexOf("string") != -1)
2460
- return "paren.string";
2461
- }
2462
- return "paren";
2463
- }
2464
- }, {
2465
- token: "string.regex",
2466
- regex: "///",
2467
- next: "heregex"
2468
- }, {
2469
- token: "string.regex",
2470
- regex: /(?:\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)(?:[imgy]{0,4})(?!\w)/
2471
- }, {
2472
- token: "comment",
2473
- regex: "###(?!#)",
2474
- next: "comment"
2475
- }, {
2476
- token: "comment",
2477
- regex: "#.*"
2478
- }, {
2479
- token: ["punctuation.operator", "text", "identifier"],
2480
- regex: "(\\.)(\\s*)(" + illegal + ")"
2481
- }, {
2482
- token: "punctuation.operator",
2483
- regex: "\\.{1,3}"
2484
- }, {
2485
- token: ["keyword", "text", "language.support.class",
2486
- "text", "keyword", "text", "language.support.class"],
2487
- regex: "(class)(\\s+)(" + identifier + ")(?:(\\s+)(extends)(\\s+)(" + identifier + "))?"
2488
- }, {
2489
- token: ["entity.name.function", "text", "keyword.operator", "text"].concat(functionRule.token),
2490
- regex: "(" + identifier + ")(\\s*)([=:])(\\s*)" + functionRule.regex
2491
- },
2492
- functionRule,
2493
- {
2494
- token: "variable",
2495
- regex: "@(?:" + identifier + ")?"
2496
- }, {
2497
- token: keywordMapper,
2498
- regex: identifier
2499
- }, {
2500
- token: "punctuation.operator",
2501
- regex: "\\,|\\."
2502
- }, {
2503
- token: "storage.type",
2504
- regex: "[\\-=]>"
2505
- }, {
2506
- token: "keyword.operator",
2507
- regex: "(?:[-+*/%<>&|^!?=]=|>>>=?|\\-\\-|\\+\\+|::|&&=|\\|\\|=|<<=|>>=|\\?\\.|\\.{2,3}|[!*+-=><])"
2508
- }, {
2509
- token: "paren.lparen",
2510
- regex: "[({[]"
2511
- }, {
2512
- token: "paren.rparen",
2513
- regex: "[\\]})]"
2514
- }, {
2515
- token: "text",
2516
- regex: "\\s+"
2517
- }
2518
- ],
2519
- heregex: [{
2520
- token: "string.regex",
2521
- regex: '.*?///[imgy]{0,4}',
2522
- next: "start"
2523
- }, {
2524
- token: "comment.regex",
2525
- regex: "\\s+(?:#.*)?"
2526
- }, {
2527
- token: "string.regex",
2528
- regex: "\\S+"
2529
- }],
2530
- comment: [{
2531
- token: "comment",
2532
- regex: '###',
2533
- next: "start"
2534
- }, {
2535
- defaultToken: "comment"
2536
- }]
2537
- };
2538
- this.normalizeRules();
2539
- }
2540
- exports.CoffeeHighlightRules = CoffeeHighlightRules;
2541
-
2542
- });
2543
-
2544
- ace.define("ace/mode/stylus_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){/*
2545
- THIS FILE WAS AUTOGENERATED BY Stylus.tmlanguage (UUID: 60519324-6A3A-4382-9E0B-546993A3869A) */
2546
- "use strict";
2547
- var oop = require("../lib/oop");
2548
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2549
- var CssHighlightRules = require("./css_highlight_rules");
2550
- var StylusHighlightRules = function () {
2551
- var keywordMapper = this.createKeywordMapper({
2552
- "support.type": CssHighlightRules.supportType,
2553
- "support.function": CssHighlightRules.supportFunction,
2554
- "support.constant": CssHighlightRules.supportConstant,
2555
- "support.constant.color": CssHighlightRules.supportConstantColor,
2556
- "support.constant.fonts": CssHighlightRules.supportConstantFonts
2557
- }, "text", true);
2558
- this.$rules = {
2559
- start: [
2560
- {
2561
- token: "comment",
2562
- regex: /\/\/.*$/
2563
- },
2564
- {
2565
- token: "comment", // multi line comment
2566
- regex: /\/\*/,
2567
- next: "comment"
2568
- },
2569
- {
2570
- token: ["entity.name.function.stylus", "text"],
2571
- regex: "^([-a-zA-Z_][-\\w]*)?(\\()"
2572
- },
2573
- {
2574
- token: ["entity.other.attribute-name.class.stylus"],
2575
- regex: "\\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*"
2576
- },
2577
- {
2578
- token: ["entity.language.stylus"],
2579
- regex: "^ *&"
2580
- },
2581
- {
2582
- token: ["variable.language.stylus"],
2583
- regex: "(arguments)"
2584
- },
2585
- {
2586
- token: ["keyword.stylus"],
2587
- regex: "@[-\\w]+"
2588
- },
2589
- {
2590
- token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
2591
- regex: CssHighlightRules.pseudoElements
2592
- }, {
2593
- token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
2594
- regex: CssHighlightRules.pseudoClasses
2595
- },
2596
- {
2597
- token: ["entity.name.tag.stylus"],
2598
- regex: "(?:\\b)(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(?:h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)(?:\\b)"
2599
- },
2600
- {
2601
- token: "constant.numeric", // hex6 color
2602
- regex: "#[a-fA-F0-9]{6}"
2603
- },
2604
- {
2605
- token: "constant.numeric", // hex3 color
2606
- regex: "#[a-fA-F0-9]{3}"
2607
- },
2608
- {
2609
- token: ["punctuation.definition.entity.stylus", "entity.other.attribute-name.id.stylus"],
2610
- regex: "(#)([a-zA-Z][a-zA-Z0-9_-]*)"
2611
- },
2612
- {
2613
- token: "meta.vendor-prefix.stylus",
2614
- regex: "-webkit-|-moz\\-|-ms-|-o-"
2615
- },
2616
- {
2617
- token: "keyword.control.stylus",
2618
- regex: "(?:!important|for|in|return|true|false|null|if|else|unless|return)\\b"
2619
- },
2620
- {
2621
- token: "keyword.operator.stylus",
2622
- regex: "!|~|\\+|-|(?:\\*)?\\*|\\/|%|(?:\\.)\\.\\.|<|>|(?:=|:|\\?|\\+|-|\\*|\\/|%|<|>)?=|!="
2623
- },
2624
- {
2625
- token: "keyword.operator.stylus",
2626
- regex: "(?:in|is(?:nt)?|not)\\b"
2627
- },
2628
- {
2629
- token: "string",
2630
- regex: "'(?=.)",
2631
- next: "qstring"
2632
- }, {
2633
- token: "string",
2634
- regex: '"(?=.)',
2635
- next: "qqstring"
2636
- },
2637
- {
2638
- token: "constant.numeric",
2639
- regex: CssHighlightRules.numRe
2640
- },
2641
- {
2642
- token: "keyword",
2643
- regex: "(?:ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)\\b"
2644
- },
2645
- {
2646
- token: keywordMapper,
2647
- regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
2648
- }
2649
- ],
2650
- "comment": [
2651
- {
2652
- token: "comment", // closing comment
2653
- regex: "\\*\\/",
2654
- next: "start"
2655
- }, {
2656
- defaultToken: "comment"
2657
- }
2658
- ],
2659
- "qqstring": [
2660
- {
2661
- token: "string",
2662
- regex: '[^"\\\\]+'
2663
- },
2664
- {
2665
- token: "string",
2666
- regex: "\\\\$",
2667
- next: "qqstring"
2668
- },
2669
- {
2670
- token: "string",
2671
- regex: '"|$',
2672
- next: "start"
2673
- }
2674
- ],
2675
- "qstring": [
2676
- {
2677
- token: "string",
2678
- regex: "[^'\\\\]+"
2679
- },
2680
- {
2681
- token: "string",
2682
- regex: "\\\\$",
2683
- next: "qstring"
2684
- },
2685
- {
2686
- token: "string",
2687
- regex: "'|$",
2688
- next: "start"
2689
- }
2690
- ]
2691
- };
2692
- };
2693
- oop.inherits(StylusHighlightRules, TextHighlightRules);
2694
- exports.StylusHighlightRules = StylusHighlightRules;
2695
-
2696
- });
2697
-
2698
- ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){"use strict";
2699
- var oop = require("../lib/oop");
2700
- var lang = require("../lib/lang");
2701
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2702
- var CssHighlightRules = require("./css_highlight_rules");
2703
- var ScssHighlightRules = function () {
2704
- var properties = lang.arrayToMap(CssHighlightRules.supportType.split("|"));
2705
- var functions = lang.arrayToMap(("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
2706
- "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
2707
- "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
2708
- "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
2709
- "scale_color|transparentize|type_of|unit|unitless|unquote").split("|"));
2710
- var constants = lang.arrayToMap(CssHighlightRules.supportConstant.split("|"));
2711
- var colors = lang.arrayToMap(CssHighlightRules.supportConstantColor.split("|"));
2712
- var keywords = lang.arrayToMap(("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|"));
2713
- var tags = lang.arrayToMap(("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
2714
- "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
2715
- "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
2716
- "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
2717
- "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
2718
- "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
2719
- "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
2720
- "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
2721
- "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|"));
2722
- var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
2723
- this.$rules = {
2724
- "start": [
2725
- {
2726
- token: "comment",
2727
- regex: "\\/\\/.*$"
2728
- },
2729
- {
2730
- token: "comment", // multi line comment
2731
- regex: "\\/\\*",
2732
- next: "comment"
2733
- }, {
2734
- token: "string", // single line
2735
- regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
2736
- }, {
2737
- token: "string", // multi line string start
2738
- regex: '["].*\\\\$',
2739
- next: "qqstring"
2740
- }, {
2741
- token: "string", // single line
2742
- regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
2743
- }, {
2744
- token: "string", // multi line string start
2745
- regex: "['].*\\\\$",
2746
- next: "qstring"
2747
- }, {
2748
- token: "constant.numeric",
2749
- regex: numRe + "(?:ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
2750
- }, {
2751
- token: "constant.numeric", // hex6 color
2752
- regex: "#[a-f0-9]{6}"
2753
- }, {
2754
- token: "constant.numeric", // hex3 color
2755
- regex: "#[a-f0-9]{3}"
2756
- }, {
2757
- token: "constant.numeric",
2758
- regex: numRe
2759
- }, {
2760
- token: ["support.function", "string", "support.function"],
2761
- regex: "(url\\()(.*)(\\))"
2762
- }, {
2763
- token: function (value) {
2764
- if (properties.hasOwnProperty(value.toLowerCase()))
2765
- return "support.type";
2766
- if (keywords.hasOwnProperty(value))
2767
- return "keyword";
2768
- else if (constants.hasOwnProperty(value))
2769
- return "constant.language";
2770
- else if (functions.hasOwnProperty(value))
2771
- return "support.function";
2772
- else if (colors.hasOwnProperty(value.toLowerCase()))
2773
- return "support.constant.color";
2774
- else if (tags.hasOwnProperty(value.toLowerCase()))
2775
- return "variable.language";
2776
- else
2777
- return "text";
2778
- },
2779
- regex: "\\-?[@a-z_][@a-z0-9_\\-]*"
2780
- }, {
2781
- token: "variable",
2782
- regex: "[a-z_\\-$][a-z0-9_\\-$]*\\b"
2783
- }, {
2784
- token: "variable.language",
2785
- regex: "#[a-z0-9-_]+"
2786
- }, {
2787
- token: "variable.language",
2788
- regex: "\\.[a-z0-9-_]+"
2789
- }, {
2790
- token: "variable.language",
2791
- regex: ":[a-z0-9-_]+"
2792
- }, {
2793
- token: "constant",
2794
- regex: "[a-z0-9-_]+"
2795
- }, {
2796
- token: "keyword.operator",
2797
- regex: "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
2798
- }, {
2799
- token: "paren.lparen",
2800
- regex: "[[({]"
2801
- }, {
2802
- token: "paren.rparen",
2803
- regex: "[\\])}]"
2804
- }, {
2805
- token: "text",
2806
- regex: "\\s+"
2807
- }, {
2808
- caseInsensitive: true
2809
- }
2810
- ],
2811
- "comment": [
2812
- {
2813
- token: "comment", // closing comment
2814
- regex: "\\*\\/",
2815
- next: "start"
2816
- }, {
2817
- defaultToken: "comment"
2818
- }
2819
- ],
2820
- "qqstring": [
2821
- {
2822
- token: "string",
2823
- regex: '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
2824
- next: "start"
2825
- }, {
2826
- token: "string",
2827
- regex: '.+'
2828
- }
2829
- ],
2830
- "qstring": [
2831
- {
2832
- token: "string",
2833
- regex: "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
2834
- next: "start"
2835
- }, {
2836
- token: "string",
2837
- regex: '.+'
2838
- }
2839
- ]
2840
- };
2841
- };
2842
- oop.inherits(ScssHighlightRules, TextHighlightRules);
2843
- exports.ScssHighlightRules = ScssHighlightRules;
2844
-
2845
- });
2846
-
2847
- ace.define("ace/mode/sass_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/scss_highlight_rules"], function(require, exports, module){"use strict";
2848
- var oop = require("../lib/oop");
2849
- var lang = require("../lib/lang");
2850
- var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
2851
- var SassHighlightRules = function () {
2852
- ScssHighlightRules.call(this);
2853
- var start = this.$rules.start;
2854
- if (start[1].token == "comment") {
2855
- start.splice(1, 1, {
2856
- onMatch: function (value, currentState, stack) {
2857
- stack.unshift(this.next, -1, value.length - 2, currentState);
2858
- return "comment";
2859
- },
2860
- regex: /^\s*\/\*/,
2861
- next: "comment"
2862
- }, {
2863
- token: "error.invalid",
2864
- regex: "/\\*|[{;}]"
2865
- }, {
2866
- token: "support.type",
2867
- regex: /^\s*:[\w\-]+\s/
2868
- });
2869
- this.$rules.comment = [
2870
- { regex: /^\s*/, onMatch: function (value, currentState, stack) {
2871
- if (stack[1] === -1)
2872
- stack[1] = Math.max(stack[2], value.length - 1);
2873
- if (value.length <= stack[1]) { stack.shift();
2874
- stack.shift();
2875
- stack.shift();
2876
- this.next = stack.shift();
2877
- return "text";
2878
- }
2879
- else {
2880
- this.next = "";
2881
- return "comment";
2882
- }
2883
- }, next: "start" },
2884
- { defaultToken: "comment" }
2885
- ];
2886
- }
2887
- };
2888
- oop.inherits(SassHighlightRules, ScssHighlightRules);
2889
- exports.SassHighlightRules = SassHighlightRules;
2890
-
2891
- });
2892
-
2893
- ace.define("ace/mode/less_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){"use strict";
2894
- var oop = require("../lib/oop");
2895
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
2896
- var CssHighlightRules = require('./css_highlight_rules');
2897
- var LessHighlightRules = function () {
2898
- var keywordList = "@import|@media|@font-face|@keyframes|@-webkit-keyframes|@supports|" +
2899
- "@charset|@plugin|@namespace|@document|@page|@viewport|@-ms-viewport|" +
2900
- "or|and|when|not";
2901
- var keywords = keywordList.split('|');
2902
- var properties = CssHighlightRules.supportType.split('|');
2903
- var keywordMapper = this.createKeywordMapper({
2904
- "support.constant": CssHighlightRules.supportConstant,
2905
- "keyword": keywordList,
2906
- "support.constant.color": CssHighlightRules.supportConstantColor,
2907
- "support.constant.fonts": CssHighlightRules.supportConstantFonts
2908
- }, "identifier", true);
2909
- var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
2910
- this.$rules = {
2911
- "start": [
2912
- {
2913
- token: "comment",
2914
- regex: "\\/\\/.*$"
2915
- },
2916
- {
2917
- token: "comment", // multi line comment
2918
- regex: "\\/\\*",
2919
- next: "comment"
2920
- }, {
2921
- token: "string", // single line
2922
- regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
2923
- }, {
2924
- token: "string", // single line
2925
- regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
2926
- }, {
2927
- token: ["constant.numeric", "keyword"],
2928
- regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
2929
- }, {
2930
- token: "constant.numeric", // hex6 color
2931
- regex: "#[a-f0-9]{6}"
2932
- }, {
2933
- token: "constant.numeric", // hex3 color
2934
- regex: "#[a-f0-9]{3}"
2935
- }, {
2936
- token: "constant.numeric",
2937
- regex: numRe
2938
- }, {
2939
- token: ["support.function", "paren.lparen", "string", "paren.rparen"],
2940
- regex: "(url)(\\()(.*)(\\))"
2941
- }, {
2942
- token: ["support.function", "paren.lparen"],
2943
- regex: "(:extend|[a-z0-9_\\-]+)(\\()"
2944
- }, {
2945
- token: function (value) {
2946
- if (keywords.indexOf(value.toLowerCase()) > -1)
2947
- return "keyword";
2948
- else
2949
- return "variable";
2950
- },
2951
- regex: "[@\\$][a-z0-9_\\-@\\$]*\\b"
2952
- }, {
2953
- token: "variable",
2954
- regex: "[@\\$]\\{[a-z0-9_\\-@\\$]*\\}"
2955
- }, {
2956
- token: function (first, second) {
2957
- if (properties.indexOf(first.toLowerCase()) > -1) {
2958
- return ["support.type.property", "text"];
2959
- }
2960
- else {
2961
- return ["support.type.unknownProperty", "text"];
2962
- }
2963
- },
2964
- regex: "([a-z0-9-_]+)(\\s*:)"
2965
- }, {
2966
- token: "keyword",
2967
- regex: "&" // special case - always treat as keyword
2968
- }, {
2969
- token: keywordMapper,
2970
- regex: "\\-?[@a-z_][@a-z0-9_\\-]*"
2971
- }, {
2972
- token: "variable.language",
2973
- regex: "#[a-z0-9-_]+"
2974
- }, {
2975
- token: "variable.language",
2976
- regex: "\\.[a-z0-9-_]+"
2977
- }, {
2978
- token: "variable.language",
2979
- regex: ":[a-z_][a-z0-9-_]*"
2980
- }, {
2981
- token: "constant",
2982
- regex: "[a-z0-9-_]+"
2983
- }, {
2984
- token: "keyword.operator",
2985
- regex: "<|>|<=|>=|=|!=|-|%|\\+|\\*"
2986
- }, {
2987
- token: "paren.lparen",
2988
- regex: "[[({]"
2989
- }, {
2990
- token: "paren.rparen",
2991
- regex: "[\\])}]"
2992
- }, {
2993
- token: "text",
2994
- regex: "\\s+"
2995
- }, {
2996
- caseInsensitive: true
2997
- }
2998
- ],
2999
- "comment": [
3000
- {
3001
- token: "comment", // closing comment
3002
- regex: "\\*\\/",
3003
- next: "start"
3004
- }, {
3005
- defaultToken: "comment"
3006
- }
3007
- ]
3008
- };
3009
- this.normalizeRules();
3010
- };
3011
- oop.inherits(LessHighlightRules, TextHighlightRules);
3012
- exports.LessHighlightRules = LessHighlightRules;
3013
-
3014
- });
3015
-
3016
- ace.define("ace/mode/slim_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
3017
- var modes = require("../config").$modes;
3018
- var oop = require("../lib/oop");
3019
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
3020
- var SlimHighlightRules = function () {
3021
- this.$rules = {
3022
- "start": [
3023
- {
3024
- token: "keyword",
3025
- regex: /^(\s*)(\w+):\s*/,
3026
- onMatch: function (value, state, stack, line) {
3027
- var indent = /^\s*/.exec(line)[0];
3028
- var m = value.match(/^(\s*)(\w+):/);
3029
- var language = m[2];
3030
- if (!/^(javascript|ruby|coffee|markdown|css|scss|sass|less)$/.test(language))
3031
- language = "";
3032
- stack.unshift("language-embed", [], [indent, language], state);
3033
- return this.token;
3034
- },
3035
- stateName: "language-embed",
3036
- next: [{
3037
- token: "string",
3038
- regex: /^(\s*)/,
3039
- onMatch: function (value, state, stack, line) {
3040
- var indent = stack[2][0];
3041
- if (indent.length >= value.length) {
3042
- stack.splice(0, 3);
3043
- this.next = stack.shift();
3044
- return this.token;
3045
- }
3046
- this.next = "";
3047
- return [{ type: "text", value: indent }];
3048
- },
3049
- next: ""
3050
- }, {
3051
- token: "string",
3052
- regex: /.+/,
3053
- onMatch: function (value, state, stack, line) {
3054
- var indent = stack[2][0];
3055
- var language = stack[2][1];
3056
- var embedState = stack[1];
3057
- if (modes[language]) {
3058
- var data = modes[language].getTokenizer().getLineTokens(line.slice(indent.length), embedState.slice(0));
3059
- stack[1] = data.state;
3060
- return data.tokens;
3061
- }
3062
- return this.token;
3063
- }
3064
- }]
3065
- },
3066
- {
3067
- token: 'constant.begin.javascript.filter.slim',
3068
- regex: '^(\\s*)():$'
3069
- }, {
3070
- token: 'constant.begin..filter.slim',
3071
- regex: '^(\\s*)(ruby):$'
3072
- }, {
3073
- token: 'constant.begin.coffeescript.filter.slim',
3074
- regex: '^(\\s*)():$'
3075
- }, {
3076
- token: 'constant.begin..filter.slim',
3077
- regex: '^(\\s*)(markdown):$'
3078
- }, {
3079
- token: 'constant.begin.css.filter.slim',
3080
- regex: '^(\\s*)():$'
3081
- }, {
3082
- token: 'constant.begin.scss.filter.slim',
3083
- regex: '^(\\s*)():$'
3084
- }, {
3085
- token: 'constant.begin..filter.slim',
3086
- regex: '^(\\s*)(sass):$'
3087
- }, {
3088
- token: 'constant.begin..filter.slim',
3089
- regex: '^(\\s*)(less):$'
3090
- }, {
3091
- token: 'constant.begin..filter.slim',
3092
- regex: '^(\\s*)(erb):$'
3093
- }, {
3094
- token: 'keyword.html.tags.slim',
3095
- regex: '^(\\s*)((:?\\*(\\w)+)|doctype html|abbr|acronym|address|applet|area|article|aside|audio|base|basefont|bdo|big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|datalist|dd|del|details|dialog|dfn|dir|div|dl|dt|embed|fieldset|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|link|li|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|source|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|xmp|b|u|s|em|a)(?:([.#](\\w|\\.)+)+\\s?)?\\b'
3096
- }, {
3097
- token: 'keyword.slim',
3098
- regex: '^(\\s*)(?:([.#](\\w|\\.)+)+\\s?)'
3099
- }, {
3100
- token: "string",
3101
- regex: /^(\s*)('|\||\/|(\/!))\s*/,
3102
- onMatch: function (val, state, stack, line) {
3103
- var indent = /^\s*/.exec(line)[0];
3104
- if (stack.length < 1) {
3105
- stack.push(this.next);
3106
- }
3107
- else {
3108
- stack[0] = "mlString";
3109
- }
3110
- if (stack.length < 2) {
3111
- stack.push(indent.length);
3112
- }
3113
- else {
3114
- stack[1] = indent.length;
3115
- }
3116
- return this.token;
3117
- },
3118
- next: "mlString"
3119
- }, {
3120
- token: 'keyword.control.slim',
3121
- regex: '^(\\s*)(\\-|==|=)',
3122
- push: [{
3123
- token: 'control.end.slim',
3124
- regex: '$',
3125
- next: "pop"
3126
- }, {
3127
- include: "rubyline"
3128
- }, {
3129
- include: "misc"
3130
- }]
3131
- }, {
3132
- token: 'paren',
3133
- regex: '\\(',
3134
- push: [{
3135
- token: 'paren',
3136
- regex: '\\)',
3137
- next: "pop"
3138
- }, {
3139
- include: "misc"
3140
- }]
3141
- }, {
3142
- token: 'paren',
3143
- regex: '\\[',
3144
- push: [{
3145
- token: 'paren',
3146
- regex: '\\]',
3147
- next: "pop"
3148
- }, {
3149
- include: "misc"
3150
- }]
3151
- }, {
3152
- include: "misc"
3153
- }
3154
- ],
3155
- "mlString": [{
3156
- token: "indent",
3157
- regex: /^\s*/,
3158
- onMatch: function (val, state, stack) {
3159
- var curIndent = stack[1];
3160
- if (curIndent >= val.length) {
3161
- this.next = "start";
3162
- stack.splice(0);
3163
- }
3164
- else {
3165
- this.next = "mlString";
3166
- }
3167
- return this.token;
3168
- },
3169
- next: "start"
3170
- }, {
3171
- defaultToken: "string"
3172
- }],
3173
- "rubyline": [{
3174
- token: "keyword.operator.ruby.embedded.slim",
3175
- regex: "(==|=)(<>|><|<'|'<|<|>)?|-"
3176
- }, {
3177
- token: "list.ruby.operators.slim",
3178
- regex: "(\\b)(for|in|do|if|else|elsif|unless|while|yield|not|and|or)\\b"
3179
- }, {
3180
- token: "string",
3181
- regex: "['](.)*?[']"
3182
- }, {
3183
- token: "string",
3184
- regex: "[\"](.)*?[\"]"
3185
- }],
3186
- "misc": [{
3187
- token: 'class.variable.slim',
3188
- regex: '\\@([a-zA-Z_][a-zA-Z0-9_]*)\\b'
3189
- }, {
3190
- token: "list.meta.slim",
3191
- regex: "(\\b)(true|false|nil)(\\b)"
3192
- }, {
3193
- token: 'keyword.operator.equals.slim',
3194
- regex: '='
3195
- }, {
3196
- token: "string",
3197
- regex: "['](.)*?[']"
3198
- }, {
3199
- token: "string",
3200
- regex: "[\"](.)*?[\"]"
3201
- }]
3202
- };
3203
- this.normalizeRules();
3204
- };
3205
- oop.inherits(SlimHighlightRules, TextHighlightRules);
3206
- exports.SlimHighlightRules = SlimHighlightRules;
3207
-
3208
- });
3209
-
3210
- ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"], function(require, exports, module){"use strict";
3211
- var modes = require("../config").$modes;
3212
- var oop = require("../lib/oop");
3213
- var lang = require("../lib/lang");
3214
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
3215
- var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
3216
- var escaped = function (ch) {
3217
- return "(?:[^" + lang.escapeRegExp(ch) + "\\\\]|\\\\.)*";
3218
- };
3219
- var MarkdownHighlightRules = function () {
3220
- HtmlHighlightRules.call(this);
3221
- var codeBlockStartRule = {
3222
- token: "support.function",
3223
- regex: /^\s*(```+[^`]*|~~~+[^~]*)$/,
3224
- onMatch: function (value, state, stack, line) {
3225
- var m = value.match(/^(\s*)([`~]+)(.*)/);
3226
- var language = /[\w-]+|$/.exec(m[3])[0];
3227
- if (!modes[language])
3228
- language = "";
3229
- stack.unshift("githubblock", [], [m[1], m[2], language], state);
3230
- return this.token;
3231
- },
3232
- next: "githubblock"
3233
- };
3234
- var codeBlockRules = [{
3235
- token: "support.function",
3236
- regex: ".*",
3237
- onMatch: function (value, state, stack, line) {
3238
- var embedState = stack[1];
3239
- var indent = stack[2][0];
3240
- var endMarker = stack[2][1];
3241
- var language = stack[2][2];
3242
- var m = /^(\s*)(`+|~+)\s*$/.exec(value);
3243
- if (m && m[1].length < indent.length + 3
3244
- && m[2].length >= endMarker.length && m[2][0] == endMarker[0]) {
3245
- stack.splice(0, 3);
3246
- this.next = stack.shift();
3247
- return this.token;
3248
- }
3249
- this.next = "";
3250
- if (language && modes[language]) {
3251
- var data = modes[language].getTokenizer().getLineTokens(value, embedState.slice(0));
3252
- stack[1] = data.state;
3253
- return data.tokens;
3254
- }
3255
- return this.token;
3256
- }
3257
- }];
3258
- this.$rules["start"].unshift({
3259
- token: "empty_line",
3260
- regex: '^$',
3261
- next: "allowBlock"
3262
- }, {
3263
- token: "markup.heading.1",
3264
- regex: "^=+(?=\\s*$)"
3265
- }, {
3266
- token: "markup.heading.2",
3267
- regex: "^\\-+(?=\\s*$)"
3268
- }, {
3269
- token: function (value) {
3270
- return "markup.heading." + value.length;
3271
- },
3272
- regex: /^#{1,6}(?=\s|$)/,
3273
- next: "header"
3274
- }, codeBlockStartRule, {
3275
- token: "string.blockquote",
3276
- regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
3277
- next: "blockquote"
3278
- }, {
3279
- token: "constant",
3280
- regex: "^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",
3281
- next: "allowBlock"
3282
- }, {
3283
- token: "markup.list",
3284
- regex: "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
3285
- next: "listblock-start"
3286
- }, {
3287
- include: "basic"
3288
- });
3289
- this.addRules({
3290
- "basic": [{
3291
- token: "constant.language.escape",
3292
- regex: /\\[\\`*_{}\[\]()#+\-.!]/
3293
- }, {
3294
- token: "support.function",
3295
- regex: "(`+)(.*?[^`])(\\1)"
3296
- }, {
3297
- token: ["text", "constant", "text", "url", "string", "text"],
3298
- regex: "^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:[\"][^\"]+[\"])?(\\s*))$"
3299
- }, {
3300
- token: ["text", "string", "text", "constant", "text"],
3301
- regex: "(\\[)(" + escaped("]") + ")(\\]\\s*\\[)(" + escaped("]") + ")(\\])"
3302
- }, {
3303
- token: ["text", "string", "text", "markup.underline", "string", "text"],
3304
- regex: "(\\!?\\[)(" + // [
3305
- escaped("]") + // link text or alt text
3306
- ")(\\]\\()" + // ](
3307
- '((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)' + // href or image
3308
- '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"
3309
- "(\\))" // )
3310
- }, {
3311
- token: "string.strong",
3312
- regex: "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"
3313
- }, {
3314
- token: "string.emphasis",
3315
- regex: "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"
3316
- }, {
3317
- token: ["text", "url", "text"],
3318
- regex: "(<)(" +
3319
- "(?:https?|ftp|dict):[^'\">\\s]+" +
3320
- "|" +
3321
- "(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+" +
3322
- ")(>)"
3323
- }],
3324
- "allowBlock": [
3325
- { token: "support.function", regex: "^ {4}.+", next: "allowBlock" },
3326
- { token: "empty_line", regex: '^$', next: "allowBlock" },
3327
- { token: "empty", regex: "", next: "start" }
3328
- ],
3329
- "header": [{
3330
- regex: "$",
3331
- next: "start"
3332
- }, {
3333
- include: "basic"
3334
- }, {
3335
- defaultToken: "heading"
3336
- }],
3337
- "listblock-start": [{
3338
- token: "support.variable",
3339
- regex: /(?:\[[ x]\])?/,
3340
- next: "listblock"
3341
- }],
3342
- "listblock": [{
3343
- token: "empty_line",
3344
- regex: "^$",
3345
- next: "start"
3346
- }, {
3347
- token: "markup.list",
3348
- regex: "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
3349
- next: "listblock-start"
3350
- }, {
3351
- include: "basic", noEscape: true
3352
- },
3353
- codeBlockStartRule,
3354
- {
3355
- defaultToken: "list" //do not use markup.list to allow stling leading `*` differntly
3356
- }],
3357
- "blockquote": [{
3358
- token: "empty_line",
3359
- regex: "^\\s*$",
3360
- next: "start"
3361
- }, {
3362
- token: "string.blockquote",
3363
- regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",
3364
- next: "blockquote"
3365
- }, {
3366
- include: "basic", noEscape: true
3367
- }, {
3368
- defaultToken: "string.blockquote"
3369
- }],
3370
- "githubblock": codeBlockRules
3371
- });
3372
- this.normalizeRules();
3373
- };
3374
- oop.inherits(MarkdownHighlightRules, TextHighlightRules);
3375
- exports.MarkdownHighlightRules = MarkdownHighlightRules;
3376
-
3377
- });
3378
-
3379
- ace.define("ace/mode/jade_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/markdown_highlight_rules","ace/mode/scss_highlight_rules","ace/mode/less_highlight_rules","ace/mode/coffee_highlight_rules","ace/mode/javascript_highlight_rules"], function(require, exports, module){/*
3380
- THIS FILE WAS AUTOGENERATED BY mode_highlight_rules.tmpl.js (UUID: C5B73B98-5F2A-42E3-9F0E-028A74A9FE4B)
3381
- */
3382
- "use strict";
3383
- var oop = require("../lib/oop");
3384
- var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
3385
- var MarkdownHighlightRules = require("./markdown_highlight_rules").MarkdownHighlightRules;
3386
- var SassHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
3387
- var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;
3388
- var CoffeeHighlightRules = require("./coffee_highlight_rules").CoffeeHighlightRules;
3389
- var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
3390
- function mixin_embed(tag, prefix) {
3391
- return {
3392
- token: "entity.name.function.jade",
3393
- regex: "^\\s*\\:" + tag,
3394
- next: prefix + "start"
3395
- };
3396
- }
3397
- var JadeHighlightRules = function () {
3398
- var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
3399
- "u[0-9a-fA-F]{4}|" + // unicode
3400
- "[0-2][0-7]{0,2}|" + // oct
3401
- "3[0-6][0-7]?|" + // oct
3402
- "37[0-7]?|" + // oct
3403
- "[4-7][0-7]?|" + //oct
3404
- ".)";
3405
- this.$rules =
3406
- {
3407
- "start": [
3408
- {
3409
- token: "keyword.control.import.include.jade",
3410
- regex: "\\s*\\binclude\\b"
3411
- },
3412
- {
3413
- token: "keyword.other.doctype.jade",
3414
- regex: "^!!!\\s*(?:[a-zA-Z0-9-_]+)?"
3415
- },
3416
- {
3417
- onMatch: function (value, currentState, stack) {
3418
- stack.unshift(this.next, value.length - 2, currentState);
3419
- return "comment";
3420
- },
3421
- regex: /^\s*\/\//,
3422
- next: "comment_block"
3423
- },
3424
- mixin_embed("markdown", "markdown-"),
3425
- mixin_embed("sass", "sass-"),
3426
- mixin_embed("less", "less-"),
3427
- mixin_embed("coffee", "coffee-"),
3428
- {
3429
- token: ["storage.type.function.jade",
3430
- "entity.name.function.jade",
3431
- "punctuation.definition.parameters.begin.jade",
3432
- "variable.parameter.function.jade",
3433
- "punctuation.definition.parameters.end.jade"
3434
- ],
3435
- regex: "^(\\s*mixin)( [\\w\\-]+)(\\s*\\()(.*?)(\\))"
3436
- },
3437
- {
3438
- token: ["storage.type.function.jade", "entity.name.function.jade"],
3439
- regex: "^(\\s*mixin)( [\\w\\-]+)"
3440
- },
3441
- {
3442
- token: "source.js.embedded.jade",
3443
- regex: "^\\s*(?:-|=|!=)",
3444
- next: "js-start"
3445
- },
3446
- {
3447
- token: "string.interpolated.jade",
3448
- regex: "[#!]\\{[^\\}]+\\}"
3449
- },
3450
- {
3451
- token: "meta.tag.any.jade",
3452
- regex: /^\s*(?!\w+:)(?:[\w-]+|(?=\.|#)])/,
3453
- next: "tag_single"
3454
- },
3455
- {
3456
- token: "suport.type.attribute.id.jade",
3457
- regex: "#\\w+"
3458
- },
3459
- {
3460
- token: "suport.type.attribute.class.jade",
3461
- regex: "\\.\\w+"
3462
- },
3463
- {
3464
- token: "punctuation",
3465
- regex: "\\s*(?:\\()",
3466
- next: "tag_attributes"
3467
- }
3468
- ],
3469
- "comment_block": [
3470
- { regex: /^\s*(?:\/\/)?/, onMatch: function (value, currentState, stack) {
3471
- if (value.length <= stack[1]) {
3472
- if (value.slice(-1) == "/") {
3473
- stack[1] = value.length - 2;
3474
- this.next = "";
3475
- return "comment";
3476
- }
3477
- stack.shift();
3478
- stack.shift();
3479
- this.next = stack.shift();
3480
- return "text";
3481
- }
3482
- else {
3483
- this.next = "";
3484
- return "comment";
3485
- }
3486
- }, next: "start" },
3487
- { defaultToken: "comment" }
3488
- ],
3489
- "tag_single": [
3490
- {
3491
- token: "entity.other.attribute-name.class.jade",
3492
- regex: "\\.[\\w-]+"
3493
- },
3494
- {
3495
- token: "entity.other.attribute-name.id.jade",
3496
- regex: "#[\\w-]+"
3497
- },
3498
- {
3499
- token: ["text", "punctuation"],
3500
- regex: "($)|((?!\\.|#|=|-))",
3501
- next: "start"
3502
- }
3503
- ],
3504
- "tag_attributes": [
3505
- {
3506
- token: "string",
3507
- regex: "'(?=.)",
3508
- next: "qstring"
3509
- },
3510
- {
3511
- token: "string",
3512
- regex: '"(?=.)',
3513
- next: "qqstring"
3514
- },
3515
- {
3516
- token: ["entity.other.attribute-name.jade", "punctuation"],
3517
- regex: "([a-zA-Z:\\.-]+)(=)?",
3518
- next: "attribute_strings"
3519
- },
3520
- {
3521
- token: "punctuation",
3522
- regex: "\\)",
3523
- next: "start"
3524
- }
3525
- ],
3526
- "attribute_strings": [
3527
- {
3528
- token: "string",
3529
- regex: "'(?=.)",
3530
- next: "qstring"
3531
- },
3532
- {
3533
- token: "string",
3534
- regex: '"(?=.)',
3535
- next: "qqstring"
3536
- },
3537
- {
3538
- token: "string",
3539
- regex: '(?=\\S)',
3540
- next: "tag_attributes"
3541
- }
3542
- ],
3543
- "qqstring": [
3544
- {
3545
- token: "constant.language.escape",
3546
- regex: escapedRe
3547
- }, {
3548
- token: "string",
3549
- regex: '[^"\\\\]+'
3550
- }, {
3551
- token: "string",
3552
- regex: "\\\\$",
3553
- next: "qqstring"
3554
- }, {
3555
- token: "string",
3556
- regex: '"|$',
3557
- next: "tag_attributes"
3558
- }
3559
- ],
3560
- "qstring": [
3561
- {
3562
- token: "constant.language.escape",
3563
- regex: escapedRe
3564
- }, {
3565
- token: "string",
3566
- regex: "[^'\\\\]+"
3567
- }, {
3568
- token: "string",
3569
- regex: "\\\\$",
3570
- next: "qstring"
3571
- }, {
3572
- token: "string",
3573
- regex: "'|$",
3574
- next: "tag_attributes"
3575
- }
3576
- ]
3577
- };
3578
- this.embedRules(JavaScriptHighlightRules, "js-", [{
3579
- token: "text",
3580
- regex: ".$",
3581
- next: "start"
3582
- }]);
3583
- };
3584
- oop.inherits(JadeHighlightRules, TextHighlightRules);
3585
- exports.JadeHighlightRules = JadeHighlightRules;
3586
-
3587
- });
3588
-
3589
- ace.define("ace/mode/vue_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/css_highlight_rules","ace/mode/typescript_highlight_rules","ace/mode/coffee_highlight_rules","ace/mode/html_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/stylus_highlight_rules","ace/mode/sass_highlight_rules","ace/mode/scss_highlight_rules","ace/mode/less_highlight_rules","ace/tokenizer","ace/mode/slim_highlight_rules","ace/mode/jade_highlight_rules","ace/mode/javascript"], function(require, exports, module){"use strict";
3590
- var __read = (this && this.__read) || function (o, n) {
3591
- var m = typeof Symbol === "function" && o[Symbol.iterator];
3592
- if (!m) return o;
3593
- var i = m.call(o), r, ar = [], e;
3594
- try {
3595
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3596
- }
3597
- catch (error) { e = { error: error }; }
3598
- finally {
3599
- try {
3600
- if (r && !r.done && (m = i["return"])) m.call(i);
3601
- }
3602
- finally { if (e) throw e.error; }
3603
- }
3604
- return ar;
3605
- };
3606
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
3607
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3608
- if (ar || !(i in from)) {
3609
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
3610
- ar[i] = from[i];
3611
- }
3612
- }
3613
- return to.concat(ar || Array.prototype.slice.call(from));
3614
- };
3615
- var oop = require("../lib/oop");
3616
- var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
3617
- var TypeScriptHighlightRules = require("./typescript_highlight_rules").TypeScriptHighlightRules;
3618
- var CoffeeHighlightRules = require("./coffee_highlight_rules").CoffeeHighlightRules;
3619
- var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
3620
- var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
3621
- var StylusHighlightRules = require("./stylus_highlight_rules").StylusHighlightRules;
3622
- var SassHighlightRules = require("./sass_highlight_rules").SassHighlightRules;
3623
- var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
3624
- var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;
3625
- var Tokenizer = require("../tokenizer").Tokenizer;
3626
- var SlimHighlightRules = require("./slim_highlight_rules").SlimHighlightRules;
3627
- var JadeHighlightRules = require("./jade_highlight_rules").JadeHighlightRules;
3628
- var JavaScriptMode = require("./javascript").Mode;
3629
- var VueHighlightRules = function (options) {
3630
- this.embedLangRules = function (HighlightRules, tag, value, attribute) {
3631
- var condition = attribute ? "(?=[^>]*" + attribute + "\\s*=\\s*['\"]" + value + "['\"]))" : "(?=\\s|>|$))";
3632
- this.$rules.start.unshift({
3633
- token: ["meta.tag.punctuation.tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
3634
- regex: "(<)(" + tag + condition,
3635
- next: [
3636
- {
3637
- token: "meta.tag.punctuation.tag-close." + tag + ".xml",
3638
- regex: "/?>",
3639
- next: value + "-start"
3640
- }, { include: "attributes" }
3641
- ]
3642
- });
3643
- this.$rules[tag + "-end"] = [
3644
- { include: "attributes" }, {
3645
- token: "meta.tag.punctuation.tag-close.xml",
3646
- regex: "/?>",
3647
- next: "start",
3648
- onMatch: function (value, currentState, stack) {
3649
- stack.splice(0);
3650
- return this.token;
3651
- }
3652
- }
3653
- ];
3654
- this.embedRules(HighlightRules, value + "-", [
3655
- {
3656
- token: ["meta.tag.punctuation.end-tag-open.xml", "meta.tag." + tag + ".tag-name.xml"],
3657
- regex: "(</)(" + tag + "(?=\\s|>|$))",
3658
- next: tag + "-end"
3659
- }, {
3660
- token: "string.cdata.xml",
3661
- regex: "<\\!\\[CDATA\\["
3662
- }, {
3663
- token: "string.cdata.xml",
3664
- regex: "\\]\\]>"
3665
- }
3666
- ]);
3667
- };
3668
- var vueRules = [
3669
- {
3670
- include: "vue-interpolations"
3671
- }
3672
- ];
3673
- var VueRules = new HtmlHighlightRules().getRules();
3674
- VueRules.start = vueRules.concat(VueRules.start);
3675
- VueRules["vue-interpolations"] = [
3676
- {
3677
- token: "punctuation",
3678
- regex: /\{\{\{?/,
3679
- next: "js-interpolation-start"
3680
- }
3681
- ];
3682
- var self = this;
3683
- VueRules.tag_stuff.unshift({
3684
- token: "string",
3685
- regex: /(?:\b(v-)|(:|@))(\[?[a-zA-Z\-.]+\]?)(?:(\:\[?[a-zA-Z\-]+\]?))?((?:\.[a-zA-Z\-]+)*)(\s*)(=)(\s*)(["'])/,
3686
- onMatch: function (value, currentState, stack) {
3687
- var quote = value[value.length - 1];
3688
- stack.unshift(quote, currentState);
3689
- var values = new RegExp(this.regex).exec(value);
3690
- if (!values)
3691
- return "text";
3692
- var tokens = [];
3693
- var types = [
3694
- "entity.other.attribute-name.xml", "punctuation.separator.key-value.xml",
3695
- "entity.other.attribute-name.xml", "entity.other.attribute-name.xml", "entity.other.attribute-name.xml",
3696
- "text", "punctuation.separator.key-value.xml", "text", "string"
3697
- ];
3698
- for (var i = 0, l = types.length; i < l; i++) {
3699
- if (values[i + 1])
3700
- tokens[tokens.length] = {
3701
- type: types[i],
3702
- value: values[i + 1]
3703
- };
3704
- }
3705
- return tokens;
3706
- },
3707
- next: [
3708
- {
3709
- token: "string",
3710
- regex: /$/,
3711
- next: "tag_stuff"
3712
- }, {
3713
- token: "string",
3714
- regex: /.*/,
3715
- onMatch: function (value, currentState, stack, line) {
3716
- var quote = stack[0];
3717
- var parts = value.split(quote);
3718
- var text = parts[0];
3719
- this.next = "";
3720
- if (parts.length > 1) {
3721
- stack.shift();
3722
- var nextState = stack.shift();
3723
- var currentData = new Tokenizer(self.$rules).getLineTokens(parts.slice(1).join(quote), nextState);
3724
- currentData.tokens.unshift({
3725
- type: "string",
3726
- value: quote
3727
- });
3728
- this.next = Array.isArray(currentData.state) ? currentData.state[currentData.state.length - 1]
3729
- : currentData.state;
3730
- }
3731
- var data = new JavaScriptMode().getTokenizer().getLineTokens(text, "start");
3732
- var tokens = data.tokens;
3733
- if (currentData) {
3734
- tokens.push.apply(tokens, __spreadArray([], __read(currentData.tokens), false));
3735
- }
3736
- return tokens;
3737
- }
3738
- }
3739
- ]
3740
- }, {
3741
- token: "string",
3742
- regex: '"',
3743
- next: [
3744
- {
3745
- token: "string",
3746
- regex: '"|$',
3747
- next: "tag_stuff"
3748
- }, {
3749
- include: "vue-interpolations"
3750
- }, {
3751
- defaultToken: "string"
3752
- }
3753
- ]
3754
- }, {
3755
- token: "string",
3756
- regex: "'",
3757
- next: [
3758
- {
3759
- token: "string",
3760
- regex: "'|$",
3761
- next: "tag_stuff"
3762
- }, {
3763
- include: "vue-interpolations"
3764
- }, {
3765
- defaultToken: "string"
3766
- }
3767
- ]
3768
- });
3769
- this.$rules = VueRules;
3770
- this.embedRules(JavaScriptHighlightRules, "js-interpolation-", [
3771
- {
3772
- token: "punctuation",
3773
- regex: /\}\}\}?/,
3774
- next: "start"
3775
- }
3776
- ]);
3777
- this.embedLangRules(CssHighlightRules, "style", "css");
3778
- this.embedLangRules(StylusHighlightRules, "style", "stylus", "lang");
3779
- this.embedLangRules(SassHighlightRules, "style", "sass", "lang");
3780
- this.embedLangRules(ScssHighlightRules, "style", "scss", "lang");
3781
- this.embedLangRules(LessHighlightRules, "style", "less", "lang");
3782
- this.embedLangRules(TypeScriptHighlightRules, "script", "ts", "lang");
3783
- this.embedLangRules(CoffeeHighlightRules, "script", "coffee", "lang");
3784
- this.embedLangRules(SlimHighlightRules, "template", "slm", "lang");
3785
- this.embedLangRules(JadeHighlightRules, "template", "jade", "lang");
3786
- this.embedLangRules(StylusHighlightRules, "template", "stylus", "lang");
3787
- this.normalizeRules();
3788
- };
3789
- oop.inherits(VueHighlightRules, HtmlHighlightRules);
3790
- exports.VueHighlightRules = VueHighlightRules;
3791
-
3792
- });
3793
-
3794
- ace.define("ace/mode/vue",["require","exports","module","ace/lib/oop","ace/mode/folding/html","ace/lib/lang","ace/mode/behaviour/xml","ace/mode/html_completions","ace/mode/html","ace/mode/vue_highlight_rules"], function(require, exports, module){"use strict";
3795
- var oop = require("../lib/oop");
3796
- var HtmlFoldMode = require("./folding/html").FoldMode;
3797
- var lang = require("../lib/lang");
3798
- var XmlBehaviour = require("./behaviour/xml").XmlBehaviour;
3799
- var HtmlCompletions = require("./html_completions").HtmlCompletions;
3800
- var HTMLMode = require("./html").Mode;
3801
- var VueHighlightRules = require("./vue_highlight_rules").VueHighlightRules;
3802
- var voidElements = [
3803
- "area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "menuitem", "param", "source",
3804
- "track", "wbr"
3805
- ];
3806
- var optionalEndTags = ["li", "dt", "dd", "p", "rt", "rp", "optgroup", "option", "colgroup", "td", "th"];
3807
- var Mode = function () {
3808
- this.HighlightRules = VueHighlightRules;
3809
- this.foldingRules = new HtmlFoldMode(this.voidElements, lang.arrayToMap(optionalEndTags));
3810
- this.$behaviour = new XmlBehaviour();
3811
- this.$completer = new HtmlCompletions();
3812
- };
3813
- oop.inherits(Mode, HTMLMode);
3814
- (function () {
3815
- this.blockComment = {
3816
- start: "<!--",
3817
- end: "-->"
3818
- };
3819
- this.voidElements = lang.arrayToMap(voidElements);
3820
- this.getCompletions = function (state, session, pos, prefix) {
3821
- return this.$completer.getCompletions(state, session, pos, prefix);
3822
- };
3823
- this.$id = "ace/mode/vue";
3824
- }).call(Mode.prototype);
3825
- exports.Mode = Mode;
3826
-
3827
- }); (function() {
3828
- ace.require(["ace/mode/vue"], function(m) {
3829
- if (typeof module == "object" && typeof exports == "object" && module) {
3830
- module.exports = m;
3831
- }
3832
- });
3833
- })();
3834
-