@kong-ui-public/documentation 0.7.52 → 0.7.54

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 (213) hide show
  1. package/dist/{_basePickBy-QP7f0_NS-CQRclG56.js → _basePickBy-BdieChar-OkpwE92k.js} +2 -2
  2. package/dist/{_baseUniq--2u8HDhR-BwnJW2qv.js → _baseUniq-DvGKNxK2-CrFHB0Va.js} +1 -1
  3. package/dist/{arc-Ce--zaCu-CaP3a_s2.js → arc-HkQ-gbKN-DMqNZP0P.js} +1 -1
  4. package/dist/architecture-I3QFYML2-BnL0CBhZ-OwkgZ4Jc.js +5 -0
  5. package/dist/{architectureDiagram-V6B76FHG-BGugf6s4-DQPRLlmL.js → architectureDiagram-V6B76FHG-CF7LIMcO-Bi3o7tPD.js} +4 -4
  6. package/dist/astro-Ct9uJo-c-nfJFy9of.js +27 -0
  7. package/dist/{blockDiagram-EN3ZKWFM-DMDRogP_-FsitMOJs.js → blockDiagram-EN3ZKWFM-Ce9sI6p0-BSW7PVPT.js} +6 -6
  8. package/dist/c-DKDB_XIB-DKDB_XIB.js +7 -0
  9. package/dist/{c4Diagram-THADGKDP-DVq6u9iK-DjZCguGM.js → c4Diagram-THADGKDP-BTW1RdWp-B-P4jJEG.js} +2 -2
  10. package/dist/{channel-CkGtrtc_-5heXrfaz.js → channel-BExz2QEe-D87SiV4g.js} +1 -1
  11. package/dist/{chunk-2JBRQKJ5-8eJOTr0j-CXWIVrSH.js → chunk-2JBRQKJ5-OM-qdEYq-BtmlqXNP.js} +2 -2
  12. package/dist/{chunk-2RYQ3QTB-D01RVSPw-CNvvITx2.js → chunk-2RYQ3QTB-CEsfCBgx-CFtk4OUl.js} +1 -1
  13. package/dist/{chunk-BAVOGKFW-BkFOjSb5-DRz12j82.js → chunk-BAVOGKFW-BsKga6TS-OmijSWzp.js} +1 -1
  14. package/dist/{chunk-DUMQOTYW-C8gjn_h8-Buk9AtY0.js → chunk-DUMQOTYW-702X_yPX-jq37ikuA.js} +1 -1
  15. package/dist/{chunk-OQCM5LHU-BsyD81F3-CLn0WK5y.js → chunk-OQCM5LHU-DvAgHiz1-EenYCxhh.js} +1 -1
  16. package/dist/{chunk-UGV5ZQQN-B1Fqn8HR-D2F042zI.js → chunk-UGV5ZQQN-DLJfHEQ--CXU97g-q.js} +2 -2
  17. package/dist/{chunk-XVOYOM2C-BNhATlkH-E6jfDmvo.js → chunk-XVOYOM2C-BuvytsGy-DwxxmTeO.js} +1 -1
  18. package/dist/{chunk-YWFND7JV-CjJOWloQ-yAuS5TWl.js → chunk-YWFND7JV-BX4eJVvR-BCwDeDNF.js} +1 -1
  19. package/dist/{classDiagram-4BHYIK4I-DAFaw6kk-B9-nvdz4.js → classDiagram-4BHYIK4I-DABOljRL-DAS3U8qp.js} +4 -4
  20. package/dist/{classDiagram-v2-FI7KE7WJ-2KIw4eDL-1VSIGqaX.js → classDiagram-v2-FI7KE7WJ-DyhJS9wI-CeDC1SJu.js} +7 -7
  21. package/dist/{clone-BHELfLb3-YErh3h4H.js → clone-BqJCgI_t-D6TZM9U-.js} +1 -1
  22. package/dist/coffee-CiEmwUV9-D5Oe8742.js +9 -0
  23. package/dist/cpp-BphENtVr-DqhLnmUg.js +29 -0
  24. package/dist/csharp-hvsHIX1x-hvsHIX1x.js +7 -0
  25. package/dist/css-twoVIb3q-twoVIb3q.js +7 -0
  26. package/dist/csv-CyuxiNSX-CyuxiNSX.js +7 -0
  27. package/dist/{dagre-P3YPLUS5-Crxg5gw6-B-8XBOXu.js → dagre-P3YPLUS5-C2sB48dB-TVHqbdM9.js} +4 -4
  28. package/dist/{diagram-QS5GVLUX-CxXnEhMp-Bu1H9vNA.js → diagram-QS5GVLUX-CPjjc7oB-xgDgLBUy.js} +3 -3
  29. package/dist/diff-BprZv9Bx-BprZv9Bx.js +7 -0
  30. package/dist/docker-UByH5rch-UByH5rch.js +7 -0
  31. package/dist/documentation.es.js +1 -1
  32. package/dist/documentation.umd.js +103 -438
  33. package/dist/{erDiagram-62CBQV5Y-D6jClMyv-BIzTc7kD.js → erDiagram-62CBQV5Y-BWvC3B70-B5ci7Tyo.js} +3 -3
  34. package/dist/{flowDiagram-JSIZSE4D-BcOWyjMb-BwgaE-hH.js → flowDiagram-JSIZSE4D-C6fUTYCs-CC8M6lTH.js} +4 -4
  35. package/dist/{ganttDiagram-ASEIQ4P5-By38uZLn-Btn4Z6zy.js → ganttDiagram-ASEIQ4P5-C4T3npMC-CkOmHDDH.js} +2 -2
  36. package/dist/git-commit-BpBta0-H-D9ROUaA_.js +9 -0
  37. package/dist/git-rebase-nCu0qkM8-BcHBAqRM.js +9 -0
  38. package/dist/gitGraph-YCYPL57B-BrNA4-wo-DSu9FUv_.js +5 -0
  39. package/dist/{gitGraphDiagram-UL5UFKDR-BqG1nzMk-DWQU5SPN.js → gitGraphDiagram-UL5UFKDR-DUEiISlX-D9YHU22K.js} +4 -4
  40. package/dist/go-CVQIWj2N-CVQIWj2N.js +7 -0
  41. package/dist/{graph-DvHk9sAd-BZSyIJKm.js → graph-sjVS6xcE-C5RdEsAN.js} +2 -2
  42. package/dist/graphql-7X52cHqc-CLBzimQB.js +15 -0
  43. package/dist/haml-28-Av65f-Dih0P9tR.js +19 -0
  44. package/dist/handlebars-TFjvroEi-07H8_eE0.js +15 -0
  45. package/dist/haskell-DJah2Vxp-DJah2Vxp.js +7 -0
  46. package/dist/html-B9SDyQ6N-D-ZKCIRM.js +11 -0
  47. package/dist/html-derivative-Dst04Arf-DrM5NWms.js +9 -0
  48. package/dist/http-nOIbjTbF-C51IpTrN.js +15 -0
  49. package/dist/{index-D2OA6SS9.js → index-BVoTdxnp.js} +3518 -3518
  50. package/dist/info-46DW6VJ7-Bej2n0c3-C-Lc5xdL.js +5 -0
  51. package/dist/{infoDiagram-7APDZ6AT-CLwNpg22-C0vqPVuM.js → infoDiagram-7APDZ6AT-CkczlyAg-BlJfGN5d.js} +2 -2
  52. package/dist/ini-CgO4T9Us-CgO4T9Us.js +7 -0
  53. package/dist/java-Bd9vXGhZ-Bd9vXGhZ.js +7 -0
  54. package/dist/javascript-CGvwHrzr-CGvwHrzr.js +7 -0
  55. package/dist/{journeyDiagram-G5LC7W2K-BOoH_p8r-DCGW5mIU.js → journeyDiagram-G5LC7W2K-CGKx4opc-DgSw5OEZ.js} +3 -3
  56. package/dist/json-B86kHl_g-B86kHl_g.js +7 -0
  57. package/dist/{json-ChK2l_mW-CF8DlcBe.js → json-c0WkG_Y9-DE96BGkz.js} +4 -4
  58. package/dist/json5-GB6TimgH-GB6TimgH.js +7 -0
  59. package/dist/jsonc-CP3QVoXc-CP3QVoXc.js +7 -0
  60. package/dist/jsonl-C2ofTLY8-C2ofTLY8.js +7 -0
  61. package/dist/jsx-ZpKf1TSy-ZpKf1TSy.js +7 -0
  62. package/dist/kotlin-CAtfTEpr-CAtfTEpr.js +7 -0
  63. package/dist/latex-14aRsJKm-mj9Fild6.js +62 -0
  64. package/dist/{layout-CjQzaBWv-COvZUbbb.js → layout-BT6DeXbr-BANlZ5gi.js} +4 -4
  65. package/dist/less-0UFuQRv0-0UFuQRv0.js +7 -0
  66. package/dist/{linear-DT_Q8rLU-DeClWtNR.js → linear-Dz3m-tA--DoWdTVVU.js} +1 -1
  67. package/dist/liquid-Uq0DwV7I-CRvdDbph.js +15 -0
  68. package/dist/lua-BEgWEgjO-DU5YUtUR.js +9 -0
  69. package/dist/make-BDMxblcP-BDMxblcP.js +7 -0
  70. package/dist/markdown-CzCkSBhS-CzCkSBhS.js +7 -0
  71. package/dist/material-theme-lighter-CnKSyNS5-CnKSyNS5.js +4 -0
  72. package/dist/material-theme-palenight-BaYUoLXq-BaYUoLXq.js +4 -0
  73. package/dist/mdc-BA3wmBe6-BAlBXF37.js +13 -0
  74. package/dist/mdx-KaGu4TbO-KaGu4TbO.js +7 -0
  75. package/dist/mermaid-DZVJOJE0-DZVJOJE0.js +7 -0
  76. package/dist/{mermaid-parser.core-BQiMVCUD-BKOHdVsR.js → mermaid-parser.core-CHAbAGk3-c1XgG0S5.js} +9 -9
  77. package/dist/{mindmap-definition-FCEC46F3-DVehALvP-BU5jW1Pg.js → mindmap-definition-FCEC46F3-Bc0Z0Iij-DjhnZX8i.js} +1 -1
  78. package/dist/nginx-zxRCFE-h-BypGKuox.js +9 -0
  79. package/dist/objective-c-D6w3apbj-D6w3apbj.js +7 -0
  80. package/dist/packet-W2GHVCYJ-ZKPevIRt-QgrlrfSF.js +5 -0
  81. package/dist/pascal-DenYIYz2-DenYIYz2.js +7 -0
  82. package/dist/perl-D3yLJL---Dh53Z1Ch.js +17 -0
  83. package/dist/php-CotrzT_K-Bao4rTV9.js +19 -0
  84. package/dist/pie-BEWT4RHE-DylShr8x-d1G_mdRP.js +5 -0
  85. package/dist/{pieDiagram-OZX6XH5M-NcRJ5yD0-DGLoTnOO.js → pieDiagram-OZX6XH5M-CXiGhbiR-DRla_XQL.js} +4 -4
  86. package/dist/plsql-DH6aemMc-DH6aemMc.js +7 -0
  87. package/dist/postcss-Cf6moWPa-Cf6moWPa.js +7 -0
  88. package/dist/powershell-HbR4eE6x-HbR4eE6x.js +7 -0
  89. package/dist/proto-FnD6HNAf-FnD6HNAf.js +7 -0
  90. package/dist/pug-BQlVJUDw-CHRWHsZp.js +21 -0
  91. package/dist/python-DmuMvCM0-DmuMvCM0.js +7 -0
  92. package/dist/{quadrantDiagram-VG34DGKC-BEBZpKwg-E0UALIdM.js → quadrantDiagram-VG34DGKC-CbM6hf5T-BkpDE-dh.js} +2 -2
  93. package/dist/r-Bc6kwNk5-Bc6kwNk5.js +7 -0
  94. package/dist/reg-D7nGELoM-D7nGELoM.js +7 -0
  95. package/dist/{requirementDiagram-FPZB6IJI-CV6ngUwt-ZNVFxha1.js → requirementDiagram-FPZB6IJI-B_JGEuRG-CfrFuiOp.js} +3 -3
  96. package/dist/rst-CaIq10fc-5Y1LeNh2.js +26 -0
  97. package/dist/ruby-DeHccIAO-BcoQ2TvH.js +23 -0
  98. package/dist/rust-DUjrmsiV-DUjrmsiV.js +7 -0
  99. package/dist/{sankeyDiagram-KMMQDL5K-C0IklDBz-DXNZHn1D.js → sankeyDiagram-KMMQDL5K-BdxnO3f5-GG9bgFTU.js} +1 -1
  100. package/dist/sass-CLufkToV-CLufkToV.js +7 -0
  101. package/dist/scss-CnxrcEK_-CATc0Lba.js +9 -0
  102. package/dist/{sequenceDiagram-PQT5PN7B-RdiTSnGD-dImpFpXC.js → sequenceDiagram-PQT5PN7B-HSmTG3uL-DCRTrdd_.js} +3 -3
  103. package/dist/shellscript-CLi_Jlup-CLi_Jlup.js +7 -0
  104. package/dist/shellsession-BgOGDEE0-D_whUPK9.js +9 -0
  105. package/dist/splunk-ZWH3T4YR-ZWH3T4YR.js +7 -0
  106. package/dist/sql-CqEjJWk_-CqEjJWk_.js +7 -0
  107. package/dist/ssh-config-cxjN15Iq-cxjN15Iq.js +7 -0
  108. package/dist/{stateDiagram-TQSDS2D4-BSONsero-BGr__pIw.js → stateDiagram-TQSDS2D4-BK8lu_Tc-UxdkYbwz.js} +5 -5
  109. package/dist/{stateDiagram-v2-J5TZWJW5-CUBEYx5P-MOayZIW2.js → stateDiagram-v2-J5TZWJW5-Bz5m2MnO-YNqSfPWL.js} +3 -3
  110. package/dist/stylus-BqSAqkqK-BqSAqkqK.js +7 -0
  111. package/dist/svelte-Yn79bR_P-TdNy3USA.js +29 -0
  112. package/dist/swift-Cii5mold-Cii5mold.js +7 -0
  113. package/dist/{timeline-definition-KYQAIZUX-DQZuhTw8-Dnb6t1_t.js → timeline-definition-KYQAIZUX-XLrO7vFH-BE_yP5t-.js} +2 -2
  114. package/dist/toml-BrnHWKvZ-BrnHWKvZ.js +7 -0
  115. package/dist/tsx-RDJgLpEg-RDJgLpEg.js +7 -0
  116. package/dist/twig-CyzrzZ6V-CLfeQShi.js +19 -0
  117. package/dist/typescript-BRQxorCF-BRQxorCF.js +7 -0
  118. package/dist/v-CBsEUX4x-CBsEUX4x.js +7 -0
  119. package/dist/vb-BCQhaxZY-BCQhaxZY.js +7 -0
  120. package/dist/viml-DUDcfQ_j-DUDcfQ_j.js +7 -0
  121. package/dist/vue-DNFIPpe6-BpXPyld-.js +68 -0
  122. package/dist/vue-html-DkB4x9kz-BBbMk49e.js +11 -0
  123. package/dist/wasm-KuMlursr-KuMlursr.js +7 -0
  124. package/dist/wgsl-CXztftdQ-CXztftdQ.js +7 -0
  125. package/dist/xml-D46nbCSr-BYMRGyuH.js +9 -0
  126. package/dist/xsl--U1R63rG-D8P_gDHK.js +9 -0
  127. package/dist/{xychartDiagram-LESROZAQ-Aueu0ah5-Kf1LjwqY.js → xychartDiagram-LESROZAQ-CFA62kNt-Cw_jtdeV.js} +2 -2
  128. package/dist/yaml-BEQ1JqWb-BEQ1JqWb.js +7 -0
  129. package/package.json +6 -6
  130. package/dist/architecture-I3QFYML2-BAM2h37L-DDfRikFe.js +0 -5
  131. package/dist/astro-D_dsHkRz-CIu0TEak.js +0 -27
  132. package/dist/c-C9fY0Fge-C9fY0Fge.js +0 -7
  133. package/dist/coffee-BpL5dmzR-BhgOYQS1.js +0 -9
  134. package/dist/cpp-B_ULsIyI-C_UYrD6f.js +0 -193
  135. package/dist/csharp--zf0MtDg--zf0MtDg.js +0 -7
  136. package/dist/css-pVblTdYL-pVblTdYL.js +0 -7
  137. package/dist/csv-D4BoHddH-D4BoHddH.js +0 -7
  138. package/dist/diff-MXcoXEIJ-MXcoXEIJ.js +0 -7
  139. package/dist/docker-B10O2enb-B10O2enb.js +0 -7
  140. package/dist/git-commit-Be8WquDH-CZYxUfnG.js +0 -9
  141. package/dist/git-rebase-CVYaGD_a-CeqfdoDX.js +0 -9
  142. package/dist/gitGraph-YCYPL57B-ON9gXqNe-M5hiPCVB.js +0 -5
  143. package/dist/go-D_ziJsY9-D_ziJsY9.js +0 -7
  144. package/dist/graphql-D6yuBR9q--iCoxDM1.js +0 -18
  145. package/dist/haml-Dw-qY2Lp-CUnH-KRl.js +0 -19
  146. package/dist/handlebars-C6aUQR_3-B3cgQNZD.js +0 -15
  147. package/dist/haskell-B_jwIsd_-B_jwIsd_.js +0 -12
  148. package/dist/html-CQnAgmm8-BAGVrVbX.js +0 -11
  149. package/dist/html-derivative-DLUduELB-cl3ZX13g.js +0 -9
  150. package/dist/http-BwHXQNrI-BcEttk54.js +0 -15
  151. package/dist/info-46DW6VJ7-CBnu53Ut-B4VUuwED.js +0 -5
  152. package/dist/ini-BsUFIxsI-BsUFIxsI.js +0 -7
  153. package/dist/java-NDwZ3lmy-NDwZ3lmy.js +0 -7
  154. package/dist/javascript-S4X9lPQ2-S4X9lPQ2.js +0 -7
  155. package/dist/json-BqEO2fcw-BqEO2fcw.js +0 -7
  156. package/dist/json5-B2g59Yxe-B2g59Yxe.js +0 -7
  157. package/dist/jsonc-CViUooyB-CViUooyB.js +0 -7
  158. package/dist/jsonl-D9QAvYu1-D9QAvYu1.js +0 -7
  159. package/dist/jsx-BSOdlo-z-BSOdlo-z.js +0 -7
  160. package/dist/kotlin-DkoSFfh7-DkoSFfh7.js +0 -7
  161. package/dist/latex-DM7T8eEg-WeIDVHW4.js +0 -76
  162. package/dist/less-CEm00fln-CEm00fln.js +0 -7
  163. package/dist/liquid-BBV8yFlz-CBzfhyj5.js +0 -28
  164. package/dist/lua-BprzqEnl-B-iqs6LK.js +0 -9
  165. package/dist/make-DluCIvvI-DluCIvvI.js +0 -7
  166. package/dist/markdown-Dcn_SydH-Dcn_SydH.js +0 -7
  167. package/dist/material-theme-lighter-CtwOYHJ5-CtwOYHJ5.js +0 -769
  168. package/dist/material-theme-palenight-LzvMi3a5-LzvMi3a5.js +0 -769
  169. package/dist/mdc-CGFjzho1-D-uNyHbu.js +0 -13
  170. package/dist/mdx-Br112W6P-Br112W6P.js +0 -7
  171. package/dist/mermaid-tJ3odWn1-tJ3odWn1.js +0 -7
  172. package/dist/nginx-CDt8dUbj-CwnYwJom.js +0 -9
  173. package/dist/objective-c-ZXLxIXFu-ZXLxIXFu.js +0 -7
  174. package/dist/packet-W2GHVCYJ-bTc8I4ko-Cvd0NjUM.js +0 -5
  175. package/dist/pascal-8g0cXXUV-8g0cXXUV.js +0 -7
  176. package/dist/perl-DYQ2PUOI-Ce95clZS.js +0 -17
  177. package/dist/php-HXa3A-PK-DYmFSyAv.js +0 -23
  178. package/dist/pie-BEWT4RHE-BQIhHO3S-p3QRx2Hf.js +0 -5
  179. package/dist/plsql-8SPzZKaa-8SPzZKaa.js +0 -7
  180. package/dist/postcss-CzMyUasl-CzMyUasl.js +0 -7
  181. package/dist/powershell-Ct3wtyyf-Ct3wtyyf.js +0 -7
  182. package/dist/proto-DOQNC0Re-DOQNC0Re.js +0 -7
  183. package/dist/pug-I4Ltn3Nw-D6M2fX7G.js +0 -21
  184. package/dist/python-S2LqejOW-S2LqejOW.js +0 -22
  185. package/dist/r-BaIwHWbj-BaIwHWbj.js +0 -7
  186. package/dist/reg-C2xsc1D3-C2xsc1D3.js +0 -7
  187. package/dist/rst-CqzqRSy_-xBaB1SMh.js +0 -26
  188. package/dist/ruby-CaLXGQMM-dbPBCkla.js +0 -49
  189. package/dist/rust-BuM_ypDG-BuM_ypDG.js +0 -7
  190. package/dist/sass-BHTHe1hw-BHTHe1hw.js +0 -8
  191. package/dist/scss-1lKx83lY-Dhq9feuo.js +0 -9
  192. package/dist/shellscript-D61Z39XV-D61Z39XV.js +0 -7
  193. package/dist/shellsession-BxewqD4o-JfAy6Scn.js +0 -9
  194. package/dist/splunk-DOc6RZxF-DOc6RZxF.js +0 -7
  195. package/dist/sql-BW1nANeH-BW1nANeH.js +0 -7
  196. package/dist/ssh-config-WxoJGDFj-WxoJGDFj.js +0 -7
  197. package/dist/stylus-DHtg4l9I-DHtg4l9I.js +0 -7
  198. package/dist/svelte-CxOAZSqx-D6_Dup1x.js +0 -29
  199. package/dist/swift-DXnxgc7L-DXnxgc7L.js +0 -14
  200. package/dist/toml-B3m4q8Sh-B3m4q8Sh.js +0 -7
  201. package/dist/tsx-DjpGf_zp-DjpGf_zp.js +0 -7
  202. package/dist/twig-BKVhsWVA-CAfti4AG.js +0 -29
  203. package/dist/typescript-CjtgCz_A-CjtgCz_A.js +0 -7
  204. package/dist/v-Ce9LUgL8-Ce9LUgL8.js +0 -7
  205. package/dist/vb-D9cF8Lsp-D9cF8Lsp.js +0 -7
  206. package/dist/viml-DF-rMx2H-DF-rMx2H.js +0 -7
  207. package/dist/vue-bdaBQoF--D_HkxBBu.js +0 -68
  208. package/dist/vue-html-DMY4c0OB-BuB6GPk-.js +0 -11
  209. package/dist/wasm-83spBAnA-83spBAnA.js +0 -7
  210. package/dist/wgsl-DiRwt5Uz-DiRwt5Uz.js +0 -7
  211. package/dist/xml-Dcc0Vp-Q-BB4kJUTf.js +0 -9
  212. package/dist/xsl-DW810WyZ-BNfp-grZ.js +0 -9
  213. package/dist/yaml-B-GyjzSe-B-GyjzSe.js +0 -7
@@ -1,22 +0,0 @@
1
- const e = Object.freeze({ displayName: "Python", name: "python", patterns: [{ include: "#statement" }, { include: "#expression" }], repository: { "annotated-parameter": { begin: "\\b([A-Za-z_]\\w*)\\s*(:)", 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: "<<=|>>=|//=|\\*\\*=|\\+=|-=|/=|@=|\\*=|%=|~=|\\^=|&=|\\|=|=(?!=)", name: "keyword.operator.assignment.python" }, backticks: { begin: "\\`", end: "(?:\\`|(?<!\\\\)(\\n))", name: "invalid.deprecated.backtick.python", patterns: [{ include: "#expression" }] }, "builtin-callables": { patterns: [{ include: "#illegal-names" }, { include: "#illegal-object-name" }, { include: "#builtin-exceptions" }, { include: "#builtin-functions" }, { include: "#builtin-types" }] }, "builtin-exceptions": { match: "(?<!\\.)\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\b", name: "support.type.exception.python" }, "builtin-functions": { patterns: [{ match: "(?<!\\.)\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\b", name: "support.function.builtin.python" }, { match: "(?<!\\.)\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\b", name: "variable.legacy.builtin.python" }] }, "builtin-possible-callables": { patterns: [{ include: "#builtin-callables" }, { include: "#magic-names" }] }, "builtin-types": { match: "(?<!\\.)\\b(bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\b", name: "support.type.python" }, "call-wrapper-inheritance": { begin: "\\b(?=([A-Za-z_]\\w*)\\s*(\\())", 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: "\\s*(class)\\s+(?=[A-Za-z_]\\w*\\s*(:|\\())", 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: "\\b([A-Za-z_]\\w*)\\s*(=)(?!=)" }, "class-name": { patterns: [{ include: "#illegal-object-name" }, { include: "#builtin-possible-callables" }, { match: "\\b([A-Za-z_]\\w*)\\b", 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: "(?:\\#\\s*(type:)\\s*+(?!$|\\#))", 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: "\\Gignore(?=\\s*(?:$|\\#))", name: "comment.typehint.ignore.notation.python" }, { match: "(?<!\\.)\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\b", name: "comment.typehint.type.notation.python" }, { match: "([\\[\\](),\\.=\\*]|(->))", name: "comment.typehint.punctuation.notation.python" }, { match: "([A-Za-z_]\\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: "^\\s*((@))\\s*(?=[A-Za-z_]\\w*)", beginCaptures: { 1: { name: "entity.name.function.decorator.python" }, 2: { name: "punctuation.definition.decorator.python" } }, end: "(\\))(?:(.*?)(?=\\s*(?:\\#|$)))|(?=\\n|\\#)", 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: "([A-Za-z_]\\w*)|(\\.)", name: "entity.name.function.decorator.python" }, { include: "#line-continuation" }, { captures: { 1: { name: "invalid.illegal.decorator.python" } }, match: "\\s*([^(A-Za-z\\s_\\.#\\\\].*?)(?=\\#|$)", name: "invalid.illegal.decorator.python" }] }, docstring: { patterns: [{ begin: `(\\'\\'\\'|\\"\\"\\")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.python" } }, end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.python" } }, name: "string.quoted.docstring.multi.python", patterns: [{ include: "#docstring-prompt" }, { include: "#codetags" }, { include: "#docstring-guts-unicode" }] }, { begin: `([rR])(\\'\\'\\'|\\"\\"\\")`, beginCaptures: { 1: { name: "storage.type.string.python" }, 2: { name: "punctuation.definition.string.begin.python" } }, end: "(\\2)", endCaptures: { 1: { name: "punctuation.definition.string.end.python" } }, name: "string.quoted.docstring.raw.multi.python", patterns: [{ include: "#string-consume-escape" }, { include: "#docstring-prompt" }, { include: "#codetags" }] }, { begin: `(\\'|\\")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.python" } }, end: "(\\1)|(\\n)", endCaptures: { 1: { name: "punctuation.definition.string.end.python" }, 2: { name: "invalid.illegal.newline.python" } }, name: "string.quoted.docstring.single.python", patterns: [{ include: "#codetags" }, { include: "#docstring-guts-unicode" }] }, { begin: `([rR])(\\'|\\")`, 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.docstring.raw.single.python", patterns: [{ include: "#string-consume-escape" }, { include: "#codetags" }] }] }, "docstring-guts-unicode": { patterns: [{ include: "#escape-sequence-unicode" }, { include: "#escape-sequence" }, { include: "#string-line-continuation" }] }, "docstring-prompt": { captures: { 1: { name: "keyword.control.flow.python" } }, match: "(?:(?:^|\\G)\\s*((?:>>>|\\.\\.\\.)\\s)(?=\\s*\\S))" }, "docstring-statement": { begin: `^(?=\\s*[rR]?(\\'\\'\\'|\\"\\"\\"|\\'|\\"))`, comment: "the string either terminates correctly or by the beginning of a new line (this is for single line docstrings that aren't terminated) AND it's not followed by another docstring", end: `((?<=\\1)|^)(?!\\s*[rR]?(\\'\\'\\'|\\"\\"\\"|\\'|\\"))`, patterns: [{ include: "#docstring" }] }, "double-one-regexp-character-set": { patterns: [{ match: "\\[\\^?\\](?!.*?\\])" }, { 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+[0-9A-Za-z]+)?|\\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: "(\\()(\\?P<\\w+(?:\\s+[0-9A-Za-z]+)?>)", 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: "\\[\\^?\\](?!.*?\\])" }, { 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+[0-9A-Za-z]+)?|\\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: "(\\()(\\?P<\\w+(?:\\s+[0-9A-Za-z]+)?>)", 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[0-9A-Fa-f]{2}|[0-7]{1,3}|[\\\\"'abfnrtv])`, name: "constant.character.escape.python" }, "escape-sequence-unicode": { patterns: [{ match: "\\\\(u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8}|N\\{[\\w\\s]+?\\})", 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: "\\b([A-Za-z_]\\w*)\\b" }] }, "expression-bare": { comment: "valid Python expressions w/o comments and line continuation", patterns: [{ include: "#backticks" }, { include: "#illegal-anno" }, { 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: "\\b([A-Za-z_]\\w*)\\b" }] }, "fregexp-base-expression": { patterns: [{ include: "#fregexp-quantifier" }, { include: "#fstring-formatting-braces" }, { match: "\\{.*?\\}" }, { include: "#regexp-base-common" }] }, "fregexp-quantifier": { match: "\\{\\{(\\d+|\\d+,(\\d+)?|,\\d+)\\}\\}", 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: "(\\})", endCaptures: { 1: { name: "constant.character.format.placeholder.other.python" } }, patterns: [{ include: "#fstring-terminator-multi" }, { include: "#f-expression" }] }, "fstring-multi-core": { match: `(.+?)(($\\n?)|(?=[\\\\}{]|'''|"""))|\\n`, 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: `(.+?)(($\\n?)|(?=[\\\\}{]|'''|"""))|\\n`, 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: `(.+?)(($\\n?)|(?=[\\\\}{]|(['"])|((?<!\\\\)\\n)))|\\n`, 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: "(\\})|(?=\\n)", endCaptures: { 1: { name: "constant.character.format.placeholder.other.python" } }, patterns: [{ include: "#fstring-terminator-single" }, { include: "#f-expression" }] }, "fstring-single-core": { match: `(.+?)(($\\n?)|(?=[\\\\}{]|(['"])|((?<!\\\\)\\n)))|\\n`, 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: "((?:=?)(?:![rsa])?)(:\\w?[<>=^]?[-+ ]?\\#?\\d*,?(\\.\\d+)?[bcdeEfFgGnosxX%]?)(?=})" }, { 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: "((?:=?)(?:![rsa])?)(:\\w?[<>=^]?[-+ ]?\\#?\\d*,?(\\.\\d+)?[bcdeEfFgGnosxX%]?)(?=})" }, { 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: "(?:(?<=[,(])|^)\\s*(\\*{1,2})" }, { include: "#lambda-incomplete" }, { include: "#illegal-names" }, { captures: { 1: { name: "variable.parameter.function-call.python" }, 2: { name: "keyword.operator.assignment.python" } }, match: "\\b([A-Za-z_]\\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: "\\b(?=([A-Za-z_]\\w*)\\s*(\\())", 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: "\\s*(?:\\b(async)\\s+)?\\b(def)\\s+(?=[A-Za-z_][\\w]*\\s*\\()", 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-def-name" }, { include: "#parameters" }, { include: "#line-continuation" }, { include: "#return-annotation" }] }, "function-def-name": { patterns: [{ include: "#illegal-object-name" }, { include: "#builtin-possible-callables" }, { match: "\\b([A-Za-z_]\\w*)\\b", name: "entity.name.function.python" }] }, "function-name": { patterns: [{ include: "#builtin-possible-callables" }, { comment: "Some color schemas support meta.function-call.generic scope", match: "\\b([A-Za-z_]\\w*)\\b", 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
2
- correctly identify the "in" as a control flow keyword.
3
- `, end: "\\bin\\b", endCaptures: { 0: { name: "keyword.control.flow.python" } }, patterns: [{ include: "#expression" }] }, "illegal-anno": { match: "->", name: "invalid.illegal.annotation.python" }, "illegal-names": { captures: { 1: { name: "keyword.control.flow.python" }, 2: { name: "keyword.control.import.python" } }, match: "\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\.)lambda|lambda(?=\\s*[\\.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\b" }, "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: "\\b([A-Za-z_]\\w*)\\b" }, "inheritance-name": { patterns: [{ include: "#lambda-incomplete" }, { include: "#builtin-possible-callables" }, { include: "#inheritance-identifier" }] }, "item-access": { patterns: [{ begin: "\\b(?=[A-Za-z_]\\w*\\s*\\[)", 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: "\\b([A-Za-z_]\\w*)\\b", 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: "\\b(lambda)\\b", 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: "/", 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: "([A-Za-z_]\\w*)\\s*(?:(,)|(?=:|$))" }, { include: "#comments" }, { include: "#backticks" }, { include: "#illegal-anno" }, { 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: "\\b([A-Za-z_]\\w*)\\s*(=)", 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: `(?=^\\s*$)|(?!(\\s*[rR]?(\\'\\'\\'|\\"\\"\\"|\\'|\\"))|(\\G$))`, 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
4
- indirectly through syntactic constructs
5
- `, match: "\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|ge|get|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|le|len|long|lshift|lt|missing|mod|mul|ne|neg|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\b" }, "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: "\\b(__(?:all|annotations|bases|builtins|class|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\b" }, "member-access": { begin: "(\\.)\\s*(?!\\.)", beginCaptures: { 1: { name: "punctuation.separator.period.python" } }, end: "(?<=\\S)(?=\\W)|(^|(?<=\\s))(?=[^\\\\\\w\\s])|$", 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: "\\b([A-Za-z_]\\w*)\\b", 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" }] }, 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\\d+\\w+", name: "invalid.illegal.name.python" }] }, "number-bin": { captures: { 1: { name: "storage.type.number.python" } }, match: "(?<![\\w\\.])(0[bB])(_?[01])+\\b", name: "constant.numeric.bin.python" }, "number-dec": { captures: { 1: { name: "storage.type.imaginary.number.python" }, 2: { name: "invalid.illegal.dec.python" } }, match: "(?<![\\w\\.])(?:[1-9](?:_?\\d)*|0+|\\d(?:_?\\d)*([jJ])|0(\\d+)(?![eE\\.]))\\b", name: "constant.numeric.dec.python" }, "number-float": { captures: { 1: { name: "storage.type.imaginary.number.python" } }, match: "(?<!\\w)(?:(?:\\.\\d(?:_?\\d)*|\\d(?:_?\\d)*\\.\\d(?:_?\\d)*|\\d(?:_?\\d)*\\.)(?:[eE][+-]?\\d(?:_?\\d)*)?|\\d(?:_?\\d)*(?:[eE][+-]?\\d(?:_?\\d)*))([jJ])?\\b", name: "constant.numeric.float.python" }, "number-hex": { captures: { 1: { name: "storage.type.number.python" } }, match: "(?<![\\w\\.])(0[xX])(_?[0-9a-fA-F])+\\b", 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: "(?<![\\w\\.])([1-9]\\d*|0)([lL])\\b", name: "constant.numeric.bin.python" }, "number-oct": { captures: { 1: { name: "storage.type.number.python" } }, match: "(?<![\\w\\.])(0[oO])(_?[0-7])+\\b", name: "constant.numeric.oct.python" }, "odd-function-call": { begin: "(?<=\\]|\\))\\s*(?=\\()", comment: `A bit obscured function call where there may have been an
6
- arbitrary number of other operations to get the function.
7
- E.g. "arr[idx](args)"
8
- `, 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: "\\b(?<!\\.)(?:(and|or|not|in|is)|(for|if|else|await|(?:yield(?:\\s+from)?)))(?!\\s*:)\\b|(<<|>>|&|\\||\\^|~)|(\\*\\*|\\*|\\+|-|%|//|/|@)|(!=|==|>=|<=|<|>)|(:=)" }, "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: "\\b((self)|(cls))\\b\\s*(?:(,)|(?=\\)))" }, 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: "/", 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: "([A-Za-z_]\\w*)\\s*(?:(,)|(?=[)#\\n=]))" }, { 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: "(\\()(\\?P=\\w+(?:\\s+[0-9A-Za-z]+)?)(\\))", 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[0-9A-Fa-f]{2}|0[0-7]{1,2}|[0-7]{3})", 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: "\\\\(u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})", name: "constant.character.unicode.regexp" }, "regexp-flags": { match: "\\(\\?[aiLmsux]+\\)", name: "storage.modifier.flag.regexp" }, "regexp-quantifier": { match: "\\{(\\d+|\\d+,(\\d+)?|,\\d+)\\}", 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: "\\[\\^?\\](?!.*?\\])" }, { 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+[0-9A-Za-z]+)?|\\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: "(\\()(\\?P<\\w+(?:\\s+[0-9A-Za-z]+)?>)", 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: "\\[\\^?\\](?!.*?\\])" }, { 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+[0-9A-Za-z]+)?|\\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: "(\\()(\\?P<\\w+(?:\\s+[0-9A-Za-z]+)?>)", 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: "\\b(_*[A-Z][_\\d]*[A-Z])[A-Z\\d]*(_\\w*)?\\b", name: "constant.other.caps.python" }, "special-variables": { captures: { 1: { name: "variable.language.special.self.python" }, 2: { name: "variable.language.special.cls.python" } }, match: "\\b(?<!\\.)(?:(self)|(cls))\\b" }, statement: { patterns: [{ include: "#import" }, { include: "#class-declaration" }, { include: "#function-declaration" }, { include: "#generator" }, { include: "#statement-keyword" }, { include: "#assignment-operator" }, { include: "#decorator" }, { include: "#docstring-statement" }, { include: "#semicolon" }] }, "statement-keyword": { patterns: [{ match: "\\b((async\\s+)?\\s*def)\\b", name: "storage.type.function.python" }, { comment: `if \`as\` is eventually followed by \`:\` or line continuation
9
- it's probably control flow like:
10
- with foo as bar, \\
11
- Foo as Bar:
12
- try:
13
- do_stuff()
14
- except Exception as e:
15
- pass
16
- `, 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: "\\b(?<!\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\b", name: "keyword.control.flow.python" }, { match: "\\b(?<!\\.)(global|nonlocal)\\b", name: "storage.modifier.declaration.python" }, { match: "\\b(?<!\\.)(class)\\b", name: "storage.type.class.python" }, { captures: { 1: { name: "keyword.control.flow.python" } }, match: `^\\s*(case|match)(?=\\s*([-+\\w\\d(\\[{'":#]|$))\\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: `({{|}}|(?:{\\w*(\\.[A-Za-z_]\\w*|\\[[^\\]'"]+\\])*(![rsa])?(:\\w?[<>=^]?[-+ ]?\\#?\\d*,?(\\.\\d+)?[bcdeEfFgGnosxX%]?)?}))`, 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: `({\\w*(\\.[A-Za-z_]\\w*|\\[[^\\]'"]+\\])*(![rsa])?(:)[^'"{}\\n]*(?:\\{[^'"}\\n]*?\\}[^'"{}\\n]*)*})`, 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: "(%(\\([\\w\\s]*\\))?[-+#0 ]*(\\d+|\\*)?(\\.(\\d+|\\*))?([hlL])?[diouxXeEfFgGcrsab%])", name: "meta.format.percent.python" }, "string-line-continuation": { match: "\\\\$", name: "constant.language.python" }, "string-multi-bad-brace1-formatting-raw": { begin: `(?=\\{%(.*?(?!'''|"""))%\\})`, comment: "template using {% ... %}", end: `(?='''|""")`, patterns: [{ include: "#string-consume-escape" }] }, "string-multi-bad-brace1-formatting-unicode": { begin: `(?=\\{%(.*?(?!'''|"""))%\\})`, comment: "template using {% ... %}", end: `(?='''|""")`, patterns: [{ include: "#escape-sequence-unicode" }, { include: "#escape-sequence" }, { include: "#string-line-continuation" }] }, "string-multi-bad-brace2-formatting-raw": { begin: `(?!\\{\\{)(?=\\{(\\w*?(?!'''|""")[^!:\\.\\[}\\w]).*?(?!'''|""")\\})`, comment: "odd format or format-like syntax", end: `(?='''|""")`, patterns: [{ include: "#string-consume-escape" }, { include: "#string-formatting" }] }, "string-multi-bad-brace2-formatting-unicode": { begin: `(?!\\{\\{)(?=\\{(\\w*?(?!'''|""")[^!:\\.\\[}\\w]).*?(?!'''|""")\\})`, 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: `(?=\\{%(.*?(?!(['"])|((?<!\\\\)\\n)))%\\})`, comment: "template using {% ... %}", end: `(?=(['"])|((?<!\\\\)\\n))`, patterns: [{ include: "#string-consume-escape" }] }, "string-single-bad-brace1-formatting-unicode": { begin: `(?=\\{%(.*?(?!(['"])|((?<!\\\\)\\n)))%\\})`, comment: "template using {% ... %}", end: `(?=(['"])|((?<!\\\\)\\n))`, patterns: [{ include: "#escape-sequence-unicode" }, { include: "#escape-sequence" }, { include: "#string-line-continuation" }] }, "string-single-bad-brace2-formatting-raw": { begin: `(?!\\{\\{)(?=\\{(\\w*?(?!(['"])|((?<!\\\\)\\n))[^!:\\.\\[}\\w]).*?(?!(['"])|((?<!\\\\)\\n))\\})`, comment: "odd format or format-like syntax", end: `(?=(['"])|((?<!\\\\)\\n))`, patterns: [{ include: "#string-consume-escape" }, { include: "#string-formatting" }] }, "string-single-bad-brace2-formatting-unicode": { begin: `(?!\\{\\{)(?=\\{(\\w*?(?!(['"])|((?<!\\\\)\\n))[^!:\\.\\[}\\w]).*?(?!(['"])|((?<!\\\\)\\n))\\})`, comment: "odd format or format-like syntax", end: `(?=(['"])|((?<!\\\\)\\n))`, patterns: [{ include: "#escape-sequence-unicode" }, { include: "#string-entity" }] }, "string-unicode-guts": { patterns: [{ include: "#escape-sequence-unicode" }, { include: "#string-entity" }, { include: "#string-brace-formatting" }] } }, scopeName: "source.python", aliases: ["py"] });
17
- var n = [
18
- e
19
- ];
20
- export {
21
- n as default
22
- };
@@ -1,7 +0,0 @@
1
- const e = Object.freeze({ displayName: "R", name: "r", patterns: [{ include: "#roxygen" }, { include: "#comments" }, { include: "#constants" }, { include: "#keywords" }, { include: "#storage-type" }, { include: "#strings" }, { include: "#brackets" }, { include: "#function-declarations" }, { include: "#lambda-functions" }, { include: "#builtin-functions" }, { include: "#function-calls" }, { include: "#general-variables" }], repository: { brackets: { patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.section.parens.begin.r" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.section.parens.end.r" } }, patterns: [{ include: "source.r" }] }, { begin: "\\[(?!\\[)", beginCaptures: { 0: { name: "punctuation.section.brackets.single.begin.r" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.section.brackets.single.end.r" } }, patterns: [{ include: "source.r" }] }, { begin: "\\[\\[", beginCaptures: { 0: { name: "punctuation.section.brackets.double.begin.r" } }, contentName: "meta.item-access.arguments.r", end: "\\]\\]", endCaptures: { 0: { name: "punctuation.section.brackets.double.end.r" } }, patterns: [{ include: "source.r" }] }, { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.braces.begin.r" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.section.braces.end.r" } }, patterns: [{ include: "source.r" }] }] }, "builtin-functions": { patterns: [{ captures: { 1: { name: "support.function.r" } }, match: "\\b(abbreviate|abs|acos|acosh|activeBindingFunction|addNA|addTaskCallback|agrep|agrepl|alist|all|all\\.equal|all\\.equal\\.character|all\\.equal\\.default|all\\.equal\\.environment|all\\.equal\\.envRefClass|all\\.equal\\.factor|all\\.equal\\.formula|all\\.equal\\.function|all\\.equal\\.language|all\\.equal\\.list|all\\.equal\\.numeric|all\\.equal\\.POSIXt|all\\.equal\\.raw|all\\.names|allowInterrupts|all\\.vars|any|anyDuplicated|anyDuplicated\\.array|anyDuplicated\\.data\\.frame|anyDuplicated\\.default|anyDuplicated\\.matrix|anyNA|anyNA\\.data\\.frame|anyNA\\.numeric_version|anyNA\\.POSIXlt|aperm|aperm\\.default|aperm\\.table|append|apply|Arg|args|array|arrayInd|as\\.array|as\\.array\\.default|as\\.call|as\\.character|as\\.character\\.condition|as\\.character\\.Date|as\\.character\\.default|as\\.character\\.error|as\\.character\\.factor|as\\.character\\.hexmode|as\\.character\\.numeric_version|as\\.character\\.octmode|as\\.character\\.POSIXt|as\\.character\\.srcref|as\\.complex|as\\.data\\.frame|as\\.data\\.frame\\.array|as\\.data\\.frame\\.AsIs|as\\.data\\.frame\\.character|as\\.data\\.frame\\.complex|as\\.data\\.frame\\.data\\.frame|as\\.data\\.frame\\.Date|as\\.data\\.frame\\.default|as\\.data\\.frame\\.difftime|as\\.data\\.frame\\.factor|as\\.data\\.frame\\.integer|as\\.data\\.frame\\.list|as\\.data\\.frame\\.logical|as\\.data\\.frame\\.matrix|as\\.data\\.frame\\.model\\.matrix|as\\.data\\.frame\\.noquote|as\\.data\\.frame\\.numeric|as\\.data\\.frame\\.numeric_version|as\\.data\\.frame\\.ordered|as\\.data\\.frame\\.POSIXct|as\\.data\\.frame\\.POSIXlt|as\\.data\\.frame\\.raw|as\\.data\\.frame\\.table|as\\.data\\.frame\\.ts|as\\.data\\.frame\\.vector|as\\.Date|as\\.Date\\.character|as\\.Date\\.default|as\\.Date\\.factor|as\\.Date\\.numeric|as\\.Date\\.POSIXct|as\\.Date\\.POSIXlt|as\\.difftime|as\\.double|as\\.double\\.difftime|as\\.double\\.POSIXlt|as\\.environment|as\\.expression|as\\.expression\\.default|as\\.factor|as\\.function|as\\.function\\.default|as\\.hexmode|asin|asinh|as\\.integer|as\\.list|as\\.list\\.data\\.frame|as\\.list\\.Date|as\\.list\\.default|as\\.list\\.difftime|as\\.list\\.environment|as\\.list\\.factor|as\\.list\\.function|as\\.list\\.numeric_version|as\\.list\\.POSIXct|as\\.list\\.POSIXlt|as\\.logical|as\\.logical\\.factor|as\\.matrix|as\\.matrix\\.data\\.frame|as\\.matrix\\.default|as\\.matrix\\.noquote|as\\.matrix\\.POSIXlt|as\\.name|asNamespace|as\\.null|as\\.null\\.default|as\\.numeric|as\\.numeric_version|as\\.octmode|as\\.ordered|as\\.package_version|as\\.pairlist|asplit|as\\.POSIXct|as\\.POSIXct\\.Date|as\\.POSIXct\\.default|as\\.POSIXct\\.numeric|as\\.POSIXct\\.POSIXlt|as\\.POSIXlt|as\\.POSIXlt\\.character|as\\.POSIXlt\\.Date|as\\.POSIXlt\\.default|as\\.POSIXlt\\.factor|as\\.POSIXlt\\.numeric|as\\.POSIXlt\\.POSIXct|as\\.qr|as\\.raw|asS3|asS4|assign|as\\.single|as\\.single\\.default|as\\.symbol|as\\.table|as\\.table\\.default|as\\.vector|as\\.vector\\.factor|atan|atan2|atanh|attach|attachNamespace|attr|attr\\.all\\.equal|attributes|autoload|autoloader|backsolve|baseenv|basename|besselI|besselJ|besselK|besselY|beta|bindingIsActive|bindingIsLocked|bindtextdomain|bitwAnd|bitwNot|bitwOr|bitwShiftL|bitwShiftR|bitwXor|body|bquote|break|browser|browserCondition|browserSetDebug|browserText|builtins|by|by\\.data\\.frame|by\\.default|bzfile|c|call|callCC|capabilities|casefold|cat|cbind|cbind\\.data\\.frame|c\\.Date|c\\.difftime|ceiling|c\\.factor|character|char\\.expand|charmatch|charToRaw|chartr|check_tzones|chkDots|chol|chol2inv|chol\\.default|choose|class|clearPushBack|close|closeAllConnections|close\\.connection|close\\.srcfile|close\\.srcfilealias|c\\.noquote|c\\.numeric_version|col|colMeans|colnames|colSums|commandArgs|comment|complex|computeRestarts|conditionCall|conditionCall\\.condition|conditionMessage|conditionMessage\\.condition|conflictRules|conflicts|Conj|contributors|cos|cosh|cospi|c\\.POSIXct|c\\.POSIXlt|crossprod|Cstack_info|cummax|cummin|cumprod|cumsum|curlGetHeaders|cut|cut\\.Date|cut\\.default|cut\\.POSIXt|c\\.warnings|data\\.class|data\\.frame|data\\.matrix|date|debug|debuggingState|debugonce|default\\.stringsAsFactors|delayedAssign|deparse|deparse1|det|detach|determinant|determinant\\.matrix|dget|diag|diff|diff\\.Date|diff\\.default|diff\\.difftime|diff\\.POSIXt|difftime|digamma|dim|dim\\.data\\.frame|dimnames|dimnames\\.data\\.frame|dir|dir\\.create|dir\\.exists|dirname|do\\.call|dontCheck|double|dput|dQuote|drop|droplevels|droplevels\\.data\\.frame|droplevels\\.factor|dump|duplicated|duplicated\\.array|duplicated\\.data\\.frame|duplicated\\.default|duplicated\\.matrix|duplicated\\.numeric_version|duplicated\\.POSIXlt|duplicated\\.warnings|dynGet|dyn\\.load|dyn\\.unload|eapply|eigen|emptyenv|enc2native|enc2utf8|encodeString|Encoding|endsWith|enquote|environment|environmentIsLocked|environmentName|env\\.profile|errorCondition|eval|eval\\.parent|evalq|exists|exp|expand\\.grid|expm1|expression|extSoftVersion|factor|factorial|fifo|file|file\\.access|file\\.append|file\\.choose|file\\.copy|file\\.create|file\\.exists|file\\.info|file\\.link|file\\.mode|file\\.mtime|file\\.path|file\\.remove|file\\.rename|file\\.show|file\\.size|file\\.symlink|Filter|Find|findInterval|find\\.package|findPackageEnv|findRestart|floor|flush|flush\\.connection|for|force|forceAndCall|formals|format|format\\.AsIs|formatC|format\\.data\\.frame|format\\.Date|format\\.default|format\\.difftime|formatDL|format\\.factor|format\\.hexmode|format\\.info|format\\.libraryIQR|format\\.numeric_version|format\\.octmode|format\\.packageInfo|format\\.POSIXct|format\\.POSIXlt|format\\.pval|format\\.summaryDefault|forwardsolve|function|gamma|gc|gcinfo|gc\\.time|gctorture|gctorture2|get|get0|getAllConnections|getCallingDLL|getCallingDLLe|getConnection|getDLLRegisteredRoutines|getDLLRegisteredRoutines\\.character|getDLLRegisteredRoutines\\.DLLInfo|getElement|geterrmessage|getExportedValue|getHook|getLoadedDLLs|getNamespace|getNamespaceExports|getNamespaceImports|getNamespaceInfo|getNamespaceName|getNamespaceUsers|getNamespaceVersion|getNativeSymbolInfo|getOption|getRversion|getSrcLines|getTaskCallbackNames|gettext|gettextf|getwd|gl|globalCallingHandlers|globalenv|gregexec|gregexpr|grep|grepl|grepRaw|grouping|gsub|gzcon|gzfile|I|iconv|iconvlist|icuGetCollate|icuSetCollate|identical|identity|if|ifelse|Im|importIntoEnv|infoRDS|inherits|integer|interaction|interactive|intersect|intToBits|intToUtf8|inverse\\.rle|invisible|invokeRestart|invokeRestartInteractively|isa|is\\.array|is\\.atomic|isatty|isBaseNamespace|is\\.call|is\\.character|is\\.complex|is\\.data\\.frame|isdebugged|is\\.double|is\\.element|is\\.environment|is\\.expression|is\\.factor|isFALSE|is\\.finite|is\\.function|isIncomplete|is\\.infinite|is\\.integer|is\\.language|is\\.list|is\\.loaded|is\\.logical|is\\.matrix|is\\.na|is\\.na\\.data\\.frame|is\\.name|isNamespace|isNamespaceLoaded|is\\.nan|is\\.na\\.numeric_version|is\\.na\\.POSIXlt|is\\.null|is\\.numeric|is\\.numeric\\.Date|is\\.numeric\\.difftime|is\\.numeric\\.POSIXt|is\\.numeric_version|is\\.object|ISOdate|ISOdatetime|isOpen|is\\.ordered|is\\.package_version|is\\.pairlist|is\\.primitive|is\\.qr|is\\.R|is\\.raw|is\\.recursive|isRestart|isS4|isSeekable|is\\.single|is\\.symbol|isSymmetric|isSymmetric\\.matrix|is\\.table|isTRUE|is\\.unsorted|is\\.vector|jitter|julian|julian\\.Date|julian\\.POSIXt|kappa|kappa\\.default|kappa\\.lm|kappa\\.qr|kronecker|l10n_info|labels|labels\\.default|La_library|lapply|La\\.svd|La_version|lazyLoad|lazyLoadDBexec|lazyLoadDBfetch|lbeta|lchoose|length|length\\.POSIXlt|lengths|levels|levels\\.default|lfactorial|lgamma|libcurlVersion|library|library\\.dynam|library\\.dynam\\.unload|licence|license|list|list2DF|list2env|list\\.dirs|list\\.files|load|loadedNamespaces|loadingNamespaceInfo|loadNamespace|local|lockBinding|lockEnvironment|log|log10|log1p|log2|logb|logical|lower\\.tri|ls|makeActiveBinding|make\\.names|make\\.unique|Map|mapply|marginSums|margin\\.table|match|match\\.arg|match\\.call|match\\.fun|Math\\.data\\.frame|Math\\.Date|Math\\.difftime|Math\\.factor|Math\\.POSIXt|mat\\.or\\.vec|matrix|max|max\\.col|mean|mean\\.Date|mean\\.default|mean\\.difftime|mean\\.POSIXct|mean\\.POSIXlt|memCompress|memDecompress|mem\\.maxNSize|mem\\.maxVSize|memory\\.profile|merge|merge\\.data\\.frame|merge\\.default|message|mget|min|missing|Mod|mode|months|months\\.Date|months\\.POSIXt|names|namespaceExport|namespaceImport|namespaceImportClasses|namespaceImportFrom|namespaceImportMethods|names\\.POSIXlt|nargs|nchar|ncol|NCOL|Negate|new\\.env|next|NextMethod|ngettext|nlevels|noquote|norm|normalizePath|nrow|NROW|nullfile|numeric|numeric_version|numToBits|numToInts|nzchar|objects|oldClass|OlsonNames|on\\.exit|open|open\\.connection|open\\.srcfile|open\\.srcfilealias|open\\.srcfilecopy|Ops\\.data\\.frame|Ops\\.Date|Ops\\.difftime|Ops\\.factor|Ops\\.numeric_version|Ops\\.ordered|Ops\\.POSIXt|options|order|ordered|outer|packageEvent|packageHasNamespace|packageNotFoundError|packageStartupMessage|package_version|packBits|pairlist|parent\\.env|parent\\.frame|parse|parseNamespaceFile|paste|paste0|path\\.expand|path\\.package|pcre_config|pi|pipe|plot|pmatch|pmax|pmax\\.int|pmin|pmin\\.int|polyroot|Position|pos\\.to\\.env|pretty|pretty\\.default|prettyNum|print|print\\.AsIs|print\\.by|print\\.condition|print\\.connection|print\\.data\\.frame|print\\.Date|print\\.default|print\\.difftime|print\\.Dlist|print\\.DLLInfo|print\\.DLLInfoList|print\\.DLLRegisteredRoutines|print\\.eigen|print\\.factor|print\\.function|print\\.hexmode|print\\.libraryIQR|print\\.listof|print\\.NativeRoutineList|print\\.noquote|print\\.numeric_version|print\\.octmode|print\\.packageInfo|print\\.POSIXct|print\\.POSIXlt|print\\.proc_time|print\\.restart|print\\.rle|print\\.simple\\.list|print\\.srcfile|print\\.srcref|print\\.summaryDefault|print\\.summary\\.table|print\\.summary\\.warnings|print\\.table|print\\.warnings|prmatrix|proc\\.time|prod|proportions|prop\\.table|provideDimnames|psigamma|pushBack|pushBackLength|q|qr|qr\\.coef|qr\\.default|qr\\.fitted|qr\\.Q|qr\\.qty|qr\\.qy|qr\\.R|qr\\.resid|qr\\.solve|qr\\.X|quarters|quarters\\.Date|quarters\\.POSIXt|quit|quote|range|range\\.default|rank|rapply|raw|rawConnection|rawConnectionValue|rawShift|rawToBits|rawToChar|rbind|rbind\\.data\\.frame|rcond|Re|readBin|readChar|read\\.dcf|readline|readLines|readRDS|readRenviron|Recall|Reduce|regexec|regexpr|reg\\.finalizer|registerS3method|registerS3methods|regmatches|remove|removeTaskCallback|rep|rep\\.Date|rep\\.difftime|repeat|rep\\.factor|rep\\.int|replace|rep_len|replicate|rep\\.numeric_version|rep\\.POSIXct|rep\\.POSIXlt|require|requireNamespace|restartDescription|restartFormals|retracemem|return|returnValue|rev|rev\\.default|R\\.home|rle|rm|RNGkind|RNGversion|round|round\\.Date|round\\.POSIXt|row|rowMeans|rownames|row\\.names|row\\.names\\.data\\.frame|row\\.names\\.default|rowsum|rowsum\\.data\\.frame|rowsum\\.default|rowSums|R_system_version|R\\.version|R\\.Version|R\\.version\\.string|sample|sample\\.int|sapply|save|save\\.image|saveRDS|scale|scale\\.default|scan|search|searchpaths|seek|seek\\.connection|seq|seq_along|seq\\.Date|seq\\.default|seq\\.int|seq_len|seq\\.POSIXt|sequence|sequence\\.default|serialize|serverSocket|setdiff|setequal|setHook|setNamespaceInfo|set\\.seed|setSessionTimeLimit|setTimeLimit|setwd|showConnections|shQuote|sign|signalCondition|signif|simpleCondition|simpleError|simpleMessage|simpleWarning|simplify2array|sin|single|sinh|sink|sink\\.number|sinpi|slice\\.index|socketAccept|socketConnection|socketSelect|socketTimeout|solve|solve\\.default|solve\\.qr|sort|sort\\.default|sort\\.int|sort\\.list|sort\\.POSIXlt|source|split|split\\.data\\.frame|split\\.Date|split\\.default|split\\.POSIXct|sprintf|sqrt|sQuote|srcfile|srcfilealias|srcfilecopy|srcref|standardGeneric|startsWith|stderr|stdin|stdout|stop|stopifnot|storage\\.mode|str2expression|str2lang|strftime|strptime|strrep|strsplit|strtoi|strtrim|structure|strwrap|sub|subset|subset\\.data\\.frame|subset\\.default|subset\\.matrix|substitute|substr|substring|sum|summary|summary\\.connection|summary\\.data\\.frame|Summary\\.data\\.frame|summary\\.Date|Summary\\.Date|summary\\.default|Summary\\.difftime|summary\\.factor|Summary\\.factor|summary\\.matrix|Summary\\.numeric_version|Summary\\.ordered|summary\\.POSIXct|Summary\\.POSIXct|summary\\.POSIXlt|Summary\\.POSIXlt|summary\\.proc_time|summary\\.srcfile|summary\\.srcref|summary\\.table|summary\\.warnings|suppressMessages|suppressPackageStartupMessages|suppressWarnings|suspendInterrupts|svd|sweep|switch|sys\\.call|sys\\.calls|Sys\\.chmod|Sys\\.Date|sys\\.frame|sys\\.frames|sys\\.function|Sys\\.getenv|Sys\\.getlocale|Sys\\.getpid|Sys\\.glob|Sys\\.info|sys\\.load\\.image|Sys\\.localeconv|sys\\.nframe|sys\\.on\\.exit|sys\\.parent|sys\\.parents|Sys\\.readlink|sys\\.save\\.image|Sys\\.setenv|Sys\\.setFileTime|Sys\\.setlocale|Sys\\.sleep|sys\\.source|sys\\.status|system|system2|system\\.file|system\\.time|Sys\\.time|Sys\\.timezone|Sys\\.umask|Sys\\.unsetenv|Sys\\.which|t|table|tabulate|tan|tanh|tanpi|tapply|taskCallbackManager|tcrossprod|t\\.data\\.frame|t\\.default|tempdir|tempfile|textConnection|textConnectionValue|tolower|topenv|toString|toString\\.default|toupper|trace|traceback|tracemem|tracingState|transform|transform\\.data\\.frame|transform\\.default|trigamma|trimws|trunc|truncate|truncate\\.connection|trunc\\.Date|trunc\\.POSIXt|try|tryCatch|tryInvokeRestart|typeof|unclass|undebug|union|unique|unique\\.array|unique\\.data\\.frame|unique\\.default|unique\\.matrix|unique\\.numeric_version|unique\\.POSIXlt|unique\\.warnings|units|units\\.difftime|unix\\.time|unlink|unlist|unloadNamespace|unlockBinding|unname|unserialize|unsplit|untrace|untracemem|unz|upper\\.tri|url|UseMethod|utf8ToInt|validEnc|validUTF8|vapply|vector|Vectorize|version|warning|warningCondition|warnings|weekdays|weekdays\\.Date|weekdays\\.POSIXt|which|which\\.max|which\\.min|while|with|withAutoprint|withCallingHandlers|with\\.default|within|within\\.data\\.frame|within\\.list|withRestarts|withVisible|write|writeBin|writeChar|write\\.dcf|writeLines|xor|xpdrows\\.data\\.frame|xtfrm|xtfrm\\.AsIs|xtfrm\\.data\\.frame|xtfrm\\.Date|xtfrm\\.default|xtfrm\\.difftime|xtfrm\\.factor|xtfrm\\.numeric_version|xtfrm\\.POSIXct|xtfrm\\.POSIXlt|xzfile|zapsmall)\\s*(\\()" }, { captures: { 1: { name: "support.function.r" } }, match: "\\b(abline|arrows|assocplot|axis|Axis|axis\\.Date|axis\\.POSIXct|axTicks|barplot|barplot\\.default|box|boxplot|boxplot\\.default|boxplot\\.matrix|bxp|cdplot|clip|close\\.screen|co\\.intervals|contour|contour\\.default|coplot|curve|dotchart|erase\\.screen|filled\\.contour|fourfoldplot|frame|grconvertX|grconvertY|grid|hist|hist\\.default|identify|image|image\\.default|layout|layout\\.show|lcm|legend|lines|lines\\.default|locator|matlines|matplot|matpoints|mosaicplot|mtext|pairs|pairs\\.default|panel\\.smooth|par|persp|pie|plot|plot\\.default|plot\\.design|plot\\.function|plot\\.new|plot\\.window|plot\\.xy|points|points\\.default|polygon|polypath|rasterImage|rect|rug|screen|segments|smoothScatter|spineplot|split\\.screen|stars|stem|strheight|stripchart|strwidth|sunflowerplot|symbols|text|text\\.default|title|xinch|xspline|xyinch|yinch)\\s*(\\()" }, { captures: { 1: { name: "support.function.r" } }, match: "\\b(adjustcolor|as\\.graphicsAnnot|as\\.raster|axisTicks|bitmap|blues9|bmp|boxplot\\.stats|cairo_pdf|cairo_ps|cairoSymbolFont|check\\.options|chull|CIDFont|cm|cm\\.colors|col2rgb|colorConverter|colorRamp|colorRampPalette|colors|colorspaces|colours|contourLines|convertColor|densCols|dev2bitmap|devAskNewPage|dev\\.capabilities|dev\\.capture|dev\\.control|dev\\.copy|dev\\.copy2eps|dev\\.copy2pdf|dev\\.cur|dev\\.flush|dev\\.hold|deviceIsInteractive|dev\\.interactive|dev\\.list|dev\\.new|dev\\.next|dev\\.off|dev\\.prev|dev\\.print|dev\\.set|dev\\.size|embedFonts|extendrange|getGraphicsEvent|getGraphicsEventEnv|graphics\\.off|gray|gray\\.colors|grey|grey\\.colors|grSoftVersion|hcl|hcl\\.colors|hcl\\.pals|heat\\.colors|Hershey|hsv|is\\.raster|jpeg|make\\.rgb|n2mfrow|nclass\\.FD|nclass\\.scott|nclass\\.Sturges|palette|palette\\.colors|palette\\.pals|pdf|pdfFonts|pdf\\.options|pictex|png|postscript|postscriptFonts|ps\\.options|quartz|quartzFont|quartzFonts|quartz\\.options|quartz\\.save|rainbow|recordGraphics|recordPlot|replayPlot|rgb|rgb2hsv|savePlot|setEPS|setGraphicsEventEnv|setGraphicsEventHandlers|setPS|svg|terrain\\.colors|tiff|topo\\.colors|trans3d|Type1Font|x11|X11|X11Font|X11Fonts|X11\\.options|xfig|xy\\.coords|xyTable|xyz\\.coords)\\s*(\\()" }, { captures: { 1: { name: "support.function.r" } }, match: "\\b(addNextMethod|allNames|Arith|as|asMethodDefinition|assignClassDef|assignMethodsMetaData|balanceMethodsList|cacheGenericsMetaData|cacheMetaData|cacheMethod|callGeneric|callNextMethod|canCoerce|cbind2|checkAtAssignment|checkSlotAssignment|classesToAM|classLabel|classMetaName|className|coerce|Compare|completeClassDefinition|completeExtends|completeSubclasses|Complex|conformMethod|defaultDumpName|defaultPrototype|doPrimitiveMethod|dumpMethod|dumpMethods|el|elNamed|empty\\.dump|emptyMethodsList|evalOnLoad|evalqOnLoad|evalSource|existsFunction|existsMethod|extends|externalRefMethod|finalDefaultMethod|findClass|findFunction|findMethod|findMethods|findMethodSignatures|findUnique|fixPre1\\.8|formalArgs|functionBody|generic\\.skeleton|getAllSuperClasses|getClass|getClassDef|getClasses|getDataPart|getFunction|getGeneric|getGenerics|getGroup|getGroupMembers|getLoadActions|getMethod|getMethods|getMethodsForDispatch|getMethodsMetaData|getPackageName|getRefClass|getSlots|getValidity|hasArg|hasLoadAction|hasMethod|hasMethods|implicitGeneric|inheritedSlotNames|initFieldArgs|initialize|initRefFields|insertClassMethods|insertMethod|insertSource|is|isClass|isClassDef|isClassUnion|isGeneric|isGrammarSymbol|isGroup|isRematched|isSealedClass|isSealedMethod|isVirtualClass|isXS3Class|kronecker|languageEl|linearizeMlist|listFromMethods|listFromMlist|loadMethod|Logic|makeClassRepresentation|makeExtends|makeGeneric|makeMethodsList|makePrototypeFromClassDef|makeStandardGeneric|matchSignature|Math|Math2|mergeMethods|metaNameUndo|MethodAddCoerce|methodSignatureMatrix|method\\.skeleton|MethodsList|MethodsListSelect|methodsPackageMetaName|missingArg|multipleClasses|new|newBasic|newClassRepresentation|newEmptyObject|Ops|packageSlot|possibleExtends|prohibitGeneric|promptClass|promptMethods|prototype|Quote|rbind2|reconcilePropertiesAndPrototype|registerImplicitGenerics|rematchDefinition|removeClass|removeGeneric|removeMethod|removeMethods|representation|requireMethods|resetClass|resetGeneric|S3Class|S3Part|sealClass|selectMethod|selectSuperClasses|setAs|setClass|setClassUnion|setDataPart|setGeneric|setGenericImplicit|setGroupGeneric|setIs|setLoadAction|setLoadActions|setMethod|setOldClass|setPackageName|setPrimitiveMethods|setRefClass|setReplaceMethod|setValidity|show|showClass|showDefault|showExtends|showMethods|showMlist|signature|SignatureMethod|sigToEnv|slot|slotNames|slotsFromS3|substituteDirect|substituteFunctionArgs|Summary|superClassDepth|testInheritedMethods|testVirtual|tryNew|unRematchDefinition|validObject|validSlotNames)\\s*(\\()" }, { captures: { 1: { name: "support.function.r" } }, match: "\\b(acf|acf2AR|add1|addmargins|add\\.scope|aggregate|aggregate\\.data\\.frame|aggregate\\.ts|AIC|alias|anova|ansari\\.test|aov|approx|approxfun|ar|ar\\.burg|arima|arima0|arima0\\.diag|arima\\.sim|ARMAacf|ARMAtoMA|ar\\.mle|ar\\.ols|ar\\.yw|as\\.dendrogram|as\\.dist|as\\.formula|as\\.hclust|asOneSidedFormula|as\\.stepfun|as\\.ts|ave|bandwidth\\.kernel|bartlett\\.test|BIC|binomial|binom\\.test|biplot|Box\\.test|bw\\.bcv|bw\\.nrd|bw\\.nrd0|bw\\.SJ|bw\\.ucv|C|cancor|case\\.names|ccf|chisq\\.test|cmdscale|coef|coefficients|complete\\.cases|confint|confint\\.default|confint\\.lm|constrOptim|contrasts|contr\\.helmert|contr\\.poly|contr\\.SAS|contr\\.sum|contr\\.treatment|convolve|cooks\\.distance|cophenetic|cor|cor\\.test|cov|cov2cor|covratio|cov\\.wt|cpgram|cutree|cycle|D|dbeta|dbinom|dcauchy|dchisq|decompose|delete\\.response|deltat|dendrapply|density|density\\.default|deriv|deriv3|deviance|dexp|df|DF2formula|dfbeta|dfbetas|dffits|df\\.kernel|df\\.residual|dgamma|dgeom|dhyper|diffinv|dist|dlnorm|dlogis|dmultinom|dnbinom|dnorm|dpois|drop1|drop\\.scope|drop\\.terms|dsignrank|dt|dummy\\.coef|dummy\\.coef\\.lm|dunif|dweibull|dwilcox|ecdf|eff\\.aovlist|effects|embed|end|estVar|expand\\.model\\.frame|extractAIC|factanal|factor\\.scope|family|fft|filter|fisher\\.test|fitted|fitted\\.values|fivenum|fligner\\.test|formula|frequency|friedman\\.test|ftable|Gamma|gaussian|get_all_vars|getCall|getInitial|glm|glm\\.control|glm\\.fit|hasTsp|hat|hatvalues|hclust|heatmap|HoltWinters|influence|influence\\.measures|integrate|interaction\\.plot|inverse\\.gaussian|IQR|is\\.empty\\.model|is\\.leaf|is\\.mts|isoreg|is\\.stepfun|is\\.ts|is\\.tskernel|KalmanForecast|KalmanLike|KalmanRun|KalmanSmooth|kernapply|kernel|kmeans|knots|kruskal\\.test|ksmooth|ks\\.test|lag|lag\\.plot|line|lm|lm\\.fit|lm\\.influence|lm\\.wfit|loadings|loess|loess\\.control|loess\\.smooth|logLik|loglin|lowess|ls\\.diag|lsfit|ls\\.print|mad|mahalanobis|makeARIMA|make\\.link|makepredictcall|manova|mantelhaen\\.test|mauchly\\.test|mcnemar\\.test|median|median\\.default|medpolish|model\\.extract|model\\.frame|model\\.frame\\.default|model\\.matrix|model\\.matrix\\.default|model\\.matrix\\.lm|model\\.offset|model\\.response|model\\.tables|model\\.weights|monthplot|mood\\.test|mvfft|na\\.action|na\\.contiguous|na\\.exclude|na\\.fail|na\\.omit|na\\.pass|napredict|naprint|naresid|nextn|nlm|nlminb|nls|nls\\.control|NLSstAsymptotic|NLSstClosestX|NLSstLfAsymptote|NLSstRtAsymptote|nobs|numericDeriv|offset|oneway\\.test|optim|optimHess|optimise|optimize|order\\.dendrogram|pacf|p\\.adjust|p\\.adjust\\.methods|Pair|pairwise\\.prop\\.test|pairwise\\.table|pairwise\\.t\\.test|pairwise\\.wilcox\\.test|pbeta|pbinom|pbirthday|pcauchy|pchisq|pexp|pf|pgamma|pgeom|phyper|plclust|plnorm|plogis|plot\\.ecdf|plot\\.spec\\.coherency|plot\\.spec\\.phase|plot\\.stepfun|plot\\.ts|pnbinom|pnorm|poisson|poisson\\.test|poly|polym|power|power\\.anova\\.test|power\\.prop\\.test|power\\.t\\.test|ppoints|ppois|ppr|PP\\.test|prcomp|predict|predict\\.glm|predict\\.lm|preplot|princomp|printCoefmat|profile|proj|promax|prop\\.test|prop\\.trend\\.test|psignrank|pt|ptukey|punif|pweibull|pwilcox|qbeta|qbinom|qbirthday|qcauchy|qchisq|qexp|qf|qgamma|qgeom|qhyper|qlnorm|qlogis|qnbinom|qnorm|qpois|qqline|qqnorm|qqplot|qsignrank|qt|qtukey|quade\\.test|quantile|quasi|quasibinomial|quasipoisson|qunif|qweibull|qwilcox|r2dtable|rbeta|rbinom|rcauchy|rchisq|read\\.ftable|rect\\.hclust|reformulate|relevel|reorder|replications|reshape|resid|residuals|residuals\\.glm|residuals\\.lm|rexp|rf|rgamma|rgeom|rhyper|rlnorm|rlogis|rmultinom|rnbinom|rnorm|rpois|rsignrank|rstandard|rstudent|rt|runif|runmed|rweibull|rwilcox|rWishart|scatter\\.smooth|screeplot|sd|se\\.contrast|selfStart|setNames|shapiro\\.test|sigma|simulate|smooth|smoothEnds|smooth\\.spline|sortedXyData|spec\\.ar|spec\\.pgram|spec\\.taper|spectrum|spline|splinefun|splinefunH|SSasymp|SSasympOff|SSasympOrig|SSbiexp|SSD|SSfol|SSfpl|SSgompertz|SSlogis|SSmicmen|SSweibull|start|stat\\.anova|step|stepfun|stl|StructTS|summary\\.aov|summary\\.glm|summary\\.lm|summary\\.manova|summary\\.stepfun|supsmu|symnum|termplot|terms|terms\\.formula|time|toeplitz|ts|tsdiag|ts\\.intersect|tsp|ts\\.plot|tsSmooth|ts\\.union|t\\.test|TukeyHSD|uniroot|update|update\\.default|update\\.formula|var|variable\\.names|varimax|var\\.test|vcov|weighted\\.mean|weighted\\.residuals|weights|wilcox\\.test|window|write\\.ftable|xtabs)\\s*(\\()" }, { captures: { 1: { name: "support.function.r" } }, match: "\\b(adist|alarm|apropos|aregexec|argsAnywhere|asDateBuilt|askYesNo|aspell|aspell_package_C_files|aspell_package_Rd_files|aspell_package_R_files|aspell_package_vignettes|aspell_write_personal_dictionary_file|as\\.person|as\\.personList|as\\.relistable|as\\.roman|assignInMyNamespace|assignInNamespace|available\\.packages|bibentry|browseEnv|browseURL|browseVignettes|bug\\.report|capture\\.output|changedFiles|charClass|checkCRAN|chooseBioCmirror|chooseCRANmirror|citation|cite|citeNatbib|citEntry|citFooter|citHeader|close\\.socket|combn|compareVersion|contrib\\.url|count\\.fields|create\\.post|data|dataentry|data\\.entry|de|debugcall|debugger|demo|de\\.ncols|de\\.restore|de\\.setup|download\\.file|download\\.packages|dump\\.frames|edit|emacs|example|file\\.edit|fileSnapshot|file_test|find|findLineNum|fix|fixInNamespace|flush\\.console|formatOL|formatUL|getAnywhere|getCRANmirrors|getFromNamespace|getParseData|getParseText|getS3method|getSrcDirectory|getSrcFilename|getSrcLocation|getSrcref|getTxtProgressBar|glob2rx|globalVariables|hasName|head|head\\.matrix|help|help\\.request|help\\.search|help\\.start|history|hsearch_db|hsearch_db_concepts|hsearch_db_keywords|installed\\.packages|install\\.packages|is\\.relistable|isS3method|isS3stdGeneric|limitedLabels|loadhistory|localeToCharset|lsf\\.str|ls\\.str|maintainer|make\\.packages\\.html|makeRweaveLatexCodeRunner|make\\.socket|memory\\.limit|memory\\.size|menu|methods|mirror2html|modifyList|new\\.packages|news|nsl|object\\.size|old\\.packages|osVersion|packageDate|packageDescription|packageName|package\\.skeleton|packageStatus|packageVersion|page|person|personList|pico|process\\.events|prompt|promptData|promptImport|promptPackage|rc\\.getOption|rc\\.options|rc\\.settings|rc\\.status|readCitationFile|read\\.csv|read\\.csv2|read\\.delim|read\\.delim2|read\\.DIF|read\\.fortran|read\\.fwf|read\\.socket|read\\.table|recover|relist|remove\\.packages|removeSource|Rprof|Rprofmem|RShowDoc|RSiteSearch|rtags|Rtangle|RtangleFinish|RtangleRuncode|RtangleSetup|RtangleWritedoc|RweaveChunkPrefix|RweaveEvalWithOpt|RweaveLatex|RweaveLatexFinish|RweaveLatexOptions|RweaveLatexSetup|RweaveLatexWritedoc|RweaveTryStop|savehistory|select\\.list|sessionInfo|setBreakpoint|setRepositories|setTxtProgressBar|stack|Stangle|str|strcapture|strOptions|summaryRprof|suppressForeignCheck|Sweave|SweaveHooks|SweaveSyntaxLatex|SweaveSyntaxNoweb|SweaveSyntConv|tail|tail\\.matrix|tar|timestamp|toBibtex|toLatex|txtProgressBar|type\\.convert|undebugcall|unstack|untar|unzip|update\\.packages|upgrade|URLdecode|URLencode|url\\.show|vi|View|vignette|warnErrList|write\\.csv|write\\.csv2|write\\.socket|write\\.table|xedit|xemacs|zip)\\s*(\\()" }] }, comments: { patterns: [{ captures: { 1: { name: "comment.line.pragma.r" }, 2: { name: "entity.name.pragma.name.r" } }, match: "^(#pragma[ \\t]+mark)[ \\t](.*)", name: "comment.line.pragma-mark.r" }, { begin: "(^[ \\t]+)?(?=#)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.r" } }, end: "(?!\\G)", patterns: [{ begin: "#", beginCaptures: { 0: { name: "punctuation.definition.comment.r" } }, end: "\\n", name: "comment.line.number-sign.r" }] }] }, constants: { patterns: [{ match: "\\b(pi|letters|LETTERS|month\\.abb|month\\.name)\\b", name: "support.constant.misc.r" }, { match: "\\b(TRUE|FALSE|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_|Inf|NaN)\\b", name: "constant.language.r" }, { match: "\\b0(x|X)[0-9a-fA-F]+i\\b", name: "constant.numeric.imaginary.hexadecimal.r" }, { match: "\\b\\d+\\.?\\d*(?:(e|E)(\\+|-)?\\d+)?i\\b", name: "constant.numeric.imaginary.decimal.r" }, { match: "\\.\\d+(?:(e|E)(\\+|-)?\\d+)?i\\b", name: "constant.numeric.imaginary.decimal.r" }, { match: "\\b0(x|X)[0-9a-fA-F]+L\\b", name: "constant.numeric.integer.hexadecimal.r" }, { match: "\\b(?:\\d+\\.?\\d*)(?:(e|E)(\\+|-)?\\d+)?L\\b", name: "constant.numeric.integer.decimal.r" }, { match: "\\b0(x|X)[0-9a-fA-F]+\\b", name: "constant.numeric.float.hexadecimal.r" }, { match: "\\b\\d+\\.?\\d*(?:(e|E)(\\+|-)?\\d+)?\\b", name: "constant.numeric.float.decimal.r" }, { match: "\\.\\d+(?:(e|E)(\\+|-)?\\d+)?\\b", name: "constant.numeric.float.decimal.r" }] }, "function-calls": { begin: "(?:\\b|(?=\\.))((?:[a-zA-Z._][\\w.]*|`[^`]+`))\\s*(\\()", beginCaptures: { 1: { name: "variable.function.r" }, 2: { name: "punctuation.section.parens.begin.r" } }, contentName: "meta.function-call.arguments.r", end: "(\\))", endCaptures: { 1: { name: "punctuation.section.parens.end.r" } }, name: "meta.function-call.r", patterns: [{ include: "#function-parameters" }] }, "function-declarations": { patterns: [{ captures: { 1: { name: "entity.name.function.r" }, 2: { name: "keyword.operator.assignment.r" }, 3: { name: "keyword.control.r" } }, match: "((?:`[^`\\\\]*(?:\\\\.[^`\\\\]*)*`)|(?:[A-Za-z.][0-9A-Za-z._]*))\\s*(<?<-|=(?!=))\\s*(function|\\\\)(?!\\w)", name: "meta.function.r", patterns: [{ include: "#lambda-functions" }] }] }, "function-parameters": { patterns: [{ contentName: "meta.function-call.parameters.r", name: "meta.function-call.r" }, { match: "(?:[a-zA-Z._][\\w.]*|`[^`]+`)(?=\\s[^=])", name: "variable.other.r" }, { begin: "(?==)", end: "(?=[,)])", patterns: [{ include: "source.r" }] }, { match: ",", name: "punctuation.separator.parameters.r" }, { include: "source.r" }] }, "general-variables": { patterns: [{ captures: { 1: { name: "variable.parameter.r" }, 2: { name: "keyword.operator.assignment.r" } }, match: "([A-Za-z.][0-9A-Za-z._]*)\\s*(=)(?=[^=])" }, { captures: { 1: { name: "variable.parameter.r" }, 2: { name: "keyword.operator.assignment.r" } }, match: "(`[^`]+`)\\s*(=)(?=[^=])" }, { match: "\\b([\\d_][0-9A-Za-z._]+)\\b", name: "invalid.illegal.variable.other.r" }, { match: "\\b([0-9A-Za-z_]+)(?=::)", name: "entity.namespace.r" }, { match: "\\b([0-9A-Za-z._]+)\\b", name: "variable.other.r" }, { match: "(`[^`]+`)", name: "variable.other.r" }] }, keywords: { patterns: [{ match: "\\b(break|next|repeat|else|in)\\b", name: "keyword.control.r" }, { match: "\\b(ifelse|if|for|return|switch|while|invisible)\\b(?=\\s*\\()", name: "keyword.control.r" }, { match: "(-|\\+|\\*|\\/|%\\/%|%%|%\\*%|%o%|%x%|\\^)", name: "keyword.operator.arithmetic.r" }, { match: "(:=|<-|<<-|->|->>)", name: "keyword.operator.assignment.r" }, { match: "(==|<=|>=|!=|<>|<|>|%in%)", name: "keyword.operator.comparison.r" }, { match: "(!|&{1,2}|[|]{1,2})", name: "keyword.operator.logical.r" }, { match: "(\\|>)", name: "keyword.operator.pipe.r" }, { match: "(%between%|%chin%|%like%|%\\+%|%\\+replace%|%:%|%do%|%dopar%|%>%|%<>%|%T>%|%\\$%)", name: "keyword.operator.other.r" }, { match: "(\\.\\.\\.|\\$|:|\\~|@)", name: "keyword.other.r" }] }, "lambda-functions": { patterns: [{ begin: "\\b(function)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.r" }, 2: { name: "punctuation.section.parens.begin.r" } }, contentName: "meta.function.parameters.r", end: "\\)", endCaptures: { 0: { name: "punctuation.section.parens.end.r" } }, name: "meta.function.r", patterns: [{ include: "#comments" }, { match: "(?:[a-zA-Z._][\\w.]*|`[^`]+`)", name: "variable.other.r" }, { begin: "(?==)", end: "(?=[,)])", patterns: [{ include: "source.r" }] }, { match: ",", name: "punctuation.separator.parameters.r" }] }] }, roxygen: { patterns: [{ begin: "^\\s*(#')\\s*", beginCaptures: { 1: { name: "punctuation.definition.comment.r" } }, end: "$\\n?", name: "comment.line.roxygen.r", patterns: [{ captures: { 1: { name: "keyword.other.r" }, 2: { name: "variable.parameter.r" } }, match: "(@param)\\s*((?:[a-zA-Z._][\\w.]*|`[^`]+`))" }, { match: "@[a-zA-Z0-9]+", name: "keyword.other.r" }] }] }, "storage-type": { patterns: [{ match: "\\b(character|complex|double|expression|integer|list|logical|numeric|single|raw)\\b(?=\\s*\\()", name: "storage.type.r" }] }, strings: { patterns: [{ begin: '[rR]"(-*)\\[', beginCaptures: { 0: { name: "punctuation.definition.string.raw.begin.r" } }, end: '\\]\\1"', endCaptures: { 0: { name: "punctuation.definition.string.raw.end.r" } }, name: "string.quoted.double.raw.r" }, { begin: "[rR]'(-*)\\[", beginCaptures: { 0: { name: "punctuation.definition.string.raw.begin.r" } }, end: "\\]\\1'", endCaptures: { 0: { name: "punctuation.definition.string.raw.end.r" } }, name: "string.quoted.single.raw.r" }, { begin: '[rR]"(-*)\\{', beginCaptures: { 0: { name: "punctuation.definition.string.raw.begin.r" } }, end: '\\}\\1"', endCaptures: { 0: { name: "punctuation.definition.string.raw.end.r" } }, name: "string.quoted.double.raw.r" }, { begin: "[rR]'(-*)\\{", beginCaptures: { 0: { name: "punctuation.definition.string.raw.begin.r" } }, end: "\\}\\1'", endCaptures: { 0: { name: "punctuation.definition.string.raw.end.r" } }, name: "string.quoted.single.raw.r" }, { begin: '[rR]"(-*)\\(', beginCaptures: { 0: { name: "punctuation.definition.string.raw.begin.r" } }, end: '\\)\\1"', endCaptures: { 0: { name: "punctuation.definition.string.raw.end.r" } }, name: "string.quoted.double.raw.r" }, { begin: "[rR]'(-*)\\(", beginCaptures: { 0: { name: "punctuation.definition.string.raw.begin.r" } }, end: "\\)\\1'", endCaptures: { 0: { name: "punctuation.definition.string.raw.end.r" } }, name: "string.quoted.single.raw.r" }, { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.r" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.r" } }, name: "string.quoted.double.r", patterns: [{ match: "\\\\.", name: "constant.character.escape.r" }] }, { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.r" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.r" } }, name: "string.quoted.single.r", patterns: [{ match: "\\\\.", name: "constant.character.escape.r" }] }] } }, scopeName: "source.r" });
2
- var a = [
3
- e
4
- ];
5
- export {
6
- a as default
7
- };
@@ -1,7 +0,0 @@
1
- const e = Object.freeze({ displayName: "Windows Registry Script", fileTypes: ["reg", "REG"], name: "reg", patterns: [{ match: "Windows Registry Editor Version 5\\.00|REGEDIT4", name: "keyword.control.import.reg" }, { captures: { 1: { name: "punctuation.definition.comment.reg" } }, match: "(;).*$", name: "comment.line.semicolon.reg" }, { captures: { 1: { name: "punctuation.definition.section.reg" }, 2: { name: "entity.section.reg" }, 3: { name: "punctuation.definition.section.reg" } }, match: "^\\s*(\\[(?!-))(.*?)(\\])", name: "entity.name.function.section.add.reg" }, { captures: { 1: { name: "punctuation.definition.section.reg" }, 2: { name: "entity.section.reg" }, 3: { name: "punctuation.definition.section.reg" } }, match: "^\\s*(\\[-)(.*?)(\\])", name: "entity.name.function.section.delete.reg" }, { captures: { 2: { name: "punctuation.definition.quote.reg" }, 3: { name: "support.function.regname.ini" }, 4: { name: "punctuation.definition.quote.reg" }, 5: { name: "punctuation.definition.equals.reg" }, 7: { name: "keyword.operator.arithmetic.minus.reg" }, 9: { name: "punctuation.definition.quote.reg" }, 10: { name: "string.name.regdata.reg" }, 11: { name: "punctuation.definition.quote.reg" }, 13: { name: "support.type.dword.reg" }, 14: { name: "keyword.operator.arithmetic.colon.reg" }, 15: { name: "constant.numeric.dword.reg" }, 17: { name: "support.type.dword.reg" }, 18: { name: "keyword.operator.arithmetic.parenthesis.reg" }, 19: { name: "keyword.operator.arithmetic.parenthesis.reg" }, 20: { name: "constant.numeric.hex.size.reg" }, 21: { name: "keyword.operator.arithmetic.parenthesis.reg" }, 22: { name: "keyword.operator.arithmetic.colon.reg" }, 23: { name: "constant.numeric.hex.reg" }, 24: { name: "keyword.operator.arithmetic.linecontinuation.reg" }, 25: { name: "comment.declarationline.semicolon.reg" } }, match: `^(\\s*(["']?)(.+?)(["']?)\\s*(=))?\\s*((-)|((["'])(.*?)(["']))|(((?i:dword))(:)\\s*([\\dabcdefABCDEF]{1,8}))|(((?i:hex))((\\()([\\d]*)(\\)))?(:)(.*?)(\\\\?)))\\s*(;.*)?$`, name: "meta.declaration.reg" }, { match: "\\d+", name: "constant.numeric.reg" }, { match: "[a-fA-F]+", name: "constant.numeric.hex.reg" }, { match: ",+", name: "constant.numeric.hex.comma.reg" }, { match: "\\\\", name: "keyword.operator.arithmetic.linecontinuation.reg" }], scopeName: "source.reg" });
2
- var n = [
3
- e
4
- ];
5
- export {
6
- n as default
7
- };
@@ -1,26 +0,0 @@
1
- import { n as e } from "./html-derivative-DLUduELB-cl3ZX13g.js";
2
- import { u as _ } from "./cpp-B_ULsIyI-C_UYrD6f.js";
3
- import t from "./python-S2LqejOW-S2LqejOW.js";
4
- import a from "./javascript-S4X9lPQ2-S4X9lPQ2.js";
5
- import c from "./shellscript-D61Z39XV-D61Z39XV.js";
6
- import E from "./yaml-B-GyjzSe-B-GyjzSe.js";
7
- import n from "./ruby-CaLXGQMM-dbPBCkla.js";
8
- const o = Object.freeze({ displayName: "CMake", fileTypes: ["cmake", "CMakeLists.txt"], name: "cmake", patterns: [{ comment: "Variables That Describe the System", match: "\\b(?i:APPLE|BORLAND|(CMAKE_)?(CL_64|COMPILER_2005|HOST_APPLE|HOST_SYSTEM|HOST_SYSTEM_NAME|HOST_SYSTEM_PROCESSOR|HOST_SYSTEM_VERSION|HOST_UNIX|HOST_WIN32|LIBRARY_ARCHITECTURE|LIBRARY_ARCHITECTURE_REGEX|OBJECT_PATH_MAX|SYSTEM|SYSTEM_NAME|SYSTEM_PROCESSOR|SYSTEM_VERSION)|CYGWIN|MSVC|MSVC80|MSVC_IDE|MSVC_VERSION|UNIX|WIN32|XCODE_VERSION|MSVC60|MSVC70|MSVC90|MSVC71)\\b", name: "constant.source.cmake" }, { comment: "cmakeOperators", match: "\\b(?i:ABSOLUTE|AND|BOOL|CACHE|COMMAND|COMMENT|DEFINED|DOC|EQUAL|EXISTS|EXT|FALSE|GREATER|GREATER_EQUAL|INTERNAL|IN_LIST|IS_ABSOLUTE|IS_DIRECTORY|IS_NEWER_THAN|IS_SYMLINK|LESS|LESS_EQUAL|MATCHES|NAME|NAMES|NAME_WE|NOT|OFF|ON|OR|PATH|PATHS|POLICY|PROGRAM|STREQUAL|STRGREATER|STRGREATER_EQUAL|STRING|STRLESS|STRLESS_EQUAL|TARGET|TEST|TRUE|VERSION_EQUAL|VERSION_GREATER|VERSION_GREATER_EQUAL|VERSION_LESS)\\b", name: "keyword.cmake" }, { comment: "Commands", match: "^\\s*\\b(?i:add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_libraries|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)\\b", name: "keyword.cmake" }, { comment: "Variables That Change Behavior", match: "\\b(?i:BUILD_SHARED_LIBS|(CMAKE_)?(ABSOLUTE_DESTINATION_FILES|AUTOMOC_RELAXED_MODE|BACKWARDS_COMPATIBILITY|BUILD_TYPE|COLOR_MAKEFILE|CONFIGURATION_TYPES|DEBUG_TARGET_PROPERTIES|DISABLE_FIND_PACKAGE_\\w+|FIND_LIBRARY_PREFIXES|FIND_LIBRARY_SUFFIXES|IGNORE_PATH|INCLUDE_PATH|INSTALL_DEFAULT_COMPONENT_NAME|INSTALL_PREFIX|LIBRARY_PATH|MFC_FLAG|MODULE_PATH|NOT_USING_CONFIG_FLAGS|POLICY_DEFAULT_CMP\\w+|PREFIX_PATH|PROGRAM_PATH|SKIP_INSTALL_ALL_DEPENDENCY|SYSTEM_IGNORE_PATH|SYSTEM_INCLUDE_PATH|SYSTEM_LIBRARY_PATH|SYSTEM_PREFIX_PATH|SYSTEM_PROGRAM_PATH|USER_MAKE_RULES_OVERRIDE|WARN_ON_ABSOLUTE_INSTALL_DESTINATION))\\b", name: "variable.source.cmake" }, { match: "\\$\\{\\w+\\}", name: "storage.source.cmake" }, { match: "\\$ENV\\{\\w+\\}", name: "storage.source.cmake" }, { comment: "Variables that Control the Build", match: "\\b(?i:(CMAKE_)?(\\w+_POSTFIX|ARCHIVE_OUTPUT_DIRECTORY|AUTOMOC|AUTOMOC_MOC_OPTIONS|BUILD_WITH_INSTALL_RPATH|DEBUG_POSTFIX|EXE_LINKER_FLAGS|EXE_LINKER_FLAGS_\\w+|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GNUtoMS|INCLUDE_CURRENT_DIR|INCLUDE_CURRENT_DIR_IN_INTERFACE|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_PATH_FLAG|LINK_DEF_FILE_FLAG|LINK_DEPENDS_NO_SHARED|LINK_INTERFACE_LIBRARIES|LINK_LIBRARY_FILE_FLAG|LINK_LIBRARY_FLAG|MACOSX_BUNDLE|NO_BUILTIN_CHRPATH|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|RUNTIME_OUTPUT_DIRECTORY|SKIP_BUILD_RPATH|SKIP_INSTALL_RPATH|TRY_COMPILE_CONFIGURATION|USE_RELATIVE_PATHS|WIN32_EXECUTABLE)|EXECUTABLE_OUTPUT_PATH|LIBRARY_OUTPUT_PATH)\\b", name: "variable.source.cmake" }, { comment: "Variables that Provide Information", match: "\\b(?i:CMAKE_(AR|ARGC|ARGV0|BINARY_DIR|BUILD_TOOL|CACHEFILE_DIR|CACHE_MAJOR_VERSION|CACHE_MINOR_VERSION|CACHE_PATCH_VERSION|CFG_INTDIR|COMMAND|CROSSCOMPILING|CTEST_COMMAND|CURRENT_BINARY_DIR|CURRENT_LIST_DIR|CURRENT_LIST_FILE|CURRENT_LIST_LINE|CURRENT_SOURCE_DIR|DL_LIBS|EDIT_COMMAND|EXECUTABLE_SUFFIX|EXTRA_GENERATOR|EXTRA_SHARED_LIBRARY_SUFFIXES|GENERATOR|HOME_DIRECTORY|IMPORT_LIBRARY_PREFIX|IMPORT_LIBRARY_SUFFIX|LINK_LIBRARY_SUFFIX|MAJOR_VERSION|MAKE_PROGRAM|MINOR_VERSION|PARENT_LIST_FILE|PATCH_VERSION|PROJECT_NAME|RANLIB|ROOT|SCRIPT_MODE_FILE|SHARED_LIBRARY_PREFIX|SHARED_LIBRARY_SUFFIX|SHARED_MODULE_PREFIX|SHARED_MODULE_SUFFIX|SIZEOF_VOID_P|SKIP_RPATH|SOURCE_DIR|STANDARD_LIBRARIES|STATIC_LIBRARY_PREFIX|STATIC_LIBRARY_SUFFIX|TWEAK_VERSION|USING_VC_FREE_TOOLS|VERBOSE_MAKEFILE|VERSION)|PROJECT_BINARY_DIR|PROJECT_NAME|PROJECT_SOURCE_DIR|\\w+_BINARY_DIR|\\w+__SOURCE_DIR)\\b", name: "variable.source.cmake" }, { begin: "#\\[(=*)\\[", comment: "BracketArgs", end: "\\]\\1\\]", name: "comment.source.cmake", patterns: [{ match: "\\\\(.|$)", name: "constant.character.escape" }] }, { begin: "\\[(=*)\\[", comment: "BracketArgs", end: "\\]\\1\\]", name: "argument.source.cmake", patterns: [{ match: "\\\\(.|$)", name: "constant.character.escape" }] }, { match: "#+.*$", name: "comment.source.cmake" }, { comment: "Properties on Cache Entries", match: "\\b(?i:ADVANCED|HELPSTRING|MODIFIED|STRINGS|TYPE|VALUE)\\b", name: "entity.source.cmake" }, { comment: "Properties on Source Files", match: "\\b(?i:ABSTRACT|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_<CONFIG>|COMPILE_FLAGS|EXTERNAL_OBJECT|Fortran_FORMAT|GENERATED|HEADER_FILE_ONLY|KEEP_EXTENSION|LABELS|LANGUAGE|LOCATION|MACOSX_PACKAGE_LOCATION|OBJECT_DEPENDS|OBJECT_OUTPUTS|SYMBOLIC|WRAP_EXCLUDE)\\b", name: "entity.source.cmake" }, { comment: "Properties on Tests", match: "\\b(?i:ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|COST|DEPENDS|ENVIRONMENT|FAIL_REGULAR_EXPRESSION|LABELS|MEASUREMENT|PASS_REGULAR_EXPRESSION|PROCESSORS|REQUIRED_FILES|RESOURCE_LOCK|RUN_SERIAL|TIMEOUT|WILL_FAIL|WORKING_DIRECTORY)\\b", name: "entity.source.cmake" }, { comment: "Properties on Directories", match: "\\b(?i:ADDITIONAL_MAKE_CLEAN_FILES|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_\\w+|DEFINITIONS|EXCLUDE_FROM_ALL|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LINK_DIRECTORIES|LISTFILE_STACK|MACROS|PARENT_DIRECTORY|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|TEST_INCLUDE_FILE|VARIABLES|VS_GLOBAL_SECTION_POST_\\w+|VS_GLOBAL_SECTION_PRE_\\w+)\\b", name: "entity.source.cmake" }, { comment: "Properties of Global Scope", match: "\\b(?i:ALLOW_DUPLICATE_CUSTOM_TARGETS|DEBUG_CONFIGURATIONS|DISABLED_FEATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|IN_TRY_COMPILE|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PREDEFINED_TARGETS_FOLDER|REPORT_UNDEFINED_PROPERTIES|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_SUPPORTS_SHARED_LIBS|USE_FOLDERS|__CMAKE_DELETE_CACHE_CHANGE_VARS_)\\b", name: "entity.source.cmake" }, { comment: "Properties on Targets", match: "\\b(?i:\\w+_(OUTPUT_NAME|POSTFIX)|ARCHIVE_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|AUTOMOC(_MOC_OPTIONS)?|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE(_EXTENSION)?|COMPATIBLE_INTERFACE_BOOL|COMPATIBLE_INTERFACE_STRING|COMPILE_(DEFINITIONS(_\\w+)?|FLAGS)|DEBUG_POSTFIX|DEFINE_SYMBOL|ENABLE_EXPORTS|EXCLUDE_FROM_ALL|EchoString|FOLDER|FRAMEWORK|Fortran_(FORMAT|MODULE_DIRECTORY)|GENERATOR_FILE_NAME|GNUtoMS|HAS_CXX|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(CONFIGURATIONS|IMPLIB(_\\w+)?|LINK_DEPENDENT_LIBRARIES(_\\w+)?|LINK_INTERFACE_LANGUAGES(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LOCATION(_\\w+)?|NO_SONAME(_\\w+)?|SONAME(_\\w+)?)|IMPORT_PREFIX|IMPORT_SUFFIX|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE|INTERFACE_COMPILE_DEFINITIONS|INTERFACE_INCLUDE_DIRECTORIES|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LABELS|LIBRARY_OUTPUT_DIRECTORY(_\\w+)?|LIBRARY_OUTPUT_NAME(_\\w+)?|LINKER_LANGUAGE|LINK_DEPENDS|LINK_FLAGS(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LINK_LIBRARIES|LINK_SEARCH_END_STATIC|LINK_SEARCH_START_STATIC|LOCATION(_\\w+)?|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MAP_IMPORTED_CONFIG_\\w+|NO_SONAME|OSX_ARCHITECTURES(_\\w+)?|OUTPUT_NAME(_\\w+)?|PDB_NAME(_\\w+)?|POST_INSTALL_SCRIPT|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE|PRIVATE_HEADER|PROJECT_LABEL|PUBLIC|PUBLIC_HEADER|RESOURCE|RULE_LAUNCH_(COMPILE|CUSTOM|LINK)|RUNTIME_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|SKIP_BUILD_RPATH|SOURCES|SOVERSION|STATIC_LIBRARY_FLAGS(_\\w+)?|SUFFIX|TYPE|VERSION|VS_DOTNET_REFERENCES|VS_GLOBAL_(\\w+|KEYWORD|PROJECT_TYPES)|VS_KEYWORD|VS_SCC_(AUXPATH|LOCALPATH|PROJECTNAME|PROVIDER)|VS_WINRT_EXTENSIONS|VS_WINRT_REFERENCES|WIN32_EXECUTABLE|XCODE_ATTRIBUTE_\\w+)\\b", name: "entity.source.cmake" }, { begin: '\\\\"', comment: "Escaped Strings", end: '\\\\"', name: "string.source.cmake", patterns: [{ match: "\\\\(.|$)", name: "constant.character.escape" }] }, { begin: '"', comment: "Normal Strings", end: '"', name: "string.source.cmake", patterns: [{ match: "\\\\(.|$)", name: "constant.character.escape" }] }, { comment: "Derecated keyword", match: "\\bBUILD_NAME\\b", name: "invalid.deprecated.source.cmake" }, { comment: "Compiler Flags", match: "\\b(?i:(CMAKE_)?(CXX_FLAGS|CMAKE_CXX_FLAGS_DEBUG|CMAKE_CXX_FLAGS_MINSIZEREL|CMAKE_CXX_FLAGS_RELEASE|CMAKE_CXX_FLAGS_RELWITHDEBINFO))\\b", name: "variable.source.cmake" }], repository: {}, scopeName: "source.cmake" });
9
- var r = [
10
- o
11
- ];
12
- const s = Object.freeze({ displayName: "reStructuredText", name: "rst", patterns: [{ include: "#body" }], repository: { anchor: { match: "^\\.{2}\\s+(_[^:]+:)\\s*", name: "entity.name.tag.anchor" }, block: { begin: "^(\\s*)(\\.{2}\\s+\\S+::)(.*)", beginCaptures: { 2: { name: "keyword.control" }, 3: { name: "variable" } }, end: "^(?!\\1\\s|\\s*$)", patterns: [{ include: "#block-param" }, { include: "#body" }] }, "block-comment": { begin: "^(\\s*)\\.{2}(\\s+|$)", end: "^(?=\\S)|^\\s*$", name: "comment.block", patterns: [{ begin: "^\\s{3,}(?=\\S)", name: "comment.block", while: "^\\s{3}.*|^\\s*$" }] }, "block-param": { patterns: [{ captures: { 1: { name: "keyword.control" }, 2: { name: "variable.parameter" } }, match: "(:param\\s+(.+?):)(?:\\s|$)" }, { captures: { 1: { name: "keyword.control" }, 2: { patterns: [{ match: "\\b(0x[a-fA-F\\d]+|\\d+)\\b", name: "constant.numeric" }, { include: "#inline-markup" }] } }, match: "(:.+?:)(?:$|\\s+(.*))" }] }, blocks: { patterns: [{ include: "#domains" }, { include: "#doctest" }, { include: "#code-block-cpp" }, { include: "#code-block-py" }, { include: "#code-block-console" }, { include: "#code-block-javascript" }, { include: "#code-block-yaml" }, { include: "#code-block-cmake" }, { include: "#code-block-kconfig" }, { include: "#code-block-ruby" }, { include: "#code-block-dts" }, { include: "#code-block" }, { include: "#doctest-block" }, { include: "#raw-html" }, { include: "#block" }, { include: "#literal-block" }, { include: "#block-comment" }] }, body: { patterns: [{ include: "#title" }, { include: "#inline-markup" }, { include: "#anchor" }, { include: "#line-block" }, { include: "#replace-include" }, { include: "#footnote" }, { include: "#substitution" }, { include: "#blocks" }, { include: "#table" }, { include: "#simple-table" }, { include: "#options-list" }] }, bold: { begin: `(?<=[\\s"'(\\[{<]|^)\\*{2}[^\\s*]`, end: "\\*{2}|^\\s*$", name: "markup.bold" }, citation: { applyEndPatternLast: 0, begin: "(?<=[\\s\"'(\\[{<]|^)`[^\\s`]", end: "`_{,2}|^\\s*$", name: "entity.name.tag" }, "code-block": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)", beginCaptures: { 2: { name: "keyword.control" } }, patterns: [{ include: "#block-param" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-cmake": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(cmake)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.cmake" } }, patterns: [{ include: "#block-param" }, { include: "source.cmake" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-console": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(console|shell|bash)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.console" } }, patterns: [{ include: "#block-param" }, { include: "source.shell" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-cpp": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(c|c\\+\\+|cpp|C|C\\+\\+|CPP|Cpp)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.cpp" } }, patterns: [{ include: "#block-param" }, { include: "source.cpp" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-dts": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(dts|DTS|devicetree)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.dts" } }, patterns: [{ include: "#block-param" }, { include: "source.dts" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-javascript": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(javascript)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.js" } }, patterns: [{ include: "#block-param" }, { include: "source.js" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-kconfig": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*([kK]config)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.kconfig" } }, patterns: [{ include: "#block-param" }, { include: "source.kconfig" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-py": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(python)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.py" } }, patterns: [{ include: "#block-param" }, { include: "source.python" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-ruby": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(ruby)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.ruby" } }, patterns: [{ include: "#block-param" }, { include: "source.ruby" }], while: "^\\1(?=\\s)|^\\s*$" }, "code-block-yaml": { begin: "^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(ya?ml)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 4: { name: "variable.parameter.codeblock.yaml" } }, patterns: [{ include: "#block-param" }, { include: "source.yaml" }], while: "^\\1(?=\\s)|^\\s*$" }, doctest: { begin: "^(>>>)\\s*(.*)", beginCaptures: { 1: { name: "keyword.control" }, 2: { patterns: [{ include: "source.python" }] } }, end: "^\\s*$" }, "doctest-block": { begin: "^(\\s*)(\\.{2}\\s+doctest::)\\s*$", beginCaptures: { 2: { name: "keyword.control" } }, patterns: [{ include: "#block-param" }, { include: "source.python" }], while: "^\\1(?=\\s)|^\\s*$" }, "domain-auto": { begin: "^(\\s*)(\\.{2}\\s+auto(?:class|module|exception|function|decorator|data|method|attribute|property)::)\\s*(.*)", beginCaptures: { 2: { name: "keyword.control.py" }, 3: { patterns: [{ include: "source.python" }] } }, patterns: [{ include: "#block-param" }, { include: "#body" }], while: "^\\1(?=\\s)|^\\s*$" }, "domain-cpp": { begin: "^(\\s*)(\\.{2}\\s+(?:cpp|c):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\\s*(?:(@\\w+)|(.*))", beginCaptures: { 2: { name: "keyword.control" }, 3: { name: "entity.name.tag" }, 4: { patterns: [{ include: "source.cpp" }] } }, patterns: [{ include: "#block-param" }, { include: "#body" }], while: "^\\1(?=\\s)|^\\s*$" }, "domain-js": { begin: "^(\\s*)(\\.{2}\\s+js:\\w+::)\\s*(.*)", beginCaptures: { 2: { name: "keyword.control" }, 3: { patterns: [{ include: "source.js" }] } }, end: "^(?!\\1[ \\t]|$)", patterns: [{ include: "#block-param" }, { include: "#body" }] }, "domain-py": { begin: "^(\\s*)(\\.{2}\\s+py:(?:module|function|data|exception|class|attribute|property|method|staticmethod|classmethod|decorator|decoratormethod)::)\\s*(.*)", beginCaptures: { 2: { name: "keyword.control" }, 3: { patterns: [{ include: "source.python" }] } }, patterns: [{ include: "#block-param" }, { include: "#body" }], while: "^\\1(?=\\s)|^\\s*$" }, domains: { patterns: [{ include: "#domain-cpp" }, { include: "#domain-py" }, { include: "#domain-auto" }, { include: "#domain-js" }] }, escaped: { match: "\\\\.", name: "constant.character.escape" }, footnote: { match: "^\\s*\\.{2}\\s+\\[(?:[\\w\\.-]+|[#*]|#\\w+)\\]\\s+", name: "entity.name.tag" }, "footnote-ref": { match: "\\[(?:[\\w\\.-]+|[#*])\\]_", name: "entity.name.tag" }, ignore: { patterns: [{ match: "'[`*]+'" }, { match: "<[`*]+>" }, { match: "{[`*]+}" }, { match: "\\([`*]+\\)" }, { match: "\\[[`*]+\\]" }, { match: '"[`*]+"' }] }, "inline-markup": { patterns: [{ include: "#escaped" }, { include: "#ignore" }, { include: "#ref" }, { include: "#literal" }, { include: "#monospaced" }, { include: "#citation" }, { include: "#bold" }, { include: "#italic" }, { include: "#list" }, { include: "#macro" }, { include: "#reference" }, { include: "#footnote-ref" }] }, italic: { begin: `(?<=[\\s"'(\\[{<]|^)\\*[^\\s*]`, end: "\\*|^\\s*$", name: "markup.italic" }, "line-block": { match: "^\\|\\s+", name: "keyword.control" }, list: { match: "^\\s*(\\d+\\.|\\* -|[a-zA-Z#]\\.|[iIvVxXmMcC]+\\.|\\(\\d+\\)|\\d+\\)|[*+-])\\s+", name: "keyword.control" }, literal: { captures: { 1: { name: "keyword.control" }, 2: { name: "entity.name.tag" } }, match: "(:\\S+:)(`.*?`\\\\?)" }, "literal-block": { begin: "^(\\s*)(.*)(::)\\s*$", beginCaptures: { 2: { patterns: [{ include: "#inline-markup" }] }, 3: { name: "keyword.control" } }, while: "^\\1(?=\\s)|^\\s*$" }, macro: { match: "\\|[^\\|]+\\|", name: "entity.name.tag" }, monospaced: { begin: "(?<=[\\s\"'(\\[{<]|^)``[^\\s`]", end: "``|^\\s*$", name: "string.interpolated" }, "options-list": { match: "(?:(?:^|,\\s+)(?:[-+]\\w|--?[a-zA-Z][\\w-]+|/\\w+)(?:[ =](?:\\w+|<[^<>]+?>))?)+(?= |\\t|$)", name: "variable.parameter" }, "raw-html": { begin: "^(\\s*)(\\.{2}\\s+raw\\s*::)\\s+(html)\\s*$", beginCaptures: { 2: { name: "keyword.control" }, 3: { name: "variable.parameter.html" } }, patterns: [{ include: "#block-param" }, { include: "text.html.derivative" }], while: "^\\1(?=\\s)|^\\s*$" }, ref: { begin: "(:ref:)`", beginCaptures: { 1: { name: "keyword.control" } }, end: "`|^\\s*$", name: "entity.name.tag", patterns: [{ match: "<.*?>", name: "markup.underline.link" }] }, reference: { match: "[\\w-]*[a-zA-Z\\d-]__?\\b", name: "entity.name.tag" }, "replace-include": { captures: { 1: { name: "keyword.control" }, 2: { name: "entity.name.tag" }, 3: { name: "keyword.control" } }, match: "^\\s*(\\.{2})\\s+(\\|[^\\|]+\\|)\\s+(replace::)" }, "simple-table": { match: "^[=\\s]+$", name: "keyword.control.table" }, substitution: { match: "^\\.{2}\\s*\\|([^|]+)\\|", name: "entity.name.tag" }, table: { begin: "^\\s*\\+[=+-]+\\+\\s*$", beginCaptures: { 0: { name: "keyword.control.table" } }, end: "^(?![+|])", patterns: [{ match: "[=+|-]", name: "keyword.control.table" }] }, title: { match: "^(\\*{3,}|#{3,}|={3,}|~{3,}|\\+{3,}|-{3,}|`{3,}|\\^{3,}|:{3,}|\"{3,}|_{3,}|'{3,})$", name: "markup.heading" } }, scopeName: "source.rst", embeddedLangs: ["html-derivative", "cpp", "python", "javascript", "shellscript", "yaml", "cmake", "ruby"] });
13
- var S = [
14
- ...e,
15
- ..._,
16
- ...t,
17
- ...a,
18
- ...c,
19
- ...E,
20
- ...r,
21
- ...n,
22
- s
23
- ];
24
- export {
25
- S as default
26
- };
@@ -1,49 +0,0 @@
1
- import e from "./html-CQnAgmm8-BAGVrVbX.js";
2
- import n from "./xml-Dcc0Vp-Q-BB4kJUTf.js";
3
- import t from "./sql-BW1nANeH-BW1nANeH.js";
4
- import a from "./css-pVblTdYL-pVblTdYL.js";
5
- import r from "./c-C9fY0Fge-C9fY0Fge.js";
6
- import i from "./javascript-S4X9lPQ2-S4X9lPQ2.js";
7
- import s from "./shellscript-D61Z39XV-D61Z39XV.js";
8
- import u from "./lua-BprzqEnl-B-iqs6LK.js";
9
- const c = Object.freeze({ displayName: "Ruby", name: "ruby", patterns: [{ captures: { 1: { name: "keyword.control.class.ruby" }, 2: { name: "entity.name.type.class.ruby" }, 3: { name: "keyword.operator.other.ruby" }, 4: { name: "entity.other.inherited-class.ruby" }, 5: { name: "keyword.operator.other.ruby" }, 6: { name: "variable.other.object.ruby" } }, match: "^\\s*(class)\\s+(?:([.a-zA-Z0-9_:]+)(?:\\s*(<)\\s*([.a-zA-Z0-9_:]+))?|(<<)\\s*([.a-zA-Z0-9_:]+))", name: "meta.class.ruby" }, { captures: { 1: { name: "keyword.control.module.ruby" }, 2: { name: "entity.name.type.module.ruby" }, 3: { name: "entity.other.inherited-class.module.first.ruby" }, 4: { name: "punctuation.separator.inheritance.ruby" }, 5: { name: "entity.other.inherited-class.module.second.ruby" }, 6: { name: "punctuation.separator.inheritance.ruby" }, 7: { name: "entity.other.inherited-class.module.third.ruby" }, 8: { name: "punctuation.separator.inheritance.ruby" } }, match: "^\\s*(module)\\s+(([A-Z]\\w*(::))?([A-Z]\\w*(::))?([A-Z]\\w*(::))*[A-Z]\\w*)", name: "meta.module.ruby" }, { comment: "else if is a common mistake carried over from other languages. it works if you put in a second end, but it’s never what you want.", match: "(?<!\\.)\\belse(\\s)+if\\b", name: "invalid.deprecated.ruby" }, { captures: { 1: { name: "punctuation.definition.constant.ruby" } }, comment: "symbols as hash key (1.9 syntax)", match: "(?>[a-zA-Z_]\\w*(?>[?!])?)(:)(?!:)", name: "constant.other.symbol.hashkey.ruby" }, { captures: { 1: { name: "punctuation.definition.constant.ruby" } }, comment: "symbols as hash key (1.8 syntax)", match: "(?<!:)(:)(?>[a-zA-Z_]\\w*(?>[?!])?)(?=\\s*=>)", name: "constant.other.symbol.hashkey.ruby" }, { comment: "everything being a reserved word, not a value and needing a 'end' is a..", match: "(?<!\\.)\\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\\b(?![?!])", name: "keyword.control.ruby" }, { comment: "contextual smart pair support for block parameters", match: "(?<!\\.)\\bdo\\b", name: "keyword.control.start-block.ruby" }, { comment: "contextual smart pair support", match: "(?<=\\{)(\\s+)", name: "meta.syntax.ruby.start-block" }, { match: "(?<!\\.)\\b(alias|alias_method|block_given[?]|break|defined[?]|iterator[?]|next|redo|retry|return|super|undef|yield)(\\b|(?<=[?]))(?![?!])", name: "keyword.control.pseudo-method.ruby" }, { match: "\\b(nil|true|false)\\b(?![?!])", name: "constant.language.ruby" }, { match: "\\b(__(dir|FILE|LINE)__)\\b(?![?!])", name: "variable.language.ruby" }, { begin: "^__END__\\n", captures: { 0: { name: "string.unquoted.program-block.ruby" } }, comment: "__END__ marker", contentName: "text.plain", end: "(?=not)impossible", patterns: [{ begin: "(?=<?xml|<(?i:html\\b)|!DOCTYPE (?i:html\\b))", end: "(?=not)impossible", name: "text.html.embedded.ruby", patterns: [{ include: "text.html.basic" }] }] }, { match: "\\b(self)\\b(?![?!])", name: "variable.language.self.ruby" }, { comment: " everything being a method but having a special function is a..", match: "\\b(initialize|new|loop|include|extend|prepend|fail|raise|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\\b(?![?!])", name: "keyword.other.special-method.ruby" }, { begin: "\\b(?<!\\.|::)(require|require_relative)\\b", captures: { 1: { name: "keyword.other.special-method.ruby" } }, end: "$|(?=#|\\})", name: "meta.require.ruby", patterns: [{ include: "$self" }] }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(@)[a-zA-Z_]\\w*", name: "variable.other.readwrite.instance.ruby" }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(@@)[a-zA-Z_]\\w*", name: "variable.other.readwrite.class.ruby" }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(\\$)[a-zA-Z_]\\w*", name: "variable.other.readwrite.global.ruby" }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(\\$)(!|@|&|`|'|\\+|\\d+|~|=|/|\\\\|,|;|\\.|<|>|_|\\*|\\$|\\?|:|\"|-[0adFiIlpvw])", name: "variable.other.readwrite.global.pre-defined.ruby" }, { begin: "\\b(ENV)\\[", beginCaptures: { 1: { name: "variable.other.constant.ruby" } }, end: "\\]", name: "meta.environment-variable.ruby", patterns: [{ include: "$self" }] }, { match: "\\b[A-Z]\\w*(?=((\\.|::)[A-Za-z]|\\[))", name: "support.class.ruby" }, { match: "\\b(abort|at_exit|autoload[?]?|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|exit!|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|print|printf|proc|putc|puts|rand|readline|readlines|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)(\\b|(?<=[?!]))(?![?!])", name: "support.function.kernel.ruby" }, { match: "\\b[A-Z]\\w*\\b", name: "variable.other.constant.ruby" }, { begin: "(?=def\\b)(?<=^|\\s)(def)\\s+((?>[a-zA-Z_]\\w*(?>\\.|::))?(?>[a-zA-Z_]\\w*(?>[?!]|=(?!>))?|===?|!=|!~|>[>=]?|<=>|<[<=]?|[%&`/\\|^]|\\*\\*?|=?~|[-+]@?|\\[\\]=?))\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.def.ruby" }, 2: { name: "entity.name.function.ruby" }, 3: { name: "punctuation.definition.parameters.ruby" } }, comment: "the method pattern comes from the symbol pattern, see there for a explaination", end: "\\)", endCaptures: { 0: { name: "punctuation.definition.parameters.ruby" } }, name: "meta.function.method.with-arguments.ruby", patterns: [{ begin: "(?=[&*_a-zA-Z])", end: "(?=[,)])", patterns: [{ captures: { 1: { name: "storage.type.variable.ruby" }, 2: { name: "constant.other.symbol.hashkey.parameter.function.ruby" }, 3: { name: "punctuation.definition.constant.ruby" }, 4: { name: "variable.parameter.function.ruby" } }, match: "\\G([&*]?)(?:([_a-zA-Z]\\w*(:))|([_a-zA-Z]\\w*))" }, { include: "#parens" }, { include: "#braces" }, { include: "$self" }] }], repository: { braces: { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.function.begin.ruby" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.section.function.end.ruby" } }, patterns: [{ include: "#parens" }, { include: "#braces" }, { include: "$self" }] }, parens: { begin: "\\(", beginCaptures: { 0: { name: "punctuation.section.function.begin.ruby" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.section.function.end.ruby" } }, patterns: [{ include: "#parens" }, { include: "#braces" }, { include: "$self" }] } } }, { begin: "(?=def\\b)(?<=^|\\s)(def)\\s+((?>[a-zA-Z_]\\w*(?>\\.|::))?(?>[a-zA-Z_]\\w*(?>[?!]|=(?!>))?|===?|!=|!~|>[>=]?|<=>|<[<=]?|[%&`/\\|^]|\\*\\*?|=?~|[-+]@?|\\[\\]=?))[ \\t](?=[ \\t]*[^\\s#;])", beginCaptures: { 1: { name: "keyword.control.def.ruby" }, 2: { name: "entity.name.function.ruby" } }, comment: "same as the previous rule, but without parentheses around the arguments", end: "$", name: "meta.function.method.with-arguments.ruby", patterns: [{ begin: "(?![\\s,])", end: "(?=,|$)", patterns: [{ captures: { 1: { name: "storage.type.variable.ruby" }, 2: { name: "constant.other.symbol.hashkey.parameter.function.ruby" }, 3: { name: "punctuation.definition.constant.ruby" }, 4: { name: "variable.parameter.function.ruby" } }, match: "\\G([&*]?)(?:([_a-zA-Z]\\w*(:))|([_a-zA-Z]\\w*))", name: "variable.parameter.function.ruby" }, { include: "$self" }] }] }, { captures: { 1: { name: "keyword.control.def.ruby" }, 3: { name: "entity.name.function.ruby" } }, comment: " the optional name is just to catch the def also without a method-name", match: "(?=def\\b)(?<=^|\\s)(def)\\b(\\s+((?>[a-zA-Z_]\\w*(?>\\.|::))?(?>[a-zA-Z_]\\w*(?>[?!]|=(?!>))?|===?|!=|!~|>[>=]?|<=>|<[<=]?|[%&`/\\|^]|\\*\\*?|=?~|[-+]@?|\\[\\]=?)))?", name: "meta.function.method.without-arguments.ruby" }, { match: "\\b\\d(?>_?\\d)*(?=\\.\\d|[eE])(\\.\\d(?>_?\\d)*)?([eE][-+]?\\d(?>_?\\d)*)?r?i?\\b", name: "constant.numeric.float.ruby" }, { match: "\\b(0|(0[dD]\\d|[1-9])(?>_?\\d)*)r?i?\\b", name: "constant.numeric.integer.ruby" }, { match: "\\b0[xX]\\h(?>_?\\h)*r?i?\\b", name: "constant.numeric.hex.ruby" }, { match: "\\b0[bB][01](?>_?[01])*r?i?\\b", name: "constant.numeric.binary.ruby" }, { match: "\\b0([oO]?[0-7](?>_?[0-7])*)?r?i?\\b", name: "constant.numeric.octal.ruby" }, { begin: ":'", captures: { 0: { name: "punctuation.definition.constant.ruby" } }, end: "'", name: "constant.other.symbol.single-quoted.ruby", patterns: [{ match: "\\\\['\\\\]", name: "constant.character.escape.ruby" }] }, { begin: ':"', captures: { 0: { name: "punctuation.definition.constant.ruby" } }, end: '"', name: "constant.other.symbol.double-quoted.ruby", patterns: [{ include: "#interpolated_ruby" }, { include: "#escaped_char" }] }, { comment: "Needs higher precedence than regular expressions.", match: "(?<!\\()/=", name: "keyword.operator.assignment.augmented.ruby" }, { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, comment: "single quoted string (does not allow interpolation)", end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.quoted.single.ruby", patterns: [{ match: "\\\\'|\\\\\\\\", name: "constant.character.escape.ruby" }] }, { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, comment: "double quoted string (allows for interpolation)", end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.quoted.double.ruby", patterns: [{ include: "#interpolated_ruby" }, { include: "#escaped_char" }] }, { begin: "`", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, comment: "execute string (allows for interpolation)", end: "`", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.interpolated.ruby", patterns: [{ include: "#interpolated_ruby" }, { include: "#escaped_char" }] }, { include: "#percent_literals" }, { begin: "(?:^|(?<=[=>~(?:\\[,|&;]|[\\s;]if\\s|[\\s;]elsif\\s|[\\s;]while\\s|[\\s;]unless\\s|[\\s;]when\\s|[\\s;]assert_match\\s|[\\s;]or\\s|[\\s;]and\\s|[\\s;]not\\s|[\\s.]index\\s|[\\s.]scan\\s|[\\s.]sub\\s|[\\s.]sub!\\s|[\\s.]gsub\\s|[\\s.]gsub!\\s|[\\s.]match\\s)|(?<=^when\\s|^if\\s|^elsif\\s|^while\\s|^unless\\s))\\s*((/))(?![*+{}?])", captures: { 1: { name: "string.regexp.classic.ruby" }, 2: { name: "punctuation.definition.string.ruby" } }, comment: `regular expressions (normal)
10
- we only start a regexp if the character before it (excluding whitespace)
11
- is what we think is before a regexp
12
- `, contentName: "string.regexp.classic.ruby", end: "((/[eimnosux]*))", patterns: [{ include: "#regex_sub" }] }, { captures: { 1: { name: "punctuation.definition.constant.ruby" } }, comment: "symbols", match: "(?<!:)(:)(?>[a-zA-Z_]\\w*(?>[?!]|=(?![>=]))?|===?|>[>=]?|<=>|<[<=]?|[%&`/\\|]|\\*\\*?|=?~|[-+]@?|\\[\\]=?|(@@?|\\$)[a-zA-Z_]\\w*)", name: "constant.other.symbol.ruby" }, { begin: "^=begin", captures: { 0: { name: "punctuation.definition.comment.ruby" } }, comment: "multiline comments", end: "^=end", name: "comment.block.documentation.ruby" }, { begin: "(^[ \\t]+)?(?=#)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.ruby" } }, end: "(?!\\G)", patterns: [{ begin: "#", beginCaptures: { 0: { name: "punctuation.definition.comment.ruby" } }, end: "\\n", name: "comment.line.number-sign.ruby" }] }, { comment: `
13
- matches questionmark-letters.
14
-
15
- examples (1st alternation = hex):
16
- ?\\x1 ?\\x61
17
-
18
- examples (2nd alternation = octal):
19
- ?\\0 ?\\07 ?\\017
20
-
21
- examples (3rd alternation = escaped):
22
- ?\\n ?\\b
23
-
24
- examples (4th alternation = meta-ctrl):
25
- ?\\C-a ?\\M-a ?\\C-\\M-\\C-\\M-a
26
-
27
- examples (4th alternation = normal):
28
- ?a ?A ?0
29
- ?* ?" ?(
30
- ?. ?#
31
-
32
-
33
- the negative lookbehind prevents against matching
34
- p(42.tainted?)
35
- `, match: "(?<!\\w)\\?(\\\\(x\\h{1,2}(?!\\h)\\b|0[0-7]{0,2}(?![0-7])\\b|[^x0MC])|(\\\\[MC]-)+\\w|[^\\s\\\\])", name: "constant.numeric.ruby" }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)HTML)\\b\\1))', comment: "Heredoc with embedded html", end: "(?!\\G)", name: "meta.embedded.block.html", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)HTML)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "text.html", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "text.html.basic" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)XML)\\b\\1))', comment: "Heredoc with embedded xml", end: "(?!\\G)", name: "meta.embedded.block.xml", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)XML)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "text.xml", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "text.xml" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)SQL)\\b\\1))', comment: "Heredoc with embedded sql", end: "(?!\\G)", name: "meta.embedded.block.sql", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)SQL)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.sql", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.sql" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)CSS)\\b\\1))', comment: "Heredoc with embedded css", end: "(?!\\G)", name: "meta.embedded.block.css", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)CSS)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.css", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.css" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)CPP)\\b\\1))', comment: "Heredoc with embedded c++", end: "(?!\\G)", name: "meta.embedded.block.c++", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)CPP)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.c++", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.c++" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)C)\\b\\1))', comment: "Heredoc with embedded c", end: "(?!\\G)", name: "meta.embedded.block.c", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)C)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.c", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.c" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)(?:JS|JAVASCRIPT))\\b\\1))', comment: "Heredoc with embedded javascript", end: "(?!\\G)", name: "meta.embedded.block.js", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)(?:JS|JAVASCRIPT))\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.js", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.js" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)JQUERY)\\b\\1))', comment: "Heredoc with embedded jQuery javascript", end: "(?!\\G)", name: "meta.embedded.block.js.jquery", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)JQUERY)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.js.jquery", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.js.jquery" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)(?:SH|SHELL))\\b\\1))', comment: "Heredoc with embedded shell", end: "(?!\\G)", name: "meta.embedded.block.shell", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)(?:SH|SHELL))\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.shell", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.shell" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)LUA)\\b\\1))', comment: "Heredoc with embedded lua", end: "(?!\\G)", name: "meta.embedded.block.lua", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)LUA)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.lua", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.lua" }, { include: "#escaped_char" }] }] }, { begin: '(?=(?><<[-~]("?)((?:[_\\w]+_|)RUBY)\\b\\1))', comment: "Heredoc with embedded ruby", end: "(?!\\G)", name: "meta.embedded.block.ruby", patterns: [{ begin: '(?><<[-~]("?)((?:[_\\w]+_|)RUBY)\\b\\1)', beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, contentName: "source.ruby", end: "\\s*\\2$\\n?", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "source.ruby" }, { include: "#escaped_char" }] }] }, { begin: "(?>=\\s*<<(\\w+))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, end: "^\\1$", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "#escaped_char" }] }, { begin: "(?><<[-~](\\w+))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, comment: "heredoc with indented terminator", end: "\\s*\\1$", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.unquoted.heredoc.ruby", patterns: [{ include: "#heredoc" }, { include: "#interpolated_ruby" }, { include: "#escaped_char" }] }, { begin: "(?<=\\{|do|\\{\\s|do\\s)(\\|)", captures: { 1: { name: "punctuation.separator.arguments.ruby" } }, end: "(?<!\\|)(\\|)(?!\\|)", patterns: [{ include: "$self" }, { match: "[_a-zA-Z][_a-zA-Z0-9]*", name: "variable.other.block.ruby" }, { match: ",", name: "punctuation.separator.variable.ruby" }] }, { match: "=>", name: "punctuation.separator.key-value" }, { match: "->", name: "support.function.kernel.lambda.ruby" }, { match: "<<=|%=|&{1,2}=|\\*=|\\*\\*=|\\+=|-=|\\^=|\\|{1,2}=|<<", name: "keyword.operator.assignment.augmented.ruby" }, { match: "<=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?<=[ \\t])\\?", name: "keyword.operator.comparison.ruby" }, { match: "(?<!\\.)\\b(and|not|or)\\b(?![?!])", name: "keyword.operator.logical.ruby" }, { comment: "Make sure this goes after assignment and comparison", match: "(?<=^|[ \\t])!|&&|\\|\\||\\^", name: "keyword.operator.logical.ruby" }, { captures: { 1: { name: "punctuation.separator.method.ruby" } }, comment: "Safe navigation operator - Added in 2.3", match: "(&\\.)\\s*(?![A-Z])" }, { match: "(%|&|\\*\\*|\\*|\\+|-|/)", name: "keyword.operator.arithmetic.ruby" }, { match: "=", name: "keyword.operator.assignment.ruby" }, { match: "\\||~|>>", name: "keyword.operator.other.ruby" }, { match: ";", name: "punctuation.separator.statement.ruby" }, { match: ",", name: "punctuation.separator.object.ruby" }, { captures: { 1: { name: "punctuation.separator.namespace.ruby" } }, comment: "Mark as namespace separator if double colons followed by capital letter", match: "(::)\\s*(?=[A-Z])" }, { captures: { 1: { name: "punctuation.separator.method.ruby" } }, comment: "Mark as method separator if double colons not followed by capital letter", match: "(\\.|::)\\s*(?![A-Z])" }, { comment: "Must come after method and constant separators to prefer double colons", match: ":", name: "punctuation.separator.other.ruby" }, { match: "\\{", name: "punctuation.section.scope.begin.ruby" }, { match: "\\}", name: "punctuation.section.scope.end.ruby" }, { match: "\\[", name: "punctuation.section.array.begin.ruby" }, { match: "\\]", name: "punctuation.section.array.end.ruby" }, { match: "\\(|\\)", name: "punctuation.section.function.ruby" }], repository: { escaped_char: { match: "\\\\(?:[0-7]{1,3}|x[\\da-fA-F]{1,2}|.)", name: "constant.character.escape.ruby" }, heredoc: { begin: "^<<[-~]?\\w+", end: "$", patterns: [{ include: "$self" }] }, interpolated_ruby: { patterns: [{ begin: "#\\{", beginCaptures: { 0: { name: "punctuation.section.embedded.begin.ruby" } }, contentName: "source.ruby", end: "(\\})", endCaptures: { 0: { name: "punctuation.section.embedded.end.ruby" }, 1: { name: "source.ruby" } }, name: "meta.embedded.line.ruby", patterns: [{ include: "#nest_curly_and_self" }, { include: "$self" }], repository: { nest_curly_and_self: { patterns: [{ begin: "\\{", captures: { 0: { name: "punctuation.section.scope.ruby" } }, end: "\\}", patterns: [{ include: "#nest_curly_and_self" }] }, { include: "$self" }] } } }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(#@)[a-zA-Z_]\\w*", name: "variable.other.readwrite.instance.ruby" }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(#@@)[a-zA-Z_]\\w*", name: "variable.other.readwrite.class.ruby" }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(#\\$)[a-zA-Z_]\\w*", name: "variable.other.readwrite.global.ruby" }] }, percent_literals: { patterns: [{ begin: "%i(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.section.array.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.section.array.end.ruby" } }, name: "meta.array.symbol.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }, { include: "#symbol" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }, { include: "#symbol" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }, { include: "#symbol" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }, { include: "#symbol" }] }, { include: "#symbol" }], repository: { angles: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\<|\\\\>", name: "constant.other.symbol.ruby" }, { begin: "<", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: ">", patterns: [{ include: "#angles" }, { include: "#symbol" }] }] }, braces: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\{|\\\\\\}", name: "constant.other.symbol.ruby" }, { begin: "\\{", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: "\\}", patterns: [{ include: "#braces" }, { include: "#symbol" }] }] }, brackets: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\[|\\\\\\]", name: "constant.other.symbol.ruby" }, { begin: "\\[", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: "\\]", patterns: [{ include: "#brackets" }, { include: "#symbol" }] }] }, parens: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\(|\\\\\\)", name: "constant.other.symbol.ruby" }, { begin: "\\(", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: "\\)", patterns: [{ include: "#parens" }, { include: "#symbol" }] }] }, symbol: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\\\|\\\\[ ]", name: "constant.other.symbol.ruby" }, { match: "\\S\\w*", name: "constant.other.symbol.ruby" }] } } }, { begin: "%I(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.section.array.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.section.array.end.ruby" } }, name: "meta.array.symbol.interpolated.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }, { include: "#symbol" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }, { include: "#symbol" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }, { include: "#symbol" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }, { include: "#symbol" }] }, { include: "#symbol" }], repository: { angles: { patterns: [{ begin: "<", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: ">", patterns: [{ include: "#angles" }, { include: "#symbol" }] }] }, braces: { patterns: [{ begin: "\\{", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: "\\}", patterns: [{ include: "#braces" }, { include: "#symbol" }] }] }, brackets: { patterns: [{ begin: "\\[", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: "\\]", patterns: [{ include: "#brackets" }, { include: "#symbol" }] }] }, parens: { patterns: [{ begin: "\\(", captures: { 0: { name: "constant.other.symbol.ruby" } }, end: "\\)", patterns: [{ include: "#parens" }, { include: "#symbol" }] }] }, symbol: { patterns: [{ begin: "(?=\\\\|#\\{)", end: "(?!\\G)", name: "constant.other.symbol.ruby", patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }] }, { match: "\\S\\w*", name: "constant.other.symbol.ruby" }] } } }, { begin: "%q(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.quoted.other.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }] }], repository: { angles: { patterns: [{ match: "\\\\<|\\\\>|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "<", end: ">", patterns: [{ include: "#angles" }] }] }, braces: { patterns: [{ match: "\\\\\\{|\\\\\\}|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "\\{", end: "\\}", patterns: [{ include: "#braces" }] }] }, brackets: { patterns: [{ match: "\\\\\\[|\\\\\\]|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "\\[", end: "\\]", patterns: [{ include: "#brackets" }] }] }, parens: { patterns: [{ match: "\\\\\\(|\\\\\\)|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "\\(", end: "\\)", patterns: [{ include: "#parens" }] }] } } }, { begin: "%Q?(?:([(\\[{<])|([^\\w\\s=]|_))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.quoted.other.interpolated.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }] }, { include: "#escaped_char" }, { include: "#interpolated_ruby" }], repository: { angles: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "<", end: ">", patterns: [{ include: "#angles" }] }] }, braces: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "\\{", end: "\\}", patterns: [{ include: "#braces" }] }] }, brackets: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "\\[", end: "\\]", patterns: [{ include: "#brackets" }] }] }, parens: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "\\(", end: "\\)", patterns: [{ include: "#parens" }] }] } } }, { begin: "%r(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, end: "([)\\]}>]\\2|\\1\\2)[eimnosux]*", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.regexp.percent.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }] }, { include: "#regex_sub" }], repository: { angles: { patterns: [{ include: "#regex_sub" }, { begin: "<", end: ">", patterns: [{ include: "#angles" }] }] }, braces: { patterns: [{ include: "#regex_sub" }, { begin: "\\{", end: "\\}", patterns: [{ include: "#braces" }] }] }, brackets: { patterns: [{ include: "#regex_sub" }, { begin: "\\[", end: "\\]", patterns: [{ include: "#brackets" }] }] }, parens: { patterns: [{ include: "#regex_sub" }, { begin: "\\(", end: "\\)", patterns: [{ include: "#parens" }] }] } } }, { begin: "%s(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.definition.constant.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.definition.constant.end.ruby" } }, name: "constant.other.symbol.percent.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }] }], repository: { angles: { patterns: [{ match: "\\\\<|\\\\>|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "<", end: ">", patterns: [{ include: "#angles" }] }] }, braces: { patterns: [{ match: "\\\\\\{|\\\\\\}|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "\\{", end: "\\}", patterns: [{ include: "#braces" }] }] }, brackets: { patterns: [{ match: "\\\\\\[|\\\\\\]|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "\\[", end: "\\]", patterns: [{ include: "#brackets" }] }] }, parens: { patterns: [{ match: "\\\\\\(|\\\\\\)|\\\\\\\\", name: "constant.character.escape.ruby" }, { begin: "\\(", end: "\\)", patterns: [{ include: "#parens" }] }] } } }, { begin: "%w(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.section.array.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.section.array.end.ruby" } }, name: "meta.array.string.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }, { include: "#string" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }, { include: "#string" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }, { include: "#string" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }, { include: "#string" }] }, { include: "#string" }], repository: { angles: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\<|\\\\>", name: "string.other.ruby" }, { begin: "<", captures: { 0: { name: "string.other.ruby" } }, end: ">", patterns: [{ include: "#angles" }, { include: "#string" }] }] }, braces: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\{|\\\\\\}", name: "string.other.ruby" }, { begin: "\\{", captures: { 0: { name: "string.other.ruby" } }, end: "\\}", patterns: [{ include: "#braces" }, { include: "#string" }] }] }, brackets: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\[|\\\\\\]", name: "string.other.ruby" }, { begin: "\\[", captures: { 0: { name: "string.other.ruby" } }, end: "\\]", patterns: [{ include: "#brackets" }, { include: "#string" }] }] }, parens: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\(|\\\\\\)", name: "string.other.ruby" }, { begin: "\\(", captures: { 0: { name: "string.other.ruby" } }, end: "\\)", patterns: [{ include: "#parens" }, { include: "#string" }] }] }, string: { patterns: [{ captures: { 0: { name: "constant.character.escape.ruby" } }, match: "\\\\\\\\|\\\\[ ]", name: "string.other.ruby" }, { match: "\\S\\w*", name: "string.other.ruby" }] } } }, { begin: "%W(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.section.array.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.section.array.end.ruby" } }, name: "meta.array.string.interpolated.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }, { include: "#string" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }, { include: "#string" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }, { include: "#string" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }, { include: "#string" }] }, { include: "#string" }], repository: { angles: { patterns: [{ begin: "<", captures: { 0: { name: "string.other.ruby" } }, end: ">", patterns: [{ include: "#angles" }, { include: "#string" }] }] }, braces: { patterns: [{ begin: "\\{", captures: { 0: { name: "string.other.ruby" } }, end: "\\}", patterns: [{ include: "#braces" }, { include: "#string" }] }] }, brackets: { patterns: [{ begin: "\\[", captures: { 0: { name: "string.other.ruby" } }, end: "\\]", patterns: [{ include: "#brackets" }, { include: "#string" }] }] }, parens: { patterns: [{ begin: "\\(", captures: { 0: { name: "string.other.ruby" } }, end: "\\)", patterns: [{ include: "#parens" }, { include: "#string" }] }] }, string: { patterns: [{ begin: "(?=\\\\|#\\{)", end: "(?!\\G)", name: "string.other.ruby", patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }] }, { match: "\\S\\w*", name: "string.other.ruby" }] } } }, { begin: "%x(?:([(\\[{<])|([^\\w\\s]|_))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.ruby" } }, end: "[)\\]}>]\\2|\\1\\2", endCaptures: { 0: { name: "punctuation.definition.string.end.ruby" } }, name: "string.interpolated.percent.ruby", patterns: [{ begin: "\\G(?<=\\()(?!\\))", end: "(?=\\))", patterns: [{ include: "#parens" }] }, { begin: "\\G(?<=\\[)(?!\\])", end: "(?=\\])", patterns: [{ include: "#brackets" }] }, { begin: "\\G(?<=\\{)(?!\\})", end: "(?=\\})", patterns: [{ include: "#braces" }] }, { begin: "\\G(?<=<)(?!>)", end: "(?=>)", patterns: [{ include: "#angles" }] }, { include: "#escaped_char" }, { include: "#interpolated_ruby" }], repository: { angles: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "<", end: ">", patterns: [{ include: "#angles" }] }] }, braces: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "\\{", end: "\\}", patterns: [{ include: "#braces" }] }] }, brackets: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "\\[", end: "\\]", patterns: [{ include: "#brackets" }] }] }, parens: { patterns: [{ include: "#escaped_char" }, { include: "#interpolated_ruby" }, { begin: "\\(", end: "\\)", patterns: [{ include: "#parens" }] }] } } }] }, regex_sub: { patterns: [{ include: "#interpolated_ruby" }, { include: "#escaped_char" }, { captures: { 1: { name: "punctuation.definition.quantifier.begin.ruby" }, 3: { name: "punctuation.definition.quantifier.end.ruby" } }, match: "(\\{)\\d+(,\\d+)?(\\})", name: "keyword.operator.quantifier.ruby" }, { begin: "\\[\\^?", beginCaptures: { 0: { name: "punctuation.definition.character-class.begin.ruby" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.definition.character-class.end.ruby" } }, name: "constant.other.character-class.set.ruby", patterns: [{ include: "#escaped_char" }] }, { begin: "\\(\\?#", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.ruby" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.comment.end.ruby" } }, name: "comment.line.number-sign.ruby", patterns: [{ include: "#escaped_char" }] }, { begin: "\\(", captures: { 0: { name: "punctuation.definition.group.ruby" } }, end: "\\)", name: "meta.group.regexp.ruby", patterns: [{ include: "#regex_sub" }] }, { begin: "(?<=^|\\s)(#)\\s(?=[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$)", beginCaptures: { 1: { name: "punctuation.definition.comment.ruby" } }, comment: "We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.", end: "$\\n?", name: "comment.line.number-sign.ruby" }] } }, scopeName: "source.ruby", embeddedLangs: ["html", "xml", "sql", "css", "c", "javascript", "shellscript", "lua"], aliases: ["rb"] });
36
- var h = [
37
- ...e,
38
- ...n,
39
- ...t,
40
- ...a,
41
- ...r,
42
- ...i,
43
- ...s,
44
- ...u,
45
- c
46
- ];
47
- export {
48
- h as default
49
- };