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,85 @@
|
|
1
|
+
# highlighting for Logtalk source files (http://logtalk.org/)
|
2
|
+
#
|
3
|
+
# written by Paulo Moura (pmoura@logtalk.org)
|
4
|
+
# last revised on 10 May 2008
|
5
|
+
|
6
|
+
comment start "%"
|
7
|
+
comment delim "/*" "*/" multiline nested
|
8
|
+
|
9
|
+
string delim "\"" "\"" escape "\\"
|
10
|
+
|
11
|
+
environment string delim "'" "'" begin
|
12
|
+
specialchar = '\\([\\abfnrtv"\']|(x[a-fA-F0-9]+|[0-7]+)\\)'
|
13
|
+
end
|
14
|
+
|
15
|
+
keyword = '\<(abolish|c(urrent|reate))_(object|protocol|category)(?=\()',
|
16
|
+
'\<(object|protocol|category)_property(?=\()',
|
17
|
+
'\<complements_object(?=\()',
|
18
|
+
'\<extends_(object|protocol|category)(?=\()',
|
19
|
+
'\<imp(lements_protocol|orts_category)(?=\()',
|
20
|
+
'\<(instantiat|specializ)es_class(?=\()',
|
21
|
+
'\<(current_event|(abolish|define)_events)(?=\()',
|
22
|
+
'\<(current|set)_logtalk_flag(?=\()',
|
23
|
+
'\<logtalk_(compile|l(oad|ibrary_path))(?=\()'
|
24
|
+
|
25
|
+
keyword = '\<(after|before)(?=\()',
|
26
|
+
'\<(parameter|this|se(lf|nder))(?=\()',
|
27
|
+
'\<(current_predicate|predicate_property)(?=\()',
|
28
|
+
'\<(expand_term|(goal|term)_expansion|phrase)(?=\()',
|
29
|
+
'\<(clause|retract(all)?)(?=\()',
|
30
|
+
'\<a(bolish|ssert(a|z))(?=\()',
|
31
|
+
'\<(ca(ll|tch)|throw)(?=\()',
|
32
|
+
'\<((bag|set)of|f(ind|or)all)(?=\()',
|
33
|
+
'\<threaded(_(call|once|ignore|exit|peek|wait|notify))?(?=\()',
|
34
|
+
'\<unify_with_occurs_check(?=\()',
|
35
|
+
'\<(functor|arg|copy_term)(?=\()',
|
36
|
+
'\<(rem|mod|abs|sign)(?=\()',
|
37
|
+
'\<(float_(integer|fractional)_part|float)(?=\()',
|
38
|
+
'\<(floor|truncate|round|ceiling)(?=\()',
|
39
|
+
'\<(cos|atan|exp|log|s(in|qrt))(?=\()',
|
40
|
+
'\<(var|atom(ic)?|integer|float|compound|n(onvar|umber))(?=\()',
|
41
|
+
'\<(curren|se)t_(in|out)put(?=\()',
|
42
|
+
'\<(open|close)(?=\()',
|
43
|
+
'\<flush_output(?=\()',
|
44
|
+
'\<(flush_output|at_end_of_stream)\>',
|
45
|
+
'\<(stream_property|at_end_of_stream|set_stream_position)(?=\()',
|
46
|
+
'\<(get|p(eek|ut))_(byte|c(har|ode))(?=\()',
|
47
|
+
'\<nl(?=\()', '\<(nl)\>',
|
48
|
+
'\<(read(_term)?)(?=\()',
|
49
|
+
'\<(write(q|_(canonical|term))?)(?=\()',
|
50
|
+
'\<(op|current_op)(?=\()',
|
51
|
+
'\<((current_)?char_conversion)(?=\()',
|
52
|
+
'\<atom_(length|c(hars|o(ncat|des)))(?=\()',
|
53
|
+
'\<(char_code|sub_atom)(?=\()',
|
54
|
+
'\<number_(c(har|ode)s)(?=\()',
|
55
|
+
'\<(set|current)_prolog_flag(?=\()',
|
56
|
+
'\<halt(?=\()', '\<(halt)\>',
|
57
|
+
'\<once(?=\()',
|
58
|
+
'\<(true|fail|repeat)\>',
|
59
|
+
'\<(is|rem|mod)\>'
|
60
|
+
|
61
|
+
|
62
|
+
variable = '\<[A-Z_][A-Za-z0-9_]*'
|
63
|
+
|
64
|
+
cbracket = "{|}"
|
65
|
+
|
66
|
+
preproc = '^[[:blank:]]*:-[[:blank:]](ca(lls|tegory)|p(ublic|r(ot(ocol|ected)|ivate))|e(ncoding|xports)|in(fo|itialization)|alias|d(ynamic|iscontiguous)|m(eta_predicate|od(e|ule)|ultifile)|synchronized|o(bject|p)|use(s|_module))(?=\()',
|
67
|
+
'^[[:blank:]]*:-[[:blank:]](end_(category|object|protocol)|dynamic|synchronized|threaded)\.'
|
68
|
+
|
69
|
+
preproc = '\<(complements|extends|i(nstantiates|mp(lements|orts))|specializes)(?=\()'
|
70
|
+
|
71
|
+
normal = '\<[a-z][A-Za-z0-9_]*'
|
72
|
+
|
73
|
+
number = '0\'.|0b[0-1]+|0o[0-7]+|0x[0-9a-fA-F]+|[0-9]+(\.[0-9]+)?([eE]([-+])?[0-9]+)?'
|
74
|
+
|
75
|
+
symbol = "::", "^^", ":",
|
76
|
+
">>", "<<", "/\\", "\\/", "\\",
|
77
|
+
"=:=", "=\\=", "<", "=<", ">", ">=",
|
78
|
+
"=..",
|
79
|
+
"\\==", "==", "@=<", "@<", "@>=", "@>",
|
80
|
+
"=", "\\=",
|
81
|
+
"+", "-", "**", "*", "//", "/",
|
82
|
+
"-->",
|
83
|
+
"!", "->", ";", "\\+",
|
84
|
+
"?", "@",
|
85
|
+
":-"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
include "number.lang"
|
2
|
+
|
3
|
+
string delim "[[" "]]" multiline nested
|
4
|
+
|
5
|
+
string delim "\"" "\"" escape "\\"
|
6
|
+
string delim "'" "'" escape "\\"
|
7
|
+
|
8
|
+
keyword = "and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while"
|
9
|
+
|
10
|
+
# if = is matched bewteen [[ then it must be present also in the closing ]]
|
11
|
+
environment comment delim `--\[(=*)\[` "]" + @{1} + "]" multiline nested begin
|
12
|
+
include "url.lang"
|
13
|
+
environment comment delim "[[" "]]" multiline nested begin
|
14
|
+
include "url.lang"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
environment comment start "--" begin
|
19
|
+
include "url.lang"
|
20
|
+
end
|
21
|
+
|
22
|
+
include "symbols.lang"
|
23
|
+
|
24
|
+
cbracket = "{|}"
|
25
|
+
|
26
|
+
# function = '(?:[[:alpha:]]|_)[[:word:]]*[[:blank:]]*(?:\:(?:[[:alpha:]]|_)[[:word:]]*[[:blank:]]*)?(?=\()'
|
27
|
+
function = '([[:alpha:]]|_)[[:word:]:]*(?=\()'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# language definition for m4 files
|
2
|
+
|
3
|
+
state keyword start "dnl" begin
|
4
|
+
# avoid spaces in front of urls or @[[:alpha:]]+ be caputured as prefixes
|
5
|
+
comment = '[[:blank:]]+'
|
6
|
+
include "url.lang"
|
7
|
+
include "html.lang"
|
8
|
+
type = '@[[:alpha:]]+'
|
9
|
+
# everything else is a comment
|
10
|
+
comment = '.+'
|
11
|
+
end
|
12
|
+
|
13
|
+
comment start "#"
|
14
|
+
|
15
|
+
string delim "\"" "\"" escape "\\"
|
16
|
+
|
17
|
+
variable = '\$[[:digit:]]+'
|
18
|
+
|
19
|
+
# it's better not to rely on sh.lang, otherwise, too many things
|
20
|
+
# will be highlighted, and often not correctly: better to highlight less
|
21
|
+
# like emacs does
|
22
|
+
|
23
|
+
# since ## is not a comment in shell scripts, but it is in m4
|
24
|
+
# we kind of redefine multiple #'s as comments
|
25
|
+
# comment start '#+'
|
26
|
+
|
27
|
+
# include "sh.lang"
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Author: Maurizio Loreti, aka MLO or (HAM) I3NOO
|
2
|
+
# WWW: http://www.pd.infn.it/~loreti/mlo.html
|
3
|
+
#
|
4
|
+
######################################################################
|
5
|
+
# Language definitions for Makefiles; intended for source-highlight
|
6
|
+
# (see http://www.gnu.org/software/src-highlite).
|
7
|
+
######################################################################
|
8
|
+
|
9
|
+
# Modified by Lorenzo Bettini, http://www.lorenzobettini.it
|
10
|
+
|
11
|
+
# Declared symbols; e.g.:
|
12
|
+
# SOURCE = foo.c
|
13
|
+
# ^^^^^^^^ will be highlighted as "type" (default: dark green)
|
14
|
+
|
15
|
+
type = '^[a-zA-Z0-9_-]+[[:space:]]*='
|
16
|
+
|
17
|
+
# Special statements; e.g.:
|
18
|
+
# .PHONY: clean
|
19
|
+
# ^^^^^^^ will be highlighted as "preproc" (default: dark blue)
|
20
|
+
|
21
|
+
preproc = '^\.[a-zA-Z0-9_-]+[[:space:]]*:'
|
22
|
+
|
23
|
+
# automake/autoconf variables
|
24
|
+
preproc = '@(.+)@'
|
25
|
+
|
26
|
+
# Dependencies; e.g.:
|
27
|
+
# foo.o foo.z: foo.c
|
28
|
+
# ^^^^^^^^^^^^ will be highlighted as "symbol" (default: dark red)
|
29
|
+
|
30
|
+
symbol = '^([[:word:].[:space:]-])+:'
|
31
|
+
|
32
|
+
# Rules; e.g.:
|
33
|
+
# %.o:%.c
|
34
|
+
# ^^^^^^^ will be highlighted as "string" (default: red)
|
35
|
+
|
36
|
+
string = '%[a-zA-Z0-9_.-]+:%[a-zA-Z0-9_.-]+'
|
37
|
+
|
38
|
+
# filenames
|
39
|
+
normal = '([[:word:]-]*)\.([[:word:]-]+)'
|
40
|
+
|
41
|
+
# The statements following dependencies are for /bin/sh; so:
|
42
|
+
include "sh.lang"
|
@@ -0,0 +1,16 @@
|
|
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
|
+
string delim "'" "'" escape "\\" multiline
|
9
|
+
|
10
|
+
keyword =
|
11
|
+
"nodoctemplate|doctemplate|styletemplate|styleseparator|bold|italics",
|
12
|
+
"underline|notfixed|fixed|colormap|color|default|onestyle",
|
13
|
+
"extension|anchor|inline_reference|postline_reference",
|
14
|
+
"postdoc_reference|reference|lineprefix|translations|begin|end"
|
15
|
+
|
16
|
+
symbol = "=|+|,"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
html = html.outlang
|
2
|
+
htmltable = htmltable.outlang
|
3
|
+
html-css = htmlcss.outlang
|
4
|
+
xhtml = xhtml.outlang
|
5
|
+
xhtmltable = xhtmltable.outlang
|
6
|
+
xhtml-css = xhtmlcss.outlang
|
7
|
+
esc = esc.outlang
|
8
|
+
latex = latex.outlang
|
9
|
+
latexcolor = latexcolor.outlang
|
10
|
+
texinfo = texinfo.outlang
|
11
|
+
javadoc = javadoc.outlang
|
12
|
+
docbook = docbook.outlang
|
@@ -0,0 +1,20 @@
|
|
1
|
+
keyword = "alfa|and|array|begin|case|const|div",
|
2
|
+
"do|downto|else|end|false|file|for|function|get|goto|if|in",
|
3
|
+
"label|mod|new|not|of|or|pack|packed|page|program",
|
4
|
+
"put|procedure|read|readln|record|repeat|reset|rewrite|set",
|
5
|
+
"text|then|to|true|type|unpack|until|var|while|with|writeln|write"
|
6
|
+
nonsensitive
|
7
|
+
|
8
|
+
comment delim "(*" "*)" multiline nested
|
9
|
+
comment delim "{" "}" multiline nested
|
10
|
+
|
11
|
+
include "number.lang"
|
12
|
+
|
13
|
+
string delim "\"" "\"" escape "\\"
|
14
|
+
string delim "'" "'" escape "\\"
|
15
|
+
|
16
|
+
type = "boolean|byte|char|integer|maxint|real" nonsensitive
|
17
|
+
|
18
|
+
include "symbols.lang"
|
19
|
+
|
20
|
+
include "function.lang"
|
@@ -0,0 +1,134 @@
|
|
1
|
+
preproc = "import"
|
2
|
+
|
3
|
+
# these might be unreadable but I don't know how else to do that...
|
4
|
+
(keyword,regexp,keyword) =
|
5
|
+
`(s)(\{(?:\\\}|[^}])*\}\{(?:\\\}|[^}])*\})([ixsmogce]*)`
|
6
|
+
(keyword,regexp,keyword) =
|
7
|
+
`(s)(\((?:\\\)|[^)])*\)\((?:\\\)|[^)])*\))([ixsmogce]*)`
|
8
|
+
(keyword,regexp,keyword) =
|
9
|
+
`(s)(\[(?:\\\]|[^\]])*\]\[(?:\\\]|[^\]])*\])([ixsmogce]*)`
|
10
|
+
(keyword,regexp,keyword) = `(s)(<.*><.*>)([ixsmogce]*)`
|
11
|
+
|
12
|
+
(keyword,string) = `(q(?:q?))(\{(?:\\\}|[^}])*\})`
|
13
|
+
(keyword,string) = `(q(?:q?))(\((?:\\\)|[^)])*\))`
|
14
|
+
(keyword,string) = `(q(?:q?))(\[(?:\\\]|[^\]])*\])`
|
15
|
+
(keyword,string) = `(q(?:q?))(<.*>)`
|
16
|
+
|
17
|
+
(keyword,string,string) = `(q(?:q?))([^[:alnum:][:blank:]])(.*\2)`
|
18
|
+
|
19
|
+
# the last (lookahead) expression is used to deal with # used
|
20
|
+
# as a delimiter.
|
21
|
+
# otherwise, with a line such as
|
22
|
+
# s#foo\###; # my comment
|
23
|
+
# the # of the comment would be match as the closing delimiter
|
24
|
+
(keyword,regexp,regexp,keyword) =
|
25
|
+
`(s)([^[:alnum:][:blank:]])(.*\2.*\2)([ixsmogce]*(?=[[:blank:]]*(?:\)|;)))`
|
26
|
+
|
27
|
+
# this is to deal with cases where the delimiters for the first and the
|
28
|
+
# second part are not the same (and spaces are allowed between the first
|
29
|
+
# closing and the second opening)
|
30
|
+
(keyword,regexp,regexp,regexp,regexp,keyword) =
|
31
|
+
`(s)([^[:alnum:][:blank:]])(.*\2[[:blank:]]*)([^[:alnum:][:blank:]])(.*\4)([ixsmogce]*(?=[[:blank:]]*(?:\)|;)))`
|
32
|
+
|
33
|
+
include "script_comment.lang"
|
34
|
+
|
35
|
+
include "number.lang"
|
36
|
+
|
37
|
+
# this won't work if # has something (non blank) before
|
38
|
+
vardef comment_in_exp = '[[:blank:]]+#.*'
|
39
|
+
|
40
|
+
vardef var_in_exp = '\$([[:word:]]+|\{[[:word:]]+\})'
|
41
|
+
|
42
|
+
# this is to highlight correctly regular expressions
|
43
|
+
# (and don't mix them with { } code blocks
|
44
|
+
environment keyword = '(m|qr)(?=\{)' begin
|
45
|
+
environment regexp = '\{' begin
|
46
|
+
comment = $comment_in_exp
|
47
|
+
variable = $var_in_exp
|
48
|
+
regexp = '\\\{|\\\}'
|
49
|
+
regexp = "}" exitall
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# repeat for other non alpha numerical chars
|
54
|
+
environment keyword = '(m|qr)(?=#)' begin
|
55
|
+
environment regexp = '#' begin
|
56
|
+
comment = $comment_in_exp
|
57
|
+
variable = $var_in_exp
|
58
|
+
regexp = '\\#'
|
59
|
+
regexp = "#" exitall
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
environment keyword = '(m|qr)(?=\|)' begin
|
64
|
+
environment regexp = '\|' begin
|
65
|
+
comment = $comment_in_exp
|
66
|
+
variable = $var_in_exp
|
67
|
+
regexp = '\\\|'
|
68
|
+
regexp = "\|" exitall
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
environment keyword = '(m|qr)(?=@)' begin
|
73
|
+
environment regexp = '@' begin
|
74
|
+
comment = $comment_in_exp
|
75
|
+
variable = $var_in_exp
|
76
|
+
regexp = '\\@'
|
77
|
+
regexp = "@" exitall
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
environment keyword = '(m|qr)(?=<)' begin
|
82
|
+
environment regexp = '<' begin
|
83
|
+
comment = $comment_in_exp
|
84
|
+
variable = $var_in_exp
|
85
|
+
regexp = '\\<|\\>'
|
86
|
+
regexp = ">" exitall
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
environment keyword = '(m|qr)(?=\[)' begin
|
91
|
+
environment regexp = '\[' begin
|
92
|
+
comment = $comment_in_exp
|
93
|
+
variable = $var_in_exp
|
94
|
+
regexp = '\\]'
|
95
|
+
regexp = "]" exitall
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
environment keyword = '(m|qr)(?=\\)' begin
|
100
|
+
environment regexp = '\\' begin
|
101
|
+
comment = $comment_in_exp
|
102
|
+
variable = $var_in_exp
|
103
|
+
regexp = '\\\\'
|
104
|
+
regexp = "\\" exitall
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
environment keyword = '(m|qr)(?=/)' begin
|
109
|
+
environment regexp = '/' begin
|
110
|
+
comment = $comment_in_exp
|
111
|
+
variable = $var_in_exp
|
112
|
+
regexp = '\\/'
|
113
|
+
regexp = "/" exitall
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
string delim "\"" "\"" escape "\\"
|
118
|
+
string delim "'" "'" escape "\\"
|
119
|
+
string delim "<" ">"
|
120
|
+
#string = '[[:word:]]*/[^\n]*/[[:word:]]*'
|
121
|
+
string = '/[^\n]*/'
|
122
|
+
|
123
|
+
keyword = "chomp|chop|chr|crypt|hex|i|index|lc|lcfirst|length|oct|ord|pack|q|qq|reverse|rindex|sprintf|substr|tr|uc|ucfirst|m|s|g|qw|abs|atan2|cos|exp|hex|int|log|oct|rand|sin|sqrt|srand|my|local|our|delete|each|exists|keys|values|pack|read|syscall|sysread|syswrite|unpack|vec|undef|unless|return|length|grep|sort|caller|continue|dump|eval|exit|goto|last|next|redo|sub|wantarray|pop|push|shift|splice|unshift|split|switch|join|defined|foreach|last|chop|chomp|bless|dbmclose|dbmopen|ref|tie|tied|untie|while|next|map|eq|die|cmp|lc|uc|and|do|if|else|elsif|for|use|require|package|import|chdir|chmod|chown|chroot|fcntl|glob|ioctl|link|lstat|mkdir|open|opendir|readlink|rename|rmdir|stat|symlink|umask|unlink|utime|binmode|close|closedir|dbmclose|dbmopen|die|eof|fileno|flock|format|getc|print|printf|read|readdir|rewinddir|seek|seekdir|select|syscall|sysread|sysseek|syswrite|tell|telldir|truncate|warn|write|alarm|exec|fork|getpgrp|getppid|getpriority|kill|pipe|qx|setpgrp|setpriority|sleep|system|times|x|wait|waitpid"
|
124
|
+
|
125
|
+
comment delim '^\=(?:head1|head2|item)' '\=cut' multiline
|
126
|
+
|
127
|
+
variable = '(?:\$[#]?|@|%)[/[:word:]]+'
|
128
|
+
|
129
|
+
include "symbols.lang"
|
130
|
+
|
131
|
+
cbracket = "{|}"
|
132
|
+
|
133
|
+
include "function.lang"
|
134
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
preproc = "include|include_once|require|require_once"
|
2
|
+
|
3
|
+
comment start "//"
|
4
|
+
include "script_comment.lang"
|
5
|
+
|
6
|
+
include "number.lang"
|
7
|
+
|
8
|
+
string delim "\"" "\"" escape "\\" multiline
|
9
|
+
string delim "'" "'" escape "\\" multiline
|
10
|
+
|
11
|
+
keyword = "and|or|xor|__FILE__|exception|php_user_filter|__LINE__|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|each|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|for|foreach|function|global|if|isset|list|new|old_function|print|return|static|switch|unset|use|var|while|__FUNCTION__|__CLASS__|__METHOD__"
|
12
|
+
|
13
|
+
include "c_comment.lang"
|
14
|
+
|
15
|
+
variable = '(?:\$[#]?|@|%)[[:word:]]+'
|
16
|
+
|
17
|
+
symbol = "<?php"
|
18
|
+
|
19
|
+
include "symbols.lang"
|
20
|
+
|
21
|
+
cbracket = "{|}"
|
22
|
+
|
23
|
+
include "function.lang"
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# by Dirk Jagdmann, http://cubic.org/~doj
|
2
|
+
|
3
|
+
vardef ID = '[[:word:]]+'
|
4
|
+
variable = '/' + $ID
|
5
|
+
|
6
|
+
keyword = "abs|add|aload|anchorsearch|and|arc|arcn|arct|arcto|array|ashow|astore|atan|awidthshow",
|
7
|
+
"begin|bind|bitshift|bytesavailable",
|
8
|
+
"cachestatus|ceiling|charpath|clear|cleartomark|cleardictstack|clip|clippath|closefile|closepath|colorimage|concat|concatmatrix|condition|configurationerror|copy|copypage|cos|count|countdictstack|countexecstack|counttomark|cshow|currentblackgeneration|currentcacheparams|currentcmykcolor|currentcolor|currentcolorrendering|currentcolorscreen|currentcolorspace|currentcolortransfer|currentcontext|currentdash|currentdevparams|currentdict|currentfile|currentflat|currentfont|currentglobal|currentgray|currentgstate|currenthalftone|currenthalftonephase|currenthsbcolor|currentlinecap|currentlinejoin|currentlinewidth|currentmatrix|currentmiterlimit|currentobjectformat|currentpacking|currentpagedevice|currentpoint|currentrgbcolor|currentscreen|currentshared|currentstrokeadjust|currentsystemparams|currenttransfer|currentundercolorremoval|currentuserparams|curveto|cvi|cvlit|cvn|cvr|cvrs|cvs|cvx",
|
9
|
+
"def|defaultmatrix|definefont|defineresource|defineusername|defineuserobject|deletefile|detach|deviceinfo|dict|dictfull|dictstack|dictstackoverflow|dictstackunderflow|div|dtransform|dup",
|
10
|
+
"echo|eexec|end|eoclip|eofill|eoviewclip|eq|erasepage|errordict|exch|exec|execform|execstack|execstackoverflow|execuserobject|executeonly|executive|exit|exp",
|
11
|
+
"false|file|filenameforall|fileposition|fill|filter|findencoding|findfont|findresource|flattenpath|floor|flush|flushfile|FontDirectory|for|forall|fork",
|
12
|
+
"ge|get|getinterval|globaldict|GlobalFontDirectory|glyphshow|grestore|grestoreall|gsave|gstate|gt",
|
13
|
+
"handleerror",
|
14
|
+
"identmatrix|idiv|idtransform|if|ifelse|image|imagemask|index|ineofill|infill|initclip|initgraphics|initmatrix|initviewclip|instroke|internaldict|interrupt|inueofill|inufill|inustroke|invalidaccess|invalidcontext|invalidexit|invalidfileaccess|invalidfont|invalidid|invalidrestore|invertmatrix|ioerror|ISOLatin1Encoding|itransform",
|
15
|
+
"join",
|
16
|
+
"kshow|known",
|
17
|
+
"languagelevel|le|length|limitcheck|lineto|ln|load|lock|log|loop|lt",
|
18
|
+
"makefont|makepattern|mark|matrix|maxlength|mod|monitor|moveto|mul",
|
19
|
+
"ne|neg|newpath|noaccess|nocurrentpoint|not|notify|null|nulldevice",
|
20
|
+
"or",
|
21
|
+
"packedarray|pathbbox|pathforall|pop|print|printobject|product|prompt|pstack|put|putinterval",
|
22
|
+
"quit",
|
23
|
+
"rand|rangecheck|rcurveto|read|readhexstring|readline|readonly|readstring|realtime|rectclip|rectfill|rectstroke|rectviewclip|renamefile|repeat|resetfile|resourceforall|resourcestatus|restore|reversepath|revision|rlineto|rmoveto|roll|rootfont|rotate|round|rrand|run",
|
24
|
+
"save|scale|scalefont|scheck|search|selectfont|serialnumber|setbbox|setblackgeneration|setcachedevice|setcachedevice2|setcachelimit|setcacheparams|setcharwidth|setcmykcolor|setcolor|setcolorrendering|setcolorscreen|setcolorspace|setcolortransfer|setdash|setdevparams|setfileposition|setflat|setfont|setglobal|setgray|setgstate|sethalftone|sethalftonephase|sethsbcolor|setlinecap|setlinejoin|setlinewidth|setmatrix|setmiterlimit|setobjectformat|setoverprint|setpacking|setpagedevice|setpattern|setrgbcolor|setscreen|setshared|setstrokeadjust|setsystemparams|settransfer|setucacheparams|setundercolorremoval|setuserparams|setvmthreshold|shareddict|show|showpage|sin|sqrt|srand|stack|stackoverflow|stackunderflow|StandardEncoding|start|startjob|status|statusdict|stop|stopped|store|string|stringwidth|stroke|strokepath|sub|syntaxerror|systemdict",
|
25
|
+
"timeout|transform|translate|true|truncate|type|typecheck|token",
|
26
|
+
"uappend|ucache|ucachestatus|ueofill|ufill|undef|undefined|undefinedfilename|undefineresource|undefinedresult|undefinefont|undefineresource|undefinedresource|undefineuserobject|unmatchedmark|unregistered|upath|userdict|UserObjects|usertime|ustroke|ustrokepath",
|
27
|
+
"version|viewclip|viewclippath|VMerror|vmreclaim|vmstatus",
|
28
|
+
"wait|wcheck|where|widthshow|write|writehexstring|writeobject|writestring|wtranslation",
|
29
|
+
"xcheck|xor|xshow|xyshow",
|
30
|
+
"yield|yshow"
|
31
|
+
|
32
|
+
variable = $ID
|
33
|
+
|
34
|
+
environment string delim "(" ")" multiline nested begin
|
35
|
+
specialchar = '\\.'
|
36
|
+
end
|
37
|
+
|
38
|
+
comment start "%"
|
39
|
+
|
40
|
+
include "number.lang"
|
41
|
+
|
42
|
+
symbol = "[","]","=","==","{","}","<<",">>"
|