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,37 @@
|
|
1
|
+
preproc = "bgidriver|bgifont|check_determ|code|config|diagnostics|error|errorlevel|heap|gstacksize|nobreak|nowarnings|printermenu|project"
|
2
|
+
|
3
|
+
comment start "%"
|
4
|
+
|
5
|
+
include "number.lang"
|
6
|
+
|
7
|
+
string delim "\"" "\"" escape "\\"
|
8
|
+
string delim "'" "'" escape "\\"
|
9
|
+
|
10
|
+
keyword = "abstract|align|as|and|class|clauses|constants|database|determ",
|
11
|
+
"domains|elsedef|endclass|enddef|erroneous|facts|failure|global",
|
12
|
+
"goal|if|ifdef|ifndef|implement|include|language|multi|nocopy",
|
13
|
+
"nondeterm|object|or|procedure|protected|predicates|reference",
|
14
|
+
"single|static|struct|this",
|
15
|
+
"ABSTRACT|ALIGN|AS|AND|CLASS|CLAUSES|CONSTANTS|DATABASE|DETERM",
|
16
|
+
"DOMAINS|ELSEDEF|ENDCLASS|ENDDEF|ERRONEOUS|FACTS|FAILURE|GLOBAL",
|
17
|
+
"GOAL|IF|IFDEF|IFNDEF|IMPLEMENT|INCLUDE|LANGUAGE|MULTI|NOCOPY",
|
18
|
+
"NONDETERM|OBJECT|OR|PROCEDURE|PROTECTED|PREDICATES|REFERENCE",
|
19
|
+
"SINGLE|STATIC|STRUCT|THIS",
|
20
|
+
"assert|asserta|assertz|bound|chain_inserta|chain_insertafter",
|
21
|
+
"chain_insertz|chain_terms|consult|db_btrees|db_chains|fail",
|
22
|
+
"findall|format|free|msgrecv|msgsend|nl|not|readterm|ref_term|retract",
|
23
|
+
"retractall|save|term_bin|term_replace|term_str|trap|write|writef",
|
24
|
+
"mod|div|abs|exp|ln|log|sqrt|round|trunc|val|cos|sin|tan|arctan",
|
25
|
+
"random|randominit"
|
26
|
+
|
27
|
+
comment delim "/*" "*/" multiline nested
|
28
|
+
|
29
|
+
type = "char|real|string|symbol|byte|sbyte|short|ushort|word|integer|unsigned|dword|long|ulong|binary|ref"
|
30
|
+
|
31
|
+
include "symbols.lang"
|
32
|
+
|
33
|
+
cbracket = "{|}"
|
34
|
+
|
35
|
+
include "function.lang"
|
36
|
+
|
37
|
+
variable = '[[:upper:]][[:word:]]*|_'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
preproc = "import|from"
|
2
|
+
|
3
|
+
include "script_comment.lang"
|
4
|
+
|
5
|
+
include "number.lang"
|
6
|
+
|
7
|
+
keyword = "and|assert|break|class|continue|def|del|elif|else|except|exec",
|
8
|
+
"finally|for|global|if|in|is|lambda|not|or|pass",
|
9
|
+
"print|raise|return|try|while"
|
10
|
+
|
11
|
+
comment delim '^([[:space:]]*\'{3})' '(\'{3})' multiline
|
12
|
+
comment delim '^([[:space:]]*\"{3})' '(\"{3})' multiline
|
13
|
+
|
14
|
+
comment = '^([[:space:]]*\'(?:[^\\\']|\\.)*\'[[:space:]]*|[[:space:]]*\"(?:[^\\\"]|\\.)*\"[[:space:]]*)$'
|
15
|
+
|
16
|
+
string delim '([[:space:]]*\'{3})' '(\'{3})' multiline
|
17
|
+
string delim '([[:space:]]*\"{3})' '(\"{3})' multiline
|
18
|
+
|
19
|
+
string delim "\"" "\"" escape "\\"
|
20
|
+
string delim "'" "'" escape "\\"
|
21
|
+
|
22
|
+
include "symbols.lang"
|
23
|
+
symbol = "{|}"
|
24
|
+
|
25
|
+
include "function.lang"
|
26
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
preproc = "require"
|
2
|
+
|
3
|
+
include "number.lang"
|
4
|
+
|
5
|
+
string delim "\"" "\"" escape "\\"
|
6
|
+
string delim "'" "'" escape "\\"
|
7
|
+
string delim "<" ">"
|
8
|
+
regexp = '/[^\n]*/'
|
9
|
+
(symbol,regexp) = `(%r)(\{(?:\\\}|#\{[[:alnum:]]+\}|[^}])*\})`
|
10
|
+
|
11
|
+
keyword = "alias|begin|BEGIN|break|case|defined|do|else|elsif|end|END|ensure|for|if|in|include|loop|next|raise|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|false|nil|self|true|__FILE__|__LINE__|and|not|or|def|class|module|catch|fail|load|throw"
|
12
|
+
|
13
|
+
comment delim '(^\=begin)' '^(\=end)' multiline
|
14
|
+
|
15
|
+
type = '(\$[#]?|@@|@)([[:word:]]+|\'|\"|/)'
|
16
|
+
|
17
|
+
# don't highlight ? and ! as symbols if they are part of a method call
|
18
|
+
normal = '[[:alnum:]]+(\?|!)'
|
19
|
+
|
20
|
+
include "symbols.lang"
|
21
|
+
|
22
|
+
# for variable interpolation, #{ is not a comment
|
23
|
+
(symbol,cbracket) = `(#)(\{)`
|
24
|
+
|
25
|
+
include "script_comment.lang"
|
26
|
+
|
27
|
+
cbracket = "{|}"
|
28
|
+
|
29
|
+
# no function highlighting for Ruby, since a method invocation
|
30
|
+
# can be written even without parenthesis
|
31
|
+
# include "function.lang"
|
32
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# written by Dean Wampler
|
2
|
+
|
3
|
+
preproc = "import","package"
|
4
|
+
|
5
|
+
include "c_comment.lang"
|
6
|
+
|
7
|
+
include "number.lang"
|
8
|
+
|
9
|
+
include "c_string.lang"
|
10
|
+
|
11
|
+
(keyword,normal,classname) = `(\<(?:class|trait))([[:blank:]]+)([$[:alnum:]_]+)`
|
12
|
+
|
13
|
+
keyword = "abstract|case|catch|class|def",
|
14
|
+
"do|else|extends|false|final",
|
15
|
+
"finally|for|forSome|if|implicit",
|
16
|
+
"import|lazy|match|new|null",
|
17
|
+
"object|override|package|private|protected",
|
18
|
+
"requires|return|sealed|super|this",
|
19
|
+
"throw|trait|try|true|type",
|
20
|
+
"val|var|while|with|yield",
|
21
|
+
"_|:|=>|=|<-|<:|<%|>:|#|@"
|
22
|
+
|
23
|
+
type = "Int|Byte|Boolean|Char|Long|Float|Double|Short|Nil"
|
24
|
+
|
25
|
+
include "symbols.lang"
|
26
|
+
|
27
|
+
cbracket = "{|}"
|
28
|
+
|
29
|
+
vardef FUNCTION = '([[:alpha:]]|_|[[:punct:]])([[:word:]]|[[:punct:]])*(?=[[:blank:]]*\()'
|
30
|
+
function = $FUNCTION
|
31
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
preproc = "import"
|
2
|
+
|
3
|
+
#number = '(?<=-)([[:digit:]]+)'
|
4
|
+
|
5
|
+
include "number.lang"
|
6
|
+
|
7
|
+
normal = '\\"'
|
8
|
+
normal = '\\\''
|
9
|
+
|
10
|
+
include "c_string.lang"
|
11
|
+
|
12
|
+
function = 'function[[:blank:]]+([[:alpha:]]|_)[[:word:]]*[[:blank:]]*(\(\))?'
|
13
|
+
function = '([[:alpha:]]|_)[[:word:]]*[[:blank:]]*\(\)'
|
14
|
+
|
15
|
+
# avoids, in things such as --bind, that words are highlighted as keywords
|
16
|
+
normal = '([[:alpha:]]*[-/]+[[:alpha:]]+)+'
|
17
|
+
|
18
|
+
keyword = "alias|bg|bind|break|builtin|caller|case|command|compgen",
|
19
|
+
"complete|continue|declare|dirs|disown|do|done|elif|else|enable",
|
20
|
+
"esac|eval|exec|exit|export|false|fc|fg|fi|for|getopts|hash|help",
|
21
|
+
"history|if|in|jobs|let|local|logout|popd|printf|pushd|read",
|
22
|
+
"readonly|return|select|set|shift|shopt|source|suspend|test|then",
|
23
|
+
"times|trap|true|type|typeset|umask|unalias|unset|until|wait|while"
|
24
|
+
|
25
|
+
# it is considered a variable if there's a =, which is discarded anyway
|
26
|
+
variable = '([[:alpha:]]|_)[[:word:]]*(?==)'
|
27
|
+
variable = '\$\{([^[:blank:]]+)\}'
|
28
|
+
variable = '\$\(([^[:blank:]]+)\)'
|
29
|
+
variable = '\$([[:alpha:]]|_)[[:word:]]*'
|
30
|
+
variable = '\$([^[:blank:]]{1})'
|
31
|
+
|
32
|
+
# notice that - is not a symbol since it can be used in command line parameters
|
33
|
+
symbol = "~","!","%","^","*","(",")","+","=","[",
|
34
|
+
"]","\\",":",";",",",".","/","?","&","<",">","\|","%%"
|
35
|
+
symbol = '(##){2}(?!#)'
|
36
|
+
|
37
|
+
include "script_comment.lang"
|
38
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# slang.lang
|
2
|
+
# written by John E. Davis
|
3
|
+
# modified by Lorenzo Bettini
|
4
|
+
|
5
|
+
include "script_comment.lang"
|
6
|
+
|
7
|
+
keyword = "ERROR_BLOCK|EXECUTE_ERROR_BLOCK|EXIT_BLOCK|NULL|__tmp|_for|and",
|
8
|
+
"break|case|catch|chs|continue|define|do|else|else|exch|finally|for",
|
9
|
+
"foreach|forever|if|ifnot|loop|mod|mul2|not|or|orelse|pop|private",
|
10
|
+
"public|return|shl|shr|sign|sqr|static|struct|switch|then|throw|try",
|
11
|
+
"typedef|using|variable|while|xor"
|
12
|
+
|
13
|
+
comment start "%"
|
14
|
+
|
15
|
+
string delim "\"" "\"" escape "\\"
|
16
|
+
string delim "'" "'" escape "\\"
|
17
|
+
|
18
|
+
include "number.lang"
|
19
|
+
|
20
|
+
symbol = "~","!","^","*","(",")","-","+","=","[",
|
21
|
+
"]","\\",":",";",",",".","/","&","<",">","\|"
|
22
|
+
|
23
|
+
preproc = "require"
|
24
|
+
|
25
|
+
include "function.lang"
|
@@ -0,0 +1,5 @@
|
|
1
|
+
include "caml.lang"
|
2
|
+
|
3
|
+
redef keyword = "abstraction|abstype|and|andalso|as|before|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|o|of|op|open|orelse|overload|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype"
|
4
|
+
|
5
|
+
redef type = "int|byte|boolean|char|long|float|double|short|void"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
dir = File.dirname(__FILE__)
|
3
|
+
full_dir = File.expand_path(dir)
|
4
|
+
if RUBY_PLATFORM =~ /darwin/
|
5
|
+
# "xxx-darwinY.Y.Y" => "darwinY.Y.Y"
|
6
|
+
platform = RUBY_PLATFORM.sub(/.*?-/, '')
|
7
|
+
bin = File.join(dir, platform, "source-highlight")
|
8
|
+
if !File.exist?(bin)
|
9
|
+
# "darwinY.Y.Y" => "darwinY.Y"
|
10
|
+
platform.sub!(/(.*)\..*/, '\1')
|
11
|
+
bin = File.join(dir, platform, "source-highlight")
|
12
|
+
if !File.exist?(bin)
|
13
|
+
# "darwinY.Y" => "darwinY"
|
14
|
+
platform.sub!(/(.*)\..*/, '\1')
|
15
|
+
bin = File.join(dir, platform, "source-highlight")
|
16
|
+
if !File.exist?(bin)
|
17
|
+
bin = File.join(dir, "darwin", "source-highlight")
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
else
|
22
|
+
bin = File.join(dir, RUBY_PLATFORM, "source-highlight")
|
23
|
+
end
|
24
|
+
exec(bin, "--data-dir=#{full_dir}", *ARGV)
|
@@ -0,0 +1,46 @@
|
|
1
|
+
type = "VARCHAR|TINYINT|TEXT|DATE|SMALLINT|MEDIUMINT|INT|BIGINT",
|
2
|
+
"FLOAT|DOUBLE|DECIMAL|DATETIME|TIMESTAMP|TIME|YEAR|UNSIGNED",
|
3
|
+
"CHAR|TINYBLOB|TINYTEXT|BLOB|MEDIUMBLOB|MEDIUMTEXT",
|
4
|
+
"LONGBLOB|LONGTEXT|ENUM|BOOL|BINARY|VARBINARY" nonsensitive
|
5
|
+
|
6
|
+
keyword = "ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT",
|
7
|
+
"BETWEEN|BINARY|BOTH|BY|BOOLEAN",
|
8
|
+
"CHANGE|CHECK|COLUMNS|COLUMN|CROSS|CREATE",
|
9
|
+
"DATABASES|DATABASE|DATA|DELAYED|DESCRIBE|DESC|DISTINCT|DELETE|DROP|DEFAULT",
|
10
|
+
"ENCLOSED|ESCAPED|EXISTS|EXPLAIN",
|
11
|
+
"FIELDS|FIELD|FLUSH|FOR|FOREIGN|FUNCTION|FROM",
|
12
|
+
"GROUP|GRANT",
|
13
|
+
"HAVING",
|
14
|
+
"IGNORE|INDEX|INFILE|INSERT|INNER|INTO|IDENTIFIED|IN|IS|IF",
|
15
|
+
"JOIN",
|
16
|
+
"KEYS|KILL|KEY",
|
17
|
+
"LEADING|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCK|LOW_PRIORITY|LEFT|LANGUAGE",
|
18
|
+
"MODIFY",
|
19
|
+
"NATURAL|NOT|NULL|NEXTVAL",
|
20
|
+
"OPTIMIZE|OPTION|OPTIONALLY|ORDER|OUTFILE|OR|OUTER|ON",
|
21
|
+
"PROCEDURE","PROCEDURAL|PRIMARY",
|
22
|
+
"READ|REFERENCES|REGEXP|RENAME|REPLACE|RETURN|REVOKE|RLIKE|RIGHT",
|
23
|
+
"SHOW|SONAME|STATUS|STRAIGHT_JOIN|SELECT|SETVAL|SET",
|
24
|
+
"TABLES|TERMINATED|TO|TRAILING","TRUNCATE|TABLE|TEMPORARY|TRIGGER|TRUSTED",
|
25
|
+
"UNIQUE|UNLOCK|USE|USING|UPDATE",
|
26
|
+
"VALUES|VARIABLES|VIEW",
|
27
|
+
"WITH|WRITE|WHERE",
|
28
|
+
"ZEROFILL|TYPE",
|
29
|
+
"XOR"
|
30
|
+
nonsensitive
|
31
|
+
|
32
|
+
include "c_string.lang"
|
33
|
+
|
34
|
+
environment string delim "`" "`" begin
|
35
|
+
specialchar = $SPECIALCHAR
|
36
|
+
end
|
37
|
+
|
38
|
+
include "script_comment.lang"
|
39
|
+
|
40
|
+
include "c_comment.lang"
|
41
|
+
|
42
|
+
comment start "--"
|
43
|
+
|
44
|
+
include "symbols.lang"
|
45
|
+
|
46
|
+
include "number.lang"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# defaults for styles
|
2
|
+
# the format is:
|
3
|
+
# elem1 = elem2
|
4
|
+
# meaning that if the style for elem1 is not specified,
|
5
|
+
# then it will have the same style as elem2
|
6
|
+
|
7
|
+
classname = normal
|
8
|
+
usertype = normal
|
9
|
+
preproc = keyword
|
10
|
+
section = function
|
11
|
+
paren = cbracket
|
12
|
+
attribute = type
|
13
|
+
value = string
|
14
|
+
predef_var = type
|
15
|
+
predef_func = function
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# this is the language definition for the
|
2
|
+
# style definition syntax
|
3
|
+
comment start "//"
|
4
|
+
|
5
|
+
string delim "\"" "\"" escape "\\"
|
6
|
+
|
7
|
+
keyword = "bgcolor|purple|orange|brightorange|brightgreen|darkgreen",
|
8
|
+
"green|darkred|red|brown|pink|yellow|cyan",
|
9
|
+
"black|teal|gray|darkblue|blue",
|
10
|
+
"normal|linenum",
|
11
|
+
"noref|nf|f|u|i|b"
|
12
|
+
keyword = 'bg\:'
|
13
|
+
|
14
|
+
symbol = ",|;"
|
15
|
+
|
16
|
+
variable = '[[:word:]]+'
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# language definition for TCL
|
2
|
+
|
3
|
+
include "script_comment.lang"
|
4
|
+
|
5
|
+
include "number.lang"
|
6
|
+
|
7
|
+
include "c_string.lang"
|
8
|
+
|
9
|
+
include "symbols.lang"
|
10
|
+
|
11
|
+
cbracket = "{|}"
|
12
|
+
|
13
|
+
keyword = "proc|global|upvar|if|then|else|elseif|for|foreach",
|
14
|
+
"break|continue|while|set|eval|case|in|switch",
|
15
|
+
"default|exit|error|proc|return|uplevel|loop",
|
16
|
+
"for_array_keys|for_recursive_glob|for_file|unwind_protect",
|
17
|
+
"expr|catch|namespace|rename|variable",
|
18
|
+
"method|itcl_class|public|protected",
|
19
|
+
"append|binary|format|re_syntax|regexp|regsub",
|
20
|
+
"scan|string|subst",
|
21
|
+
"concat|join|lappend|lindex|list|llength|lrange",
|
22
|
+
"lreplace|lsearch|lset|lsort|split",
|
23
|
+
"expr",
|
24
|
+
"incr|close|eof|fblocked|fconfigure|fcopy|file",
|
25
|
+
"fileevent|flush|gets|open|puts|read|seek",
|
26
|
+
"socket|tell",
|
27
|
+
"load|loadTk|package|pgk::create|pgk_mkIndex|source",
|
28
|
+
"bgerror|history|info|interp|memory|unknown",
|
29
|
+
"enconding|http|msgcat",
|
30
|
+
"cd|clock|exec|exit|glob|pid|pwd|time",
|
31
|
+
"dde|registry|resource"
|
32
|
+
|
33
|
+
vardef ID = '[[:word:]]+'
|
34
|
+
|
35
|
+
variable = '\$' + $ID
|
@@ -0,0 +1,34 @@
|
|
1
|
+
extension "texinfo"
|
2
|
+
|
3
|
+
doctemplate
|
4
|
+
"@c Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
|
5
|
+
@example
|
6
|
+
"
|
7
|
+
"
|
8
|
+
@end example"
|
9
|
+
end
|
10
|
+
|
11
|
+
nodoctemplate
|
12
|
+
"@c Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
|
13
|
+
@example
|
14
|
+
"
|
15
|
+
"
|
16
|
+
@end example"
|
17
|
+
end
|
18
|
+
|
19
|
+
bold "@b{$text}"
|
20
|
+
italics "@i{$text}"
|
21
|
+
fixed "@t{$text}"
|
22
|
+
notfixed "@r{$text}"
|
23
|
+
|
24
|
+
anchor "@anchor{$infilename:$linenum}$text"
|
25
|
+
reference "@flushright
|
26
|
+
@r{@i{@xref{$infilename:$linenum,$text,$text $infile:$linenum}.}}
|
27
|
+
@end flushright"
|
28
|
+
|
29
|
+
translations
|
30
|
+
"{" "@{"
|
31
|
+
"}" "@}"
|
32
|
+
"@" "@@"
|
33
|
+
"\t" " "
|
34
|
+
end
|