mizuho 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +20 -0
- data/README.markdown +61 -0
- data/Rakefile +41 -0
- data/asciidoc/BUGS +39 -0
- data/asciidoc/BUGS.txt +32 -0
- data/asciidoc/CHANGELOG +1796 -0
- data/asciidoc/CHANGELOG.txt +1810 -0
- data/asciidoc/COPYING +339 -0
- data/asciidoc/COPYRIGHT +18 -0
- data/asciidoc/INSTALL +76 -0
- data/asciidoc/INSTALL.txt +71 -0
- data/asciidoc/Makefile.in +161 -0
- data/asciidoc/README +46 -0
- data/asciidoc/README.txt +36 -0
- data/asciidoc/a2x +674 -0
- data/asciidoc/asciidoc.conf +455 -0
- data/asciidoc/asciidoc.py +4998 -0
- data/asciidoc/common.aap +9 -0
- data/asciidoc/configure +2840 -0
- data/asciidoc/configure.ac +11 -0
- data/asciidoc/dblatex/asciidoc-dblatex.sty +20 -0
- data/asciidoc/dblatex/asciidoc-dblatex.xsl +32 -0
- data/asciidoc/dblatex/dblatex-readme.txt +39 -0
- data/asciidoc/doc/a2x.1 +257 -0
- data/asciidoc/doc/a2x.1.txt +204 -0
- data/asciidoc/doc/article.css-embedded.html +602 -0
- data/asciidoc/doc/article.html +46 -0
- data/asciidoc/doc/article.pdf +0 -0
- data/asciidoc/doc/article.txt +122 -0
- data/asciidoc/doc/asciidoc-revhistory.xml +27 -0
- data/asciidoc/doc/asciidoc.1 +155 -0
- data/asciidoc/doc/asciidoc.1.css-embedded.html +598 -0
- data/asciidoc/doc/asciidoc.1.css.html +212 -0
- data/asciidoc/doc/asciidoc.1.html +190 -0
- data/asciidoc/doc/asciidoc.1.txt +118 -0
- data/asciidoc/doc/asciidoc.conf +8 -0
- data/asciidoc/doc/asciidoc.css-embedded.html +7853 -0
- data/asciidoc/doc/asciidoc.css.html +7416 -0
- data/asciidoc/doc/asciidoc.dict +733 -0
- data/asciidoc/doc/asciidoc.html +3339 -0
- data/asciidoc/doc/asciidoc.txt +4979 -0
- data/asciidoc/doc/asciimathml.txt +64 -0
- data/asciidoc/doc/book-multi.css-embedded.html +575 -0
- data/asciidoc/doc/book-multi.html +55 -0
- data/asciidoc/doc/book-multi.txt +155 -0
- data/asciidoc/doc/book.css-embedded.html +607 -0
- data/asciidoc/doc/book.html +43 -0
- data/asciidoc/doc/book.txt +131 -0
- data/asciidoc/doc/customers.csv +18 -0
- data/asciidoc/doc/docbook-xsl.css +272 -0
- data/asciidoc/doc/faq.txt +547 -0
- data/asciidoc/doc/latex-backend.html +117 -0
- data/asciidoc/doc/latex-backend.txt +191 -0
- data/asciidoc/doc/latexmath.txt +244 -0
- data/asciidoc/doc/latexmathml.txt +41 -0
- data/asciidoc/doc/main.aap +297 -0
- data/asciidoc/doc/music-filter.html +566 -0
- data/asciidoc/doc/music-filter.pdf +0 -0
- data/asciidoc/doc/music-filter.txt +158 -0
- data/asciidoc/doc/source-highlight-filter.html +214 -0
- data/asciidoc/doc/source-highlight-filter.pdf +0 -0
- data/asciidoc/doc/source-highlight-filter.txt +203 -0
- data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +43 -0
- data/asciidoc/docbook-xsl/chunked.xsl +19 -0
- data/asciidoc/docbook-xsl/common.xsl +67 -0
- data/asciidoc/docbook-xsl/fo.xsl +149 -0
- data/asciidoc/docbook-xsl/htmlhelp.xsl +17 -0
- data/asciidoc/docbook-xsl/manpage.xsl +31 -0
- data/asciidoc/docbook-xsl/text.xsl +50 -0
- data/asciidoc/docbook-xsl/xhtml.xsl +14 -0
- data/asciidoc/docbook.conf +721 -0
- data/asciidoc/examples/website/ASCIIMathML.js +938 -0
- data/asciidoc/examples/website/CHANGELOG.html +4389 -0
- data/asciidoc/examples/website/CHANGELOG.txt +1810 -0
- data/asciidoc/examples/website/INSTALL.html +161 -0
- data/asciidoc/examples/website/INSTALL.txt +71 -0
- data/asciidoc/examples/website/LaTeXMathML.js +1223 -0
- data/asciidoc/examples/website/README-website.html +118 -0
- data/asciidoc/examples/website/README-website.txt +29 -0
- data/asciidoc/examples/website/README.html +125 -0
- data/asciidoc/examples/website/README.txt +36 -0
- data/asciidoc/examples/website/a2x.1.html +419 -0
- data/asciidoc/examples/website/a2x.1.txt +204 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.html +130 -0
- data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +43 -0
- data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +130 -0
- data/asciidoc/examples/website/asciimathml.txt +64 -0
- data/asciidoc/examples/website/build-website.sh +25 -0
- data/asciidoc/examples/website/customers.csv +18 -0
- data/asciidoc/examples/website/downloads.html +257 -0
- data/asciidoc/examples/website/downloads.txt +121 -0
- data/asciidoc/examples/website/faq.html +673 -0
- data/asciidoc/examples/website/faq.txt +547 -0
- data/asciidoc/examples/website/index.html +419 -0
- data/asciidoc/examples/website/index.txt +245 -0
- data/asciidoc/examples/website/latex-backend.html +535 -0
- data/asciidoc/examples/website/latex-backend.txt +191 -0
- data/asciidoc/examples/website/latexmathml.txt +41 -0
- data/asciidoc/examples/website/layout1.conf +161 -0
- data/asciidoc/examples/website/layout1.css +65 -0
- data/asciidoc/examples/website/layout2.conf +158 -0
- data/asciidoc/examples/website/layout2.css +93 -0
- data/asciidoc/examples/website/manpage.html +266 -0
- data/asciidoc/examples/website/manpage.txt +118 -0
- data/asciidoc/examples/website/music-filter.html +242 -0
- data/asciidoc/examples/website/music-filter.txt +158 -0
- data/asciidoc/examples/website/music1.abc +12 -0
- data/asciidoc/examples/website/music1.png +0 -0
- data/asciidoc/examples/website/music2.ly +9 -0
- data/asciidoc/examples/website/music2.png +0 -0
- data/asciidoc/examples/website/newlists.txt +40 -0
- data/asciidoc/examples/website/newtables.txt +397 -0
- data/asciidoc/examples/website/sample1.png +0 -0
- data/asciidoc/examples/website/sample3.png +0 -0
- data/asciidoc/examples/website/sample4.png +0 -0
- data/asciidoc/examples/website/source-highlight-filter.html +286 -0
- data/asciidoc/examples/website/source-highlight-filter.txt +203 -0
- data/asciidoc/examples/website/support.html +78 -0
- data/asciidoc/examples/website/support.txt +5 -0
- data/asciidoc/examples/website/toc.js +69 -0
- data/asciidoc/examples/website/userguide.html +7460 -0
- data/asciidoc/examples/website/userguide.txt +4979 -0
- data/asciidoc/examples/website/version83.txt +37 -0
- data/asciidoc/examples/website/version9.html +143 -0
- data/asciidoc/examples/website/version9.txt +48 -0
- data/asciidoc/examples/website/xhtml11-manpage.css +18 -0
- data/asciidoc/examples/website/xhtml11-quirks.css +41 -0
- data/asciidoc/examples/website/xhtml11.css +328 -0
- data/asciidoc/filters/code/code-filter-readme.txt +37 -0
- data/asciidoc/filters/code/code-filter-test.txt +15 -0
- data/asciidoc/filters/code/code-filter.conf +8 -0
- data/asciidoc/filters/code/code-filter.py +239 -0
- data/asciidoc/filters/graphviz/asciidoc-graphviz-sample.txt +130 -0
- data/asciidoc/filters/graphviz/graphviz-filter.conf +39 -0
- data/asciidoc/filters/graphviz/graphviz2png.py +154 -0
- data/asciidoc/filters/music/music-filter-test.txt +40 -0
- data/asciidoc/filters/music/music-filter.conf +40 -0
- data/asciidoc/filters/music/music2png.py +189 -0
- data/asciidoc/filters/source/source-highlight-filter-test.txt +19 -0
- data/asciidoc/filters/source/source-highlight-filter.conf +108 -0
- data/asciidoc/help.conf +213 -0
- data/asciidoc/html4.conf +460 -0
- data/asciidoc/images/highlighter.png +0 -0
- data/asciidoc/images/icons/README +5 -0
- data/asciidoc/images/icons/callouts/1.png +0 -0
- data/asciidoc/images/icons/callouts/10.png +0 -0
- data/asciidoc/images/icons/callouts/11.png +0 -0
- data/asciidoc/images/icons/callouts/12.png +0 -0
- data/asciidoc/images/icons/callouts/13.png +0 -0
- data/asciidoc/images/icons/callouts/14.png +0 -0
- data/asciidoc/images/icons/callouts/15.png +0 -0
- data/asciidoc/images/icons/callouts/2.png +0 -0
- data/asciidoc/images/icons/callouts/3.png +0 -0
- data/asciidoc/images/icons/callouts/4.png +0 -0
- data/asciidoc/images/icons/callouts/5.png +0 -0
- data/asciidoc/images/icons/callouts/6.png +0 -0
- data/asciidoc/images/icons/callouts/7.png +0 -0
- data/asciidoc/images/icons/callouts/8.png +0 -0
- data/asciidoc/images/icons/callouts/9.png +0 -0
- data/asciidoc/images/icons/caution.png +0 -0
- data/asciidoc/images/icons/example.png +0 -0
- data/asciidoc/images/icons/home.png +0 -0
- data/asciidoc/images/icons/important.png +0 -0
- data/asciidoc/images/icons/next.png +0 -0
- data/asciidoc/images/icons/note.png +0 -0
- data/asciidoc/images/icons/prev.png +0 -0
- data/asciidoc/images/icons/tip.png +0 -0
- data/asciidoc/images/icons/up.png +0 -0
- data/asciidoc/images/icons/warning.png +0 -0
- data/asciidoc/images/smallnew.png +0 -0
- data/asciidoc/images/tiger.png +0 -0
- data/asciidoc/install-sh +201 -0
- data/asciidoc/javascripts/ASCIIMathML.js +938 -0
- data/asciidoc/javascripts/LaTeXMathML.js +1223 -0
- data/asciidoc/javascripts/toc.js +69 -0
- data/asciidoc/lang-es.conf +15 -0
- data/asciidoc/latex.conf +663 -0
- data/asciidoc/stylesheets/docbook-xsl.css +272 -0
- data/asciidoc/stylesheets/xhtml11-manpage.css +18 -0
- data/asciidoc/stylesheets/xhtml11-quirks.css +41 -0
- data/asciidoc/stylesheets/xhtml11.css +328 -0
- data/asciidoc/text.conf +16 -0
- data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +53 -0
- data/asciidoc/vim/syntax/asciidoc.vim +165 -0
- data/asciidoc/wordpress.conf +48 -0
- data/asciidoc/xhtml11-quirks.conf +57 -0
- data/asciidoc/xhtml11.conf +645 -0
- data/bin/mizuho +47 -0
- data/bin/mizuho-asciidoc +4 -0
- data/lib/mizuho.rb +10 -0
- data/lib/mizuho/chapter.rb +54 -0
- data/lib/mizuho/generator.rb +134 -0
- data/lib/mizuho/heading.rb +46 -0
- data/lib/mizuho/parser.rb +103 -0
- data/lib/mizuho/source_highlight.rb +2 -0
- data/lib/mizuho/template.rb +50 -0
- data/source-highlight/ada.lang +38 -0
- data/source-highlight/bib.lang +6 -0
- data/source-highlight/bison.lang +3 -0
- data/source-highlight/c.lang +41 -0
- data/source-highlight/c_comment.lang +27 -0
- data/source-highlight/c_string.lang +9 -0
- data/source-highlight/caml.lang +16 -0
- data/source-highlight/changelog.lang +8 -0
- data/source-highlight/clike_vardeclaration.lang +4 -0
- data/source-highlight/cpp.lang +15 -0
- data/source-highlight/csharp.lang +36 -0
- data/source-highlight/css.lang +14 -0
- data/source-highlight/css_common.outlang +26 -0
- data/source-highlight/darwin/source-highlight +0 -0
- data/source-highlight/default.css +51 -0
- data/source-highlight/default.lang +8 -0
- data/source-highlight/default.style +57 -0
- data/source-highlight/desktop.lang +7 -0
- data/source-highlight/diff.lang +32 -0
- data/source-highlight/docbook.outlang +36 -0
- data/source-highlight/esc.outlang +46 -0
- data/source-highlight/esc.style +35 -0
- data/source-highlight/extreme_comment.lang +5 -0
- data/source-highlight/extreme_comment2.lang +5 -0
- data/source-highlight/extreme_comment3.lang +15 -0
- data/source-highlight/fixed-fortran.lang +5 -0
- data/source-highlight/flex.lang +37 -0
- data/source-highlight/fortran.lang +57 -0
- data/source-highlight/function.lang +2 -0
- data/source-highlight/glsl.lang +86 -0
- data/source-highlight/haxe.lang +7 -0
- data/source-highlight/html.lang +7 -0
- data/source-highlight/html.outlang +25 -0
- data/source-highlight/html_common.outlang +35 -0
- data/source-highlight/html_notfixed.outlang +22 -0
- data/source-highlight/html_ref.outlang +6 -0
- data/source-highlight/htmlcss.outlang +28 -0
- data/source-highlight/htmltable.outlang +14 -0
- data/source-highlight/htmltablelinenum.outlang +26 -0
- data/source-highlight/java.lang +26 -0
- data/source-highlight/javadoc.outlang +24 -0
- data/source-highlight/javascript.lang +27 -0
- data/source-highlight/key_string.lang +4 -0
- data/source-highlight/lang.map +108 -0
- data/source-highlight/langdef.lang +21 -0
- data/source-highlight/latex.lang +52 -0
- data/source-highlight/latex.outlang +59 -0
- data/source-highlight/latexcolor.outlang +44 -0
- data/source-highlight/ldap.lang +10 -0
- data/source-highlight/log.lang +53 -0
- data/source-highlight/logtalk.lang +85 -0
- data/source-highlight/lsm.lang +7 -0
- data/source-highlight/lua.lang +27 -0
- data/source-highlight/m4.lang +27 -0
- data/source-highlight/makefile.lang +42 -0
- data/source-highlight/nohilite.lang +2 -0
- data/source-highlight/number.lang +3 -0
- data/source-highlight/outlang.lang +16 -0
- data/source-highlight/outlang.map +12 -0
- data/source-highlight/pascal.lang +20 -0
- data/source-highlight/perl.lang +134 -0
- data/source-highlight/php.lang +25 -0
- data/source-highlight/postscript.lang +42 -0
- data/source-highlight/prolog.lang +37 -0
- data/source-highlight/properties.lang +7 -0
- data/source-highlight/python.lang +26 -0
- data/source-highlight/ruby.lang +32 -0
- data/source-highlight/scala.lang +31 -0
- data/source-highlight/script_comment.lang +3 -0
- data/source-highlight/sh.lang +38 -0
- data/source-highlight/slang.lang +25 -0
- data/source-highlight/sml.lang +5 -0
- data/source-highlight/source-highlight +24 -0
- data/source-highlight/spec.lang +12 -0
- data/source-highlight/sql.lang +46 -0
- data/source-highlight/style.defaults +15 -0
- data/source-highlight/style.lang +16 -0
- data/source-highlight/style2.style +10 -0
- data/source-highlight/style3.style +10 -0
- data/source-highlight/symbols.lang +2 -0
- data/source-highlight/tcl.lang +35 -0
- data/source-highlight/texinfo.outlang +34 -0
- data/source-highlight/texinfo.style +20 -0
- data/source-highlight/url.lang +3 -0
- data/source-highlight/xhtml.outlang +25 -0
- data/source-highlight/xhtml_common.outlang +8 -0
- data/source-highlight/xhtml_notfixed.outlang +16 -0
- data/source-highlight/xhtmlcss.outlang +19 -0
- data/source-highlight/xhtmltable.outlang +7 -0
- data/source-highlight/xml.lang +17 -0
- data/source-highlight/xorg.lang +10 -0
- data/templates/asciidoc.css +358 -0
- data/templates/asciidoc.html.erb +86 -0
- data/templates/manualsonrails.css +165 -0
- data/templates/manualsonrails.html.erb +97 -0
- data/test/generator_spec.rb +60 -0
- data/test/parser_spec.rb +239 -0
- data/test/spec_helper.rb +51 -0
- 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,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,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,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
|
+
"&" "&"
|
7
|
+
"<" "<"
|
8
|
+
">" ">"
|
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
|
+
|
Binary file
|
@@ -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,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
|
+
"&" "&"
|
34
|
+
"<" "<"
|
35
|
+
">" ">"
|
36
|
+
end
|