@nuxtjs/sitemap 6.0.0-beta.4 → 6.0.0

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 (331) hide show
  1. package/README.md +71 -71
  2. package/dist/client/200.html +188 -187
  3. package/dist/client/404.html +188 -187
  4. package/dist/client/_nuxt/16u1w-DC.js +1 -0
  5. package/dist/client/_nuxt/{DUsrs60I.js → 4JG6XROL.js} +1 -6
  6. package/dist/client/_nuxt/6bkCFmAg.js +1 -0
  7. package/dist/client/_nuxt/{DZqG9GXz.js → 8R90CSQj.js} +1 -31
  8. package/dist/client/_nuxt/{CsYA0RN7.js → A4Fa72hX.js} +1 -1
  9. package/dist/client/_nuxt/{CJQrLysU.js → AoxqhCl0.js} +1 -1
  10. package/dist/client/_nuxt/B2Zkg-Ae.js +5 -0
  11. package/dist/client/_nuxt/B3a86pAO.js +1 -0
  12. package/dist/client/_nuxt/B3yJX9Qu.js +1 -0
  13. package/dist/client/_nuxt/B4WdFlrw.js +31 -0
  14. package/dist/client/_nuxt/B5--Xptx.js +1 -0
  15. package/dist/client/_nuxt/B5La0Eyp.js +1 -0
  16. package/dist/client/_nuxt/{Bj0fF4lQ.js → B5USdwzW.js} +1 -1
  17. package/dist/client/_nuxt/{458cWEat.js → B5v32tNS.js} +1 -1
  18. package/dist/client/_nuxt/{BMHPAh1U.js → B7zm8LFH.js} +1 -1
  19. package/dist/client/_nuxt/{9ZOzOPqN.js → B8yeR86s.js} +1 -1
  20. package/dist/client/_nuxt/B9MAV_WH.js +1 -0
  21. package/dist/client/_nuxt/{C2TBxDwV.js → B9afuS00.js} +1 -1
  22. package/dist/client/_nuxt/BC7ivatP.js +1 -0
  23. package/dist/client/_nuxt/BD3t3nJY.js +1 -0
  24. package/dist/client/_nuxt/BDJ7po1j.js +1 -0
  25. package/dist/client/_nuxt/BDUkJJFZ.js +1 -0
  26. package/dist/client/_nuxt/BEIEqD7s.js +1 -0
  27. package/dist/client/_nuxt/{DKb4lQY2.js → BEPTDMGr.js} +1 -1
  28. package/dist/client/_nuxt/BESheOyt.js +1 -0
  29. package/dist/client/_nuxt/BFO9THtE.js +1 -0
  30. package/dist/client/_nuxt/{BpJyBuO9.js → BICcMyTi.js} +1 -1
  31. package/dist/client/_nuxt/{DR5YgmI2.js → BIboXAcp.js} +1 -1
  32. package/dist/client/_nuxt/BMkdSFOr.js +1 -0
  33. package/dist/client/_nuxt/BNuYtHxo.js +1 -0
  34. package/dist/client/_nuxt/{BaNxgKSR.js → BOCDpWc1.js} +1 -1
  35. package/dist/client/_nuxt/BOtZLFcM.js +3 -0
  36. package/dist/client/_nuxt/BPhJoBd6.js +1 -0
  37. package/dist/client/_nuxt/BQgbS7Yt.js +1 -0
  38. package/dist/client/_nuxt/BSSAUge4.js +1 -0
  39. package/dist/client/_nuxt/BTO_K1fm.js +1 -0
  40. package/dist/client/_nuxt/BUQ2FcJX.js +1 -0
  41. package/dist/client/_nuxt/BVsCzzYp.js +1 -0
  42. package/dist/client/_nuxt/BY8_eel9.js +1 -0
  43. package/dist/client/_nuxt/B_Sdu6N9.js +1 -0
  44. package/dist/client/_nuxt/BbPU79SD.js +165 -0
  45. package/dist/client/_nuxt/BccEf5hb.js +1 -0
  46. package/dist/client/_nuxt/{DsfXcHUZ.js → Bcn1f5Rp.js} +1 -27
  47. package/dist/client/_nuxt/{Gme1ZbSQ.js → BeqgMazi.js} +1 -1
  48. package/dist/client/_nuxt/{BM5XuWfj.js → BfBkfEDj.js} +1 -1
  49. package/dist/client/_nuxt/BiU8-mv6.js +1 -0
  50. package/dist/client/_nuxt/BltGI4TE.js +1 -0
  51. package/dist/client/_nuxt/BqpV9M7Y.js +16 -0
  52. package/dist/client/_nuxt/BrHEiNXv.js +1 -0
  53. package/dist/client/_nuxt/Bszlo9K_.js +1 -0
  54. package/dist/client/_nuxt/BuqjW-Uc.js +1 -0
  55. package/dist/client/_nuxt/ByGMIDPY.js +1 -0
  56. package/dist/client/_nuxt/{D5OoM2Ul.js → BzeF2RWN.js} +1 -1
  57. package/dist/client/_nuxt/{BeX7Iu5M.js → C17JnZbq.js} +1 -90
  58. package/dist/client/_nuxt/C31OBGbl.js +1 -0
  59. package/dist/client/_nuxt/C3NvtN4M.js +1 -0
  60. package/dist/client/_nuxt/{BXfENWL6.js → C46DigdT.js} +1 -1
  61. package/dist/client/_nuxt/C5QX-GgJ.js +1 -0
  62. package/dist/client/_nuxt/{DXT9h7v2.js → C6F4YvHi.js} +1 -1
  63. package/dist/client/_nuxt/C6pBAdyX.js +1 -0
  64. package/dist/client/_nuxt/C7O_L2NY.js +1 -0
  65. package/dist/client/_nuxt/C7n-thn-.js +1 -0
  66. package/dist/client/_nuxt/C8KGJGmD.js +1 -0
  67. package/dist/client/_nuxt/{DVC_qXWv.js → C9X_x5J1.js} +1 -1
  68. package/dist/client/_nuxt/{DhFF74a2.js → CAkjjYd_.js} +1 -1
  69. package/dist/client/_nuxt/CBoehFVA.js +29 -0
  70. package/dist/client/_nuxt/CD1ynQRS.js +1 -0
  71. package/dist/client/_nuxt/CDLXdqou.js +6 -0
  72. package/dist/client/_nuxt/CDNnVXJ3.js +1 -0
  73. package/dist/client/_nuxt/{CrhH3_Og.js → CDzo4tzE.js} +1 -1
  74. package/dist/client/_nuxt/{sQpxpyUs.js → CEuqc8ZQ.js} +1 -1
  75. package/dist/client/_nuxt/CIlkkgNU.js +4 -0
  76. package/dist/client/_nuxt/{6Kuza3Wr.js → CJ21IjBY.js} +1 -1
  77. package/dist/client/_nuxt/{DGEpfOTx.js → CJYoS41Z.js} +1 -1
  78. package/dist/client/_nuxt/CKpfY2P2.js +1 -0
  79. package/dist/client/_nuxt/{C_8Fx7bH.js → CMiaevpY.js} +1 -1
  80. package/dist/client/_nuxt/{BN4LRXf6.js → CT9A9Qiu.js} +1 -1
  81. package/dist/client/_nuxt/{BwXNTs7T.js → CTjLfFPV.js} +1 -1
  82. package/dist/client/_nuxt/CV8JdvfZ.js +1 -0
  83. package/dist/client/_nuxt/{B1nm99XP.js → CXYaz1c9.js} +1 -1
  84. package/dist/client/_nuxt/C_D4IvTY.js +1 -0
  85. package/dist/client/_nuxt/C_g069vW.js +1 -0
  86. package/dist/client/_nuxt/CbFpZgCV.js +1 -0
  87. package/dist/client/_nuxt/CbjS_D4a.js +1 -0
  88. package/dist/client/_nuxt/{Ksn5IXup.js → CeUooOMz.js} +1 -1
  89. package/dist/client/_nuxt/{CThH5sBG.js → ChVe37jp.js} +1 -1
  90. package/dist/client/_nuxt/{B9CT-1u6.js → CidHYXz9.js} +1 -7
  91. package/dist/client/_nuxt/CkoJTUbt.js +25 -0
  92. package/dist/client/_nuxt/Clnf9f06.js +1 -0
  93. package/dist/client/_nuxt/{DSsji4Hu.js → CmHkUvIV.js} +1 -1
  94. package/dist/client/_nuxt/{BEZjiGez.js → CmonagEV.js} +1 -1
  95. package/dist/client/_nuxt/{KPqz0Sb3.js → CsW3I34-.js} +1 -1
  96. package/dist/client/_nuxt/CsuMf1xJ.js +1 -0
  97. package/dist/client/_nuxt/{DM4HHECw.js → CwZIVF5c.js} +1 -1
  98. package/dist/client/_nuxt/Cwv93qcC.js +4 -0
  99. package/dist/client/_nuxt/CzrtbdtR.js +1 -0
  100. package/dist/client/_nuxt/D1i8Vxii.js +1 -0
  101. package/dist/client/_nuxt/D4LJwL2b.js +1 -0
  102. package/dist/client/_nuxt/{8t4jSAMm.js → D6SwP_ef.js} +1 -1
  103. package/dist/client/_nuxt/D7Nx8OLD.js +1 -0
  104. package/dist/client/_nuxt/D85lwgPO.js +1 -0
  105. package/dist/client/_nuxt/{BBJYjQ0k.js → D8YTaFMU.js} +1 -1
  106. package/dist/client/_nuxt/D8ecWW_g.js +1 -0
  107. package/dist/client/_nuxt/D9s3Eyz8.js +11 -0
  108. package/dist/client/_nuxt/DA288kE2.js +3 -0
  109. package/dist/client/_nuxt/DFQMbhFG.js +1 -0
  110. package/dist/client/_nuxt/DFRYOy8B.js +1 -0
  111. package/dist/client/_nuxt/DFaziNDp.js +1 -0
  112. package/dist/client/_nuxt/{ULUzDaxg.js → DGTPbQyx.js} +1 -54
  113. package/dist/client/_nuxt/{CaGCoJJM.js → DHCC4-m4.js} +1 -1
  114. package/dist/client/_nuxt/DIC-ECB_.js +1 -0
  115. package/dist/client/_nuxt/DKgh9jPU.js +20 -0
  116. package/dist/client/_nuxt/DKluMpTE.js +1 -0
  117. package/dist/client/_nuxt/{DOv5BRyJ.js → DKrjeWrU.js} +1 -1
  118. package/dist/client/_nuxt/{Bh8mriwU.js → DLpTrZod.js} +1 -17
  119. package/dist/client/_nuxt/DOt8O2FJ.js +1 -0
  120. package/dist/client/_nuxt/DOwv4Xrr.js +1 -0
  121. package/dist/client/_nuxt/DQdnirlo.js +1 -0
  122. package/dist/client/_nuxt/DRgydeCt.js +1 -0
  123. package/dist/client/_nuxt/DSPtUMMI.js +1 -0
  124. package/dist/client/_nuxt/{Ev-gWqHG.js → DSmiUmWA.js} +1 -1
  125. package/dist/client/_nuxt/{zIdFMUa4.js → DT2db06B.js} +1 -1
  126. package/dist/client/_nuxt/{vMuZBeRS.js → DWE3vCE5.js} +1 -1
  127. package/dist/client/_nuxt/DYQagCV4.js +1 -0
  128. package/dist/client/_nuxt/DZwJH60W.js +1 -0
  129. package/dist/client/_nuxt/D_nC6SfZ.js +1 -0
  130. package/dist/client/_nuxt/{V16qqttt.js → DaDGU6kf.js} +1 -8
  131. package/dist/client/_nuxt/{CMDmr8et.js → DanM9F4-.js} +1 -1
  132. package/dist/client/_nuxt/DfqM7apN.js +1 -0
  133. package/dist/client/_nuxt/{DouzTJIq.js → DgraCSOE.js} +1 -1
  134. package/dist/client/_nuxt/{BR6CMsBL.js → DhldU3XI.js} +1 -1
  135. package/dist/client/_nuxt/Dm9yFT8Y.js +2 -0
  136. package/dist/client/_nuxt/DmAvib0Y.js +1 -0
  137. package/dist/client/_nuxt/DoDCNZ2x.js +1 -0
  138. package/dist/client/_nuxt/{Bgpqy2XC.js → DoQu802G.js} +1 -1
  139. package/dist/client/_nuxt/DoY4Dbtn.js +1 -0
  140. package/dist/client/_nuxt/DqvgqZmm.js +16 -0
  141. package/dist/client/_nuxt/{BgSQePf4.js → Dtv2yyrc.js} +1 -1
  142. package/dist/client/_nuxt/DvBRk2iT.js +1 -0
  143. package/dist/client/_nuxt/{DJZWsvj0.js → DvreHBtf.js} +1 -1
  144. package/dist/client/_nuxt/DxX6t7GH.js +1 -0
  145. package/dist/client/_nuxt/E1IWMS2c.js +1 -0
  146. package/dist/client/_nuxt/H2A8RXvM.js +1 -0
  147. package/dist/client/_nuxt/{CiRxTSAc.js → I-_ljZ1M.js} +1 -1
  148. package/dist/client/_nuxt/KCgU82S2.js +1 -0
  149. package/dist/client/_nuxt/KN-DOLVO.js +1 -0
  150. package/dist/client/_nuxt/{CxBHuulF.js → LrshOcZ2.js} +1 -1
  151. package/dist/client/_nuxt/MJ0gDQnJ.js +9 -0
  152. package/dist/client/_nuxt/NboNzovp.js +1 -0
  153. package/dist/client/_nuxt/P3XzCKkX.js +1 -0
  154. package/dist/client/_nuxt/PBlC1IT3.js +1 -0
  155. package/dist/client/_nuxt/PSVKygaU.js +16 -0
  156. package/dist/client/_nuxt/PYrcYqZ1.js +1 -0
  157. package/dist/client/_nuxt/SXuYmi6B.js +1 -0
  158. package/dist/client/_nuxt/Sm_sVxcW.js +14 -0
  159. package/dist/client/_nuxt/TDVTyJvX.js +16 -0
  160. package/dist/client/_nuxt/VVtMly4c.js +3 -0
  161. package/dist/client/_nuxt/{BH1M7C1g.js → VntNkNt1.js} +1 -1
  162. package/dist/client/_nuxt/Wkyh6-uf.js +1 -0
  163. package/dist/client/_nuxt/{I4qd5QHW.js → XP2_9bVu.js} +4 -4
  164. package/dist/client/_nuxt/XrZDCB4K.js +1 -0
  165. package/dist/client/_nuxt/_fwBhpzY.js +1 -0
  166. package/dist/client/_nuxt/a0z0KVy-.js +5 -0
  167. package/dist/client/_nuxt/bEygH-WE.js +3 -0
  168. package/dist/client/_nuxt/bPMpiWut.js +1 -0
  169. package/dist/client/_nuxt/builds/latest.json +1 -1
  170. package/dist/client/_nuxt/builds/meta/cba555e1-40e9-4bf5-b289-2d70e1fff2a4.json +1 -0
  171. package/dist/client/_nuxt/{beD-FUib.js → coyhVBVA.js} +1 -1
  172. package/dist/client/_nuxt/{wChcbJ1V.js → d2PdAb0u.js} +1 -36
  173. package/dist/client/_nuxt/{entry.C6cM9MEY.css → entry.wneNJFvK.css} +1 -1
  174. package/dist/client/_nuxt/error-404.Ce3zs1W_.css +1 -0
  175. package/dist/client/_nuxt/error-500.DLxoKTOy.css +1 -0
  176. package/dist/client/_nuxt/g4vhSHS2.js +1 -0
  177. package/dist/client/_nuxt/gwSZkKbG.js +1 -0
  178. package/dist/client/_nuxt/iYrPSY0y.js +1 -0
  179. package/dist/client/_nuxt/{Dwo2i-71.js → kZiYIjIU.js} +1 -1
  180. package/dist/client/_nuxt/lOwNZ7_V.js +1 -0
  181. package/dist/client/_nuxt/{BmCW-tYz.js → nc-bU77P.js} +4 -78
  182. package/dist/client/_nuxt/nfCtBF4F.js +1 -0
  183. package/dist/client/_nuxt/pit2X7C0.js +1 -0
  184. package/dist/client/_nuxt/r5D-aIjp.js +1 -0
  185. package/dist/client/_nuxt/{BqAMNMnf.js → rU0AX43l.js} +1 -1
  186. package/dist/client/_nuxt/rh45RTDP.js +1 -0
  187. package/dist/client/_nuxt/tgs8ujlj.js +1 -0
  188. package/dist/client/_nuxt/v_4dTNAb.js +1 -0
  189. package/dist/client/_nuxt/vvK2q8Zt.js +1 -0
  190. package/dist/client/_nuxt/yOCz8xPT.js +1 -0
  191. package/dist/client/_nuxt/zt9m_cFA.js +8 -0
  192. package/dist/client/index.html +188 -187
  193. package/dist/module.d.mts +2 -4
  194. package/dist/module.d.ts +2 -4
  195. package/dist/module.json +1 -1
  196. package/dist/module.mjs +65 -57
  197. package/dist/runtime/nitro/sitemap/builder/sitemap-index.js +1 -1
  198. package/dist/runtime/nitro/sitemap/builder/sitemap.d.ts +1 -1
  199. package/dist/runtime/nitro/sitemap/builder/sitemap.js +17 -16
  200. package/dist/runtime/nitro/sitemap/nitro.js +16 -3
  201. package/dist/runtime/nitro/sitemap/urlset/normalise.d.ts +1 -1
  202. package/dist/runtime/nitro/sitemap/urlset/normalise.js +28 -7
  203. package/dist/runtime/nitro/sitemap/urlset/sources.js +3 -1
  204. package/dist/runtime/nitro/tsconfig.json +3 -3
  205. package/dist/runtime/types.d.ts +28 -4
  206. package/dist/types.d.mts +1 -11
  207. package/dist/types.d.ts +1 -11
  208. package/package.json +13 -13
  209. package/dist/client/_nuxt/-0RnDExV.js +0 -1
  210. package/dist/client/_nuxt/-4dSXLqG.js +0 -1
  211. package/dist/client/_nuxt/-7WWnkdy.js +0 -517
  212. package/dist/client/_nuxt/1Je9_Reo.js +0 -136
  213. package/dist/client/_nuxt/37ic6j3l.js +0 -1
  214. package/dist/client/_nuxt/AgnqFTPX.js +0 -13
  215. package/dist/client/_nuxt/B4yE-MfL.js +0 -38
  216. package/dist/client/_nuxt/B7rNE5kf.js +0 -1
  217. package/dist/client/_nuxt/BB42E8aY.js +0 -186
  218. package/dist/client/_nuxt/BBBqETUW.js +0 -1
  219. package/dist/client/_nuxt/BEjL32p1.js +0 -5754
  220. package/dist/client/_nuxt/BF6G6X0H.js +0 -1
  221. package/dist/client/_nuxt/BH_RS3WO.js +0 -1
  222. package/dist/client/_nuxt/BICIrM8O.js +0 -1
  223. package/dist/client/_nuxt/BLluXI4E.js +0 -1
  224. package/dist/client/_nuxt/BOpLLL-w.js +0 -1
  225. package/dist/client/_nuxt/BSzd7kav.js +0 -1
  226. package/dist/client/_nuxt/BT9ZzGyQ.js +0 -69
  227. package/dist/client/_nuxt/BUinYsBq.js +0 -666
  228. package/dist/client/_nuxt/BUpeXbsf.js +0 -25
  229. package/dist/client/_nuxt/BVGdgKAv.js +0 -1
  230. package/dist/client/_nuxt/BWKJ1FCf.js +0 -239
  231. package/dist/client/_nuxt/BZ035FK2.js +0 -9
  232. package/dist/client/_nuxt/BZz1Hhek.js +0 -1
  233. package/dist/client/_nuxt/B_kA2_jD.js +0 -40
  234. package/dist/client/_nuxt/Bbv8ARUV.js +0 -13
  235. package/dist/client/_nuxt/Bdt_eLrj.js +0 -756
  236. package/dist/client/_nuxt/BeJnKnI_.js +0 -544
  237. package/dist/client/_nuxt/Bg0wAK5a.js +0 -100
  238. package/dist/client/_nuxt/BiDE021q.js +0 -1
  239. package/dist/client/_nuxt/BigF1UXR.js +0 -1
  240. package/dist/client/_nuxt/BlxWTfDV.js +0 -699
  241. package/dist/client/_nuxt/Bpum8voz.js +0 -129
  242. package/dist/client/_nuxt/Br9pa-sp.js +0 -1
  243. package/dist/client/_nuxt/BscxmKrE.js +0 -8
  244. package/dist/client/_nuxt/Btshr8M_.js +0 -70
  245. package/dist/client/_nuxt/Bx64mzUw.js +0 -1
  246. package/dist/client/_nuxt/Bym0hRiG.js +0 -1
  247. package/dist/client/_nuxt/C15OxdQ5.js +0 -1
  248. package/dist/client/_nuxt/C1DVX8_8.js +0 -831
  249. package/dist/client/_nuxt/C3qJFuQy.js +0 -3
  250. package/dist/client/_nuxt/C3qUB5O8.js +0 -301
  251. package/dist/client/_nuxt/C6Aznpr-.js +0 -1
  252. package/dist/client/_nuxt/CApMHEaB.js +0 -1
  253. package/dist/client/_nuxt/CBWrHyXe.js +0 -580
  254. package/dist/client/_nuxt/CBks_G0r.js +0 -16
  255. package/dist/client/_nuxt/CG4fK2Nq.js +0 -21
  256. package/dist/client/_nuxt/CJGKC1_q.js +0 -40
  257. package/dist/client/_nuxt/CO5hpdkB.js +0 -1
  258. package/dist/client/_nuxt/COBxEbHI.js +0 -1
  259. package/dist/client/_nuxt/CQUCfALx.js +0 -13
  260. package/dist/client/_nuxt/CRYtL1Hd.js +0 -1
  261. package/dist/client/_nuxt/CX3ZWouj.js +0 -229
  262. package/dist/client/_nuxt/C_ZPRiAj.js +0 -26
  263. package/dist/client/_nuxt/Cb-F_BZP.js +0 -1
  264. package/dist/client/_nuxt/CbViG2Xw.js +0 -74
  265. package/dist/client/_nuxt/CbYhyuC0.js +0 -505
  266. package/dist/client/_nuxt/CfPQhs6g.js +0 -7
  267. package/dist/client/_nuxt/Cgl53LJQ.js +0 -1
  268. package/dist/client/_nuxt/Cicx_DS6.js +0 -1
  269. package/dist/client/_nuxt/ClXEvkw9.js +0 -68
  270. package/dist/client/_nuxt/Cp2HGa90.js +0 -353
  271. package/dist/client/_nuxt/CpAANOdC.js +0 -1
  272. package/dist/client/_nuxt/CrgTADc5.js +0 -1
  273. package/dist/client/_nuxt/CsyrCbsw.js +0 -699
  274. package/dist/client/_nuxt/Cthz8VOO.js +0 -771
  275. package/dist/client/_nuxt/CupVZNk8.js +0 -25
  276. package/dist/client/_nuxt/CxLlwT--.js +0 -76
  277. package/dist/client/_nuxt/CxrokwfH.js +0 -1
  278. package/dist/client/_nuxt/D3VHKxjW.js +0 -25
  279. package/dist/client/_nuxt/D4LaosRr.js +0 -1
  280. package/dist/client/_nuxt/D6pmzCqS.js +0 -1
  281. package/dist/client/_nuxt/DAGYewaG.js +0 -559
  282. package/dist/client/_nuxt/DAfrLhwG.js +0 -1
  283. package/dist/client/_nuxt/DBeuZS66.js +0 -1
  284. package/dist/client/_nuxt/DC4hdoM9.js +0 -87
  285. package/dist/client/_nuxt/DC8MraHL.js +0 -666
  286. package/dist/client/_nuxt/DGxQkqYo.js +0 -1
  287. package/dist/client/_nuxt/DHmGyzbM.js +0 -109
  288. package/dist/client/_nuxt/DIyf2Ztx.js +0 -1
  289. package/dist/client/_nuxt/DJubGRtk.js +0 -1
  290. package/dist/client/_nuxt/DK4oFTHQ.js +0 -200
  291. package/dist/client/_nuxt/DLP9ZvWb.js +0 -3
  292. package/dist/client/_nuxt/DSrLtGYv.js +0 -15
  293. package/dist/client/_nuxt/DV9JwLIa.js +0 -1
  294. package/dist/client/_nuxt/DVfdqzEq.js +0 -1
  295. package/dist/client/_nuxt/DXFkqnOI.js +0 -816
  296. package/dist/client/_nuxt/DY7_9Ga-.js +0 -1
  297. package/dist/client/_nuxt/DYI1rfmx.js +0 -25
  298. package/dist/client/_nuxt/DZLoTQm4.js +0 -1
  299. package/dist/client/_nuxt/DbK06e1c.js +0 -21
  300. package/dist/client/_nuxt/Dble9ECP.js +0 -1
  301. package/dist/client/_nuxt/Dch3xQiY.js +0 -699
  302. package/dist/client/_nuxt/DfeQjIbs.js +0 -5
  303. package/dist/client/_nuxt/Dg0DGYq4.js +0 -14
  304. package/dist/client/_nuxt/Dit6kIrv.js +0 -11
  305. package/dist/client/_nuxt/DmDrTTlz.js +0 -1
  306. package/dist/client/_nuxt/DwuVtWc2.js +0 -518
  307. package/dist/client/_nuxt/DzwdaLuO.js +0 -223
  308. package/dist/client/_nuxt/Eh5U-gDp.js +0 -52
  309. package/dist/client/_nuxt/FRbOFgZn.js +0 -40
  310. package/dist/client/_nuxt/NwQCJuIJ.js +0 -1
  311. package/dist/client/_nuxt/PWN5J14X.js +0 -1
  312. package/dist/client/_nuxt/PifQWv0n.js +0 -1
  313. package/dist/client/_nuxt/QZ3jNtnE.js +0 -515
  314. package/dist/client/_nuxt/RCJZWN-0.js +0 -81
  315. package/dist/client/_nuxt/RE3ujT-k.js +0 -1
  316. package/dist/client/_nuxt/RqY_Nz63.js +0 -1
  317. package/dist/client/_nuxt/Sfo2eW0G.js +0 -274
  318. package/dist/client/_nuxt/T9ysyp6P.js +0 -62
  319. package/dist/client/_nuxt/Urb1RsFe.js +0 -1
  320. package/dist/client/_nuxt/VQMr7AbF.js +0 -1
  321. package/dist/client/_nuxt/builds/meta/88407df5-4a0e-4841-8e00-133ac2590793.json +0 -1
  322. package/dist/client/_nuxt/cw46T5ID.js +0 -61
  323. package/dist/client/_nuxt/error-404.BjUZiARo.css +0 -1
  324. package/dist/client/_nuxt/error-500.CQd8P6J5.css +0 -1
  325. package/dist/client/_nuxt/ewRyznZJ.js +0 -32
  326. package/dist/client/_nuxt/i0IPvypD.js +0 -1
  327. package/dist/client/_nuxt/nclm9rTJ.js +0 -266
  328. package/dist/client/_nuxt/vMsNTMhM.js +0 -5
  329. package/dist/client/_nuxt/vPsaSUqs.js +0 -31
  330. package/dist/client/_nuxt/yX2IItqj.js +0 -1
  331. package/dist/client/_nuxt/zbShYgi7.js +0 -1
@@ -1,517 +0,0 @@
1
- const e=Object.freeze({displayName:"Mojo",name:"mojo",patterns:[{include:"#statement"},{include:"#expression"}],repository:{"annotated-parameter":{begin:`(?x)
2
- \\b
3
- ([[:alpha:]_]\\w*) \\s* (:)
4
- `,beginCaptures:{1:{name:"variable.parameter.function.language.python"},2:{name:"punctuation.separator.annotation.python"}},end:"(,)|(?=\\))",endCaptures:{1:{name:"punctuation.separator.parameters.python"}},patterns:[{include:"#expression"},{match:"=(?!=)",name:"keyword.operator.assignment.python"}]},"assignment-operator":{match:`(?x)
5
- <<= | >>= | //= | \\*\\*=
6
- | \\+= | -= | /= | @=
7
- | \\*= | %= | ~= | \\^= | &= | \\|=
8
- | =(?!=)
9
- `,name:"keyword.operator.assignment.python"},backticks:{begin:"\\`",end:"(?:\\`|(?<!\\\\)(\\n))",name:"string.quoted.single.python"},"builtin-callables":{patterns:[{include:"#illegal-names"},{include:"#illegal-object-name"},{include:"#builtin-exceptions"},{include:"#builtin-functions"},{include:"#builtin-types"}]},"builtin-exceptions":{match:`(?x) (?<!\\.) \\b(
10
- (
11
- Arithmetic | Assertion | Attribute | Buffer | BlockingIO
12
- | BrokenPipe | ChildProcess
13
- | (Connection (Aborted | Refused | Reset)?)
14
- | EOF | Environment | FileExists | FileNotFound
15
- | FloatingPoint | IO | Import | Indentation | Index | Interrupted
16
- | IsADirectory | NotADirectory | Permission | ProcessLookup
17
- | Timeout
18
- | Key | Lookup | Memory | Name | NotImplemented | OS | Overflow
19
- | Reference | Runtime | Recursion | Syntax | System
20
- | Tab | Type | UnboundLocal | Unicode(Encode|Decode|Translate)?
21
- | Value | Windows | ZeroDivision | ModuleNotFound
22
- ) Error
23
- |
24
- ((Pending)?Deprecation | Runtime | Syntax | User | Future | Import
25
- | Unicode | Bytes | Resource
26
- )? Warning
27
- |
28
- SystemExit | Stop(Async)?Iteration
29
- | KeyboardInterrupt
30
- | GeneratorExit | (Base)?Exception
31
- )\\b
32
- `,name:"support.type.exception.python"},"builtin-functions":{patterns:[{match:`(?x)
33
- (?<!\\.) \\b(
34
- __import__ | abs | aiter | all | any | anext | ascii | bin
35
- | breakpoint | callable | chr | compile | copyright | credits
36
- | delattr | dir | divmod | enumerate | eval | exec | exit
37
- | filter | format | getattr | globals | hasattr | hash | help
38
- | hex | id | input | isinstance | issubclass | iter | len
39
- | license | locals | map | max | memoryview | min | next
40
- | oct | open | ord | pow | print | quit | range | reload | repr
41
- | reversed | round | setattr | sorted | sum | vars | zip
42
- )\\b
43
- `,name:"support.function.builtin.python"},{match:`(?x)
44
- (?<!\\.) \\b(
45
- file | reduce | intern | raw_input | unicode | cmp | basestring
46
- | execfile | long | xrange
47
- )\\b
48
- `,name:"variable.legacy.builtin.python"}]},"builtin-possible-callables":{patterns:[{include:"#builtin-callables"},{include:"#magic-names"}]},"builtin-types":{match:`(?x)
49
- (?<!\\.) \\b(
50
- __mlir_attr | __mlir_op | __mlir_type | bool | bytearray | bytes | classmethod | complex | dict
51
- | float | frozenset | int | list | object | property
52
- | set | slice | staticmethod | str | tuple | type
53
-
54
- (?# Although 'super' is not a type, it's related to types,
55
- and is special enough to be highlighted differently from
56
- other built-ins)
57
- | super
58
- )\\b
59
- `,name:"support.type.python"},"call-wrapper-inheritance":{begin:`(?x)
60
- \\b(?=
61
- ([[:alpha:]_]\\w*) \\s* (\\()
62
- )
63
- `,comment:"same as a function call, but in inheritance context",end:"(\\))",endCaptures:{1:{name:"punctuation.definition.arguments.end.python"}},name:"meta.function-call.python",patterns:[{include:"#inheritance-name"},{include:"#function-arguments"}]},"class-declaration":{patterns:[{begin:`(?x)
64
- \\s*(class|struct|trait)\\s+
65
- (?=
66
- [[:alpha:]_]\\w* \\s* (:|\\()
67
- )
68
- `,beginCaptures:{1:{name:"storage.type.class.python"}},end:"(:)",endCaptures:{1:{name:"punctuation.section.class.begin.python"}},name:"meta.class.python",patterns:[{include:"#class-name"},{include:"#class-inheritance"}]}]},"class-inheritance":{begin:"(\\()",beginCaptures:{1:{name:"punctuation.definition.inheritance.begin.python"}},end:"(\\))",endCaptures:{1:{name:"punctuation.definition.inheritance.end.python"}},name:"meta.class.inheritance.python",patterns:[{match:"(\\*\\*|\\*)",name:"keyword.operator.unpacking.arguments.python"},{match:",",name:"punctuation.separator.inheritance.python"},{match:"=(?!=)",name:"keyword.operator.assignment.python"},{match:"\\bmetaclass\\b",name:"support.type.metaclass.python"},{include:"#illegal-names"},{include:"#class-kwarg"},{include:"#call-wrapper-inheritance"},{include:"#expression-base"},{include:"#member-access-class"},{include:"#inheritance-identifier"}]},"class-kwarg":{captures:{1:{name:"entity.other.inherited-class.python variable.parameter.class.python"},2:{name:"keyword.operator.assignment.python"}},match:`(?x)
69
- \\b ([[:alpha:]_]\\w*) \\s*(=)(?!=)
70
- `},"class-name":{patterns:[{include:"#illegal-object-name"},{include:"#builtin-possible-callables"},{match:`(?x)
71
- \\b ([[:alpha:]_]\\w*) \\b
72
- `,name:"entity.name.type.class.python"}]},codetags:{captures:{1:{name:"keyword.codetag.notation.python"}},match:"(?:\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\b)"},comments:{patterns:[{begin:`(?x)
73
- (?:
74
- \\# \\s* (type:)
75
- \\s*+ (?# we want \`\\s*+\` which is possessive quantifier since
76
- we do not actually want to backtrack when matching
77
- whitespace here)
78
- (?! $ | \\#)
79
- )
80
- `,beginCaptures:{0:{name:"meta.typehint.comment.python"},1:{name:"comment.typehint.directive.notation.python"}},contentName:"meta.typehint.comment.python",end:"(?:$|(?=\\#))",name:"comment.line.number-sign.python",patterns:[{match:`(?x)
81
- \\G ignore
82
- (?= \\s* (?: $ | \\#))
83
- `,name:"comment.typehint.ignore.notation.python"},{match:`(?x)
84
- (?<!\\.)\\b(
85
- bool | bytes | float | int | object | str
86
- | List | Dict | Iterable | Sequence | Set
87
- | FrozenSet | Callable | Union | Tuple
88
- | Any | None
89
- )\\b
90
- `,name:"comment.typehint.type.notation.python"},{match:"([\\[\\]\\(\\),\\.\\=\\*]|(->))",name:"comment.typehint.punctuation.notation.python"},{match:"([[:alpha:]_]\\w*)",name:"comment.typehint.variable.notation.python"}]},{include:"#comments-base"}]},"comments-base":{begin:"(\\#)",beginCaptures:{1:{name:"punctuation.definition.comment.python"}},end:"($)",name:"comment.line.number-sign.python",patterns:[{include:"#codetags"}]},"comments-string-double-three":{begin:"(\\#)",beginCaptures:{1:{name:"punctuation.definition.comment.python"}},end:'($|(?="""))',name:"comment.line.number-sign.python",patterns:[{include:"#codetags"}]},"comments-string-single-three":{begin:"(\\#)",beginCaptures:{1:{name:"punctuation.definition.comment.python"}},end:"($|(?='''))",name:"comment.line.number-sign.python",patterns:[{include:"#codetags"}]},"curly-braces":{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.dict.begin.python"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.dict.end.python"}},patterns:[{match:":",name:"punctuation.separator.dict.python"},{include:"#expression"}]},decorator:{begin:`(?x)
91
- ^\\s*
92
- ((@)) \\s* (?=[[:alpha:]_]\\w*)
93
- `,beginCaptures:{1:{name:"entity.name.function.decorator.python"},2:{name:"punctuation.definition.decorator.python"}},end:`(?x)
94
- ( \\) )
95
-
96
- (?: (.*?) (?=\\s*(?:\\#|$)) )
97
- | (?=\\n|\\#)
98
- `,endCaptures:{1:{name:"punctuation.definition.arguments.end.python"},2:{name:"invalid.illegal.decorator.python"}},name:"meta.function.decorator.python",patterns:[{include:"#decorator-name"},{include:"#function-arguments"}]},"decorator-name":{patterns:[{include:"#builtin-callables"},{include:"#illegal-object-name"},{captures:{2:{name:"punctuation.separator.period.python"}},match:`(?x)
99
- ([[:alpha:]_]\\w*) | (\\.)
100
- `,name:"entity.name.function.decorator.python"},{include:"#line-continuation"},{captures:{1:{name:"invalid.illegal.decorator.python"}},match:`(?x)
101
- \\s* ([^([:alpha:]\\s_\\.#\\\\] .*?) (?=\\#|$)
102
- `,name:"invalid.illegal.decorator.python"}]},"double-one-regexp-character-set":{patterns:[{match:`(?x)
103
- \\[ \\^? \\] (?! .*?\\])
104
- `},{begin:"(\\[)(\\^)?(\\])?",beginCaptures:{1:{name:"punctuation.character.set.begin.regexp constant.other.set.regexp"},2:{name:"keyword.operator.negation.regexp"},3:{name:"constant.character.set.regexp"}},end:'(\\]|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"punctuation.character.set.end.regexp constant.other.set.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.character.set.regexp",patterns:[{include:"#regexp-charecter-set-escapes"},{match:"[^\\n]",name:"constant.character.set.regexp"}]}]},"double-one-regexp-comments":{begin:"\\(\\?#",beginCaptures:{0:{name:"punctuation.comment.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"punctuation.comment.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"comment.regexp",patterns:[{include:"#codetags"}]},"double-one-regexp-conditional":{begin:"(\\()\\?\\((\\w+(?:\\s+[[:alnum:]]+)?|\\d+)\\)",beginCaptures:{0:{name:"keyword.operator.conditional.regexp"},1:{name:"punctuation.parenthesis.conditional.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-one-regexp-expression"}]},"double-one-regexp-expression":{patterns:[{include:"#regexp-base-expression"},{include:"#double-one-regexp-character-set"},{include:"#double-one-regexp-comments"},{include:"#regexp-flags"},{include:"#double-one-regexp-named-group"},{include:"#regexp-backreference"},{include:"#double-one-regexp-lookahead"},{include:"#double-one-regexp-lookahead-negative"},{include:"#double-one-regexp-lookbehind"},{include:"#double-one-regexp-lookbehind-negative"},{include:"#double-one-regexp-conditional"},{include:"#double-one-regexp-parentheses-non-capturing"},{include:"#double-one-regexp-parentheses"}]},"double-one-regexp-lookahead":{begin:"(\\()\\?=",beginCaptures:{0:{name:"keyword.operator.lookahead.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-one-regexp-expression"}]},"double-one-regexp-lookahead-negative":{begin:"(\\()\\?!",beginCaptures:{0:{name:"keyword.operator.lookahead.negative.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind":{begin:"(\\()\\?<=",beginCaptures:{0:{name:"keyword.operator.lookbehind.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind-negative":{begin:"(\\()\\?<!",beginCaptures:{0:{name:"keyword.operator.lookbehind.negative.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-one-regexp-expression"}]},"double-one-regexp-named-group":{begin:`(?x)
105
- (\\() (\\?P <\\w+(?:\\s+[[:alnum:]]+)?>)
106
- `,beginCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},2:{name:"entity.name.tag.named.group.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.named.regexp",patterns:[{include:"#double-one-regexp-expression"}]},"double-one-regexp-parentheses":{begin:"\\(",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-one-regexp-expression"}]},"double-one-regexp-parentheses-non-capturing":{begin:"\\(\\?:",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},end:'(\\)|(?="))|((?=(?<!\\\\)\\n))',endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-one-regexp-expression"}]},"double-three-regexp-character-set":{patterns:[{match:`(?x)
107
- \\[ \\^? \\] (?! .*?\\])
108
- `},{begin:"(\\[)(\\^)?(\\])?",beginCaptures:{1:{name:"punctuation.character.set.begin.regexp constant.other.set.regexp"},2:{name:"keyword.operator.negation.regexp"},3:{name:"constant.character.set.regexp"}},end:'(\\]|(?="""))',endCaptures:{1:{name:"punctuation.character.set.end.regexp constant.other.set.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.character.set.regexp",patterns:[{include:"#regexp-charecter-set-escapes"},{match:"[^\\n]",name:"constant.character.set.regexp"}]}]},"double-three-regexp-comments":{begin:"\\(\\?#",beginCaptures:{0:{name:"punctuation.comment.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"punctuation.comment.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"comment.regexp",patterns:[{include:"#codetags"}]},"double-three-regexp-conditional":{begin:"(\\()\\?\\((\\w+(?:\\s+[[:alnum:]]+)?|\\d+)\\)",beginCaptures:{0:{name:"keyword.operator.conditional.regexp"},1:{name:"punctuation.parenthesis.conditional.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},"double-three-regexp-expression":{patterns:[{include:"#regexp-base-expression"},{include:"#double-three-regexp-character-set"},{include:"#double-three-regexp-comments"},{include:"#regexp-flags"},{include:"#double-three-regexp-named-group"},{include:"#regexp-backreference"},{include:"#double-three-regexp-lookahead"},{include:"#double-three-regexp-lookahead-negative"},{include:"#double-three-regexp-lookbehind"},{include:"#double-three-regexp-lookbehind-negative"},{include:"#double-three-regexp-conditional"},{include:"#double-three-regexp-parentheses-non-capturing"},{include:"#double-three-regexp-parentheses"},{include:"#comments-string-double-three"}]},"double-three-regexp-lookahead":{begin:"(\\()\\?=",beginCaptures:{0:{name:"keyword.operator.lookahead.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},"double-three-regexp-lookahead-negative":{begin:"(\\()\\?!",beginCaptures:{0:{name:"keyword.operator.lookahead.negative.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},"double-three-regexp-lookbehind":{begin:"(\\()\\?<=",beginCaptures:{0:{name:"keyword.operator.lookbehind.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},"double-three-regexp-lookbehind-negative":{begin:"(\\()\\?<!",beginCaptures:{0:{name:"keyword.operator.lookbehind.negative.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},"double-three-regexp-named-group":{begin:`(?x)
109
- (\\() (\\?P <\\w+(?:\\s+[[:alnum:]]+)?>)
110
- `,beginCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},2:{name:"entity.name.tag.named.group.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.named.regexp",patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},"double-three-regexp-parentheses":{begin:"\\(",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{begin:"\\(\\?:",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},end:'(\\)|(?="""))',endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#double-three-regexp-expression"},{include:"#comments-string-double-three"}]},ellipsis:{match:"\\.\\.\\.",name:"constant.other.ellipsis.python"},"escape-sequence":{match:`(?x)
111
- \\\\ (
112
- x[0-9A-Fa-f]{2}
113
- | [0-7]{1,3}
114
- | [\\\\"'abfnrtv]
115
- )
116
- `,name:"constant.character.escape.python"},"escape-sequence-unicode":{patterns:[{match:`(?x)
117
- \\\\ (
118
- u[0-9A-Fa-f]{4}
119
- | U[0-9A-Fa-f]{8}
120
- | N\\{[\\w\\s]+?\\}
121
- )
122
- `,name:"constant.character.escape.python"}]},expression:{comment:"All valid Python expressions",patterns:[{include:"#expression-base"},{include:"#member-access"},{comment:"Tokenize identifiers to help linters",match:"(?x) \\b ([[:alpha:]_]\\w*) \\b"}]},"expression-bare":{comment:"valid Python expressions w/o comments and line continuation",patterns:[{include:"#backticks"},{include:"#literal"},{include:"#regexp"},{include:"#string"},{include:"#lambda"},{include:"#generator"},{include:"#illegal-operator"},{include:"#operator"},{include:"#curly-braces"},{include:"#item-access"},{include:"#list"},{include:"#odd-function-call"},{include:"#round-braces"},{include:"#function-call"},{include:"#builtin-functions"},{include:"#builtin-types"},{include:"#builtin-exceptions"},{include:"#magic-names"},{include:"#special-names"},{include:"#illegal-names"},{include:"#special-variables"},{include:"#ellipsis"},{include:"#punctuation"},{include:"#line-continuation"}]},"expression-base":{comment:"valid Python expressions with comments and line continuation",patterns:[{include:"#comments"},{include:"#expression-bare"},{include:"#line-continuation"}]},"f-expression":{comment:"All valid Python expressions, except comments and line continuation",patterns:[{include:"#expression-bare"},{include:"#member-access"},{comment:"Tokenize identifiers to help linters",match:"(?x) \\b ([[:alpha:]_]\\w*) \\b"}]},"fregexp-base-expression":{patterns:[{include:"#fregexp-quantifier"},{include:"#fstring-formatting-braces"},{match:"\\{.*?\\}"},{include:"#regexp-base-common"}]},"fregexp-quantifier":{match:`(?x)
123
- \\{\\{(
124
- \\d+ | \\d+,(\\d+)? | ,\\d+
125
- )\\}\\}
126
- `,name:"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{begin:`(\\b[fF])([bBuU])?('''|""")`,beginCaptures:{1:{name:"string.interpolated.python string.quoted.multi.python storage.type.string.python"},2:{name:"invalid.illegal.prefix.python"},3:{name:"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},end:"(\\3)",endCaptures:{1:{name:"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},2:{name:"invalid.illegal.newline.python"}},name:"meta.fstring.python",patterns:[{include:"#fstring-guts"},{include:"#fstring-illegal-multi-brace"},{include:"#fstring-multi-brace"},{include:"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{begin:`(\\b[fF])([bBuU])?((['"]))`,beginCaptures:{1:{name:"string.interpolated.python string.quoted.single.python storage.type.string.python"},2:{name:"invalid.illegal.prefix.python"},3:{name:"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},end:"(\\3)|((?<!\\\\)\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},2:{name:"invalid.illegal.newline.python"}},name:"meta.fstring.python",patterns:[{include:"#fstring-guts"},{include:"#fstring-illegal-single-brace"},{include:"#fstring-single-brace"},{include:"#fstring-single-core"}]},"fstring-formatting":{patterns:[{include:"#fstring-formatting-braces"},{include:"#fstring-formatting-singe-brace"}]},"fstring-formatting-braces":{patterns:[{captures:{1:{name:"constant.character.format.placeholder.other.python"},2:{name:"invalid.illegal.brace.python"},3:{name:"constant.character.format.placeholder.other.python"}},comment:"empty braces are illegal",match:"({)(\\s*?)(})"},{match:"({{|}})",name:"constant.character.escape.python"}]},"fstring-formatting-singe-brace":{match:"(}(?!}))",name:"invalid.illegal.brace.python"},"fstring-guts":{patterns:[{include:"#escape-sequence-unicode"},{include:"#escape-sequence"},{include:"#string-line-continuation"},{include:"#fstring-formatting"}]},"fstring-illegal-multi-brace":{patterns:[{include:"#impossible"}]},"fstring-illegal-single-brace":{begin:"(\\{)(?=[^\\n}]*$\\n?)",beginCaptures:{1:{name:"constant.character.format.placeholder.other.python"}},comment:"it is illegal to have a multiline brace inside a single-line string",end:"(\\})|(?=\\n)",endCaptures:{1:{name:"constant.character.format.placeholder.other.python"}},patterns:[{include:"#fstring-terminator-single"},{include:"#f-expression"}]},"fstring-multi-brace":{begin:"(\\{)",beginCaptures:{1:{name:"constant.character.format.placeholder.other.python"}},comment:"value interpolation using { ... }",end:`(?x)
127
- (\\})
128
- `,endCaptures:{1:{name:"constant.character.format.placeholder.other.python"}},patterns:[{include:"#fstring-terminator-multi"},{include:"#f-expression"}]},"fstring-multi-core":{match:`(?x)
129
- (.+?)
130
- (
131
- (?# .* and .*? in multi-line match need special handling of
132
- newlines otherwise SublimeText and Atom will match slightly
133
- differently.
134
-
135
- The guard for newlines has to be separate from the
136
- lookahead because of special $ matching rule.)
137
- ($\\n?)
138
- |
139
- (?=[\\\\\\}\\{]|'''|""")
140
- )
141
- (?# due to how multiline regexps are matched we need a special case
142
- for matching a newline character)
143
- | \\n
144
- `,name:"string.interpolated.python string.quoted.multi.python"},"fstring-normf-quoted-multi-line":{begin:`(\\b[bBuU])([fF])('''|""")`,beginCaptures:{1:{name:"invalid.illegal.prefix.python"},2:{name:"string.interpolated.python string.quoted.multi.python storage.type.string.python"},3:{name:"punctuation.definition.string.begin.python string.quoted.multi.python"}},end:"(\\3)",endCaptures:{1:{name:"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},2:{name:"invalid.illegal.newline.python"}},name:"meta.fstring.python",patterns:[{include:"#fstring-guts"},{include:"#fstring-illegal-multi-brace"},{include:"#fstring-multi-brace"},{include:"#fstring-multi-core"}]},"fstring-normf-quoted-single-line":{begin:`(\\b[bBuU])([fF])((['"]))`,beginCaptures:{1:{name:"invalid.illegal.prefix.python"},2:{name:"string.interpolated.python string.quoted.single.python storage.type.string.python"},3:{name:"punctuation.definition.string.begin.python string.quoted.single.python"}},end:"(\\3)|((?<!\\\\)\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},2:{name:"invalid.illegal.newline.python"}},name:"meta.fstring.python",patterns:[{include:"#fstring-guts"},{include:"#fstring-illegal-single-brace"},{include:"#fstring-single-brace"},{include:"#fstring-single-core"}]},"fstring-raw-guts":{patterns:[{include:"#string-consume-escape"},{include:"#fstring-formatting"}]},"fstring-raw-multi-core":{match:`(?x)
145
- (.+?)
146
- (
147
- (?# .* and .*? in multi-line match need special handling of
148
- newlines otherwise SublimeText and Atom will match slightly
149
- differently.
150
-
151
- The guard for newlines has to be separate from the
152
- lookahead because of special $ matching rule.)
153
- ($\\n?)
154
- |
155
- (?=[\\\\\\}\\{]|'''|""")
156
- )
157
- (?# due to how multiline regexps are matched we need a special case
158
- for matching a newline character)
159
- | \\n
160
- `,name:"string.interpolated.python string.quoted.raw.multi.python"},"fstring-raw-quoted-multi-line":{begin:`(\\b(?:[rR][fF]|[fF][rR]))('''|""")`,beginCaptures:{1:{name:"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python"},2:{name:"punctuation.definition.string.begin.python string.quoted.raw.multi.python"}},end:"(\\2)",endCaptures:{1:{name:"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python"},2:{name:"invalid.illegal.newline.python"}},name:"meta.fstring.python",patterns:[{include:"#fstring-raw-guts"},{include:"#fstring-illegal-multi-brace"},{include:"#fstring-multi-brace"},{include:"#fstring-raw-multi-core"}]},"fstring-raw-quoted-single-line":{begin:`(\\b(?:[rR][fF]|[fF][rR]))((['"]))`,beginCaptures:{1:{name:"string.interpolated.python string.quoted.raw.single.python storage.type.string.python"},2:{name:"punctuation.definition.string.begin.python string.quoted.raw.single.python"}},end:"(\\2)|((?<!\\\\)\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python"},2:{name:"invalid.illegal.newline.python"}},name:"meta.fstring.python",patterns:[{include:"#fstring-raw-guts"},{include:"#fstring-illegal-single-brace"},{include:"#fstring-single-brace"},{include:"#fstring-raw-single-core"}]},"fstring-raw-single-core":{match:`(?x)
161
- (.+?)
162
- (
163
- (?# .* and .*? in multi-line match need special handling of
164
- newlines otherwise SublimeText and Atom will match slightly
165
- differently.
166
-
167
- The guard for newlines has to be separate from the
168
- lookahead because of special $ matching rule.)
169
- ($\\n?)
170
- |
171
- (?=[\\\\\\}\\{]|(['"])|((?<!\\\\)\\n))
172
- )
173
- (?# due to how multiline regexps are matched we need a special case
174
- for matching a newline character)
175
- | \\n
176
- `,name:"string.interpolated.python string.quoted.raw.single.python"},"fstring-single-brace":{begin:"(\\{)",beginCaptures:{1:{name:"constant.character.format.placeholder.other.python"}},comment:"value interpolation using { ... }",end:`(?x)
177
- (\\})|(?=\\n)
178
- `,endCaptures:{1:{name:"constant.character.format.placeholder.other.python"}},patterns:[{include:"#fstring-terminator-single"},{include:"#f-expression"}]},"fstring-single-core":{match:`(?x)
179
- (.+?)
180
- (
181
- (?# .* and .*? in multi-line match need special handling of
182
- newlines otherwise SublimeText and Atom will match slightly
183
- differently.
184
-
185
- The guard for newlines has to be separate from the
186
- lookahead because of special $ matching rule.)
187
- ($\\n?)
188
- |
189
- (?=[\\\\\\}\\{]|(['"])|((?<!\\\\)\\n))
190
- )
191
- (?# due to how multiline regexps are matched we need a special case
192
- for matching a newline character)
193
- | \\n
194
- `,name:"string.interpolated.python string.quoted.single.python"},"fstring-terminator-multi":{patterns:[{match:"(=(![rsa])?)(?=})",name:"storage.type.format.python"},{match:"(=?![rsa])(?=})",name:"storage.type.format.python"},{captures:{1:{name:"storage.type.format.python"},2:{name:"storage.type.format.python"}},match:`(?x)
195
- ( (?: =?) (?: ![rsa])? )
196
- ( : \\w? [<>=^]? [-+ ]? \\#?
197
- \\d* ,? (\\.\\d+)? [bcdeEfFgGnosxX%]? )(?=})
198
- `},{include:"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{begin:"((?:=?)(?:![rsa])?)(:)(?=.*?{)",beginCaptures:{1:{name:"storage.type.format.python"},2:{name:"storage.type.format.python"}},end:"(?=})",patterns:[{include:"#fstring-illegal-multi-brace"},{include:"#fstring-multi-brace"},{match:"([bcdeEfFgGnosxX%])(?=})",name:"storage.type.format.python"},{match:"(\\.\\d+)",name:"storage.type.format.python"},{match:"(,)",name:"storage.type.format.python"},{match:"(\\d+)",name:"storage.type.format.python"},{match:"(\\#)",name:"storage.type.format.python"},{match:"([-+ ])",name:"storage.type.format.python"},{match:"([<>=^])",name:"storage.type.format.python"},{match:"(\\w)",name:"storage.type.format.python"}]},"fstring-terminator-single":{patterns:[{match:"(=(![rsa])?)(?=})",name:"storage.type.format.python"},{match:"(=?![rsa])(?=})",name:"storage.type.format.python"},{captures:{1:{name:"storage.type.format.python"},2:{name:"storage.type.format.python"}},match:`(?x)
199
- ( (?: =?) (?: ![rsa])? )
200
- ( : \\w? [<>=^]? [-+ ]? \\#?
201
- \\d* ,? (\\.\\d+)? [bcdeEfFgGnosxX%]? )(?=})
202
- `},{include:"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{begin:"((?:=?)(?:![rsa])?)(:)(?=.*?{)",beginCaptures:{1:{name:"storage.type.format.python"},2:{name:"storage.type.format.python"}},end:"(?=})|(?=\\n)",patterns:[{include:"#fstring-illegal-single-brace"},{include:"#fstring-single-brace"},{match:"([bcdeEfFgGnosxX%])(?=})",name:"storage.type.format.python"},{match:"(\\.\\d+)",name:"storage.type.format.python"},{match:"(,)",name:"storage.type.format.python"},{match:"(\\d+)",name:"storage.type.format.python"},{match:"(\\#)",name:"storage.type.format.python"},{match:"([-+ ])",name:"storage.type.format.python"},{match:"([<>=^])",name:"storage.type.format.python"},{match:"(\\w)",name:"storage.type.format.python"}]},"function-arguments":{begin:"(\\()",beginCaptures:{1:{name:"punctuation.definition.arguments.begin.python"}},contentName:"meta.function-call.arguments.python",end:"(?=\\))(?!\\)\\s*\\()",patterns:[{match:"(,)",name:"punctuation.separator.arguments.python"},{captures:{1:{name:"keyword.operator.unpacking.arguments.python"}},match:`(?x)
203
- (?:(?<=[,(])|^) \\s* (\\*{1,2})
204
- `},{include:"#lambda-incomplete"},{include:"#illegal-names"},{captures:{1:{name:"variable.parameter.function-call.python"},2:{name:"keyword.operator.assignment.python"}},match:"\\b([[:alpha:]_]\\w*)\\s*(=)(?!=)"},{match:"=(?!=)",name:"keyword.operator.assignment.python"},{include:"#expression"},{captures:{1:{name:"punctuation.definition.arguments.end.python"},2:{name:"punctuation.definition.arguments.begin.python"}},match:"\\s*(\\))\\s*(\\()"}]},"function-call":{begin:`(?x)
205
- \\b(?=
206
- ([[:alpha:]_]\\w*) \\s* (\\()
207
- )
208
- `,comment:'Regular function call of the type "name(args)"',end:"(\\))",endCaptures:{1:{name:"punctuation.definition.arguments.end.python"}},name:"meta.function-call.python",patterns:[{include:"#special-variables"},{include:"#function-name"},{include:"#function-arguments"}]},"function-declaration":{begin:`(?x)
209
- \\s*
210
- (?:\\b(async) \\s+)? \\b(def|fn)\\s+
211
- (?=
212
- [[:alpha:]_][[:word:]]* \\s* [\\(\\[]
213
- )
214
- `,beginCaptures:{1:{name:"storage.type.function.async.python"},2:{name:"storage.type.function.python"}},end:`(:|(?=[#'"\\n]))`,endCaptures:{1:{name:"punctuation.section.function.begin.python"}},name:"meta.function.python",patterns:[{include:"#function-modifier"},{include:"#function-def-name"},{include:"#parameters"},{include:"#meta_parameters"},{include:"#line-continuation"},{include:"#return-annotation"}]},"function-def-name":{patterns:[{include:"#illegal-object-name"},{include:"#builtin-possible-callables"},{match:`(?x)
215
- \\b ([[:alpha:]_]\\w*) \\b
216
- `,name:"entity.name.function.python"}]},"function-modifier":{match:"(raises|capturing)",name:"storage.modifier"},"function-name":{patterns:[{include:"#builtin-possible-callables"},{comment:"Some color schemas support meta.function-call.generic scope",match:`(?x)
217
- \\b ([[:alpha:]_]\\w*) \\b
218
- `,name:"meta.function-call.generic.python"}]},generator:{begin:"\\bfor\\b",beginCaptures:{0:{name:"keyword.control.flow.python"}},comment:`Match "for ... in" construct used in generators and for loops to
219
- correctly identify the "in" as a control flow keyword.
220
- `,end:"\\bin\\b",endCaptures:{0:{name:"keyword.control.flow.python"}},patterns:[{include:"#expression"}]},"illegal-names":{captures:{1:{name:"keyword.control.flow.python"},2:{name:"storage.type.function.python"},3:{name:"keyword.control.import.python"}},match:`(?x)
221
- \\b(?:
222
- (
223
- and | assert | async | await | break | class | struct | trait | continue | del | elif | else | except | finally | for | from | global
224
- | if | in | is | (?<=\\.)lambda | lambda(?=\\s*[\\.=])
225
- | nonlocal | not | or | pass | raise | return | try | while | with
226
- | yield
227
- ) | (def | fn | capturing | raises) | (
228
- as | import
229
- )
230
- )\\b
231
- `},"illegal-object-name":{comment:`It's illegal to name class or function "True"`,match:"\\b(True|False|None)\\b",name:"keyword.illegal.name.python"},"illegal-operator":{patterns:[{match:"&&|\\|\\||--|\\+\\+",name:"invalid.illegal.operator.python"},{match:"[?$]",name:"invalid.illegal.operator.python"},{comment:"We don't want `!` to flash when we're typing `!=`",match:"!\\b",name:"invalid.illegal.operator.python"}]},import:{comment:"Import statements used to correctly mark `from`, `import`, and `as`\n",patterns:[{begin:"\\b(?<!\\.)(from)\\b(?=.+import)",beginCaptures:{1:{name:"keyword.control.import.python"}},end:"$|(?=import)",patterns:[{match:"\\.+",name:"punctuation.separator.period.python"},{include:"#expression"}]},{begin:"\\b(?<!\\.)(import)\\b",beginCaptures:{1:{name:"keyword.control.import.python"}},end:"$",patterns:[{match:"\\b(?<!\\.)as\\b",name:"keyword.control.import.python"},{include:"#expression"}]}]},impossible:{comment:"This is a special rule that should be used where no match is desired. It is not a good idea to match something like '1{0}' because in some cases that can result in infinite loops in token generation. So the rule instead matches and impossible expression to allow a match to fail and move to the next token.",match:"$.^"},"inheritance-identifier":{captures:{1:{name:"entity.other.inherited-class.python"}},match:`(?x)
232
- \\b ([[:alpha:]_]\\w*) \\b
233
- `},"inheritance-name":{patterns:[{include:"#lambda-incomplete"},{include:"#builtin-possible-callables"},{include:"#inheritance-identifier"}]},"item-access":{patterns:[{begin:`(?x)
234
- \\b(?=
235
- [[:alpha:]_]\\w* \\s* \\[
236
- )
237
- `,end:"(\\])",endCaptures:{1:{name:"punctuation.definition.arguments.end.python"}},name:"meta.item-access.python",patterns:[{include:"#item-name"},{include:"#item-index"},{include:"#expression"}]}]},"item-index":{begin:"(\\[)",beginCaptures:{1:{name:"punctuation.definition.arguments.begin.python"}},contentName:"meta.item-access.arguments.python",end:"(?=\\])",patterns:[{match:":",name:"punctuation.separator.slice.python"},{include:"#expression"}]},"item-name":{patterns:[{include:"#special-variables"},{include:"#builtin-functions"},{include:"#special-names"},{match:`(?x)
238
- \\b ([[:alpha:]_]\\w*) \\b
239
- `,name:"meta.indexed-name.python"}]},lambda:{patterns:[{captures:{1:{name:"keyword.control.flow.python"}},match:"((?<=\\.)lambda|lambda(?=\\s*[\\.=]))"},{captures:{1:{name:"storage.type.function.lambda.python"}},match:"\\b(lambda)\\s*?(?=[,\\n]|$)"},{begin:`(?x)
240
- \\b (lambda) \\b
241
- `,beginCaptures:{1:{name:"storage.type.function.lambda.python"}},contentName:"meta.function.lambda.parameters.python",end:"(:)|(\\n)",endCaptures:{1:{name:"punctuation.section.function.lambda.begin.python"}},name:"meta.lambda-function.python",patterns:[{match:"\\b(owned|borrowed|inout)\\b",name:"storage.modifier"},{match:"/",name:"keyword.operator.positional.parameter.python"},{match:"(\\*\\*|\\*)",name:"keyword.operator.unpacking.parameter.python"},{include:"#lambda-nested-incomplete"},{include:"#illegal-names"},{captures:{1:{name:"variable.parameter.function.language.python"},2:{name:"punctuation.separator.parameters.python"}},match:"([[:alpha:]_]\\w*)\\s*(?:(,)|(?=:|$))"},{include:"#comments"},{include:"#backticks"},{include:"#lambda-parameter-with-default"},{include:"#line-continuation"},{include:"#illegal-operator"}]}]},"lambda-incomplete":{match:"\\blambda(?=\\s*[,)])",name:"storage.type.function.lambda.python"},"lambda-nested-incomplete":{match:"\\blambda(?=\\s*[:,)])",name:"storage.type.function.lambda.python"},"lambda-parameter-with-default":{begin:`(?x)
242
- \\b
243
- ([[:alpha:]_]\\w*) \\s* (=)
244
- `,beginCaptures:{1:{name:"variable.parameter.function.language.python"},2:{name:"keyword.operator.python"}},end:"(,)|(?=:|$)",endCaptures:{1:{name:"punctuation.separator.parameters.python"}},patterns:[{include:"#expression"}]},"line-continuation":{patterns:[{captures:{1:{name:"punctuation.separator.continuation.line.python"},2:{name:"invalid.illegal.line.continuation.python"}},match:"(\\\\)\\s*(\\S.*$\\n?)"},{begin:"(\\\\)\\s*$\\n?",beginCaptures:{1:{name:"punctuation.separator.continuation.line.python"}},end:`(?x)
245
- (?=^\\s*$)
246
- |
247
- (?! (\\s* [rR]? (\\'\\'\\'|\\"\\"\\"|\\'|\\"))
248
- |
249
- (\\G $) (?# '\\G' is necessary for ST)
250
- )
251
- `,patterns:[{include:"#regexp"},{include:"#string"}]}]},list:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.list.begin.python"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.list.end.python"}},patterns:[{include:"#expression"}]},literal:{patterns:[{match:"\\b(True|False|None|NotImplemented|Ellipsis)\\b",name:"constant.language.python"},{include:"#number"}]},"loose-default":{begin:"(=)",beginCaptures:{1:{name:"keyword.operator.python"}},end:"(,)|(?=\\))",endCaptures:{1:{name:"punctuation.separator.parameters.python"}},patterns:[{include:"#expression"}]},"magic-function-names":{captures:{1:{name:"support.function.magic.python"}},comment:`these methods have magic interpretation by python and are generally called
252
- indirectly through syntactic constructs
253
- `,match:`(?x)
254
- \\b(
255
- __(?:
256
- abs | add | aenter | aexit | aiter | and | anext
257
- | await | bool | call | ceil | class_getitem
258
- | cmp | coerce | complex | contains | copy
259
- | deepcopy | del | delattr | delete | delitem
260
- | delslice | dir | div | divmod | enter | eq
261
- | exit | float | floor | floordiv | format | ge
262
- | get | getattr | getattribute | getinitargs
263
- | getitem | getnewargs | getslice | getstate | gt
264
- | hash | hex | iadd | iand | idiv | ifloordiv |
265
- | ilshift | imod | imul | index | init
266
- | instancecheck | int | invert | ior | ipow
267
- | irshift | isub | iter | itruediv | ixor | le
268
- | len | long | lshift | lt | missing | mod | mul
269
- | ne | neg | new | next | nonzero | oct | or | pos
270
- | pow | radd | rand | rdiv | rdivmod | reduce
271
- | reduce_ex | repr | reversed | rfloordiv |
272
- | rlshift | rmod | rmul | ror | round | rpow
273
- | rrshift | rshift | rsub | rtruediv | rxor | set
274
- | setattr | setitem | set_name | setslice
275
- | setstate | sizeof | str | sub | subclasscheck
276
- | truediv | trunc | unicode | xor | matmul
277
- | rmatmul | imatmul | init_subclass | set_name
278
- | fspath | bytes | prepare | length_hint
279
- )__
280
- )\\b
281
- `},"magic-names":{patterns:[{include:"#magic-function-names"},{include:"#magic-variable-names"}]},"magic-variable-names":{captures:{1:{name:"support.variable.magic.python"}},comment:"magic variables which a class/module may have.",match:`(?x)
282
- \\b(
283
- __(?:
284
- all | annotations | bases | builtins | class
285
- | struct
286
- | trait
287
- | closure | code | debug | defaults | dict | doc | file | func
288
- | globals | kwdefaults | match_args | members | metaclass | methods
289
- | module | mro | mro_entries | name | qualname | post_init | self
290
- | signature | slots | subclasses | version | weakref | wrapped
291
- | classcell | spec | path | package | future | traceback
292
- )__
293
- )\\b
294
- `},"member-access":{begin:"(\\.)\\s*(?!\\.)",beginCaptures:{1:{name:"punctuation.separator.period.python"}},end:`(?x)
295
-
296
-
297
- (?<=\\S)(?=\\W) |
298
-
299
-
300
- (^|(?<=\\s))(?=[^\\\\\\w\\s]) |
301
- $
302
- `,name:"meta.member.access.python",patterns:[{include:"#function-call"},{include:"#member-access-base"},{include:"#member-access-attribute"}]},"member-access-attribute":{comment:"Highlight attribute access in otherwise non-specialized cases.",match:`(?x)
303
- \\b ([[:alpha:]_]\\w*) \\b
304
- `,name:"meta.attribute.python"},"member-access-base":{patterns:[{include:"#magic-names"},{include:"#illegal-names"},{include:"#illegal-object-name"},{include:"#special-names"},{include:"#line-continuation"},{include:"#item-access"}]},"member-access-class":{begin:"(\\.)\\s*(?!\\.)",beginCaptures:{1:{name:"punctuation.separator.period.python"}},end:"(?<=\\S)(?=\\W)|$",name:"meta.member.access.python",patterns:[{include:"#call-wrapper-inheritance"},{include:"#member-access-base"},{include:"#inheritance-identifier"}]},meta_parameters:{begin:"(\\[)",beginCaptures:{1:{name:"punctuation.definition.parameters.begin.python"}},end:"(\\])",endCaptures:{1:{name:"punctuation.definition.parameters.end.python"}},name:"meta.function.parameters.python",patterns:[{begin:`(?x)
305
- \\b
306
- ([[:alpha:]_]\\w*) \\s* (:)
307
- `,beginCaptures:{1:{name:"variable.parameter.function.language.python"},2:{name:"punctuation.separator.annotation.python"}},end:"(,)|(?=\\])",endCaptures:{1:{name:"punctuation.separator.parameters.python"}},patterns:[{include:"#expression"}]},{include:"#comments"}]},number:{name:"constant.numeric.python",patterns:[{include:"#number-float"},{include:"#number-dec"},{include:"#number-hex"},{include:"#number-oct"},{include:"#number-bin"},{include:"#number-long"},{match:"\\b[0-9]+\\w+",name:"invalid.illegal.name.python"}]},"number-bin":{captures:{1:{name:"storage.type.number.python"}},match:`(?x)
308
- (?<![\\w\\.])
309
- (0[bB]) (_?[01])+
310
- \\b
311
- `,name:"constant.numeric.bin.python"},"number-dec":{captures:{1:{name:"storage.type.imaginary.number.python"},2:{name:"invalid.illegal.dec.python"}},match:`(?x)
312
- (?<![\\w\\.])(?:
313
- [1-9](?: _?[0-9] )*
314
- |
315
- 0+
316
- |
317
- [0-9](?: _?[0-9] )* ([jJ])
318
- |
319
- 0 ([0-9]+)(?![eE\\.])
320
- )\\b
321
- `,name:"constant.numeric.dec.python"},"number-float":{captures:{1:{name:"storage.type.imaginary.number.python"}},match:`(?x)
322
- (?<! \\w)(?:
323
- (?:
324
- \\.[0-9](?: _?[0-9] )*
325
- |
326
- [0-9](?: _?[0-9] )* \\. [0-9](?: _?[0-9] )*
327
- |
328
- [0-9](?: _?[0-9] )* \\.
329
- ) (?: [eE][+-]?[0-9](?: _?[0-9] )* )?
330
- |
331
- [0-9](?: _?[0-9] )* (?: [eE][+-]?[0-9](?: _?[0-9] )* )
332
- )([jJ])?\\b
333
- `,name:"constant.numeric.float.python"},"number-hex":{captures:{1:{name:"storage.type.number.python"}},match:`(?x)
334
- (?<![\\w\\.])
335
- (0[xX]) (_?[0-9a-fA-F])+
336
- \\b
337
- `,name:"constant.numeric.hex.python"},"number-long":{captures:{2:{name:"storage.type.number.python"}},comment:"this is to support python2 syntax for long ints",match:`(?x)
338
- (?<![\\w\\.])
339
- ([1-9][0-9]* | 0) ([lL])
340
- \\b
341
- `,name:"constant.numeric.bin.python"},"number-oct":{captures:{1:{name:"storage.type.number.python"}},match:`(?x)
342
- (?<![\\w\\.])
343
- (0[oO]) (_?[0-7])+
344
- \\b
345
- `,name:"constant.numeric.oct.python"},"odd-function-call":{begin:`(?x)
346
- (?<= \\] | \\) ) \\s*
347
- (?=\\()
348
- `,comment:`A bit obscured function call where there may have been an
349
- arbitrary number of other operations to get the function.
350
- E.g. "arr[idx](args)"
351
- `,end:"(\\))",endCaptures:{1:{name:"punctuation.definition.arguments.end.python"}},patterns:[{include:"#function-arguments"}]},operator:{captures:{1:{name:"keyword.operator.logical.python"},2:{name:"keyword.control.flow.python"},3:{name:"keyword.operator.bitwise.python"},4:{name:"keyword.operator.arithmetic.python"},5:{name:"keyword.operator.comparison.python"},6:{name:"keyword.operator.assignment.python"}},match:`(?x)
352
- \\b(?<!\\.)
353
- (?:
354
- (and | or | not | in | is) (?# 1)
355
- |
356
- (for | if | else | await | (?:yield(?:\\s+from)?)) (?# 2)
357
- )
358
- (?!\\s*:)\\b
359
-
360
- | (<< | >> | & | \\| | \\^ | ~) (?# 3)
361
-
362
- | (\\*\\* | \\* | \\+ | - | % | // | / | @) (?# 4)
363
-
364
- | (!= | == | >= | <= | < | >) (?# 5)
365
-
366
- | (:=) (?# 6)
367
- `},"parameter-special":{captures:{1:{name:"variable.parameter.function.language.python"},2:{name:"variable.parameter.function.language.special.self.python"},3:{name:"variable.parameter.function.language.special.cls.python"},4:{name:"punctuation.separator.parameters.python"}},match:`(?x)
368
- \\b ((self)|(cls)) \\b \\s*(?:(,)|(?=\\)))
369
- `},parameters:{begin:"(\\()",beginCaptures:{1:{name:"punctuation.definition.parameters.begin.python"}},end:"(\\))",endCaptures:{1:{name:"punctuation.definition.parameters.end.python"}},name:"meta.function.parameters.python",patterns:[{match:"\\b(owned|borrowed|inout)\\b",name:"storage.modifier"},{match:"/",name:"keyword.operator.positional.parameter.python"},{match:"(\\*\\*|\\*)",name:"keyword.operator.unpacking.parameter.python"},{include:"#lambda-incomplete"},{include:"#illegal-names"},{include:"#illegal-object-name"},{include:"#parameter-special"},{captures:{1:{name:"variable.parameter.function.language.python"},2:{name:"punctuation.separator.parameters.python"}},match:`(?x)
370
- ([[:alpha:]_]\\w*)
371
- \\s* (?: (,) | (?=[)#\\n=]))
372
- `},{include:"#comments"},{include:"#loose-default"},{include:"#annotated-parameter"}]},punctuation:{patterns:[{match:":",name:"punctuation.separator.colon.python"},{match:",",name:"punctuation.separator.element.python"}]},regexp:{patterns:[{include:"#regexp-single-three-line"},{include:"#regexp-double-three-line"},{include:"#regexp-single-one-line"},{include:"#regexp-double-one-line"}]},"regexp-backreference":{captures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},2:{name:"entity.name.tag.named.backreference.regexp"},3:{name:"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},match:`(?x)
373
- (\\() (\\?P= \\w+(?:\\s+[[:alnum:]]+)?) (\\))
374
- `,name:"meta.backreference.named.regexp"},"regexp-backreference-number":{captures:{1:{name:"entity.name.tag.backreference.regexp"}},match:"(\\\\[1-9]\\d?)",name:"meta.backreference.regexp"},"regexp-base-common":{patterns:[{match:"\\.",name:"support.other.match.any.regexp"},{match:"\\^",name:"support.other.match.begin.regexp"},{match:"\\$",name:"support.other.match.end.regexp"},{match:"[+*?]\\??",name:"keyword.operator.quantifier.regexp"},{match:"\\|",name:"keyword.operator.disjunction.regexp"},{include:"#regexp-escape-sequence"}]},"regexp-base-expression":{patterns:[{include:"#regexp-quantifier"},{include:"#regexp-base-common"}]},"regexp-charecter-set-escapes":{patterns:[{match:"\\\\[abfnrtv\\\\]",name:"constant.character.escape.regexp"},{include:"#regexp-escape-special"},{match:"\\\\([0-7]{1,3})",name:"constant.character.escape.regexp"},{include:"#regexp-escape-character"},{include:"#regexp-escape-unicode"},{include:"#regexp-escape-catchall"}]},"regexp-double-one-line":{begin:'\\b(([uU]r)|([bB]r)|(r[bB]?))(")',beginCaptures:{2:{name:"invalid.deprecated.prefix.python"},3:{name:"storage.type.string.python"},4:{name:"storage.type.string.python"},5:{name:"punctuation.definition.string.begin.python"}},end:'(")|(?<!\\\\)(\\n)',endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.regexp.quoted.single.python",patterns:[{include:"#double-one-regexp-expression"}]},"regexp-double-three-line":{begin:'\\b(([uU]r)|([bB]r)|(r[bB]?))(""")',beginCaptures:{2:{name:"invalid.deprecated.prefix.python"},3:{name:"storage.type.string.python"},4:{name:"storage.type.string.python"},5:{name:"punctuation.definition.string.begin.python"}},end:'(""")',endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.regexp.quoted.multi.python",patterns:[{include:"#double-three-regexp-expression"}]},"regexp-escape-catchall":{match:"\\\\(.|\\n)",name:"constant.character.escape.regexp"},"regexp-escape-character":{match:`(?x)
375
- \\\\ (
376
- x[0-9A-Fa-f]{2}
377
- | 0[0-7]{1,2}
378
- | [0-7]{3}
379
- )
380
- `,name:"constant.character.escape.regexp"},"regexp-escape-sequence":{patterns:[{include:"#regexp-escape-special"},{include:"#regexp-escape-character"},{include:"#regexp-escape-unicode"},{include:"#regexp-backreference-number"},{include:"#regexp-escape-catchall"}]},"regexp-escape-special":{match:"\\\\([AbBdDsSwWZ])",name:"support.other.escape.special.regexp"},"regexp-escape-unicode":{match:`(?x)
381
- \\\\ (
382
- u[0-9A-Fa-f]{4}
383
- | U[0-9A-Fa-f]{8}
384
- )
385
- `,name:"constant.character.unicode.regexp"},"regexp-flags":{match:"\\(\\?[aiLmsux]+\\)",name:"storage.modifier.flag.regexp"},"regexp-quantifier":{match:`(?x)
386
- \\{(
387
- \\d+ | \\d+,(\\d+)? | ,\\d+
388
- )\\}
389
- `,name:"keyword.operator.quantifier.regexp"},"regexp-single-one-line":{begin:"\\b(([uU]r)|([bB]r)|(r[bB]?))(\\')",beginCaptures:{2:{name:"invalid.deprecated.prefix.python"},3:{name:"storage.type.string.python"},4:{name:"storage.type.string.python"},5:{name:"punctuation.definition.string.begin.python"}},end:"(\\')|(?<!\\\\)(\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.regexp.quoted.single.python",patterns:[{include:"#single-one-regexp-expression"}]},"regexp-single-three-line":{begin:"\\b(([uU]r)|([bB]r)|(r[bB]?))(\\'\\'\\')",beginCaptures:{2:{name:"invalid.deprecated.prefix.python"},3:{name:"storage.type.string.python"},4:{name:"storage.type.string.python"},5:{name:"punctuation.definition.string.begin.python"}},end:"(\\'\\'\\')",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.regexp.quoted.multi.python",patterns:[{include:"#single-three-regexp-expression"}]},"return-annotation":{begin:"(->)",beginCaptures:{1:{name:"punctuation.separator.annotation.result.python"}},end:"(?=:)",patterns:[{include:"#expression"}]},"round-braces":{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.begin.python"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.end.python"}},patterns:[{include:"#expression"}]},semicolon:{patterns:[{match:"\\;$",name:"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{patterns:[{match:`(?x)
390
- \\[ \\^? \\] (?! .*?\\])
391
- `},{begin:"(\\[)(\\^)?(\\])?",beginCaptures:{1:{name:"punctuation.character.set.begin.regexp constant.other.set.regexp"},2:{name:"keyword.operator.negation.regexp"},3:{name:"constant.character.set.regexp"}},end:"(\\]|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"punctuation.character.set.end.regexp constant.other.set.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.character.set.regexp",patterns:[{include:"#regexp-charecter-set-escapes"},{match:"[^\\n]",name:"constant.character.set.regexp"}]}]},"single-one-regexp-comments":{begin:"\\(\\?#",beginCaptures:{0:{name:"punctuation.comment.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"punctuation.comment.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"comment.regexp",patterns:[{include:"#codetags"}]},"single-one-regexp-conditional":{begin:"(\\()\\?\\((\\w+(?:\\s+[[:alnum:]]+)?|\\d+)\\)",beginCaptures:{0:{name:"keyword.operator.conditional.regexp"},1:{name:"punctuation.parenthesis.conditional.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-one-regexp-expression"}]},"single-one-regexp-expression":{patterns:[{include:"#regexp-base-expression"},{include:"#single-one-regexp-character-set"},{include:"#single-one-regexp-comments"},{include:"#regexp-flags"},{include:"#single-one-regexp-named-group"},{include:"#regexp-backreference"},{include:"#single-one-regexp-lookahead"},{include:"#single-one-regexp-lookahead-negative"},{include:"#single-one-regexp-lookbehind"},{include:"#single-one-regexp-lookbehind-negative"},{include:"#single-one-regexp-conditional"},{include:"#single-one-regexp-parentheses-non-capturing"},{include:"#single-one-regexp-parentheses"}]},"single-one-regexp-lookahead":{begin:"(\\()\\?=",beginCaptures:{0:{name:"keyword.operator.lookahead.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-one-regexp-expression"}]},"single-one-regexp-lookahead-negative":{begin:"(\\()\\?!",beginCaptures:{0:{name:"keyword.operator.lookahead.negative.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind":{begin:"(\\()\\?<=",beginCaptures:{0:{name:"keyword.operator.lookbehind.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind-negative":{begin:"(\\()\\?<!",beginCaptures:{0:{name:"keyword.operator.lookbehind.negative.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-one-regexp-expression"}]},"single-one-regexp-named-group":{begin:`(?x)
392
- (\\() (\\?P <\\w+(?:\\s+[[:alnum:]]+)?>)
393
- `,beginCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},2:{name:"entity.name.tag.named.group.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.named.regexp",patterns:[{include:"#single-one-regexp-expression"}]},"single-one-regexp-parentheses":{begin:"\\(",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-one-regexp-expression"}]},"single-one-regexp-parentheses-non-capturing":{begin:"\\(\\?:",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},end:"(\\)|(?=\\'))|((?=(?<!\\\\)\\n))",endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-one-regexp-expression"}]},"single-three-regexp-character-set":{patterns:[{match:`(?x)
394
- \\[ \\^? \\] (?! .*?\\])
395
- `},{begin:"(\\[)(\\^)?(\\])?",beginCaptures:{1:{name:"punctuation.character.set.begin.regexp constant.other.set.regexp"},2:{name:"keyword.operator.negation.regexp"},3:{name:"constant.character.set.regexp"}},end:"(\\]|(?=\\'\\'\\'))",endCaptures:{1:{name:"punctuation.character.set.end.regexp constant.other.set.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.character.set.regexp",patterns:[{include:"#regexp-charecter-set-escapes"},{match:"[^\\n]",name:"constant.character.set.regexp"}]}]},"single-three-regexp-comments":{begin:"\\(\\?#",beginCaptures:{0:{name:"punctuation.comment.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"punctuation.comment.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"comment.regexp",patterns:[{include:"#codetags"}]},"single-three-regexp-conditional":{begin:"(\\()\\?\\((\\w+(?:\\s+[[:alnum:]]+)?|\\d+)\\)",beginCaptures:{0:{name:"keyword.operator.conditional.regexp"},1:{name:"punctuation.parenthesis.conditional.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"single-three-regexp-expression":{patterns:[{include:"#regexp-base-expression"},{include:"#single-three-regexp-character-set"},{include:"#single-three-regexp-comments"},{include:"#regexp-flags"},{include:"#single-three-regexp-named-group"},{include:"#regexp-backreference"},{include:"#single-three-regexp-lookahead"},{include:"#single-three-regexp-lookahead-negative"},{include:"#single-three-regexp-lookbehind"},{include:"#single-three-regexp-lookbehind-negative"},{include:"#single-three-regexp-conditional"},{include:"#single-three-regexp-parentheses-non-capturing"},{include:"#single-three-regexp-parentheses"},{include:"#comments-string-single-three"}]},"single-three-regexp-lookahead":{begin:"(\\()\\?=",beginCaptures:{0:{name:"keyword.operator.lookahead.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"single-three-regexp-lookahead-negative":{begin:"(\\()\\?!",beginCaptures:{0:{name:"keyword.operator.lookahead.negative.regexp"},1:{name:"punctuation.parenthesis.lookahead.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"single-three-regexp-lookbehind":{begin:"(\\()\\?<=",beginCaptures:{0:{name:"keyword.operator.lookbehind.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"single-three-regexp-lookbehind-negative":{begin:"(\\()\\?<!",beginCaptures:{0:{name:"keyword.operator.lookbehind.negative.regexp"},1:{name:"punctuation.parenthesis.lookbehind.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"single-three-regexp-named-group":{begin:`(?x)
396
- (\\() (\\?P <\\w+(?:\\s+[[:alnum:]]+)?>)
397
- `,beginCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},2:{name:"entity.name.tag.named.group.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},2:{name:"invalid.illegal.newline.python"}},name:"meta.named.regexp",patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"single-three-regexp-parentheses":{begin:"\\(",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{begin:"\\(\\?:",beginCaptures:{0:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},end:"(\\)|(?=\\'\\'\\'))",endCaptures:{1:{name:"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},2:{name:"invalid.illegal.newline.python"}},patterns:[{include:"#single-three-regexp-expression"},{include:"#comments-string-single-three"}]},"special-names":{match:`(?x)
398
- \\b
399
-
400
-
401
-
402
-
403
-
404
- (
405
- _* [[:upper:]] [_\\d]* [[:upper:]]
406
- )
407
- [[:upper:]\\d]* (_\\w*)?
408
- \\b
409
- `,name:"constant.other.caps.python"},"special-variables":{captures:{1:{name:"variable.language.special.self.python"},2:{name:"variable.language.special.cls.python"}},match:`(?x)
410
- \\b (?<!\\.) (?:
411
- (self) | (cls)
412
- )\\b
413
- `},statement:{patterns:[{include:"#import"},{include:"#class-declaration"},{include:"#function-declaration"},{include:"#generator"},{include:"#statement-keyword"},{include:"#assignment-operator"},{include:"#decorator"},{include:"#semicolon"}]},"statement-keyword":{patterns:[{match:"\\b((async\\s+)?\\s*(def|fn))\\b",name:"storage.type.function.python"},{comment:`if \`as\` is eventually followed by \`:\` or line continuation
414
- it's probably control flow like:
415
- with foo as bar, \\
416
- Foo as Bar:
417
- try:
418
- do_stuff()
419
- except Exception as e:
420
- pass
421
- `,match:"\\b(?<!\\.)as\\b(?=.*[:\\\\])",name:"keyword.control.flow.python"},{comment:"other legal use of `as` is in an import",match:"\\b(?<!\\.)as\\b",name:"keyword.control.import.python"},{match:`(?x)
422
- \\b(?<!\\.)(
423
- async | continue | del | assert | break | finally | for
424
- | from | elif | else | if | except | pass | raise
425
- | return | try | while | with
426
- )\\b
427
- `,name:"keyword.control.flow.python"},{match:`(?x)
428
- \\b(?<!\\.)(
429
- global | nonlocal
430
- )\\b
431
- `,name:"storage.modifier.declaration.python"},{match:"\\b(?<!\\.)(class|struct|trait)\\b",name:"storage.type.class.python"},{captures:{1:{name:"keyword.control.flow.python"}},match:`(?x)
432
- ^\\s*(
433
- case | match
434
- )(?=\\s*([-+\\w\\d(\\[{'":#]|$))\\b
435
- `},{captures:{1:{name:"storage.modifier.declaration.python"},2:{name:"variable.other.python"}},match:"\\b(var|let|alias) \\s*([[:alpha:]_]\\w*)\\b"}]},string:{patterns:[{include:"#string-quoted-multi-line"},{include:"#string-quoted-single-line"},{include:"#string-bin-quoted-multi-line"},{include:"#string-bin-quoted-single-line"},{include:"#string-raw-quoted-multi-line"},{include:"#string-raw-quoted-single-line"},{include:"#string-raw-bin-quoted-multi-line"},{include:"#string-raw-bin-quoted-single-line"},{include:"#fstring-fnorm-quoted-multi-line"},{include:"#fstring-fnorm-quoted-single-line"},{include:"#fstring-normf-quoted-multi-line"},{include:"#fstring-normf-quoted-single-line"},{include:"#fstring-raw-quoted-multi-line"},{include:"#fstring-raw-quoted-single-line"}]},"string-bin-quoted-multi-line":{begin:`(\\b[bB])('''|""")`,beginCaptures:{1:{name:"storage.type.string.python"},2:{name:"punctuation.definition.string.begin.python"}},end:"(\\2)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.binary.multi.python",patterns:[{include:"#string-entity"}]},"string-bin-quoted-single-line":{begin:`(\\b[bB])((['"]))`,beginCaptures:{1:{name:"storage.type.string.python"},2:{name:"punctuation.definition.string.begin.python"}},end:"(\\2)|((?<!\\\\)\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.binary.single.python",patterns:[{include:"#string-entity"}]},"string-brace-formatting":{patterns:[{captures:{1:{name:"constant.character.format.placeholder.other.python"},3:{name:"storage.type.format.python"},4:{name:"storage.type.format.python"}},match:`(?x)
436
- (
437
- {{ | }}
438
- | (?:
439
- {
440
- \\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'"]+\\])*
441
- (![rsa])?
442
- ( : \\w? [<>=^]? [-+ ]? \\#?
443
- \\d* ,? (\\.\\d+)? [bcdeEfFgGnosxX%]? )?
444
- })
445
- )
446
- `,name:"meta.format.brace.python"},{captures:{1:{name:"constant.character.format.placeholder.other.python"},3:{name:"storage.type.format.python"},4:{name:"storage.type.format.python"}},match:`(?x)
447
- (
448
- {
449
- \\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'"]+\\])*
450
- (![rsa])?
451
- (:)
452
- [^'"{}\\n]* (?:
453
- \\{ [^'"}\\n]*? \\} [^'"{}\\n]*
454
- )*
455
- }
456
- )
457
- `,name:"meta.format.brace.python"}]},"string-consume-escape":{match:`\\\\['"\\n\\\\]`},"string-entity":{patterns:[{include:"#escape-sequence"},{include:"#string-line-continuation"},{include:"#string-formatting"}]},"string-formatting":{captures:{1:{name:"constant.character.format.placeholder.other.python"}},match:`(?x)
458
- (
459
- % (\\([\\w\\s]*\\))?
460
- [-+#0 ]*
461
- (\\d+|\\*)? (\\.(\\d+|\\*))?
462
- ([hlL])?
463
- [diouxXeEfFgGcrsab%]
464
- )
465
- `,name:"meta.format.percent.python"},"string-line-continuation":{match:"\\\\$",name:"constant.language.python"},"string-mojo-code-block":{begin:"^(\\s*\\`{3,})(mojo)$",beginCaptures:{1:{name:"string.quoted.single.python"},2:{name:"string.quoted.single.python"}},contentName:"source.mojo",end:"^(\\1)$",endCaptures:{1:{name:"string.quoted.single.python"}},name:"meta.embedded.block.mojo",patterns:[{include:"source.mojo"}]},"string-multi-bad-brace1-formatting-raw":{begin:`(?x)
466
- (?= \\{%
467
- ( .*? (?!'''|""") )
468
- %\\}
469
- )
470
- `,comment:"template using {% ... %}",end:`(?='''|""")`,patterns:[{include:"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{begin:`(?x)
471
- (?= \\{%
472
- ( .*? (?!'''|""") )
473
- %\\}
474
- )
475
- `,comment:"template using {% ... %}",end:`(?='''|""")`,patterns:[{include:"#escape-sequence-unicode"},{include:"#escape-sequence"},{include:"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{begin:`(?x)
476
- (?!\\{\\{)
477
- (?= \\{ (
478
- \\w*? (?!'''|""") [^!:\\.\\[}\\w]
479
- )
480
- .*?(?!'''|""")
481
- \\}
482
- )
483
- `,comment:"odd format or format-like syntax",end:`(?='''|""")`,patterns:[{include:"#string-consume-escape"},{include:"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{begin:`(?x)
484
- (?!\\{\\{)
485
- (?= \\{ (
486
- \\w*? (?!'''|""") [^!:\\.\\[}\\w]
487
- )
488
- .*?(?!'''|""")
489
- \\}
490
- )
491
- `,comment:"odd format or format-like syntax",end:`(?='''|""")`,patterns:[{include:"#escape-sequence-unicode"},{include:"#string-entity"}]},"string-quoted-multi-line":{begin:`(?:\\b([rR])(?=[uU]))?([uU])?('''|""")`,beginCaptures:{1:{name:"invalid.illegal.prefix.python"},2:{name:"storage.type.string.python"},3:{name:"punctuation.definition.string.begin.python"}},end:"(\\3)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.multi.python",patterns:[{include:"#string-multi-bad-brace1-formatting-unicode"},{include:"#string-multi-bad-brace2-formatting-unicode"},{include:"#string-unicode-guts"}]},"string-quoted-single-line":{begin:`(?:\\b([rR])(?=[uU]))?([uU])?((['"]))`,beginCaptures:{1:{name:"invalid.illegal.prefix.python"},2:{name:"storage.type.string.python"},3:{name:"punctuation.definition.string.begin.python"}},end:"(\\3)|((?<!\\\\)\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.single.python",patterns:[{include:"#string-single-bad-brace1-formatting-unicode"},{include:"#string-single-bad-brace2-formatting-unicode"},{include:"#string-unicode-guts"}]},"string-raw-bin-guts":{patterns:[{include:"#string-consume-escape"},{include:"#string-formatting"}]},"string-raw-bin-quoted-multi-line":{begin:`(\\b(?:R[bB]|[bB]R))('''|""")`,beginCaptures:{1:{name:"storage.type.string.python"},2:{name:"punctuation.definition.string.begin.python"}},end:"(\\2)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.raw.binary.multi.python",patterns:[{include:"#string-raw-bin-guts"}]},"string-raw-bin-quoted-single-line":{begin:`(\\b(?:R[bB]|[bB]R))((['"]))`,beginCaptures:{1:{name:"storage.type.string.python"},2:{name:"punctuation.definition.string.begin.python"}},end:"(\\2)|((?<!\\\\)\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.raw.binary.single.python",patterns:[{include:"#string-raw-bin-guts"}]},"string-raw-guts":{patterns:[{include:"#string-consume-escape"},{include:"#string-formatting"},{include:"#string-brace-formatting"}]},"string-raw-quoted-multi-line":{begin:`\\b(([uU]R)|(R))('''|""")`,beginCaptures:{2:{name:"invalid.deprecated.prefix.python"},3:{name:"storage.type.string.python"},4:{name:"punctuation.definition.string.begin.python"}},end:"(\\4)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.raw.multi.python",patterns:[{include:"#string-multi-bad-brace1-formatting-raw"},{include:"#string-multi-bad-brace2-formatting-raw"},{include:"#string-raw-guts"}]},"string-raw-quoted-single-line":{begin:`\\b(([uU]R)|(R))((['"]))`,beginCaptures:{2:{name:"invalid.deprecated.prefix.python"},3:{name:"storage.type.string.python"},4:{name:"punctuation.definition.string.begin.python"}},end:"(\\4)|((?<!\\\\)\\n)",endCaptures:{1:{name:"punctuation.definition.string.end.python"},2:{name:"invalid.illegal.newline.python"}},name:"string.quoted.raw.single.python",patterns:[{include:"#string-single-bad-brace1-formatting-raw"},{include:"#string-single-bad-brace2-formatting-raw"},{include:"#string-raw-guts"}]},"string-single-bad-brace1-formatting-raw":{begin:`(?x)
492
- (?= \\{%
493
- ( .*? (?!(['"])|((?<!\\\\)\\n)) )
494
- %\\}
495
- )
496
- `,comment:"template using {% ... %}",end:`(?=(['"])|((?<!\\\\)\\n))`,patterns:[{include:"#string-consume-escape"}]},"string-single-bad-brace1-formatting-unicode":{begin:`(?x)
497
- (?= \\{%
498
- ( .*? (?!(['"])|((?<!\\\\)\\n)) )
499
- %\\}
500
- )
501
- `,comment:"template using {% ... %}",end:`(?=(['"])|((?<!\\\\)\\n))`,patterns:[{include:"#escape-sequence-unicode"},{include:"#escape-sequence"},{include:"#string-line-continuation"}]},"string-single-bad-brace2-formatting-raw":{begin:`(?x)
502
- (?!\\{\\{)
503
- (?= \\{ (
504
- \\w*? (?!(['"])|((?<!\\\\)\\n)) [^!:\\.\\[}\\w]
505
- )
506
- .*?(?!(['"])|((?<!\\\\)\\n))
507
- \\}
508
- )
509
- `,comment:"odd format or format-like syntax",end:`(?=(['"])|((?<!\\\\)\\n))`,patterns:[{include:"#string-consume-escape"},{include:"#string-formatting"}]},"string-single-bad-brace2-formatting-unicode":{begin:`(?x)
510
- (?!\\{\\{)
511
- (?= \\{ (
512
- \\w*? (?!(['"])|((?<!\\\\)\\n)) [^!:\\.\\[}\\w]
513
- )
514
- .*?(?!(['"])|((?<!\\\\)\\n))
515
- \\}
516
- )
517
- `,comment:"odd format or format-like syntax",end:`(?=(['"])|((?<!\\\\)\\n))`,patterns:[{include:"#escape-sequence-unicode"},{include:"#string-entity"}]},"string-unicode-guts":{patterns:[{include:"#string-mojo-code-block"},{include:"#escape-sequence-unicode"},{include:"#string-entity"},{include:"#string-brace-formatting"}]}},scopeName:"source.mojo"});var n=[e];export{n as default};