mizuho 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. data/LICENSE.txt +20 -0
  2. data/README.markdown +61 -0
  3. data/Rakefile +41 -0
  4. data/asciidoc/BUGS +39 -0
  5. data/asciidoc/BUGS.txt +32 -0
  6. data/asciidoc/CHANGELOG +1796 -0
  7. data/asciidoc/CHANGELOG.txt +1810 -0
  8. data/asciidoc/COPYING +339 -0
  9. data/asciidoc/COPYRIGHT +18 -0
  10. data/asciidoc/INSTALL +76 -0
  11. data/asciidoc/INSTALL.txt +71 -0
  12. data/asciidoc/Makefile.in +161 -0
  13. data/asciidoc/README +46 -0
  14. data/asciidoc/README.txt +36 -0
  15. data/asciidoc/a2x +674 -0
  16. data/asciidoc/asciidoc.conf +455 -0
  17. data/asciidoc/asciidoc.py +4998 -0
  18. data/asciidoc/common.aap +9 -0
  19. data/asciidoc/configure +2840 -0
  20. data/asciidoc/configure.ac +11 -0
  21. data/asciidoc/dblatex/asciidoc-dblatex.sty +20 -0
  22. data/asciidoc/dblatex/asciidoc-dblatex.xsl +32 -0
  23. data/asciidoc/dblatex/dblatex-readme.txt +39 -0
  24. data/asciidoc/doc/a2x.1 +257 -0
  25. data/asciidoc/doc/a2x.1.txt +204 -0
  26. data/asciidoc/doc/article.css-embedded.html +602 -0
  27. data/asciidoc/doc/article.html +46 -0
  28. data/asciidoc/doc/article.pdf +0 -0
  29. data/asciidoc/doc/article.txt +122 -0
  30. data/asciidoc/doc/asciidoc-revhistory.xml +27 -0
  31. data/asciidoc/doc/asciidoc.1 +155 -0
  32. data/asciidoc/doc/asciidoc.1.css-embedded.html +598 -0
  33. data/asciidoc/doc/asciidoc.1.css.html +212 -0
  34. data/asciidoc/doc/asciidoc.1.html +190 -0
  35. data/asciidoc/doc/asciidoc.1.txt +118 -0
  36. data/asciidoc/doc/asciidoc.conf +8 -0
  37. data/asciidoc/doc/asciidoc.css-embedded.html +7853 -0
  38. data/asciidoc/doc/asciidoc.css.html +7416 -0
  39. data/asciidoc/doc/asciidoc.dict +733 -0
  40. data/asciidoc/doc/asciidoc.html +3339 -0
  41. data/asciidoc/doc/asciidoc.txt +4979 -0
  42. data/asciidoc/doc/asciimathml.txt +64 -0
  43. data/asciidoc/doc/book-multi.css-embedded.html +575 -0
  44. data/asciidoc/doc/book-multi.html +55 -0
  45. data/asciidoc/doc/book-multi.txt +155 -0
  46. data/asciidoc/doc/book.css-embedded.html +607 -0
  47. data/asciidoc/doc/book.html +43 -0
  48. data/asciidoc/doc/book.txt +131 -0
  49. data/asciidoc/doc/customers.csv +18 -0
  50. data/asciidoc/doc/docbook-xsl.css +272 -0
  51. data/asciidoc/doc/faq.txt +547 -0
  52. data/asciidoc/doc/latex-backend.html +117 -0
  53. data/asciidoc/doc/latex-backend.txt +191 -0
  54. data/asciidoc/doc/latexmath.txt +244 -0
  55. data/asciidoc/doc/latexmathml.txt +41 -0
  56. data/asciidoc/doc/main.aap +297 -0
  57. data/asciidoc/doc/music-filter.html +566 -0
  58. data/asciidoc/doc/music-filter.pdf +0 -0
  59. data/asciidoc/doc/music-filter.txt +158 -0
  60. data/asciidoc/doc/source-highlight-filter.html +214 -0
  61. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  62. data/asciidoc/doc/source-highlight-filter.txt +203 -0
  63. data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +43 -0
  64. data/asciidoc/docbook-xsl/chunked.xsl +19 -0
  65. data/asciidoc/docbook-xsl/common.xsl +67 -0
  66. data/asciidoc/docbook-xsl/fo.xsl +149 -0
  67. data/asciidoc/docbook-xsl/htmlhelp.xsl +17 -0
  68. data/asciidoc/docbook-xsl/manpage.xsl +31 -0
  69. data/asciidoc/docbook-xsl/text.xsl +50 -0
  70. data/asciidoc/docbook-xsl/xhtml.xsl +14 -0
  71. data/asciidoc/docbook.conf +721 -0
  72. data/asciidoc/examples/website/ASCIIMathML.js +938 -0
  73. data/asciidoc/examples/website/CHANGELOG.html +4389 -0
  74. data/asciidoc/examples/website/CHANGELOG.txt +1810 -0
  75. data/asciidoc/examples/website/INSTALL.html +161 -0
  76. data/asciidoc/examples/website/INSTALL.txt +71 -0
  77. data/asciidoc/examples/website/LaTeXMathML.js +1223 -0
  78. data/asciidoc/examples/website/README-website.html +118 -0
  79. data/asciidoc/examples/website/README-website.txt +29 -0
  80. data/asciidoc/examples/website/README.html +125 -0
  81. data/asciidoc/examples/website/README.txt +36 -0
  82. data/asciidoc/examples/website/a2x.1.html +419 -0
  83. data/asciidoc/examples/website/a2x.1.txt +204 -0
  84. data/asciidoc/examples/website/asciidoc-docbook-xsl.html +130 -0
  85. data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +43 -0
  86. data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +130 -0
  87. data/asciidoc/examples/website/asciimathml.txt +64 -0
  88. data/asciidoc/examples/website/build-website.sh +25 -0
  89. data/asciidoc/examples/website/customers.csv +18 -0
  90. data/asciidoc/examples/website/downloads.html +257 -0
  91. data/asciidoc/examples/website/downloads.txt +121 -0
  92. data/asciidoc/examples/website/faq.html +673 -0
  93. data/asciidoc/examples/website/faq.txt +547 -0
  94. data/asciidoc/examples/website/index.html +419 -0
  95. data/asciidoc/examples/website/index.txt +245 -0
  96. data/asciidoc/examples/website/latex-backend.html +535 -0
  97. data/asciidoc/examples/website/latex-backend.txt +191 -0
  98. data/asciidoc/examples/website/latexmathml.txt +41 -0
  99. data/asciidoc/examples/website/layout1.conf +161 -0
  100. data/asciidoc/examples/website/layout1.css +65 -0
  101. data/asciidoc/examples/website/layout2.conf +158 -0
  102. data/asciidoc/examples/website/layout2.css +93 -0
  103. data/asciidoc/examples/website/manpage.html +266 -0
  104. data/asciidoc/examples/website/manpage.txt +118 -0
  105. data/asciidoc/examples/website/music-filter.html +242 -0
  106. data/asciidoc/examples/website/music-filter.txt +158 -0
  107. data/asciidoc/examples/website/music1.abc +12 -0
  108. data/asciidoc/examples/website/music1.png +0 -0
  109. data/asciidoc/examples/website/music2.ly +9 -0
  110. data/asciidoc/examples/website/music2.png +0 -0
  111. data/asciidoc/examples/website/newlists.txt +40 -0
  112. data/asciidoc/examples/website/newtables.txt +397 -0
  113. data/asciidoc/examples/website/sample1.png +0 -0
  114. data/asciidoc/examples/website/sample3.png +0 -0
  115. data/asciidoc/examples/website/sample4.png +0 -0
  116. data/asciidoc/examples/website/source-highlight-filter.html +286 -0
  117. data/asciidoc/examples/website/source-highlight-filter.txt +203 -0
  118. data/asciidoc/examples/website/support.html +78 -0
  119. data/asciidoc/examples/website/support.txt +5 -0
  120. data/asciidoc/examples/website/toc.js +69 -0
  121. data/asciidoc/examples/website/userguide.html +7460 -0
  122. data/asciidoc/examples/website/userguide.txt +4979 -0
  123. data/asciidoc/examples/website/version83.txt +37 -0
  124. data/asciidoc/examples/website/version9.html +143 -0
  125. data/asciidoc/examples/website/version9.txt +48 -0
  126. data/asciidoc/examples/website/xhtml11-manpage.css +18 -0
  127. data/asciidoc/examples/website/xhtml11-quirks.css +41 -0
  128. data/asciidoc/examples/website/xhtml11.css +328 -0
  129. data/asciidoc/filters/code/code-filter-readme.txt +37 -0
  130. data/asciidoc/filters/code/code-filter-test.txt +15 -0
  131. data/asciidoc/filters/code/code-filter.conf +8 -0
  132. data/asciidoc/filters/code/code-filter.py +239 -0
  133. data/asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt +130 -0
  134. data/asciidoc/filters/graphviz/graphviz-filter.conf +39 -0
  135. data/asciidoc/filters/graphviz/graphviz2png.py +154 -0
  136. data/asciidoc/filters/music/music-filter-test.txt +40 -0
  137. data/asciidoc/filters/music/music-filter.conf +40 -0
  138. data/asciidoc/filters/music/music2png.py +189 -0
  139. data/asciidoc/filters/source/source-highlight-filter-test.txt +19 -0
  140. data/asciidoc/filters/source/source-highlight-filter.conf +108 -0
  141. data/asciidoc/help.conf +213 -0
  142. data/asciidoc/html4.conf +460 -0
  143. data/asciidoc/images/highlighter.png +0 -0
  144. data/asciidoc/images/icons/README +5 -0
  145. data/asciidoc/images/icons/callouts/1.png +0 -0
  146. data/asciidoc/images/icons/callouts/10.png +0 -0
  147. data/asciidoc/images/icons/callouts/11.png +0 -0
  148. data/asciidoc/images/icons/callouts/12.png +0 -0
  149. data/asciidoc/images/icons/callouts/13.png +0 -0
  150. data/asciidoc/images/icons/callouts/14.png +0 -0
  151. data/asciidoc/images/icons/callouts/15.png +0 -0
  152. data/asciidoc/images/icons/callouts/2.png +0 -0
  153. data/asciidoc/images/icons/callouts/3.png +0 -0
  154. data/asciidoc/images/icons/callouts/4.png +0 -0
  155. data/asciidoc/images/icons/callouts/5.png +0 -0
  156. data/asciidoc/images/icons/callouts/6.png +0 -0
  157. data/asciidoc/images/icons/callouts/7.png +0 -0
  158. data/asciidoc/images/icons/callouts/8.png +0 -0
  159. data/asciidoc/images/icons/callouts/9.png +0 -0
  160. data/asciidoc/images/icons/caution.png +0 -0
  161. data/asciidoc/images/icons/example.png +0 -0
  162. data/asciidoc/images/icons/home.png +0 -0
  163. data/asciidoc/images/icons/important.png +0 -0
  164. data/asciidoc/images/icons/next.png +0 -0
  165. data/asciidoc/images/icons/note.png +0 -0
  166. data/asciidoc/images/icons/prev.png +0 -0
  167. data/asciidoc/images/icons/tip.png +0 -0
  168. data/asciidoc/images/icons/up.png +0 -0
  169. data/asciidoc/images/icons/warning.png +0 -0
  170. data/asciidoc/images/smallnew.png +0 -0
  171. data/asciidoc/images/tiger.png +0 -0
  172. data/asciidoc/install-sh +201 -0
  173. data/asciidoc/javascripts/ASCIIMathML.js +938 -0
  174. data/asciidoc/javascripts/LaTeXMathML.js +1223 -0
  175. data/asciidoc/javascripts/toc.js +69 -0
  176. data/asciidoc/lang-es.conf +15 -0
  177. data/asciidoc/latex.conf +663 -0
  178. data/asciidoc/stylesheets/docbook-xsl.css +272 -0
  179. data/asciidoc/stylesheets/xhtml11-manpage.css +18 -0
  180. data/asciidoc/stylesheets/xhtml11-quirks.css +41 -0
  181. data/asciidoc/stylesheets/xhtml11.css +328 -0
  182. data/asciidoc/text.conf +16 -0
  183. data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +53 -0
  184. data/asciidoc/vim/syntax/asciidoc.vim +165 -0
  185. data/asciidoc/wordpress.conf +48 -0
  186. data/asciidoc/xhtml11-quirks.conf +57 -0
  187. data/asciidoc/xhtml11.conf +645 -0
  188. data/bin/mizuho +47 -0
  189. data/bin/mizuho-asciidoc +4 -0
  190. data/lib/mizuho.rb +10 -0
  191. data/lib/mizuho/chapter.rb +54 -0
  192. data/lib/mizuho/generator.rb +134 -0
  193. data/lib/mizuho/heading.rb +46 -0
  194. data/lib/mizuho/parser.rb +103 -0
  195. data/lib/mizuho/source_highlight.rb +2 -0
  196. data/lib/mizuho/template.rb +50 -0
  197. data/source-highlight/ada.lang +38 -0
  198. data/source-highlight/bib.lang +6 -0
  199. data/source-highlight/bison.lang +3 -0
  200. data/source-highlight/c.lang +41 -0
  201. data/source-highlight/c_comment.lang +27 -0
  202. data/source-highlight/c_string.lang +9 -0
  203. data/source-highlight/caml.lang +16 -0
  204. data/source-highlight/changelog.lang +8 -0
  205. data/source-highlight/clike_vardeclaration.lang +4 -0
  206. data/source-highlight/cpp.lang +15 -0
  207. data/source-highlight/csharp.lang +36 -0
  208. data/source-highlight/css.lang +14 -0
  209. data/source-highlight/css_common.outlang +26 -0
  210. data/source-highlight/darwin/source-highlight +0 -0
  211. data/source-highlight/default.css +51 -0
  212. data/source-highlight/default.lang +8 -0
  213. data/source-highlight/default.style +57 -0
  214. data/source-highlight/desktop.lang +7 -0
  215. data/source-highlight/diff.lang +32 -0
  216. data/source-highlight/docbook.outlang +36 -0
  217. data/source-highlight/esc.outlang +46 -0
  218. data/source-highlight/esc.style +35 -0
  219. data/source-highlight/extreme_comment.lang +5 -0
  220. data/source-highlight/extreme_comment2.lang +5 -0
  221. data/source-highlight/extreme_comment3.lang +15 -0
  222. data/source-highlight/fixed-fortran.lang +5 -0
  223. data/source-highlight/flex.lang +37 -0
  224. data/source-highlight/fortran.lang +57 -0
  225. data/source-highlight/function.lang +2 -0
  226. data/source-highlight/glsl.lang +86 -0
  227. data/source-highlight/haxe.lang +7 -0
  228. data/source-highlight/html.lang +7 -0
  229. data/source-highlight/html.outlang +25 -0
  230. data/source-highlight/html_common.outlang +35 -0
  231. data/source-highlight/html_notfixed.outlang +22 -0
  232. data/source-highlight/html_ref.outlang +6 -0
  233. data/source-highlight/htmlcss.outlang +28 -0
  234. data/source-highlight/htmltable.outlang +14 -0
  235. data/source-highlight/htmltablelinenum.outlang +26 -0
  236. data/source-highlight/java.lang +26 -0
  237. data/source-highlight/javadoc.outlang +24 -0
  238. data/source-highlight/javascript.lang +27 -0
  239. data/source-highlight/key_string.lang +4 -0
  240. data/source-highlight/lang.map +108 -0
  241. data/source-highlight/langdef.lang +21 -0
  242. data/source-highlight/latex.lang +52 -0
  243. data/source-highlight/latex.outlang +59 -0
  244. data/source-highlight/latexcolor.outlang +44 -0
  245. data/source-highlight/ldap.lang +10 -0
  246. data/source-highlight/log.lang +53 -0
  247. data/source-highlight/logtalk.lang +85 -0
  248. data/source-highlight/lsm.lang +7 -0
  249. data/source-highlight/lua.lang +27 -0
  250. data/source-highlight/m4.lang +27 -0
  251. data/source-highlight/makefile.lang +42 -0
  252. data/source-highlight/nohilite.lang +2 -0
  253. data/source-highlight/number.lang +3 -0
  254. data/source-highlight/outlang.lang +16 -0
  255. data/source-highlight/outlang.map +12 -0
  256. data/source-highlight/pascal.lang +20 -0
  257. data/source-highlight/perl.lang +134 -0
  258. data/source-highlight/php.lang +25 -0
  259. data/source-highlight/postscript.lang +42 -0
  260. data/source-highlight/prolog.lang +37 -0
  261. data/source-highlight/properties.lang +7 -0
  262. data/source-highlight/python.lang +26 -0
  263. data/source-highlight/ruby.lang +32 -0
  264. data/source-highlight/scala.lang +31 -0
  265. data/source-highlight/script_comment.lang +3 -0
  266. data/source-highlight/sh.lang +38 -0
  267. data/source-highlight/slang.lang +25 -0
  268. data/source-highlight/sml.lang +5 -0
  269. data/source-highlight/source-highlight +24 -0
  270. data/source-highlight/spec.lang +12 -0
  271. data/source-highlight/sql.lang +46 -0
  272. data/source-highlight/style.defaults +15 -0
  273. data/source-highlight/style.lang +16 -0
  274. data/source-highlight/style2.style +10 -0
  275. data/source-highlight/style3.style +10 -0
  276. data/source-highlight/symbols.lang +2 -0
  277. data/source-highlight/tcl.lang +35 -0
  278. data/source-highlight/texinfo.outlang +34 -0
  279. data/source-highlight/texinfo.style +20 -0
  280. data/source-highlight/url.lang +3 -0
  281. data/source-highlight/xhtml.outlang +25 -0
  282. data/source-highlight/xhtml_common.outlang +8 -0
  283. data/source-highlight/xhtml_notfixed.outlang +16 -0
  284. data/source-highlight/xhtmlcss.outlang +19 -0
  285. data/source-highlight/xhtmltable.outlang +7 -0
  286. data/source-highlight/xml.lang +17 -0
  287. data/source-highlight/xorg.lang +10 -0
  288. data/templates/asciidoc.css +358 -0
  289. data/templates/asciidoc.html.erb +86 -0
  290. data/templates/manualsonrails.css +165 -0
  291. data/templates/manualsonrails.html.erb +97 -0
  292. data/test/generator_spec.rb +60 -0
  293. data/test/parser_spec.rb +239 -0
  294. data/test/spec_helper.rb +51 -0
  295. metadata +358 -0
@@ -0,0 +1,38 @@
1
+ # definitions for Ada, by Reto Buerki
2
+
3
+ preproc = "with|use"
4
+
5
+ keyword = "abort|abs|abstract|accept|access|aliased|all|and|array|at",
6
+ "begin|body",
7
+ "case|constant",
8
+ "declare|delay|delta|digits|do",
9
+ "else|elsif|end|entry|exception|exit",
10
+ "for|function",
11
+ "generic|goto",
12
+ "if|in|interface|is",
13
+ "limited|loop",
14
+ "mod",
15
+ "new|not|null",
16
+ "of|or|others|out|overriding",
17
+ "package|pragma|private|procedure|protected",
18
+ "raise|range|record|rem|renames|requeue",
19
+ "return|reverse",
20
+ "select|separate|subtype|synchronized",
21
+ "tagged|task|terminate|then|type",
22
+ "until",
23
+ "when|while",
24
+ "xor"
25
+ nonsensitive
26
+
27
+ comment start "--"
28
+
29
+ include "number.lang"
30
+
31
+ string delim "\"" "\"" escape "\\"
32
+ string delim "'" "'" escape "\\"
33
+
34
+ type = "Integer|Float|Duration|Character|String|Wide_String|Boolean" nonsensitive
35
+
36
+ include "symbols.lang"
37
+
38
+ include "function.lang"
@@ -0,0 +1,6 @@
1
+ state bibtex = '@[[:alpha:]]+(?=\{)' begin
2
+ argument = '(?<=\{)[[:alnum:]]+'
3
+ normal = "," exit
4
+ end
5
+
6
+ string = '[[:alpha:]]+(?=[[:blank:]]*=)'
@@ -0,0 +1,3 @@
1
+ # for the moment we share the flex language definition
2
+
3
+ include "flex.lang"
@@ -0,0 +1,41 @@
1
+ # definitions for C
2
+ include "c_comment.lang"
3
+
4
+ (keyword,normal,classname) =
5
+ `(\<struct)([[:blank:]]+)([[:alnum:]_]+)`
6
+
7
+ state preproc start '^[[:blank:]]*#(?:[[:blank:]]*include)' begin
8
+ string delim "<" ">"
9
+ string delim "\"" "\"" escape "\\"
10
+ include "c_comment.lang"
11
+ end
12
+
13
+ preproc = '^[[:blank:]]*#([[:blank:]]*[[:word:]]*)'
14
+
15
+ include "number.lang"
16
+
17
+ include "c_string.lang"
18
+
19
+ keyword = "__asm|__cdecl|__declspec|__export|__far16",
20
+ "__fastcall|__fortran|__import",
21
+ "__pascal|__rtti|__stdcall|_asm|_cdecl",
22
+ "__except|_export|_far16|_fastcall",
23
+ "__finally|_fortran|_import|_pascal|_stdcall|__thread|__try|asm|auto",
24
+ "break|case|catch|cdecl|const|continue|default",
25
+ "do|else|enum|extern|for|goto",
26
+ "if|pascal",
27
+ "register|return|sizeof|static",
28
+ "struct|switch",
29
+ "typedef|union",
30
+ "volatile|while"
31
+
32
+ type = "bool|char|double|float|int|long",
33
+ "short|signed|unsigned|void|wchar_t"
34
+
35
+ include "symbols.lang"
36
+
37
+ cbracket = "{|}"
38
+
39
+ include "function.lang"
40
+
41
+ include "clike_vardeclaration.lang"
@@ -0,0 +1,27 @@
1
+ # c_comment.lang
2
+
3
+ vardef TODO = '(TODO|FIXME|BUG)([:]?)'
4
+
5
+ # comments with documentation tags
6
+ environment comment start "///" begin
7
+ include "url.lang"
8
+ include "html.lang"
9
+ type = '@[[:alpha:]]+'
10
+ todo = $TODO
11
+ end
12
+
13
+ comment start "//"
14
+
15
+ # comments with documentation tags
16
+ environment comment delim "/**" "*/" multiline begin
17
+ include "url.lang"
18
+ include "html.lang"
19
+ type = '@[[:alpha:]]+'
20
+ todo = $TODO
21
+ end
22
+
23
+ # standard comments
24
+ environment comment delim "/*" "*/" multiline begin
25
+ include "url.lang"
26
+ todo = $TODO
27
+ end
@@ -0,0 +1,9 @@
1
+ vardef SPECIALCHAR = '\\.'
2
+
3
+ environment string delim "\"" "\"" begin
4
+ specialchar = $SPECIALCHAR
5
+ end
6
+
7
+ environment string delim "'" "'" begin
8
+ specialchar = $SPECIALCHAR
9
+ end
@@ -0,0 +1,16 @@
1
+ preproc = '\<(?:external|open|include|[A-Z][\w\']*(?=\.))\>'
2
+
3
+ include "number.lang"
4
+
5
+ string delim "\"" "\"" escape "\\"
6
+
7
+ keyword = "and|as|assert|asr|begin|class|closed|constraint|do|done|downto|else|end|exception|false|for|fun|function|functor|if|in|inherit|initializer|land|lazy|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|object|of|or|parser|private|rec|sig|struct|then|to|true|try|type|val|virtual|when|while|with"
8
+
9
+ comment delim "(*" "*)" multiline nested
10
+
11
+ type = '\<(?:[A-Z][\w\']*(?!\.)|int|int32|int64|nativeint|bool|char|exn|option|float|unit|string|list|array|ref|format|format4|lazy_t|in_channel|out_channel)\>'
12
+
13
+ include "symbols.lang"
14
+
15
+ cbracket = "{|}"
16
+
@@ -0,0 +1,8 @@
1
+ state date start '[[:digit:]]{2,4}-?[[:digit:]]{2}-?[[:digit:]]{2}' begin
2
+ include "url.lang"
3
+ name = '([[:word:]]|[[:punct:]])+'
4
+ end
5
+
6
+ (normal,symbol,normal,file)= `(^[[:blank:]]+)(\*)([[:blank:]]+)((?:[^:]+\:)?)`
7
+ (normal,file)= `(^[[:blank:]]+)((?:[^:]+\:)?)`
8
+
@@ -0,0 +1,4 @@
1
+ (usertype,usertype,normal) =
2
+ `([[:alpha:]](?:[^[:punct:][:space:]]|[_])*)
3
+ ((?:<.*>)?)
4
+ (\s+(?=[*&]*[[:alpha:]][^[:punct:][:space:]]*\s*[[:punct:]\[\]]+))`
@@ -0,0 +1,15 @@
1
+ # definitions for C++
2
+ # most of it is shared with c.lang
3
+
4
+ (keyword,normal,classname) =
5
+ `(\<(?:class|struct|typename))([[:blank:]]+)([[:alnum:]_]+)`
6
+
7
+ keyword = "class|const_cast|delete",
8
+ "dynamic_cast|explicit|false|friend",
9
+ "inline|mutable|namespace|new|operator|private|protected",
10
+ "public|reinterpret_cast|static_cast",
11
+ "template|this|throw|true",
12
+ "try|typeid|typename",
13
+ "using|virtual"
14
+
15
+ include "c.lang"
@@ -0,0 +1,36 @@
1
+ # definitions for C-sharp
2
+ # by S. HEMMI, updated by L. Bettini.
3
+ preproc = "using"
4
+
5
+ number =
6
+ '\<[+-]?((0x[[:xdigit:]]+)|(([[:digit:]]*\.)?
7
+ [[:digit:]]+([eE][+-]?[[:digit:]]+)?))([FfDdMmUulL]+)?\>'
8
+
9
+ include "cpp.lang"
10
+
11
+ subst keyword = "abstract|event|new|struct",
12
+ "as|explicit|null|switch",
13
+ "base|extern|this",
14
+ "false|operator|throw",
15
+ "break|finally|out|true",
16
+ "fixed|override|try",
17
+ "case|params|typeof",
18
+ "catch|for|private",
19
+ "foreach|protected",
20
+ "checked|goto|public|unchecked",
21
+ "class|if|readonly|unsafe",
22
+ "const|implicit|ref",
23
+ "continue|in|return",
24
+ "virtual",
25
+ "default|interface|sealed|volatile",
26
+ "delegate|internal",
27
+ "do|is|sizeof|while",
28
+ "lock|stackalloc",
29
+ "else|static",
30
+ "enum|namespace",
31
+ "get|partial|set",
32
+ "value|where|yield"
33
+
34
+ subst type = "bool|byte|sbyte|char|decimal|double",
35
+ "float|int|uint|long|ulong|object",
36
+ "short|ushort|string|void"
@@ -0,0 +1,14 @@
1
+ # language definition for css style sheets
2
+
3
+ include "c_comment.lang"
4
+
5
+ selector = '(\.|#)[[:word:]]+'
6
+
7
+ state cbracket delim "{" "}" multiline begin
8
+ include "c_comment.lang"
9
+ property = '[[:word:]-]+[[:blank:]]*:'
10
+ value = '[.%[:word:]-]+'
11
+ string = '#([[:word:]]+)'
12
+ end
13
+
14
+ include "symbols.lang"
@@ -0,0 +1,26 @@
1
+ include "html_ref.outlang"
2
+
3
+ extension "html"
4
+
5
+ translations
6
+ "&" "&amp;"
7
+ "<" "&lt;"
8
+ ">" "&gt;"
9
+ end
10
+
11
+ doctemplate
12
+ "<!-- Generator: $additional -->
13
+ $header<pre><tt>"
14
+ "</tt></pre>$footer
15
+ "
16
+ end
17
+
18
+ nodoctemplate
19
+ "<!-- Generator: $additional -->
20
+ $header<pre><tt>"
21
+ "</tt></pre>$footer
22
+ "
23
+ end
24
+
25
+ onestyle "<span class=\"$style\">$text</span>"
26
+
@@ -0,0 +1,51 @@
1
+ body { background-color: white; }
2
+
3
+ /* the color for context lines (when specified with line ranges) */
4
+ .context { color: gray; }
5
+
6
+ .keyword { color: blue; font-weight: bold; }
7
+ .type { color: darkgreen; }
8
+ .usertype, .classname { color: teal; }
9
+ .string { color: red; font-family: monospace; }
10
+ .regexp { color: orange; }
11
+ .specialchar { color: pink; font-family: monospace; }
12
+ .comment { color: brown; font-style: italic; }
13
+ .number { color: purple; }
14
+ .preproc { color: darkblue; font-weight: bold; }
15
+ .symbol { color: darkred; }
16
+ .function { color: black; font-weight: bold; }
17
+ .cbracket { color: red; }
18
+ .todo { font-weight: bold; background-color: cyan; }
19
+
20
+ /* line numbers */
21
+ .linenum { color: black; font-family: monospace; }
22
+
23
+ /* Internet related */
24
+ .url { color: blue; text-decoration: underline; font-family: monospace; }
25
+
26
+ /* other elements for ChangeLog and Log files */
27
+ .date { color: blue; font-weight: bold; }
28
+ .time, .file { color: darkblue; font-weight: bold; }
29
+ .ip, .name { color: darkgreen; }
30
+
31
+ /* for Prolog, Perl */
32
+ .variable { color: darkgreen; }
33
+ .italics { color: darkgreen; font-style: italic; }
34
+ .bold { color: darkgreen; font-weight: bold; }
35
+
36
+ /* for LaTeX */
37
+ .underline { color: darkgreen; text-decoration: underline; }
38
+ .fixed { color: green; font-family: monospace; }
39
+ .argument, .optionalargument { color: darkgreen; }
40
+ .math { color: orange; }
41
+ .bibtex { color: blue; }
42
+
43
+ /* for diffs */
44
+ .oldfile { color: orange; }
45
+ .newfile { color: darkgreen; }
46
+ .difflines { color: blue; }
47
+
48
+ /* for css */
49
+ .selector { color: purple; }
50
+ .property { color: blue; }
51
+ .value { color: darkgreen; font-style: italic; }
@@ -0,0 +1,8 @@
1
+ # this is the language definition file to which source-highlight
2
+ # reverts (when in failsafe mode) if not language definition is
3
+ # found for the current input file.
4
+
5
+ # Thus, basically, no highlight is performed (unless you customize
6
+ # this file).
7
+
8
+ # However, your input file will be formatted in the output format.
@@ -0,0 +1,57 @@
1
+ bgcolor "white"; // the background color for documents
2
+ context gray; // the color for context lines (when specified with line ranges)
3
+
4
+ keyword blue b ; // for language keywords
5
+ type darkgreen ; // for basic types
6
+ usertype teal ; // for user defined types
7
+ string red f ; // for strings and chars
8
+ regexp orange f ; // for strings and chars
9
+ specialchar pink f ; // for special chars, e.g., \n, \t, \\
10
+ comment brown i, noref; // for comments
11
+ number purple ; // for literal numbers
12
+ preproc darkblue b ; // for preproc directives (e.g. #include, import)
13
+ symbol darkred ; // for simbols (e.g. <, >, +)
14
+ function black b; // for function calls and declarations
15
+ cbracket red; // for block brackets (e.g. {, })
16
+ todo bg:cyan b; // for TODO and FIXME
17
+
18
+ //Predefined variables and functions (for instance glsl)
19
+ predef_var darkblue ;
20
+ predef_func darkblue b ;
21
+
22
+ // for OOP
23
+ classname teal ; // for class names, e.g., in Java and C++
24
+
25
+ // line numbers
26
+ linenum black f;
27
+
28
+ // Internet related
29
+ url blue u, f;
30
+
31
+ // other elements for ChangeLog and Log files
32
+ date blue b ;
33
+ time, file darkblue b ;
34
+ ip, name darkgreen ;
35
+
36
+ // for Prolog, Perl...
37
+ variable darkgreen ;
38
+
39
+ // explicit for Latex
40
+ italics darkgreen i;
41
+ bold darkgreen b;
42
+ underline darkgreen u;
43
+ fixed green f;
44
+ argument darkgreen;
45
+ optionalargument purple;
46
+ math orange;
47
+ bibtex blue;
48
+
49
+ // for diffs
50
+ oldfile orange;
51
+ newfile darkgreen;
52
+ difflines blue;
53
+
54
+ // for css
55
+ selector purple;
56
+ property blue;
57
+ value darkgreen i;
@@ -0,0 +1,7 @@
1
+ # highlighting for (KDE) desktop files
2
+
3
+ include "script_comment.lang"
4
+
5
+ section start '\[.*\]'
6
+
7
+ (type,paren,normal,symbol) = `([^="\[]+)((?:\[.+\])*)([[:blank:]]*)(=)`
@@ -0,0 +1,32 @@
1
+ # language definition for files created with 'diff'
2
+
3
+ # diff created with -u option
4
+ state oldfile = '(?=^[-]{3})' begin
5
+ oldfile start '^[-]{3}'
6
+ oldfile start '^[-]'
7
+ newfile start '^[+]'
8
+ difflines start '^@@'
9
+ end
10
+
11
+ # diff created with -c option
12
+ state oldfile = '(?=^[*]{3})' begin
13
+ environment oldfile = '^[*]{3}[[:blank:]]+[[:digit:]]' begin
14
+ normal start '^[[:space:]]'
15
+ newfile = '(?=^[-]{3})' exit
16
+ end
17
+ oldfile start '^[*]{3}'
18
+
19
+ environment newfile = '^[-]{3}[[:blank:]]+[[:digit:]]' begin
20
+ normal start '^[[:space:]]'
21
+ newfile = '(?=^[*]{3})' exit
22
+ normal start '^diff' exit
23
+ end
24
+ newfile start '^[-]{3}'
25
+ end
26
+
27
+ # otherwise, created without options
28
+ state difflines = '(?=^[[:digit:]])' begin
29
+ difflines start '^[[:digit:]]'
30
+ oldfile start '^[<]'
31
+ newfile start '^[>]'
32
+ end
@@ -0,0 +1,36 @@
1
+ # by Stuart Rackham
2
+ # http://www.methods.co.nz/asciidoc/source-highlight-filter.html
3
+
4
+ extension "xml"
5
+
6
+ bold "<emphasis role=\"strong\">$text</emphasis>"
7
+ italics "<emphasis>$text</emphasis>"
8
+
9
+ anchor "<anchor id=\"line$linenum\"/>$text"
10
+ postline_reference "<link linkend='line$linenum'>$text -> $linenum</link>"
11
+ postdoc_reference "<link linkend='line$linenum'>$text -> $linenum</link>"
12
+ reference "<link linkend='line$linenum'>$text</link>"
13
+
14
+ doctemplate
15
+ "<!DOCTYPE article PUBLIC \"-//OASIS//DTD DocBook//EN\">
16
+ <article>
17
+ <articleinfo>
18
+ <title>$title</title>
19
+ </articleinfo>
20
+ <programlisting>"
21
+ "</programlisting>
22
+ </article>
23
+ "
24
+ end
25
+
26
+ nodoctemplate
27
+ "<programlisting>"
28
+ "</programlisting>
29
+ "
30
+ end
31
+
32
+ translations
33
+ "&" "&amp;"
34
+ "<" "&lt;"
35
+ ">" "&gt;"
36
+ end