A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

131 rinda
2.7 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3. <plist version="1.0">
  4. <dict>
  5. <key>fileTypes</key>
  6. <array>
  7. <string>mwtest</string>
  8. </array>
  9. <key>name</key>
  10. <string>MWParserFromHell Test Case</string>
  11. <key>patterns</key>
  12. <array>
  13. <dict>
  14. <key>match</key>
  15. <string>---</string>
  16. <key>name</key>
  17. <string>markup.heading.divider.mwpfh</string>
  18. </dict>
  19. <dict>
  20. <key>captures</key>
  21. <dict>
  22. <key>1</key>
  23. <dict>
  24. <key>name</key>
  25. <string>keyword.other.name.mwpfh</string>
  26. </dict>
  27. <key>2</key>
  28. <dict>
  29. <key>name</key>
  30. <string>variable.other.name.mwpfh</string>
  31. </dict>
  32. </dict>
  33. <key>match</key>
  34. <string>(name:)\s*(\w*)</string>
  35. <key>name</key>
  36. <string>meta.name.mwpfh</string>
  37. </dict>
  38. <dict>
  39. <key>captures</key>
  40. <dict>
  41. <key>1</key>
  42. <dict>
  43. <key>name</key>
  44. <string>keyword.other.label.mwpfh</string>
  45. </dict>
  46. <key>2</key>
  47. <dict>
  48. <key>name</key>
  49. <string>comment.line.other.label.mwpfh</string>
  50. </dict>
  51. </dict>
  52. <key>match</key>
  53. <string>(label:)\s*(.*)</string>
  54. <key>name</key>
  55. <string>meta.label.mwpfh</string>
  56. </dict>
  57. <dict>
  58. <key>captures</key>
  59. <dict>
  60. <key>1</key>
  61. <dict>
  62. <key>name</key>
  63. <string>keyword.other.input.mwpfh</string>
  64. </dict>
  65. <key>2</key>
  66. <dict>
  67. <key>name</key>
  68. <string>string.quoted.double.input.mwpfh</string>
  69. </dict>
  70. </dict>
  71. <key>match</key>
  72. <string>(input:)\s*(.*)</string>
  73. <key>name</key>
  74. <string>meta.input.mwpfh</string>
  75. </dict>
  76. <dict>
  77. <key>captures</key>
  78. <dict>
  79. <key>1</key>
  80. <dict>
  81. <key>name</key>
  82. <string>keyword.other.output.mwpfh</string>
  83. </dict>
  84. </dict>
  85. <key>match</key>
  86. <string>(output:)</string>
  87. <key>name</key>
  88. <string>meta.output.mwpfh</string>
  89. </dict>
  90. <dict>
  91. <key>captures</key>
  92. <dict>
  93. <key>1</key>
  94. <dict>
  95. <key>name</key>
  96. <string>support.language.token.mwpfh</string>
  97. </dict>
  98. </dict>
  99. <key>match</key>
  100. <string>(\w+)\s*\(</string>
  101. <key>name</key>
  102. <string>meta.name.token.mwpfh</string>
  103. </dict>
  104. <dict>
  105. <key>captures</key>
  106. <dict>
  107. <key>1</key>
  108. <dict>
  109. <key>name</key>
  110. <string>variable.parameter.token.mwpfh</string>
  111. </dict>
  112. </dict>
  113. <key>match</key>
  114. <string>(\w+)\s*(=)</string>
  115. <key>name</key>
  116. <string>meta.name.parameter.token.mwpfh</string>
  117. </dict>
  118. <dict>
  119. <key>match</key>
  120. <string>".*?"</string>
  121. <key>name</key>
  122. <string>string.quoted.double.mwpfh</string>
  123. </dict>
  124. </array>
  125. <key>scopeName</key>
  126. <string>text.mwpfh</string>
  127. <key>uuid</key>
  128. <string>cd3e2ffa-a57d-4c40-954f-1a2e87ffd638</string>
  129. </dict>
  130. </plist>