Bayeux 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. data/.hgrc +2 -0
  2. data/.rvmrc +27 -0
  3. data/Gemfile +42 -0
  4. data/Gemfile.lock +42 -0
  5. data/HISTORY +63 -0
  6. data/README.rdoc +19 -0
  7. data/Rakefile +89 -0
  8. data/VERSION +1 -0
  9. data/bib/Modules.bib +21 -0
  10. data/code/render/latex/active4d.render +132 -0
  11. data/code/render/latex/all_hallows_eve.render +96 -0
  12. data/code/render/latex/amy.render +171 -0
  13. data/code/render/latex/blackboard.render +111 -0
  14. data/code/render/latex/brilliance_black.render +552 -0
  15. data/code/render/latex/brilliance_dull.render +561 -0
  16. data/code/render/latex/cobalt.render +162 -0
  17. data/code/render/latex/dawn.render +126 -0
  18. data/code/render/latex/eiffel.render +132 -0
  19. data/code/render/latex/espresso_libre.render +123 -0
  20. data/code/render/latex/idle.render +93 -0
  21. data/code/render/latex/iplastic.render +99 -0
  22. data/code/render/latex/lazy.render +96 -0
  23. data/code/render/latex/mac_classic.render +135 -0
  24. data/code/render/latex/magicwb_amiga.render +117 -0
  25. data/code/render/latex/pastels_on_dark.render +204 -0
  26. data/code/render/latex/slush_poppies.render +123 -0
  27. data/code/render/latex/spacecadet.render +81 -0
  28. data/code/render/latex/sunburst.render +186 -0
  29. data/code/render/latex/twilight.render +153 -0
  30. data/code/render/latex/zenburnesque.render +126 -0
  31. data/code/render/old/txt2tags.render +131 -0
  32. data/code/render/xhtml/active4d.render +140 -0
  33. data/code/render/xhtml/all_hallows_eve.render +104 -0
  34. data/code/render/xhtml/amy.render +179 -0
  35. data/code/render/xhtml/blackboard.render +119 -0
  36. data/code/render/xhtml/brilliance_black.render +560 -0
  37. data/code/render/xhtml/brilliance_dull.render +569 -0
  38. data/code/render/xhtml/cobalt.render +170 -0
  39. data/code/render/xhtml/dawn.render +134 -0
  40. data/code/render/xhtml/eiffel.render +140 -0
  41. data/code/render/xhtml/espresso_libre.render +131 -0
  42. data/code/render/xhtml/files/css/active4d.css +114 -0
  43. data/code/render/xhtml/files/css/all_hallows_eve.css +72 -0
  44. data/code/render/xhtml/files/css/amy.css +147 -0
  45. data/code/render/xhtml/files/css/blackboard.css +88 -0
  46. data/code/render/xhtml/files/css/brilliance_black.css +605 -0
  47. data/code/render/xhtml/files/css/brilliance_dull.css +599 -0
  48. data/code/render/xhtml/files/css/cobalt.css +149 -0
  49. data/code/render/xhtml/files/css/dawn.css +121 -0
  50. data/code/render/xhtml/files/css/eiffel.css +121 -0
  51. data/code/render/xhtml/files/css/espresso_libre.css +109 -0
  52. data/code/render/xhtml/files/css/idle.css +62 -0
  53. data/code/render/xhtml/files/css/iplastic.css +80 -0
  54. data/code/render/xhtml/files/css/lazy.css +73 -0
  55. data/code/render/xhtml/files/css/mac_classic.css +123 -0
  56. data/code/render/xhtml/files/css/magicwb_amiga.css +104 -0
  57. data/code/render/xhtml/files/css/pastels_on_dark.css +188 -0
  58. data/code/render/xhtml/files/css/slush_poppies.css +85 -0
  59. data/code/render/xhtml/files/css/spacecadet.css +51 -0
  60. data/code/render/xhtml/files/css/sunburst.css +180 -0
  61. data/code/render/xhtml/files/css/twilight.css +137 -0
  62. data/code/render/xhtml/files/css/zenburnesque.css +91 -0
  63. data/code/render/xhtml/idle.render +101 -0
  64. data/code/render/xhtml/iplastic.render +107 -0
  65. data/code/render/xhtml/lazy.render +104 -0
  66. data/code/render/xhtml/mac_classic.render +143 -0
  67. data/code/render/xhtml/magicwb_amiga.render +125 -0
  68. data/code/render/xhtml/pastels_on_dark.render +212 -0
  69. data/code/render/xhtml/slush_poppies.render +131 -0
  70. data/code/render/xhtml/spacecadet.render +89 -0
  71. data/code/render/xhtml/sunburst.render +194 -0
  72. data/code/render/xhtml/twilight.render +161 -0
  73. data/code/render/xhtml/zenburnesque.render +134 -0
  74. data/code/syntax/actionscript.syntax +97 -0
  75. data/code/syntax/active4d.syntax +276 -0
  76. data/code/syntax/active4d_html.syntax +311 -0
  77. data/code/syntax/active4d_ini.syntax +50 -0
  78. data/code/syntax/active4d_library.syntax +21 -0
  79. data/code/syntax/ada.syntax +33 -0
  80. data/code/syntax/antlr.syntax +151 -0
  81. data/code/syntax/apache.syntax +191 -0
  82. data/code/syntax/applescript.syntax +384 -0
  83. data/code/syntax/asp.syntax +70 -0
  84. data/code/syntax/asp_vb.net.syntax +129 -0
  85. data/code/syntax/bibtex.syntax +151 -0
  86. data/code/syntax/blog_html.syntax +41 -0
  87. data/code/syntax/blog_markdown.syntax +42 -0
  88. data/code/syntax/blog_text.syntax +27 -0
  89. data/code/syntax/blog_textile.syntax +27 -0
  90. data/code/syntax/build.syntax +53 -0
  91. data/code/syntax/bulletin_board.syntax +287 -0
  92. data/code/syntax/cake.syntax +55 -0
  93. data/code/syntax/camlp4.syntax +36 -0
  94. data/code/syntax/cm.syntax +32 -0
  95. data/code/syntax/coldfusion.syntax +119 -0
  96. data/code/syntax/context_free.syntax +176 -0
  97. data/code/syntax/cs.syntax +59 -0
  98. data/code/syntax/css.syntax +195 -0
  99. data/code/syntax/css_experimental.syntax +1925 -0
  100. data/code/syntax/csv.syntax +68 -0
  101. data/code/syntax/d.syntax +142 -0
  102. data/code/syntax/diff.syntax +81 -0
  103. data/code/syntax/dokuwiki.syntax +204 -0
  104. data/code/syntax/dot.syntax +47 -0
  105. data/code/syntax/doxygen.syntax +43 -0
  106. data/code/syntax/dylan.syntax +62 -0
  107. data/code/syntax/eiffel.syntax +78 -0
  108. data/code/syntax/erlang.syntax +922 -0
  109. data/code/syntax/f-script.syntax +80 -0
  110. data/code/syntax/fortran.syntax +141 -0
  111. data/code/syntax/fxscript.syntax +142 -0
  112. data/code/syntax/greasemonkey.syntax +34 -0
  113. data/code/syntax/gri.syntax +83 -0
  114. data/code/syntax/groovy.syntax +191 -0
  115. data/code/syntax/gtd.syntax +22 -0
  116. data/code/syntax/gtdalt.syntax +143 -0
  117. data/code/syntax/haml.syntax +88 -0
  118. data/code/syntax/haskell.syntax +88 -0
  119. data/code/syntax/html-asp.syntax +27 -0
  120. data/code/syntax/html.syntax +362 -0
  121. data/code/syntax/html_django.syntax +36 -0
  122. data/code/syntax/html_for_asp.net.syntax +424 -0
  123. data/code/syntax/html_mason.syntax +119 -0
  124. data/code/syntax/html_rails.syntax +40 -0
  125. data/code/syntax/html_tcl.syntax +26 -0
  126. data/code/syntax/icalendar.syntax +32 -0
  127. data/code/syntax/inform.syntax +48 -0
  128. data/code/syntax/ini.syntax +55 -0
  129. data/code/syntax/installer_distribution_script.syntax +77 -0
  130. data/code/syntax/io.syntax +81 -0
  131. data/code/syntax/java.syntax +211 -0
  132. data/code/syntax/javaproperties.syntax +20 -0
  133. data/code/syntax/javascript.syntax +256 -0
  134. data/code/syntax/javascript_+_prototype.syntax +72 -0
  135. data/code/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  136. data/code/syntax/jquery_javascript.syntax +114 -0
  137. data/code/syntax/json.syntax +136 -0
  138. data/code/syntax/languagedefinition.syntax +708 -0
  139. data/code/syntax/latex.syntax +566 -0
  140. data/code/syntax/latex_beamer.syntax +41 -0
  141. data/code/syntax/latex_log.syntax +50 -0
  142. data/code/syntax/latex_memoir.syntax +64 -0
  143. data/code/syntax/lexflex.syntax +219 -0
  144. data/code/syntax/lighttpd.syntax +54 -0
  145. data/code/syntax/lilypond.syntax +492 -0
  146. data/code/syntax/lisp.syntax +61 -0
  147. data/code/syntax/literate_haskell.syntax +24 -0
  148. data/code/syntax/logo.syntax +29 -0
  149. data/code/syntax/logtalk.syntax +152 -0
  150. data/code/syntax/lua.syntax +86 -0
  151. data/code/syntax/m.syntax +142 -0
  152. data/code/syntax/macports_portfile.syntax +163 -0
  153. data/code/syntax/makefile.syntax +36 -0
  154. data/code/syntax/man.syntax +17 -0
  155. data/code/syntax/mediawiki.syntax +567 -0
  156. data/code/syntax/mips.syntax +66 -0
  157. data/code/syntax/mod_perl.syntax +50 -0
  158. data/code/syntax/modula-3.syntax +47 -0
  159. data/code/syntax/moinmoin.syntax +189 -0
  160. data/code/syntax/mootools.syntax +572 -0
  161. data/code/syntax/movable_type.syntax +162 -0
  162. data/code/syntax/multimarkdown.syntax +39 -0
  163. data/code/syntax/objective-c++.syntax +18 -0
  164. data/code/syntax/objective-c.syntax +233 -0
  165. data/code/syntax/ocaml.syntax +764 -0
  166. data/code/syntax/ocamllex.syntax +167 -0
  167. data/code/syntax/ocamlyacc.syntax +184 -0
  168. data/code/syntax/opengl.syntax +14 -0
  169. data/code/syntax/pascal.syntax +77 -0
  170. data/code/syntax/perl.syntax +1115 -0
  171. data/code/syntax/plain_text.syntax +32 -0
  172. data/code/syntax/postscript.syntax +114 -0
  173. data/code/syntax/processing.syntax +106 -0
  174. data/code/syntax/prolog.syntax +40 -0
  175. data/code/syntax/property_list.syntax +635 -0
  176. data/code/syntax/python.syntax +868 -0
  177. data/code/syntax/python_django.syntax +21 -0
  178. data/code/syntax/qmake_project.syntax +114 -0
  179. data/code/syntax/qt_c++.syntax +26 -0
  180. data/code/syntax/quake3_config.syntax +32 -0
  181. data/code/syntax/r.syntax +81 -0
  182. data/code/syntax/r_console.syntax +16 -0
  183. data/code/syntax/ragel.syntax +201 -0
  184. data/code/syntax/rd_r_documentation.syntax +91 -0
  185. data/code/syntax/regexp.syntax +50 -0
  186. data/code/syntax/release_notes.syntax +46 -0
  187. data/code/syntax/remind.syntax +253 -0
  188. data/code/syntax/restructuredtext.syntax +250 -0
  189. data/code/syntax/rez.syntax +80 -0
  190. data/code/syntax/ruby.syntax +1035 -0
  191. data/code/syntax/ruby_experimental.syntax +145 -0
  192. data/code/syntax/ruby_on_rails.syntax +88 -0
  193. data/code/syntax/s5.syntax +69 -0
  194. data/code/syntax/scheme.syntax +347 -0
  195. data/code/syntax/scilab.syntax +41 -0
  196. data/code/syntax/setext.syntax +147 -0
  197. data/code/syntax/shell-unix-generic.syntax +384 -0
  198. data/code/syntax/slate.syntax +149 -0
  199. data/code/syntax/sql.syntax +237 -0
  200. data/code/syntax/sql_rails.syntax +18 -0
  201. data/code/syntax/ssh-config.syntax +33 -0
  202. data/code/syntax/standard_ml.syntax +121 -0
  203. data/code/syntax/strings_file.syntax +39 -0
  204. data/code/syntax/subversion_commit_message.syntax +36 -0
  205. data/code/syntax/sweave.syntax +84 -0
  206. data/code/syntax/swig.syntax +57 -0
  207. data/code/syntax/tcl.syntax +152 -0
  208. data/code/syntax/template_toolkit.syntax +121 -0
  209. data/code/syntax/tex.syntax +86 -0
  210. data/code/syntax/tex_math.syntax +49 -0
  211. data/code/syntax/textile.syntax +215 -0
  212. data/code/syntax/tsv.syntax +50 -0
  213. data/code/syntax/twiki.syntax +241 -0
  214. data/code/syntax/txt2tags.syntax +79 -0
  215. data/code/syntax/vectorscript.syntax +57 -0
  216. data/code/syntax/xhtml_1.0.syntax +4027 -0
  217. data/code/syntax/xml.syntax +180 -0
  218. data/code/syntax/xml_strict.syntax +92 -0
  219. data/code/syntax/xsl.syntax +60 -0
  220. data/code/syntax/yaml.syntax +160 -0
  221. data/code/syntax/yui_javascript.syntax +176 -0
  222. data/lib/bayeux/bayeux.rb +727 -0
  223. data/lib/bayeux/html_gen.rb +506 -0
  224. data/lib/bayeux/latex_gen.rb +333 -0
  225. data/lib/bayeux/para_block.rb +201 -0
  226. data/lib/bayeux/text_gen.rb +307 -0
  227. data/lib/bayeux/tree_walker.rb +166 -0
  228. data/lib/filters/bayeux.rb +44 -0
  229. data/lib/filters/pandoc.rb +23 -0
  230. data/lib/filters/section_id.rb +105 -0
  231. data/lib/helpers/breadcrumbs.rb +64 -0
  232. data/lib/helpers/site_toc.rb +11 -0
  233. data/lib/lib/uv.rb +92 -0
  234. data/lib/lib/uv/render_processor.rb +146 -0
  235. data/lib/lib/uv/utility.rb +67 -0
  236. data/lib/refs/Doc_Blocks.rb +2 -0
  237. data/lib/refs/References.rb +104 -0
  238. metadata +415 -0
@@ -0,0 +1,163 @@
1
+ ---
2
+ name: MacPorts Portfile
3
+ fileTypes: []
4
+
5
+ scopeName: source.tcl.macports
6
+ repository:
7
+ escape:
8
+ name: constant.character.escape.tcl
9
+ match: \\(\d{1,3}|x[a-fA-F0-9]+|u[a-fA-F0-9]{1,4}|.|\n)
10
+ comment: imported from Tcl grammar
11
+ bare-string:
12
+ endCaptures:
13
+ "1":
14
+ name: invalid.illegal.tcl
15
+ begin: (?:^|(?<=\s))"
16
+ end: "\"(\\S*)"
17
+ patterns:
18
+ - include: "#escape"
19
+ - include: "#variable"
20
+ comment: imported from Tcl grammar
21
+ braces:
22
+ endCaptures:
23
+ "1":
24
+ name: invalid.illegal.tcl
25
+ begin: (?:^|(?<=\s))\{
26
+ end: \}(\S*)
27
+ patterns:
28
+ - name: constant.character.escape.tcl
29
+ match: \\[{}\n]
30
+ - include: "#inner-braces"
31
+ comment: imported from Tcl grammar
32
+ inner-braces:
33
+ begin: \{
34
+ end: \}
35
+ patterns:
36
+ - name: constant.character.escape.tcl
37
+ match: \\[{}\n]
38
+ - include: "#inner-braces"
39
+ comment: imported from Tcl grammar
40
+ variable:
41
+ name: variable.other.tcl
42
+ captures:
43
+ "1":
44
+ name: punctuation.definition.variable.tcl
45
+ match: (\$)([a-zA-Z0-9_:]+(\([^\)]+\))?|\{[^\}]*\})
46
+ comment: imported from Tcl grammar
47
+ string:
48
+ name: string.quoted.double.tcl
49
+ begin: (?:^|(?<=\s))(?=")
50
+ applyEndPatternLast: 1
51
+ end: ""
52
+ patterns:
53
+ - include: "#bare-string"
54
+ comment: imported from Tcl grammar
55
+ embedded:
56
+ name: source.tcl.embedded
57
+ endCaptures:
58
+ "0":
59
+ name: punctuation.section.embedded.end.tcl
60
+ begin: \[
61
+ beginCaptures:
62
+ "0":
63
+ name: punctuation.section.embedded.begin.tcl
64
+ end: \]
65
+ patterns:
66
+ - include: source.tcl.macports
67
+ comment: imported from Tcl grammar
68
+ uuid: 33EC56FE-2BD4-4B73-A6CD-73395F4E5E58
69
+ foldingStartMarker: \{\s*$
70
+ patterns:
71
+ - begin: ^\s*(PortGroup)\s+ruby(?!\S)
72
+ beginCaptures:
73
+ "1":
74
+ name: keyword.other.tcl.macports
75
+ end: $.^
76
+ patterns:
77
+ - include: $base
78
+ - name: keyword.other.tcl.macports
79
+ match: ^\s*ruby\.setup(?!\S)
80
+ comment: special case for ruby PortGroup
81
+ - begin: ^\s*(PortGroup)\s+perl5(?!\S)
82
+ beginCaptures:
83
+ "1":
84
+ name: keyword.other.tcl.macports
85
+ end: $.^
86
+ patterns:
87
+ - include: $base
88
+ - name: keyword.other.tcl.macports
89
+ match: ^\s*perl5\.setup(?!\S)
90
+ comment: special case for the perl5 PortGroup
91
+ - captures:
92
+ "1":
93
+ name: keyword.other.tcl.macports
94
+ match: ^\s*(PortSystem|PortGroup)(?!\S)
95
+ comment: Base commands
96
+ - captures:
97
+ "1":
98
+ name: keyword.other.tcl.macports
99
+ match: ^\s*(use_(?:configure|build|automake|autoconf|xmkmf|libtool|destroot|extract|cvs|svn|patch|test)|(?:configure|build|automake|autoconf|xmkmf|libtool|destroot|extract|cvs|svn|patch|test)\.(?:dir|(?:pre_|post_)?args|env|type|cmd)(?:-(?:delete|append))?)(?!\S)
100
+ comment: Procs defined with the `commands` keyword (ignore use_option-{delete,append} as it is useless)
101
+ - captures:
102
+ "1":
103
+ name: keyword.other.tcl.macports
104
+ match: ^\s*((?:(?:pre|post)-)?(?:activate|build|checksum|clean|configure|destroot|distcheck|extract|fetch|install|livecheck|main|mirror|patch|pkg|mpkg|submit|test))(?!\S)
105
+ comment: Procs defined with the `target_provides` keyword
106
+ - captures:
107
+ "1":
108
+ name: keyword.other.tcl.macports
109
+ match: ^\s*((?:build\.target|categories|checksum\.skip|checksums|cvs\.(?:date|module|password|root|tag)|default_variants|depends_(?:build|lib|run)|destroot\.(?:clean|destdir|keepdirs|target|umask)|dist_subdir|distcheck\.check|distfiles|distname|distpath|epoch|extract\.(?:only|suffix)|fetch\.(?:password|type|use_epsv|user)|filesdir|gnustep\.domain|homepage|install\.(?:group|user)|libpath|livecheck\.(?:check|md5|name|distname|regex|url|version)|maintainers|(?:master|patch)_sites(?:\.mirror_subdir)?|name|os\.(?:arch|endian|platform|version)|patchfiles|platforms|portdbpath|portname|prefix|revision|sources_conf|startupitem\.(?:create|executable|init|logevents|logfile|name|pidfile|requires|restart|start|stop|type)|svn\.(?:tag|url)|test\.(?:run|target)|use_bzip2|use_zip|version|workdir|worksrcdir|xcode\.(?:build\.settings|configuration|destroot\.(?:path|settings|type)|project|target)|zope\.need_subdir)(?:-(?:delete|append))?)(?!\S)
110
+ comment: Procs defined with the `options` keyword
111
+ - begin: ^\s*((?:long_)?description)(?!\S)
112
+ contentName: string.unquoted.tcl.macports
113
+ beginCaptures:
114
+ "1":
115
+ name: keyword.other.tcl.macports
116
+ end: "[\\n;]"
117
+ patterns:
118
+ - include: "#escape"
119
+ - include: "#string"
120
+ - include: "#braces"
121
+ - include: "#embedded"
122
+ - include: "#variable"
123
+ comment: special-case description and long_description for backslash-newline escapes and string scoping
124
+ - name: meta.variant.tcl.macports
125
+ captures:
126
+ "1":
127
+ name: keyword.other.variant.tcl.macports
128
+ begin: ^(variant)(?!\S)
129
+ end: \n
130
+ patterns:
131
+ - name: keyword.other.variant.tcl.macports
132
+ match: (?<=\s)(?:provides|requires|conflicts)(?!\S)
133
+ - name: entity.name.function.variant.tcl.macports
134
+ match: (?<=\s)([\w-]+)
135
+ - endCaptures:
136
+ "1":
137
+ name: punctuation.terminator.variant.tcl.macports
138
+ begin: (\{)
139
+ beginCaptures:
140
+ "1":
141
+ name: punctuation.section.variant.tcl.macports
142
+ end: (\})
143
+ patterns:
144
+ - include: source.tcl.macports
145
+ - name: meta.variant.platform.tcl.macports
146
+ endCaptures:
147
+ "1":
148
+ name: punctuation.terminator.variant.platform.tcl.macports
149
+ begin: ^(platform)(?:\s+(\S+))?(?:\s+(\S+))?(?:\s+(\S+))?\s+(\{)
150
+ beginCaptures:
151
+ "1":
152
+ name: keyword.other.variant.platform.tcl.macports
153
+ "2":
154
+ name: entity.name.function.variant.platform.tcl.macports
155
+ "5":
156
+ name: punctuation.section.variant.platform.tcl.macports
157
+ end: (\})
158
+ patterns:
159
+ - include: source.tcl.macports
160
+ - name: keyword.other.tcl.macports
161
+ match: (?<=^|[\[{;])\s*(adduser|addgroup|dirSize|binaryInPath|archiveTypeIsSupported|variant_isset|xinstall|system|reinplace|flock|readdir|strsed|mkstemp|mktemp|existsuser|existsgroup|nextuid|nextgid|md5|find|filemap|rpm-vercomp|rmd160|sha1|compat|umask|sudo|mkfifo|unixsocketpair|mkchannelfromfd|pipe|curl|readline|rl_history|getuid|geteuid|setuid|seteuid|name_to_uid|uid_to_name|ldelete|delete|include)\b
162
+ - include: source.tcl
163
+ foldingStopMarker: ^\s*\}
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: Makefile
3
+ fileTypes:
4
+ - GNUmakefile
5
+ - makefile
6
+ - Makefile
7
+ - OCamlMakefile
8
+ scopeName: source.makefile
9
+ uuid: FF1825E8-6B1C-11D9-B883-000D93589AF6
10
+ patterns:
11
+ - name: variable.other.makefile
12
+ begin: ^(\w|[-_])+\s*\??=
13
+ end: $
14
+ patterns:
15
+ - match: \\\n
16
+ - name: string.interpolated.backtick.makefile
17
+ begin: `
18
+ end: `
19
+ patterns:
20
+ - include: source.shell
21
+ - name: comment.line.number-sign.makefile
22
+ begin: "#"
23
+ beginCaptures:
24
+ "0":
25
+ name: punctuation.definition.comment.makefile
26
+ end: $\n?
27
+ patterns:
28
+ - name: punctuation.separator.continuation.makefile
29
+ match: (?<!\\)\\$\n
30
+ - name: keyword.control.makefile
31
+ match: ^(\s*)\b(\-??include|ifeq|ifneq|ifdef|ifndef|else|endif|vpath|export|unexport|define|endef|override)\b
32
+ - name: meta.function.makefile
33
+ captures:
34
+ "1":
35
+ name: entity.name.function.makefile
36
+ match: ^([^\t ]+:(?!\=))\s*.*
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: Man
3
+ fileTypes:
4
+ - man
5
+ scopeName: text.man
6
+ uuid: E8BAC30A-16BF-498D-941D-73FBAED37891
7
+ foldingStartMarker: ^[A-Z](?:(?:\S+\s\S+)+|\S+)$
8
+ patterns:
9
+ - name: markup.heading.man
10
+ match: ^[A-Z](?:(?:\S+\s\S+)+|\S+)$
11
+ - name: markup.underline.link.man
12
+ match: ((https?|ftp|file|txmt)://|mailto:)[-:@a-zA-Z0-9_.~%+/?=&#]+(?<![.?:])
13
+ - name: markup.underline.link.internal.man
14
+ match: ([\w\.]+\(\d[a-z]?\))
15
+ - name: meta.foldingStopMarker.man
16
+ match: ^_{2,}$
17
+ foldingStopMarker: ^_{2,}$
@@ -0,0 +1,567 @@
1
+ ---
2
+ name: Mediawiki
3
+ fileTypes:
4
+ - mediawiki
5
+ - wikipedia
6
+ - wiki
7
+ scopeName: text.html.mediawiki
8
+ repository:
9
+ comments:
10
+ patterns:
11
+ - name: comment.block.html.mediawiki
12
+ begin: <!--
13
+ end: --\s*>
14
+ patterns:
15
+ - name: invalid.illegal.bad-comments-or-CDATA.html.mediawiki
16
+ match: --
17
+ inline:
18
+ patterns:
19
+ - captures:
20
+ "1":
21
+ name: constant.other.date-time.mediawiki
22
+ "2":
23
+ name: invalid.illegal.too-many-tildes.mediawiki
24
+ match: (~~~~~)(~{0,2})(?!~)
25
+ - name: constant.other.signature.mediawiki
26
+ match: ~~~~?
27
+ comment: 3 ~s for sig, 4 for sig + timestamp
28
+ - include: "#link"
29
+ - include: "#style"
30
+ - include: "#template"
31
+ - include: "#block_html"
32
+ - include: "#comments"
33
+ template:
34
+ patterns:
35
+ - name: meta.template-parameter.mediawiki
36
+ captures:
37
+ "1":
38
+ name: variable.parameter.template.numeric.mediawiki
39
+ match: "{{{[ ]*([0-9]+)[ ]*}}}"
40
+ - name: meta.template-parameter.mediawiki
41
+ captures:
42
+ "1":
43
+ name: variable.parameter.template.named.mediawiki
44
+ match: "{{{[ ]*(.*?)[ ]*}}}"
45
+ - name: meta.template.parser-function.mediawiki
46
+ endCaptures:
47
+ "1":
48
+ name: punctuation.fix_this_later.template.mediawiki
49
+ begin: ({{)(?=[ ]*#)
50
+ beginCaptures:
51
+ "1":
52
+ name: punctuation.fix_this_later.template.mediawiki
53
+ "2":
54
+ name: meta.function-call.template.mediawiki
55
+ end: (}})
56
+ patterns:
57
+ - include: "#inline"
58
+ comment: "\n\
59
+ \t\t\t\t\t\tWhy oh why did mediawiki have to add these??\n\
60
+ \t\t\t\t\t"
61
+ - name: meta.template.mediawiki
62
+ endCaptures:
63
+ "1":
64
+ name: punctuation.fix_this_later.template.mediawiki
65
+ begin: ({{)([^{}\|]+)?
66
+ beginCaptures:
67
+ "1":
68
+ name: punctuation.fix_this_later.template.mediawiki
69
+ "2":
70
+ name: meta.function-call.template.mediawiki
71
+ end: (}})
72
+ patterns:
73
+ - include: "#comments"
74
+ - begin: (\|)\s*(=)
75
+ contentName: comment.block.template-hack.mediawiki
76
+ beginCaptures:
77
+ "1":
78
+ name: punctuation.fix_this_later.pipe.mediawiki
79
+ "2":
80
+ name: punctuation.fix_this_later.equals-sign.mediawiki
81
+ end: (?=[|}])
82
+ - begin: (\|)(([^{}\|=]+)(=))?
83
+ contentName: meta.value.template.mediawiki
84
+ beginCaptures:
85
+ "1":
86
+ name: punctuation.fix_this_later.pipe.mediawiki
87
+ "2":
88
+ name: variable.parameter.template.mediawiki
89
+ "3":
90
+ name: punctuation.fix_this_later.equals-sign.mediawiki
91
+ end: (?=[|}])
92
+ patterns:
93
+ - include: "#inline"
94
+ - name: punctuation.fix_this_later.pipe.mediawiki
95
+ match: \|
96
+ comment: "\n\
97
+ \t\t\t\t\t\tI am not sure I really like the scope of\n\
98
+ \t\t\t\t\t\tmeta.function-call for templates, but it seems like\n\
99
+ \t\t\t\t\t\tthe closest thing to what a template is really doing,\n\
100
+ \t\t\t\t\t\twith parameters, etc.\n\
101
+ \t\t\t\t\t"
102
+ comment: "\n\
103
+ \t\t\t\tThis repository item covers templates and parser functions.\n\
104
+ \t\t\t"
105
+ entities:
106
+ patterns:
107
+ - name: constant.character.entity.html.mediawiki
108
+ match: "&([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);"
109
+ - name: invalid.illegal.bad-ampersand.html.mediawiki
110
+ match: "&"
111
+ comment: "\n\
112
+ \t\t\t\tMediawiki supports Unicode, so these should not usually be\n\
113
+ \t\t\t\tnecessary, but they do show up on pages from time to time.\n\
114
+ \t\t\t"
115
+ style_in_link:
116
+ patterns:
117
+ - name: markup.bold.mediawiki
118
+ begin: "'''"
119
+ end: "'''"
120
+ patterns:
121
+ - include: "#style_in_link"
122
+ - name: markup.italic.mediawiki
123
+ begin: "''"
124
+ end: "''"
125
+ patterns:
126
+ - include: "#style_in_link"
127
+ - captures:
128
+ "1":
129
+ name: meta.tag.inline.bold.html.mediawiki
130
+ begin: (<(b|strong)>)
131
+ contentName: markup.bold.html.mediawiki
132
+ end: (</\2>)
133
+ patterns:
134
+ - include: "#style_in_link"
135
+ - captures:
136
+ "1":
137
+ name: meta.tag.inline.italic.html.mediawiki
138
+ begin: (<(i|em)>)
139
+ contentName: markup.italic.html.mediawiki
140
+ end: (</\2>)
141
+ patterns:
142
+ - include: "#style_in_link"
143
+ - captures:
144
+ "1":
145
+ name: meta.tag.inline.strikethrough.html.mediawiki
146
+ begin: (<(s|strike)>)
147
+ contentName: markup.other.strikethrough.html.mediawiki
148
+ end: (</\2>)
149
+ patterns:
150
+ - include: "#style_in_link"
151
+ - captures:
152
+ "1":
153
+ name: meta.tag.inline.underline.html.mediawiki
154
+ begin: (<(u)>)
155
+ contentName: markup.underline.html.mediawiki
156
+ end: (</\2>)
157
+ patterns:
158
+ - include: "#style_in_link"
159
+ - captures:
160
+ "1":
161
+ name: meta.tag.inline.raw.html.mediawiki
162
+ begin: (<(tt|code)>)
163
+ contentName: markup.raw.html.mediawiki
164
+ end: (</\2>)
165
+ patterns:
166
+ - include: "#style_in_link"
167
+ - captures:
168
+ "1":
169
+ name: meta.tag.inline.any.html.mediawiki
170
+ begin: (<(big|small|sub|sup)>)
171
+ contentName: markup.other.inline-styles.html.mediawiki
172
+ end: (</\2>)
173
+ patterns:
174
+ - include: "#style_in_link"
175
+ - include: "#comments"
176
+ block:
177
+ patterns:
178
+ - name: meta.redirect.mediawiki
179
+ begin: ^\s*(?i)(#redirect)
180
+ beginCaptures:
181
+ "1":
182
+ name: keyword.control.redirect.mediawiki
183
+ end: \n
184
+ patterns:
185
+ - include: "#link"
186
+ - name: markup.heading.mediawiki
187
+ match: ^=+\s*$
188
+ - name: markup.heading.mediawiki
189
+ begin: ^(=+)(?=.*\1\s*$)
190
+ end: \1\s*$\n?
191
+ patterns:
192
+ - name: invalid.illegal.extra-equals-sign.mediawiki
193
+ match: (?<=^=|^==|^===|^====|^=====|^======)=+|=(?==*\s*$)
194
+ - include: "#inline"
195
+ comment: "\n\
196
+ \t\t\t\t\t\tThis matches lines which begin and end with some\n\
197
+ \t\t\t\t\t number of \xE2\x80\x9C=\xE2\x80\x9D marks. If they are mismatched, then\n\
198
+ \t\t\t\t\t interior \xE2\x80\x9C=\xE2\x80\x9D marks will be treated as invalid.\n\
199
+ \t\t\t\t "
200
+ - name: meta.separator.mediawiki
201
+ match: ^-{4,}[ \t]*($\n)?
202
+ comment: "\n\
203
+ \t\t\t\t\t\tA separator is made up of 4 or more -s alone on a\n\
204
+ \t\t\t\t\t\tline by themselves.\n\
205
+ \t\t\t\t\t"
206
+ - name: markup.raw.block.mediawiki
207
+ begin: ^ (?=\s*\S)
208
+ end: ^(?=[^ ])
209
+ patterns:
210
+ - include: "#inline"
211
+ comment: "\n\
212
+ \t\t\t\t\t\tCode blocks start with one space. Wiki text and\n\
213
+ \t\t\t\t\t\thtml are still interpreted in MediaWiki, unlike in\n\
214
+ \t\t\t\t\t\tmediawiki.\n\
215
+ \t\t\t\t\t"
216
+ - name: markup.list.mediawiki
217
+ begin: ^([#*:;])
218
+ end: ^(?!\1)
219
+ patterns:
220
+ - include: "#inline"
221
+ comment: "\n\
222
+ \t\t\t\t\t\tThis is preliminary. Eventually it would be nice\n\
223
+ \t\t\t\t\t\tto scope each type of list differently, and even to\n\
224
+ \t\t\t\t\t\tdo scopes of nested lists. There are 4 main things\n\
225
+ \t\t\t\t\t\twhich will be scoped as lists:\n\
226
+ \t\t\t\t\t\t\n\
227
+ \t\t\t\t\t\t - numbered lists (#)\n\
228
+ \t\t\t\t\t\t - unnumbered lists (*)\n\
229
+ \t\t\t\t\t\t - definition lists (; :)\n\
230
+ \t\t\t\t\t\t - indented paragraphs, as used on talk pages (:)\n\
231
+ \t\t\t\t\t\t\n\
232
+ \t\t\t\t\t\tthis last one might not even be scoped as a list in\n\
233
+ \t\t\t\t\t\tthe ideal case. It is fine as a list for now,\n\
234
+ \t\t\t\t\t\thowever.\n\
235
+ \t\t\t\t\t"
236
+ - include: "#table"
237
+ - include: "#comments"
238
+ - name: meta.paragraph.mediawiki
239
+ begin: ^(?![\t ;*#:=]|----|$)
240
+ end: ^(?:\s*$|(?=[;*#:=]|----))
241
+ patterns:
242
+ - include: "#inline"
243
+ comment: "\n\
244
+ \t\t\t\t\t\tAnything that is not a code block, list, header, etc.\n\
245
+ \t\t\t\t\t\tis a paragraph.\n\
246
+ \t\t\t\t\t"
247
+ table:
248
+ patterns:
249
+ - name: markup.other.table.mediawiki
250
+ begin: ^{\|
251
+ end: ^\|}
252
+ patterns:
253
+ - name: markup.other.table.row.mediawiki
254
+ begin: ^\|-
255
+ end: ^(?=\|-|\|})
256
+ patterns:
257
+ - include: "#inline"
258
+ comment: "\n\
259
+ \t\t\t\t\t\t\t\thopefully we can allow selection of a whole\n\
260
+ \t\t\t\t\t\t\t\ttable row, and possibly later allow things\n\
261
+ \t\t\t\t\t\t\t\tlike moving a whole row up/down, etc.\n\
262
+ \t\t\t\t\t\t\t"
263
+ - include: "#inline"
264
+ comment: "\n\
265
+ \t\t\t\t\t\twe are going to have to add the styling capabilities\n\
266
+ \t\t\t\t\t\tto this section eventually. It is complicated,\n\
267
+ \t\t\t\t\t\tthough, so I am putting it off.\n\
268
+ \t\t\t\t\t"
269
+ block_html:
270
+ patterns:
271
+ - captures:
272
+ "1":
273
+ name: meta.tag.inline.math.mediawiki
274
+ begin: (<math>)
275
+ contentName: source.math.tex.embedded.mediawiki
276
+ end: (</math>)
277
+ patterns:
278
+ - include: text.tex.math
279
+ - captures:
280
+ "1":
281
+ name: meta.tag.inline.ref.mediawiki
282
+ begin: (<ref>)
283
+ contentName: meta.reference.content.mediawiki
284
+ end: (</ref>)
285
+ patterns:
286
+ - include: "#inline"
287
+ - captures:
288
+ "1":
289
+ name: meta.tag.inline.ref.mediawiki
290
+ begin: (<gallery>)
291
+ contentName: meta.gallery.mediawiki
292
+ end: (</gallery>)
293
+ patterns:
294
+ - name: meta.item.gallery.mediawiki
295
+ begin: "(?x)\n\
296
+ \t\t\t\t\t\t\t\t^(?!\\s*\\n)\t\t\t\t# not an empty line\n\
297
+ \t\t\t\t\t\t\t\t( [ ]*(((i|I)mage)(:)) # spaces, image, colon\n\
298
+ \t\t\t\t\t\t\t\t ([^\\[\\]|]+) # anything\n\
299
+ \t\t\t\t\t\t\t\t (?<!\\s)[ ]* # spaces\n\
300
+ \t\t\t\t\t\t\t\t)?\n\
301
+ \t\t\t\t\t\t\t"
302
+ beginCaptures:
303
+ "6":
304
+ name: constant.other.wiki-link.image.mediawiki
305
+ "3":
306
+ name: constant.other.namespace.image.mediawiki
307
+ "5":
308
+ name: punctuation.fix_this_later.colon.mediawiki
309
+ end: \n
310
+ patterns:
311
+ - begin: ^(?!\|)|(\|)
312
+ contentName: string.other.title.gallery.mediawiki
313
+ beginCaptures:
314
+ "1":
315
+ name: punctuation.fix_this_later.pipe.mediawiki
316
+ end: \n|(?=\|)
317
+ patterns:
318
+ - include: "#inline"
319
+ - name: punctuation.fix_this_later.pipe.mediawiki
320
+ match: \|
321
+ comment: "\n\
322
+ \t\t\t\tThe available block HTML tags supported are:\n\
323
+ \t\t\t\t\n\
324
+ \t\t\t\t * blockquote, center, pre, div, hr, p\n\
325
+ \t\t\t\t * tables: table, th, tr, td, caption\n\
326
+ \t\t\t\t * lists: ul, ol, li\n\
327
+ \t\t\t\t * definition lists: dl, dt, dd\n\
328
+ \t\t\t\t * headers: h1, h2, h3, h4, h5, h6\n\
329
+ \t\t\t\t * br\n\
330
+ \t\t\t"
331
+ link:
332
+ patterns:
333
+ - name: meta.image.wiki.mediawiki
334
+ endCaptures:
335
+ "2":
336
+ name: punctuation.fix_this_later.pipe.mediawiki
337
+ "3":
338
+ name: string.other.title.link.wiki-link.mediawiki
339
+ begin: |-
340
+ (?x:
341
+ (\[\[) # opening brackets
342
+ ( [ ]*(((i|I)mage)(:)) # spaces, image, colon
343
+ ([^\[\]|]+) # anything
344
+ (?<!\s)[ ]* # spaces
345
+ )
346
+ )
347
+ applyEndPatternLast: 1
348
+ beginCaptures:
349
+ "6":
350
+ name: punctuation.fix_this_later.colon.mediawiki
351
+ "7":
352
+ name: constant.other.wiki-link.image.mediawiki
353
+ "1":
354
+ name: punctuation.fix_this_later.brackets.mediwiki
355
+ "4":
356
+ name: constant.other.namespace.image.mediawiki
357
+ end: |-
358
+ (?x:
359
+ ((\|)[ ]*( [^\[\]|]+ )[ ]*)? # pipe, spaces, anything, spaces
360
+ (\]\]) # closing brackets
361
+ )
362
+ patterns:
363
+ - captures:
364
+ "1":
365
+ name: punctuation.fix_this_later.pipe.mediawiki
366
+ "2":
367
+ name: keyword.control.image.formatting.mediawiki
368
+ "3":
369
+ name: keyword.control.image.alignment.mediawiki
370
+ "4":
371
+ name: constant.numeric.image.width.mediawiki
372
+ "5":
373
+ name: constant.other.unit.mediawiki
374
+ match: "(?x)\n\
375
+ \t\t\t\t\t\t\t\t(\\|)[ ]*\n\
376
+ \t\t\t\t\t\t\t\t( (thumb|thumbnail|frame)\n\
377
+ \t\t\t\t\t\t\t\t |(right|left|center|none)\n\
378
+ \t\t\t\t\t\t\t\t |([0-9]+)(px)\n\
379
+ \t\t\t\t\t\t\t\t)[ ]*\n\
380
+ \t\t\t\t\t\t\t"
381
+ - name: punctuation.fix_this_later.pipe.mediawiki
382
+ match: \|
383
+ - include: "#style_in_link"
384
+ - name: meta.link.wiki.mediawiki
385
+ endCaptures:
386
+ "2":
387
+ name: string.other.title.link.wiki-link.mediawiki
388
+ begin: |-
389
+ (?x:
390
+ (\[\[) # opening brackets
391
+ (:)? # colon to suppress image or category?
392
+ ((\s+):[^\[\]]*(?=\]\]))? # a colon after spaces is invalid
393
+ [ ]* # spaces
394
+ ( (([^\[\]|]+)(:))? # namespace
395
+ ([^\[\]|]+)(?<!\s)[ ]* # link name
396
+ )?
397
+ )
398
+ beginCaptures:
399
+ "7":
400
+ name: constant.other.namespace.mediawiki
401
+ "8":
402
+ name: punctuation.fix_this_later.colon.mediawiki
403
+ "9":
404
+ name: constant.other.wiki-link.mediawiki
405
+ "1":
406
+ name: punctuation.fix_this_later.brackets.mediawiki
407
+ "2":
408
+ name: keyword.operator.wiki-link.suppress-image-or-category.mediawiki
409
+ "4":
410
+ name: invalid.illegal.whitespace.mediawiki
411
+ end: |-
412
+ (?x:
413
+ (\|[ ]*([^\[\]|]+)[ ]*)? # pipe, spaces, anything, spaces
414
+ (\]\]) # closing brackets
415
+ )
416
+ patterns:
417
+ - include: "#style_in_link"
418
+ - name: meta.link.inline.external.mediawiki
419
+ begin: \[(\S+)\s*(?=[^\]]*\])
420
+ contentName: string.other.title.link.external.mediawiki
421
+ beginCaptures:
422
+ "1":
423
+ name: markup.underline.link.external.mediawiki
424
+ end: \]
425
+ patterns:
426
+ - include: "#style_in_link"
427
+ - name: markup.underline.link.external.mediawiki
428
+ match: ((https?|ftp|file)://|mailto:)[-:@a-zA-Z0-9_.~%+/?=&#]+(?<![.?:])
429
+ style:
430
+ patterns:
431
+ - name: markup.bold.mediawiki
432
+ begin: "'''"
433
+ end: "'''"
434
+ patterns:
435
+ - include: "#inline"
436
+ - name: markup.italic.mediawiki
437
+ begin: "''"
438
+ end: "''(?!'[^'])"
439
+ patterns:
440
+ - include: "#inline"
441
+ - captures:
442
+ "1":
443
+ name: meta.tag.inline.bold.html.mediawiki
444
+ begin: (<(b|strong)>)
445
+ contentName: markup.bold.html.mediawiki
446
+ end: (</\2>)
447
+ patterns:
448
+ - include: "#inline"
449
+ - captures:
450
+ "1":
451
+ name: meta.tag.inline.italic.html.mediawiki
452
+ begin: (<(i|em)>)
453
+ contentName: markup.italic.html.mediawiki
454
+ end: (</\2>)
455
+ patterns:
456
+ - include: "#inline"
457
+ - captures:
458
+ "1":
459
+ name: meta.tag.inline.strikethrough.html.mediawiki
460
+ begin: (<(s|strike)>)
461
+ contentName: markup.other.strikethrough.html.mediawiki
462
+ end: (</\2>)
463
+ patterns:
464
+ - include: "#inline"
465
+ - captures:
466
+ "1":
467
+ name: meta.tag.inline.underline.html.mediawiki
468
+ begin: (<(u)>)
469
+ contentName: markup.underline.html.mediawiki
470
+ end: (</\2>)
471
+ patterns:
472
+ - include: "#inline"
473
+ - captures:
474
+ "1":
475
+ name: meta.tag.inline.raw.html.mediawiki
476
+ begin: (<(tt|code)>)
477
+ contentName: markup.raw.html.mediawiki
478
+ end: (</\2>)
479
+ patterns:
480
+ - include: "#inline"
481
+ - captures:
482
+ "1":
483
+ name: meta.tag.inline.any.html.mediawiki
484
+ begin: (<(big|small|sub|sup)>)
485
+ contentName: markup.other.inline-styles.html.mediawiki
486
+ end: (</\2>)
487
+ patterns:
488
+ - include: "#inline"
489
+ comment: "\n\
490
+ \t\t\t\tTODO: We still need to add:\n\n\
491
+ \t\t\t\t * font\n\
492
+ \t\t\t\t * ruby, rb, rp, rt\n\
493
+ \t\t\t\t * cite\n\
494
+ \t\t\t\t\n\
495
+ \t\t\t\tinline tags to this section, and make sure that the other\n\
496
+ \t\t\t\ttags can accept attributes in the tag opening, etc. The\n\
497
+ \t\t\t\tcurrent implementation is intended to be naive, but covering\n\
498
+ \t\t\t\tthe majority of uses in mediawiki code.\n\
499
+ \t\t\t\t\n\
500
+ \t\t\t\tWe also need to add mediawiki-specific tags:\n\
501
+ \t\t\t\t\n\
502
+ \t\t\t\t * nowiki, noinclude, includeonly\n\
503
+ \t\t\t\t\n\
504
+ \t\t\t"
505
+ uuid: 6AF21ADF-316A-47D1-A8B6-1BB38637DE9A
506
+ foldingStartMarker: ^(=+)
507
+ patterns:
508
+ - include: "#block"
509
+ - include: "#inline"
510
+ foldingStopMarker: ^.*$(?=\n(=+)|(?!\n))
511
+ keyEquivalent: ^~M
512
+ comment: "\n\
513
+ \t\tThis language grammar tries to handle Mediawiki syntax. Mediawiki\n\
514
+ \t\tsyntax is a mess. This grammar will likely never quite work right.\n\
515
+ \t\tThis is unsurprising as Mediawiki itself has never quite worked right.\n\
516
+ \t\t\n\
517
+ \t\t\t\t--Jacob\n\
518
+ \t\t\n\
519
+ \t\tTODO: lots of fixes still to do:\n\
520
+ \t\t\n\
521
+ \t\t 1. Add a bunch of HTML tags. See the #block and #style sections.\n\
522
+ \t\t 3. Correctly scope all the parser functions and their contents.\n\
523
+ \t\t This on will be complicated, as there are several: expr, if, etc.\n\
524
+ \t\t 4. This is probably the biggest one: get all the lists to scope\n\
525
+ \t\t correctly by type of list. Right now we just scope every list\n\
526
+ \t\t as a list, and do not worry about what happens beyond that.\n\
527
+ \t\t Eventually we want to do numbered and unnumbered separately, etc.\n\
528
+ \t\t 5. Get some kind of folding by heading. Maybe it should just fold\n\
529
+ \t\t to the next header, no matter which level it is. Then we can\n\
530
+ \t\t make a contents just by folding everything. Not completely sure\n\
531
+ \t\t\tthis is possible with current TM folding.\n\
532
+ \t\t 7. Make sure that illegal things are correctly scoped illegal.\n\
533
+ \t\t This is non-trivial, and has several parts\n\
534
+ \t\t \n\
535
+ \t\t - Bold/italic are based on brain-dead heuristics. I want to\n\
536
+ \t\t be stricter than Mediawiki on this one. Also, we should\n\
537
+ \t\t scope as illegal when for instance a new heading starts\n\
538
+ \t\t before an italic has been closed.\n\
539
+ \t\t - Templates... these will be pretty tough to do, as they can\n\
540
+ \t\t be so flexible.\n\
541
+ \t\t - \n\
542
+ \t\t\n\
543
+ \t\t 9. <timeline></timeline> tag. I am really not sure this one is\n\
544
+ \t\t worth trying to do\n\
545
+ \t\t10. Figure out a better scope for meta.function-call. Infininight\n\
546
+ \t\t suggests entity.name.function.call, to be paralleled by\n\
547
+ \t\t entity.name.function.definition. I am not completly sure I like\n\
548
+ \t\t that solution, but it is probably better than meta.function-call\n\
549
+ \t\t\n\
550
+ \t\t\n\
551
+ \t\tTODO items not closely related to the grammar:\n\
552
+ \t\t\n\
553
+ \t\t 2. Add a drop command for links/images, add keyboard shortcuts for\n\
554
+ \t\t them too\n\
555
+ \t\t 3. Make sure all the preference items are sorted out, for instance\n\
556
+ \t\t smart typing pairs, indent patterns, etc.\n\
557
+ \t\t 4. Commands to do bold/italic, and maybe things like big/small \n\
558
+ \t\t 5. \n\
559
+ \t\t\n\
560
+ \t\tFINISHED:\n\
561
+ \t\t 2. Add support for LaTeX math mode inside of <math></math> tags.\n\
562
+ \t\t 1. Add a command for new list item. This one is trivial\n\
563
+ \t\t 6. Get the symbol list working on headings. Trivial.\n\
564
+ \t\t 8. <gallery></gallery> tag. This one adds some complication, but\n\
565
+ \t\t is worth supporting.\n\
566
+ \t\t \n\
567
+ \t"