FooBarWidget-mizuho 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/Rakefile +4 -0
  2. data/lib/mizuho/generator.rb +3 -0
  3. data/mizuho.gemspec +9 -5
  4. data/source-highlight/ada.lang +38 -0
  5. data/source-highlight/bib.lang +6 -0
  6. data/source-highlight/bison.lang +3 -0
  7. data/source-highlight/c.lang +41 -0
  8. data/source-highlight/c_comment.lang +27 -0
  9. data/source-highlight/c_string.lang +9 -0
  10. data/source-highlight/caml.lang +16 -0
  11. data/source-highlight/changelog.lang +8 -0
  12. data/source-highlight/clike_vardeclaration.lang +4 -0
  13. data/source-highlight/cpp.lang +15 -0
  14. data/source-highlight/csharp.lang +36 -0
  15. data/source-highlight/css.lang +14 -0
  16. data/source-highlight/css_common.outlang +26 -0
  17. data/source-highlight/default.css +51 -0
  18. data/source-highlight/default.lang +8 -0
  19. data/source-highlight/default.style +57 -0
  20. data/source-highlight/desktop.lang +7 -0
  21. data/source-highlight/diff.lang +32 -0
  22. data/source-highlight/docbook.outlang +36 -0
  23. data/source-highlight/esc.outlang +46 -0
  24. data/source-highlight/esc.style +35 -0
  25. data/source-highlight/extreme_comment.lang +5 -0
  26. data/source-highlight/extreme_comment2.lang +5 -0
  27. data/source-highlight/extreme_comment3.lang +15 -0
  28. data/source-highlight/fixed-fortran.lang +5 -0
  29. data/source-highlight/flex.lang +37 -0
  30. data/source-highlight/fortran.lang +57 -0
  31. data/source-highlight/function.lang +2 -0
  32. data/source-highlight/glsl.lang +86 -0
  33. data/source-highlight/haxe.lang +7 -0
  34. data/source-highlight/html.lang +7 -0
  35. data/source-highlight/html.outlang +25 -0
  36. data/source-highlight/html_common.outlang +35 -0
  37. data/source-highlight/html_notfixed.outlang +22 -0
  38. data/source-highlight/html_ref.outlang +6 -0
  39. data/source-highlight/htmlcss.outlang +28 -0
  40. data/source-highlight/htmltable.outlang +14 -0
  41. data/source-highlight/htmltablelinenum.outlang +26 -0
  42. data/source-highlight/java.lang +26 -0
  43. data/source-highlight/javadoc.outlang +24 -0
  44. data/source-highlight/javascript.lang +27 -0
  45. data/source-highlight/key_string.lang +4 -0
  46. data/source-highlight/lang.map +108 -0
  47. data/source-highlight/langdef.lang +21 -0
  48. data/source-highlight/latex.lang +52 -0
  49. data/source-highlight/latex.outlang +59 -0
  50. data/source-highlight/latexcolor.outlang +44 -0
  51. data/source-highlight/ldap.lang +10 -0
  52. data/source-highlight/log.lang +53 -0
  53. data/source-highlight/logtalk.lang +85 -0
  54. data/source-highlight/lsm.lang +7 -0
  55. data/source-highlight/lua.lang +27 -0
  56. data/source-highlight/m4.lang +27 -0
  57. data/source-highlight/makefile.lang +42 -0
  58. data/source-highlight/nohilite.lang +2 -0
  59. data/source-highlight/number.lang +3 -0
  60. data/source-highlight/outlang.lang +16 -0
  61. data/source-highlight/outlang.map +12 -0
  62. data/source-highlight/pascal.lang +20 -0
  63. data/source-highlight/perl.lang +134 -0
  64. data/source-highlight/php.lang +25 -0
  65. data/source-highlight/postscript.lang +42 -0
  66. data/source-highlight/prolog.lang +37 -0
  67. data/source-highlight/properties.lang +7 -0
  68. data/source-highlight/python.lang +26 -0
  69. data/source-highlight/ruby.lang +32 -0
  70. data/source-highlight/scala.lang +31 -0
  71. data/source-highlight/script_comment.lang +3 -0
  72. data/source-highlight/sh.lang +38 -0
  73. data/source-highlight/slang.lang +25 -0
  74. data/source-highlight/sml.lang +5 -0
  75. data/source-highlight/source-highlight +5 -0
  76. data/source-highlight/spec.lang +12 -0
  77. data/source-highlight/sql.lang +46 -0
  78. data/source-highlight/style.defaults +15 -0
  79. data/source-highlight/style.lang +16 -0
  80. data/source-highlight/style2.style +10 -0
  81. data/source-highlight/style3.style +10 -0
  82. data/source-highlight/symbols.lang +2 -0
  83. data/source-highlight/tcl.lang +35 -0
  84. data/source-highlight/texinfo.outlang +34 -0
  85. data/source-highlight/texinfo.style +20 -0
  86. data/source-highlight/universal-darwin9.0/source-highlight +0 -0
  87. data/source-highlight/url.lang +3 -0
  88. data/source-highlight/xhtml.outlang +25 -0
  89. data/source-highlight/xhtml_common.outlang +8 -0
  90. data/source-highlight/xhtml_notfixed.outlang +16 -0
  91. data/source-highlight/xhtmlcss.outlang +19 -0
  92. data/source-highlight/xhtmltable.outlang +7 -0
  93. data/source-highlight/xml.lang +17 -0
  94. data/source-highlight/xorg.lang +10 -0
  95. data/test/spec_helper.rb +11 -3
  96. metadata +261 -178
data/Rakefile CHANGED
@@ -19,3 +19,7 @@ desc "Generate an Asciidoc file list, suitable for pasting into the gemspec"
19
19
  task :generate_asciidoc_file_list do
20
20
  puts Dir["asciidoc/**/*"].inspect
21
21
  end
22
+
23
+ task :generate_source_highlight_file_list do
24
+ puts Dir["source-highlight/**/*"].inspect
25
+ end
@@ -3,6 +3,9 @@ require 'digest/sha1'
3
3
  require 'mizuho/parser'
4
4
  require 'mizuho/template'
5
5
 
6
+ root = File.expand_path(File.join(File.dirname(__FILE__), "..", ".."))
7
+ ENV['PATH'] += ":" + File.join(root, "source-highlight")
8
+
6
9
  module Mizuho
7
10
 
8
11
  class GenerationError < StandardError
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "mizuho"
3
- s.version = "0.9.4"
3
+ s.version = "0.9.5"
4
4
  s.summary = "Mizuho documentation formatting tool"
5
5
  s.email = "hongli@phusion.nl"
6
6
  s.homepage = "http://github.com/FooBarWidget/mizuho/tree/master"
@@ -25,9 +25,13 @@ Gem::Specification.new do |s|
25
25
  "templates/manualsonrails.css",
26
26
  "templates/manualsonrails.html.erb",
27
27
 
28
- "asciidoc/vim", "asciidoc/vim/syntax", "asciidoc/vim/syntax/asciidoc.vim", "asciidoc/vim/ftdetect", "asciidoc/vim/ftdetect/asciidoc_filetype.vim", "asciidoc/filters", "asciidoc/filters/music", "asciidoc/filters/music/music-filter.conf", "asciidoc/filters/music/music-filter-test.txt", "asciidoc/filters/music/music2png.py", "asciidoc/filters/code", "asciidoc/filters/code/code-filter.conf", "asciidoc/filters/code/code-filter-test.txt", "asciidoc/filters/code/code-filter.py", "asciidoc/filters/code/code-filter-readme.txt", "asciidoc/filters/source", "asciidoc/filters/source/source-highlight-filter-test.txt", "asciidoc/filters/source/source-highlight-filter.conf", "asciidoc/filters/graphviz", "asciidoc/filters/graphviz/graphviz-filter.conf", "asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt", "asciidoc/filters/graphviz/graphviz2png.py", "asciidoc/wordpress.conf", "asciidoc/stylesheets", "asciidoc/stylesheets/xhtml11-manpage.css", "asciidoc/stylesheets/xhtml11-quirks.css", "asciidoc/stylesheets/docbook-xsl.css", "asciidoc/stylesheets/xhtml11.css", "asciidoc/help.conf", "asciidoc/configure", "asciidoc/examples", "asciidoc/examples/website", "asciidoc/examples/website/downloads.txt", "asciidoc/examples/website/README.html", "asciidoc/examples/website/latexmathml.txt", "asciidoc/examples/website/userguide.txt", "asciidoc/examples/website/layout2.conf", "asciidoc/examples/website/xhtml11-manpage.css", "asciidoc/examples/website/support.html", "asciidoc/examples/website/version9.txt", "asciidoc/examples/website/version83.txt", "asciidoc/examples/website/asciidoc-graphviz-sample.txt",
29
- "asciidoc/examples/website/faq.html", "asciidoc/examples/website/index.html", "asciidoc/examples/website/xhtml11-quirks.css", "asciidoc/examples/website/sample4.png", "asciidoc/examples/website/customers.csv", "asciidoc/examples/website/newlists.html", "asciidoc/examples/website/newtables.txt", "asciidoc/examples/website/LaTeXMathML.js", "asciidoc/examples/website/images", "asciidoc/examples/website/asciimathml.txt", "asciidoc/examples/website/newtables.html", "asciidoc/examples/website/layout2.css", "asciidoc/examples/website/source-highlight-filter.html", "asciidoc/examples/website/asciidoc-docbook-xsl.txt", "asciidoc/examples/website/a2x.1.html", "asciidoc/examples/website/toc.js", "asciidoc/examples/website/INSTALL.html", "asciidoc/examples/website/README-website.html", "asciidoc/examples/website/INSTALL.txt", "asciidoc/examples/website/version83.html", "asciidoc/examples/website/music1.abc", "asciidoc/examples/website/music1.png", "asciidoc/examples/website/music-filter.html", "asciidoc/examples/website/latexmathml.html", "asciidoc/examples/website/layout1.conf", "asciidoc/examples/website/asciidoc-graphviz-sample.html", "asciidoc/examples/website/CHANGELOG.txt", "asciidoc/examples/website/source-highlight-filter.txt", "asciidoc/examples/website/index.txt", "asciidoc/examples/website/latex-backend.txt", "asciidoc/examples/website/build-website.sh", "asciidoc/examples/website/asciimathml.html", "asciidoc/examples/website/ASCIIMathML.js", "asciidoc/examples/website/music-filter.txt", "asciidoc/examples/website/userguide.html", "asciidoc/examples/website/layout1.css", "asciidoc/examples/website/music2.png", "asciidoc/examples/website/faq.txt", "asciidoc/examples/website/asciidoc-docbook-xsl.html", "asciidoc/examples/website/support.txt", "asciidoc/examples/website/CHANGELOG.html", "asciidoc/examples/website/version9.html", "asciidoc/examples/website/music2.ly", "asciidoc/examples/website/README.txt", "asciidoc/examples/website/manpage.html", "asciidoc/examples/website/xhtml11.css", "asciidoc/examples/website/latex-backend.html", "asciidoc/examples/website/newlists.txt", "asciidoc/examples/website/manpage.txt", "asciidoc/examples/website/sample1.png", "asciidoc/examples/website/downloads.html", "asciidoc/examples/website/a2x.1.txt", "asciidoc/examples/website/README-website.txt", "asciidoc/examples/website/sample3.png", "asciidoc/BUGS", "asciidoc/asciidoc.py",
30
- "asciidoc/common.aap", "asciidoc/images", "asciidoc/images/icons", "asciidoc/images/icons/up.png", "asciidoc/images/icons/warning.png", "asciidoc/images/icons/note.png", "asciidoc/images/icons/next.png", "asciidoc/images/icons/important.png", "asciidoc/images/icons/home.png", "asciidoc/images/icons/README", "asciidoc/images/icons/caution.png", "asciidoc/images/icons/tip.png", "asciidoc/images/icons/prev.png", "asciidoc/images/icons/callouts", "asciidoc/images/icons/callouts/10.png", "asciidoc/images/icons/callouts/12.png", "asciidoc/images/icons/callouts/3.png", "asciidoc/images/icons/callouts/2.png", "asciidoc/images/icons/callouts/5.png", "asciidoc/images/icons/callouts/7.png", "asciidoc/images/icons/callouts/8.png", "asciidoc/images/icons/callouts/11.png", "asciidoc/images/icons/callouts/9.png", "asciidoc/images/icons/callouts/1.png", "asciidoc/images/icons/callouts/4.png", "asciidoc/images/icons/callouts/6.png", "asciidoc/images/icons/callouts/13.png", "asciidoc/images/icons/callouts/15.png", "asciidoc/images/icons/callouts/14.png", "asciidoc/images/icons/example.png", "asciidoc/images/highlighter.png", "asciidoc/images/smallnew.png", "asciidoc/images/tiger.png", "asciidoc/install-sh", "asciidoc/CHANGELOG", "asciidoc/doc", "asciidoc/doc/latexmathml.txt", "asciidoc/doc/asciidoc.1.html", "asciidoc/doc/source-highlight-filter.pdf", "asciidoc/doc/latexmath.txt", "asciidoc/doc/faq.html", "asciidoc/doc/customers.csv", "asciidoc/doc/images", "asciidoc/doc/book.css-embedded.html", "asciidoc/doc/asciidoc.css.html", "asciidoc/doc/asciimathml.txt", "asciidoc/doc/article.html", "asciidoc/doc/source-highlight-filter.html", "asciidoc/doc/docbook-xsl.css", "asciidoc/doc/book.txt", "asciidoc/doc/asciidoc.1", "asciidoc/doc/a2x.1", "asciidoc/doc/asciidoc.txt", "asciidoc/doc/asciidoc-revhistory.xml", "asciidoc/doc/article.txt", "asciidoc/doc/music-filter.html", "asciidoc/doc/latexmathml.html", "asciidoc/doc/asciidoc.dict", "asciidoc/doc/article.pdf",
31
- "asciidoc/doc/asciidoc.html", "asciidoc/doc/source-highlight-filter.txt", "asciidoc/doc/asciidoc.css-embedded.html", "asciidoc/doc/asciidoc.1.css.html", "asciidoc/doc/latex-backend.txt", "asciidoc/doc/asciimathml.html", "asciidoc/doc/article.css-embedded.html", "asciidoc/doc/music-filter.txt", "asciidoc/doc/book-multi.html", "asciidoc/doc/book-multi.txt", "asciidoc/doc/asciidoc.1.css-embedded.html", "asciidoc/doc/faq.txt", "asciidoc/doc/music-filter.pdf", "asciidoc/doc/main.aap", "asciidoc/doc/asciidoc.1.txt", "asciidoc/doc/latex-backend.html", "asciidoc/doc/asciidoc.conf", "asciidoc/doc/book-multi.css-embedded.html", "asciidoc/doc/book.html", "asciidoc/doc/a2x.1.txt", "asciidoc/INSTALL.txt", "asciidoc/javascripts", "asciidoc/javascripts/LaTeXMathML.js", "asciidoc/javascripts/toc.js", "asciidoc/javascripts/ASCIIMathML.js", "asciidoc/BUGS.txt", "asciidoc/text.conf", "asciidoc/CHANGELOG.txt", "asciidoc/configure.ac", "asciidoc/INSTALL", "asciidoc/a2x", "asciidoc/README", "asciidoc/COPYING", "asciidoc/COPYRIGHT", "asciidoc/docbook-xsl", "asciidoc/docbook-xsl/fo.xsl", "asciidoc/docbook-xsl/manpage.xsl", "asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt", "asciidoc/docbook-xsl/chunked.xsl", "asciidoc/docbook-xsl/htmlhelp.xsl", "asciidoc/docbook-xsl/text.xsl", "asciidoc/docbook-xsl/common.xsl", "asciidoc/docbook-xsl/xhtml.xsl", "asciidoc/html4.conf", "asciidoc/dblatex", "asciidoc/dblatex/asciidoc-dblatex.xsl", "asciidoc/dblatex/asciidoc-dblatex.sty", "asciidoc/dblatex/dblatex-readme.txt", "asciidoc/lang-es.conf", "asciidoc/xhtml11.conf", "asciidoc/Makefile.in", "asciidoc/README.txt", "asciidoc/xhtml11-quirks.conf", "asciidoc/docbook.conf", "asciidoc/asciidoc.conf", "asciidoc/latex.conf"
28
+ "asciidoc/a2x", "asciidoc/asciidoc.conf", "asciidoc/asciidoc.py", "asciidoc/BUGS", "asciidoc/BUGS.txt", "asciidoc/CHANGELOG", "asciidoc/CHANGELOG.txt", "asciidoc/common.aap", "asciidoc/configure", "asciidoc/configure.ac", "asciidoc/COPYING", "asciidoc/COPYRIGHT", "asciidoc/dblatex", "asciidoc/dblatex/asciidoc-dblatex.sty", "asciidoc/dblatex/asciidoc-dblatex.xsl", "asciidoc/dblatex/dblatex-readme.txt", "asciidoc/doc", "asciidoc/doc/a2x.1", "asciidoc/doc/a2x.1.txt", "asciidoc/doc/article.css-embedded.html", "asciidoc/doc/article.html", "asciidoc/doc/article.pdf", "asciidoc/doc/article.txt", "asciidoc/doc/asciidoc-revhistory.xml", "asciidoc/doc/asciidoc.1", "asciidoc/doc/asciidoc.1.css-embedded.html", "asciidoc/doc/asciidoc.1.css.html", "asciidoc/doc/asciidoc.1.html", "asciidoc/doc/asciidoc.1.txt", "asciidoc/doc/asciidoc.conf", "asciidoc/doc/asciidoc.css-embedded.html", "asciidoc/doc/asciidoc.css.html", "asciidoc/doc/asciidoc.dict", "asciidoc/doc/asciidoc.html", "asciidoc/doc/asciidoc.txt", "asciidoc/doc/asciimathml.txt", "asciidoc/doc/book-multi.css-embedded.html", "asciidoc/doc/book-multi.html", "asciidoc/doc/book-multi.txt", "asciidoc/doc/book.css-embedded.html", "asciidoc/doc/book.html", "asciidoc/doc/book.txt", "asciidoc/doc/customers.csv", "asciidoc/doc/docbook-xsl.css", "asciidoc/doc/faq.txt", "asciidoc/doc/images", "asciidoc/doc/latex-backend.html", "asciidoc/doc/latex-backend.txt", "asciidoc/doc/latexmath.txt", "asciidoc/doc/latexmathml.txt", "asciidoc/doc/main.aap", "asciidoc/doc/music-filter.html", "asciidoc/doc/music-filter.pdf", "asciidoc/doc/music-filter.txt", "asciidoc/doc/source-highlight-filter.html", "asciidoc/doc/source-highlight-filter.pdf", "asciidoc/doc/source-highlight-filter.txt", "asciidoc/docbook-xsl", "asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt", "asciidoc/docbook-xsl/chunked.xsl", "asciidoc/docbook-xsl/common.xsl", "asciidoc/docbook-xsl/fo.xsl", "asciidoc/docbook-xsl/htmlhelp.xsl", "asciidoc/docbook-xsl/manpage.xsl", "asciidoc/docbook-xsl/text.xsl", "asciidoc/docbook-xsl/xhtml.xsl", "asciidoc/docbook.conf", "asciidoc/examples", "asciidoc/examples/website", "asciidoc/examples/website/a2x.1.html", "asciidoc/examples/website/a2x.1.txt", "asciidoc/examples/website/asciidoc-docbook-xsl.html", "asciidoc/examples/website/asciidoc-docbook-xsl.txt",
29
+ "asciidoc/examples/website/asciidoc-graphviz-sample.txt", "asciidoc/examples/website/ASCIIMathML.js", "asciidoc/examples/website/asciimathml.txt", "asciidoc/examples/website/build-website.sh", "asciidoc/examples/website/CHANGELOG.html", "asciidoc/examples/website/CHANGELOG.txt", "asciidoc/examples/website/customers.csv", "asciidoc/examples/website/downloads.html", "asciidoc/examples/website/downloads.txt", "asciidoc/examples/website/faq.html", "asciidoc/examples/website/faq.txt", "asciidoc/examples/website/images", "asciidoc/examples/website/index.html", "asciidoc/examples/website/index.txt", "asciidoc/examples/website/INSTALL.html", "asciidoc/examples/website/INSTALL.txt", "asciidoc/examples/website/latex-backend.html", "asciidoc/examples/website/latex-backend.txt", "asciidoc/examples/website/LaTeXMathML.js", "asciidoc/examples/website/latexmathml.txt", "asciidoc/examples/website/layout1.conf", "asciidoc/examples/website/layout1.css", "asciidoc/examples/website/layout2.conf", "asciidoc/examples/website/layout2.css", "asciidoc/examples/website/manpage.html", "asciidoc/examples/website/manpage.txt", "asciidoc/examples/website/music-filter.html", "asciidoc/examples/website/music-filter.txt", "asciidoc/examples/website/music1.abc", "asciidoc/examples/website/music1.png", "asciidoc/examples/website/music2.ly", "asciidoc/examples/website/music2.png", "asciidoc/examples/website/newlists.txt", "asciidoc/examples/website/newtables.txt", "asciidoc/examples/website/README-website.html", "asciidoc/examples/website/README-website.txt", "asciidoc/examples/website/README.html", "asciidoc/examples/website/README.txt", "asciidoc/examples/website/sample1.png", "asciidoc/examples/website/sample3.png", "asciidoc/examples/website/sample4.png", "asciidoc/examples/website/source-highlight-filter.html", "asciidoc/examples/website/source-highlight-filter.txt", "asciidoc/examples/website/support.html", "asciidoc/examples/website/support.txt", "asciidoc/examples/website/toc.js", "asciidoc/examples/website/userguide.html", "asciidoc/examples/website/userguide.txt", "asciidoc/examples/website/version83.txt", "asciidoc/examples/website/version9.html", "asciidoc/examples/website/version9.txt", "asciidoc/examples/website/xhtml11-manpage.css", "asciidoc/examples/website/xhtml11-quirks.css",
30
+ "asciidoc/examples/website/xhtml11.css", "asciidoc/filters", "asciidoc/filters/code", "asciidoc/filters/code/code-filter-readme.txt", "asciidoc/filters/code/code-filter-test.txt", "asciidoc/filters/code/code-filter.conf", "asciidoc/filters/code/code-filter.py", "asciidoc/filters/graphviz", "asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt", "asciidoc/filters/graphviz/graphviz-filter.conf", "asciidoc/filters/graphviz/graphviz2png.py", "asciidoc/filters/music", "asciidoc/filters/music/music-filter-test.txt", "asciidoc/filters/music/music-filter.conf", "asciidoc/filters/music/music2png.py", "asciidoc/filters/source", "asciidoc/filters/source/source-highlight-filter-test.txt", "asciidoc/filters/source/source-highlight-filter.conf", "asciidoc/help.conf", "asciidoc/html4.conf", "asciidoc/images", "asciidoc/images/highlighter.png", "asciidoc/images/icons", "asciidoc/images/icons/callouts", "asciidoc/images/icons/callouts/1.png", "asciidoc/images/icons/callouts/10.png", "asciidoc/images/icons/callouts/11.png", "asciidoc/images/icons/callouts/12.png", "asciidoc/images/icons/callouts/13.png", "asciidoc/images/icons/callouts/14.png", "asciidoc/images/icons/callouts/15.png", "asciidoc/images/icons/callouts/2.png", "asciidoc/images/icons/callouts/3.png", "asciidoc/images/icons/callouts/4.png", "asciidoc/images/icons/callouts/5.png", "asciidoc/images/icons/callouts/6.png", "asciidoc/images/icons/callouts/7.png", "asciidoc/images/icons/callouts/8.png", "asciidoc/images/icons/callouts/9.png", "asciidoc/images/icons/caution.png", "asciidoc/images/icons/example.png", "asciidoc/images/icons/home.png", "asciidoc/images/icons/important.png", "asciidoc/images/icons/next.png", "asciidoc/images/icons/note.png", "asciidoc/images/icons/prev.png", "asciidoc/images/icons/README", "asciidoc/images/icons/tip.png", "asciidoc/images/icons/up.png", "asciidoc/images/icons/warning.png", "asciidoc/images/smallnew.png", "asciidoc/images/tiger.png", "asciidoc/INSTALL", "asciidoc/install-sh", "asciidoc/INSTALL.txt", "asciidoc/javascripts", "asciidoc/javascripts/ASCIIMathML.js", "asciidoc/javascripts/LaTeXMathML.js", "asciidoc/javascripts/toc.js", "asciidoc/lang-es.conf", "asciidoc/latex.conf", "asciidoc/Makefile.in", "asciidoc/README", "asciidoc/README.txt", "asciidoc/stylesheets", "asciidoc/stylesheets/docbook-xsl.css",
31
+ "asciidoc/stylesheets/xhtml11-manpage.css", "asciidoc/stylesheets/xhtml11-quirks.css", "asciidoc/stylesheets/xhtml11.css", "asciidoc/text.conf", "asciidoc/vim", "asciidoc/vim/ftdetect", "asciidoc/vim/ftdetect/asciidoc_filetype.vim", "asciidoc/vim/syntax", "asciidoc/vim/syntax/asciidoc.vim", "asciidoc/wordpress.conf", "asciidoc/xhtml11-quirks.conf", "asciidoc/xhtml11.conf",
32
+
33
+ "source-highlight/ada.lang", "source-highlight/bib.lang", "source-highlight/bison.lang", "source-highlight/c.lang", "source-highlight/c_comment.lang", "source-highlight/c_string.lang", "source-highlight/caml.lang", "source-highlight/changelog.lang", "source-highlight/clike_vardeclaration.lang", "source-highlight/cpp.lang", "source-highlight/csharp.lang", "source-highlight/css.lang", "source-highlight/css_common.outlang", "source-highlight/default.css", "source-highlight/default.lang", "source-highlight/default.style", "source-highlight/desktop.lang", "source-highlight/diff.lang", "source-highlight/docbook.outlang", "source-highlight/esc.outlang", "source-highlight/esc.style", "source-highlight/extreme_comment.lang", "source-highlight/extreme_comment2.lang", "source-highlight/extreme_comment3.lang", "source-highlight/fixed-fortran.lang", "source-highlight/flex.lang", "source-highlight/fortran.lang", "source-highlight/function.lang", "source-highlight/glsl.lang", "source-highlight/haxe.lang", "source-highlight/html.lang", "source-highlight/html.outlang", "source-highlight/html_common.outlang",
34
+ "source-highlight/html_notfixed.outlang", "source-highlight/html_ref.outlang", "source-highlight/htmlcss.outlang", "source-highlight/htmltable.outlang", "source-highlight/htmltablelinenum.outlang", "source-highlight/java.lang", "source-highlight/javadoc.outlang", "source-highlight/javascript.lang", "source-highlight/key_string.lang", "source-highlight/lang.map", "source-highlight/langdef.lang", "source-highlight/latex.lang", "source-highlight/latex.outlang", "source-highlight/latexcolor.outlang", "source-highlight/ldap.lang", "source-highlight/log.lang", "source-highlight/logtalk.lang", "source-highlight/lsm.lang", "source-highlight/lua.lang", "source-highlight/m4.lang", "source-highlight/makefile.lang", "source-highlight/nohilite.lang", "source-highlight/number.lang", "source-highlight/outlang.lang", "source-highlight/outlang.map", "source-highlight/pascal.lang", "source-highlight/perl.lang",
35
+ "source-highlight/php.lang", "source-highlight/postscript.lang", "source-highlight/prolog.lang", "source-highlight/properties.lang", "source-highlight/python.lang", "source-highlight/ruby.lang", "source-highlight/scala.lang", "source-highlight/script_comment.lang", "source-highlight/sh.lang", "source-highlight/slang.lang", "source-highlight/sml.lang", "source-highlight/source-highlight", "source-highlight/spec.lang", "source-highlight/sql.lang", "source-highlight/style.defaults", "source-highlight/style.lang", "source-highlight/style2.style", "source-highlight/style3.style", "source-highlight/symbols.lang", "source-highlight/tcl.lang", "source-highlight/texinfo.outlang", "source-highlight/texinfo.style", "source-highlight/universal-darwin9.0", "source-highlight/universal-darwin9.0/source-highlight", "source-highlight/url.lang", "source-highlight/xhtml.outlang", "source-highlight/xhtml_common.outlang", "source-highlight/xhtml_notfixed.outlang", "source-highlight/xhtmlcss.outlang", "source-highlight/xhtmltable.outlang", "source-highlight/xml.lang", "source-highlight/xorg.lang"
32
36
  ]
33
37
  end
@@ -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