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,26 @@
|
|
1
|
+
# this output format must be used with line numbers
|
2
|
+
|
3
|
+
include "html_common.outlang"
|
4
|
+
|
5
|
+
# line numbers are in a separate column (and start the column for the code)
|
6
|
+
linenum "<td style=\"vertical-align: top;\">$text</td><td>"
|
7
|
+
|
8
|
+
lineprefix "<tr>"
|
9
|
+
|
10
|
+
doctemplate
|
11
|
+
"<table BGCOLOR=\"$docbgcolor\"
|
12
|
+
style=\"text-align: left; width: 100%;\" border=\"0\"
|
13
|
+
cellpadding=\"2\" cellspacing=\"2\"
|
14
|
+
NOSAVE >
|
15
|
+
<tbody>
|
16
|
+
<pre><tt>"
|
17
|
+
"</tt></pre>
|
18
|
+
</tbody>
|
19
|
+
</table>
|
20
|
+
"
|
21
|
+
end
|
22
|
+
|
23
|
+
# terminate each line by closing the table column and the table row
|
24
|
+
translations
|
25
|
+
"\n" "</td></tr>\n"
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
preproc = "import","package"
|
2
|
+
|
3
|
+
include "c_comment.lang"
|
4
|
+
|
5
|
+
include "number.lang"
|
6
|
+
|
7
|
+
include "c_string.lang"
|
8
|
+
|
9
|
+
(keyword,normal,classname) = `(\<(?:class|interface))([[:blank:]]+)([$[:alnum:]_]+)`
|
10
|
+
|
11
|
+
keyword = "abstract|assert|break|case|catch|class|const",
|
12
|
+
"continue|default|do|else|extends|false|final",
|
13
|
+
"finally|for|goto|if|implements|instanceof|interface"
|
14
|
+
keyword = "native|new|null|private|protected|public|return",
|
15
|
+
"static|strictfp|super|switch|synchronized|throw",
|
16
|
+
"throws|true|this|transient|try|volatile|while"
|
17
|
+
|
18
|
+
type = "int|byte|boolean|char|long|float|double|short|void"
|
19
|
+
|
20
|
+
include "symbols.lang"
|
21
|
+
|
22
|
+
cbracket = "{|}"
|
23
|
+
|
24
|
+
include "function.lang"
|
25
|
+
|
26
|
+
include "clike_vardeclaration.lang"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
include "html_common.outlang"
|
2
|
+
|
3
|
+
doctemplate
|
4
|
+
" * <!-- Generated by Source-highlight -->
|
5
|
+
* <pre><tt>
|
6
|
+
"
|
7
|
+
" * </tt></pre>
|
8
|
+
"
|
9
|
+
end
|
10
|
+
|
11
|
+
nodoctemplate
|
12
|
+
" * <!-- Generated by Source-highlight -->
|
13
|
+
* <pre><tt>
|
14
|
+
"
|
15
|
+
" * </tt></pre>
|
16
|
+
"
|
17
|
+
end
|
18
|
+
|
19
|
+
lineprefix " * "
|
20
|
+
|
21
|
+
translations
|
22
|
+
"*/" "*/" # this avoids the */ to be interpreted as
|
23
|
+
# the end of a comment inside a javadoc comment
|
24
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Javascript lang definition file
|
2
|
+
|
3
|
+
# first check if the input matches a comment
|
4
|
+
include "c_comment.lang"
|
5
|
+
|
6
|
+
keyword =
|
7
|
+
"abstract|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|final|finally|for|function|goto|if|implements|in|instanceof|interface|native|new|null|private|protected|prototype|public|return|static|super|switch|synchronized|throw|throws|this|transient|true|try|typeof|var|volatile|while|with"
|
8
|
+
|
9
|
+
# next check if it matches a division operator, which can occur only
|
10
|
+
# after a number, an identifier, or certain symbols
|
11
|
+
(symbol,normal,symbol) = `(\+\+|--|\)|\])(\s*)(/=?(?![*/]))`
|
12
|
+
(number,normal,symbol) =
|
13
|
+
`(0x[[:xdigit:]]+|(?:[[:digit:]]*\.)?[[:digit:]]+(?:[eE][+-]?[[:digit:]]+)?)(\s*)(/(?![*/]))`
|
14
|
+
(normal,symbol) = `([[:alpha:]$_][[:alnum:]$_]*\s*)(/=?(?![*/]))`
|
15
|
+
|
16
|
+
# finally check if it matches a regular expression
|
17
|
+
regexp = '/(\\.|[^*\\/])(\\.|[^\\/])*/[gim]*'
|
18
|
+
|
19
|
+
include "number.lang"
|
20
|
+
|
21
|
+
include "c_string.lang"
|
22
|
+
|
23
|
+
include "symbols.lang"
|
24
|
+
|
25
|
+
cbracket = "{|}"
|
26
|
+
|
27
|
+
include "function.lang"
|
@@ -0,0 +1,108 @@
|
|
1
|
+
java = java.lang
|
2
|
+
moc = cpp.lang
|
3
|
+
cpp = cpp.lang
|
4
|
+
c = c.lang
|
5
|
+
C = cpp.lang
|
6
|
+
cc = cpp.lang
|
7
|
+
cs = csharp.lang
|
8
|
+
csharp = csharp.lang
|
9
|
+
h = cpp.lang
|
10
|
+
hh = cpp.lang
|
11
|
+
H = cpp.lang
|
12
|
+
hpp = cpp.lang
|
13
|
+
javascript = javascript.lang
|
14
|
+
js = javascript.lang
|
15
|
+
prolog = prolog.lang
|
16
|
+
pl = prolog.lang
|
17
|
+
perl = perl.lang
|
18
|
+
pm = perl.lang
|
19
|
+
php3 = php.lang
|
20
|
+
php4 = php.lang
|
21
|
+
php5 = php.lang
|
22
|
+
php = php.lang
|
23
|
+
python = python.lang
|
24
|
+
py = python.lang
|
25
|
+
ruby = ruby.lang
|
26
|
+
rb = ruby.lang
|
27
|
+
flex = flex.lang
|
28
|
+
lex = flex.lang
|
29
|
+
l = flex.lang
|
30
|
+
ll = flex.lang
|
31
|
+
bison = bison.lang
|
32
|
+
yacc = bison.lang
|
33
|
+
y = bison.lang
|
34
|
+
yy = bison.lang
|
35
|
+
changelog = changelog.lang
|
36
|
+
lua = lua.lang
|
37
|
+
ml = caml.lang
|
38
|
+
caml = caml.lang
|
39
|
+
mli = caml.lang
|
40
|
+
sml = sml.lang
|
41
|
+
sig = sml.lang
|
42
|
+
syslog = log.lang
|
43
|
+
log = log.lang
|
44
|
+
pas = pascal.lang
|
45
|
+
pascal = pascal.lang
|
46
|
+
fortran = fortran.lang
|
47
|
+
free-fortran = fortran.lang
|
48
|
+
fixed-fortran = fixed-fortran.lang
|
49
|
+
html = html.lang
|
50
|
+
htm = html.lang
|
51
|
+
tex = latex.lang
|
52
|
+
latex = latex.lang
|
53
|
+
cls = latex.lang
|
54
|
+
sty = latex.lang
|
55
|
+
dtx = latex.lang
|
56
|
+
lgt = logtalk.lang
|
57
|
+
logtalk = logtalk.lang
|
58
|
+
diff = diff.lang
|
59
|
+
patch = diff.lang
|
60
|
+
lang = langdef.lang
|
61
|
+
langdef = langdef.lang
|
62
|
+
outlang = outlang.lang
|
63
|
+
style = style.lang
|
64
|
+
ps = postscript.lang
|
65
|
+
eps = postscript.lang
|
66
|
+
postscript = postscript.lang
|
67
|
+
kcfg = xml.lang
|
68
|
+
ui = xml.lang
|
69
|
+
kdevelop = xml.lang
|
70
|
+
rc = xml.lang
|
71
|
+
docbook = xml.lang
|
72
|
+
kidl = xml.lang
|
73
|
+
xml = xml.lang
|
74
|
+
xhtml = xml.lang
|
75
|
+
sh = sh.lang
|
76
|
+
csh = sh.lang
|
77
|
+
ksh = sh.lang
|
78
|
+
tcsh = sh.lang
|
79
|
+
shell = sh.lang
|
80
|
+
tcl = tcl.lang
|
81
|
+
tk = tcl.lang
|
82
|
+
txt = nohilite.lang
|
83
|
+
sql = sql.lang
|
84
|
+
bib = bib.lang
|
85
|
+
makefile = makefile.lang
|
86
|
+
am = makefile.lang
|
87
|
+
in = makefile.lang
|
88
|
+
css = css.lang
|
89
|
+
m4 = m4.lang
|
90
|
+
ac = m4.lang
|
91
|
+
autoconf = m4.lang
|
92
|
+
sl = slang.lang
|
93
|
+
slsh = slang.lang
|
94
|
+
slang = slang.lang
|
95
|
+
properties = properties.lang
|
96
|
+
desktop = desktop.lang
|
97
|
+
ini = desktop.lang
|
98
|
+
lsm = lsm.lang
|
99
|
+
spec = spec.lang
|
100
|
+
haxe = haxe.lang
|
101
|
+
hx = haxe.lang
|
102
|
+
ldap = ldap.lang
|
103
|
+
ldif = ldap.lang
|
104
|
+
glsl = glsl.lang
|
105
|
+
xorg = xorg.lang
|
106
|
+
scala = scala.lang
|
107
|
+
ada = ada.lang
|
108
|
+
adb = ada.lang
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# this is the language definition for the
|
2
|
+
# language definition syntax itself
|
3
|
+
comment start "#"
|
4
|
+
|
5
|
+
preproc = "include"
|
6
|
+
|
7
|
+
string delim "\"" "\"" escape "\\" multiline
|
8
|
+
regexp delim "'" "'" escape "\\" multiline
|
9
|
+
regexp delim "`" "`" escape "\\" multiline
|
10
|
+
|
11
|
+
keyword = "state|environment|begin|end|delim|escape|start",
|
12
|
+
"multiline|nested|vardef|exitall|exit",
|
13
|
+
"redef|subst|nonsensitive"
|
14
|
+
|
15
|
+
symbol = "=|+|,|(|)"
|
16
|
+
|
17
|
+
vardef ID = '[[:word:]]+'
|
18
|
+
|
19
|
+
variable = '\$' + $ID
|
20
|
+
|
21
|
+
variable = $ID
|
@@ -0,0 +1,52 @@
|
|
1
|
+
comment start "%"
|
2
|
+
|
3
|
+
symbol = "&|~"
|
4
|
+
symbol = '\\[$_&{}~^%#`\'"|[:space:]\\]'
|
5
|
+
|
6
|
+
string delim "\"" "\"" escape "\\" multiline
|
7
|
+
string delim "``" "''" escape "\\" multiline
|
8
|
+
string delim "`" "'" escape "\\" multiline
|
9
|
+
#string delim "'" "'" escape "\\" multiline
|
10
|
+
|
11
|
+
math = "$$|\\[|\\]"
|
12
|
+
math delim "$" "$" escape "\\" multiline
|
13
|
+
|
14
|
+
state keyword start "\\textit" begin
|
15
|
+
environment italics start "{" begin
|
16
|
+
italics delim "{" "}" escape "\\" multiline nested
|
17
|
+
italics = "}" exitall
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
state keyword start "\\textbf" begin
|
22
|
+
environment bold start "{" begin
|
23
|
+
bold delim "{" "}" escape "\\" multiline nested
|
24
|
+
bold = "}" exitall
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
state keyword start "\\texttt" begin
|
29
|
+
environment fixed start "{" begin
|
30
|
+
fixed delim "{" "}" escape "\\" multiline nested
|
31
|
+
fixed = "}" exitall
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
state keyword start "\\underline" begin
|
36
|
+
environment underline start "{" begin
|
37
|
+
underline delim "{" "}" escape "\\" multiline nested
|
38
|
+
underline = "}" exitall
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
vardef command = '\\[[:alpha:]]+'
|
43
|
+
|
44
|
+
keyword = $command
|
45
|
+
|
46
|
+
symbol = "*"
|
47
|
+
|
48
|
+
normal = '\{[[:blank:]]*\z' # a { and then a new line
|
49
|
+
optionalargument delim "[" "]" escape "\\"
|
50
|
+
argument delim "{" "}" escape "\\" multiline nested
|
51
|
+
|
52
|
+
|
@@ -0,0 +1,59 @@
|
|
1
|
+
extension "tex"
|
2
|
+
|
3
|
+
doctemplate
|
4
|
+
"% Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
|
5
|
+
\documentclass{article}
|
6
|
+
$header
|
7
|
+
\title{$title}
|
8
|
+
\date{}
|
9
|
+
\begin{document}
|
10
|
+
\maketitle
|
11
|
+
\noindent
|
12
|
+
"
|
13
|
+
"
|
14
|
+
$footer
|
15
|
+
\end{document}
|
16
|
+
"
|
17
|
+
end
|
18
|
+
|
19
|
+
nodoctemplate
|
20
|
+
"% Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
|
21
|
+
$header\noindent
|
22
|
+
"
|
23
|
+
"
|
24
|
+
$footer"
|
25
|
+
end
|
26
|
+
|
27
|
+
bold "\textbf{$text}"
|
28
|
+
italics "\textit{$text}"
|
29
|
+
underline "\underline{$text}"
|
30
|
+
fixed "\texttt{$text}"
|
31
|
+
|
32
|
+
anchor "\label{$infilename:$linenum}$text"
|
33
|
+
reference "{\hfill $text $\rightarrow$ $infile:$linenum, page~\pageref{$infilename:$linenum}}"
|
34
|
+
|
35
|
+
lineprefix "\mbox{}"
|
36
|
+
|
37
|
+
translations
|
38
|
+
"_" "$\\_$"
|
39
|
+
"{" "\\{"
|
40
|
+
"}" "\\}"
|
41
|
+
"<" "$<$"
|
42
|
+
">" "$>$"
|
43
|
+
"&" "\\&"
|
44
|
+
"\\" "\\textbackslash{}"
|
45
|
+
"^" "\\textasciicircum{}"
|
46
|
+
"~" "\\textasciitilde{}"
|
47
|
+
"\n" " \\\\\n"
|
48
|
+
#" " "\\hspace*{2ex} "
|
49
|
+
#"\t" "\\hspace*{8ex} "
|
50
|
+
" " "\\ "
|
51
|
+
"\t" "\\ \\ \\ \\ \\ \\ \\ \\ "
|
52
|
+
"%" "\\%"
|
53
|
+
"#" "\\#"
|
54
|
+
"$" "\\$"
|
55
|
+
"|" "$|$"
|
56
|
+
"---" "-\\/-\\/-"
|
57
|
+
"--" "-\\/-"
|
58
|
+
"\"" "\"{}" # avoids problems with some inputenc
|
59
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
include "latex.outlang"
|
2
|
+
|
3
|
+
color "\textcolor{$style}{$text}"
|
4
|
+
bgcolor "\colorbox{$style}{$text}"
|
5
|
+
|
6
|
+
doctemplate
|
7
|
+
"% Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
|
8
|
+
\documentclass{article}
|
9
|
+
\usepackage[usenames,dvipsnames]{color}
|
10
|
+
$header
|
11
|
+
\title{$title}
|
12
|
+
\date{}
|
13
|
+
\begin{document}
|
14
|
+
\maketitle
|
15
|
+
\noindent
|
16
|
+
"
|
17
|
+
"
|
18
|
+
$footer
|
19
|
+
\end{document}
|
20
|
+
"
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
colormap
|
25
|
+
"green" "Green"
|
26
|
+
"red" "Red"
|
27
|
+
"darkred" "BrickRed"
|
28
|
+
"blue" "Blue"
|
29
|
+
"brown" "Brown"
|
30
|
+
"pink" "CarnationPink"
|
31
|
+
"yellow" "Yellow"
|
32
|
+
"cyan" "Cyan"
|
33
|
+
"purple" "Purple"
|
34
|
+
"orange" "Orange"
|
35
|
+
"brightorange" "YellowOrange"
|
36
|
+
"brightgreen" "YellowGreen"
|
37
|
+
"darkgreen" "ForestGreen"
|
38
|
+
"black" "Black"
|
39
|
+
"teal" "TealBlue"
|
40
|
+
"gray" "Gray"
|
41
|
+
"darkblue" "RoyalBlue"
|
42
|
+
default "Black"
|
43
|
+
end
|
44
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
vardef basic_time = '[[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}'
|
2
|
+
vardef time = '\<' + $basic_time + '\>'
|
3
|
+
vardef ip = '[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\>'
|
4
|
+
vardef non_empty = '[^[:blank:]]+'
|
5
|
+
|
6
|
+
state date start '^[[:alpha:]]{3}[[:blank:]]{1,2}[[:digit:]]{1,2}(?=[[:blank:]]' + $basic_time + ')' begin
|
7
|
+
state time start $time begin
|
8
|
+
state symbol start $non_empty begin
|
9
|
+
normal = ":" exitall
|
10
|
+
function = '[^:\(\[]+'
|
11
|
+
number delim "[" "]"
|
12
|
+
number delim "(" ")"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
state ip start '^' + $ip begin
|
18
|
+
string = '[[:alnum:]]+(?=[[:blank:]]\[[[:digit:]]{2}/[[:alpha:]]{3}/[[:digit:]]{4})'
|
19
|
+
date = '[[:digit:]]{2}/[[:alpha:]]{3}/[[:digit:]]{4}(?=:' + $basic_time + ')'
|
20
|
+
time = $basic_time + '[[:blank:]][+-][[:digit:]]{4}'
|
21
|
+
twonumbers = '[1-5][[:digit:]]{2}[[:blank:]][-0-9]+'
|
22
|
+
state webmethod = "OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT|PROPFIND|MKCOL|COPY|MOVE|LOCK|UNLOCK" begin
|
23
|
+
string = $non_empty exit
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
vardef weekday_date = '\[[[:alpha:]]{3}[[:blank:]][[:alpha:]]{3}[[:blank:]]{1,2}[[:digit:]]{1,2}[[:blank:]](?=' + $basic_time + ')'
|
28
|
+
|
29
|
+
state date start '^' + $weekday_date begin
|
30
|
+
time = $time
|
31
|
+
date = '[[:digit:]]{4}\]'
|
32
|
+
date = $weekday_date
|
33
|
+
string = "[error]"
|
34
|
+
comment = "[notice]"
|
35
|
+
ip = $ip
|
36
|
+
end
|
37
|
+
|
38
|
+
ip = $ip
|
39
|
+
|
40
|
+
string = "root","failure"
|
41
|
+
|
42
|
+
(normal,port) = `((?:port|pid)[[:blank:]])([[:digit:]]+)`
|
43
|
+
|
44
|
+
state normal start '[[:blank:]](?=(IN|OUT)=)' begin
|
45
|
+
state normal = '(IN|OUT|PROTO)=(?=[^[:blank:]]+)' begin
|
46
|
+
string = $non_empty exit
|
47
|
+
end
|
48
|
+
state normal = '(SPT|DPT|TYPE|SEQ)=(?=[^[:blank:]]+)' begin
|
49
|
+
cbracket = $non_empty exit
|
50
|
+
end
|
51
|
+
number = "CWR|ECE|URG|ACK|PSH|RST|SYN|FIN"
|
52
|
+
ip = $ip
|
53
|
+
end
|