FooBarWidget-mizuho 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/Rakefile +4 -0
  2. data/lib/mizuho/generator.rb +3 -0
  3. data/mizuho.gemspec +9 -5
  4. data/source-highlight/ada.lang +38 -0
  5. data/source-highlight/bib.lang +6 -0
  6. data/source-highlight/bison.lang +3 -0
  7. data/source-highlight/c.lang +41 -0
  8. data/source-highlight/c_comment.lang +27 -0
  9. data/source-highlight/c_string.lang +9 -0
  10. data/source-highlight/caml.lang +16 -0
  11. data/source-highlight/changelog.lang +8 -0
  12. data/source-highlight/clike_vardeclaration.lang +4 -0
  13. data/source-highlight/cpp.lang +15 -0
  14. data/source-highlight/csharp.lang +36 -0
  15. data/source-highlight/css.lang +14 -0
  16. data/source-highlight/css_common.outlang +26 -0
  17. data/source-highlight/default.css +51 -0
  18. data/source-highlight/default.lang +8 -0
  19. data/source-highlight/default.style +57 -0
  20. data/source-highlight/desktop.lang +7 -0
  21. data/source-highlight/diff.lang +32 -0
  22. data/source-highlight/docbook.outlang +36 -0
  23. data/source-highlight/esc.outlang +46 -0
  24. data/source-highlight/esc.style +35 -0
  25. data/source-highlight/extreme_comment.lang +5 -0
  26. data/source-highlight/extreme_comment2.lang +5 -0
  27. data/source-highlight/extreme_comment3.lang +15 -0
  28. data/source-highlight/fixed-fortran.lang +5 -0
  29. data/source-highlight/flex.lang +37 -0
  30. data/source-highlight/fortran.lang +57 -0
  31. data/source-highlight/function.lang +2 -0
  32. data/source-highlight/glsl.lang +86 -0
  33. data/source-highlight/haxe.lang +7 -0
  34. data/source-highlight/html.lang +7 -0
  35. data/source-highlight/html.outlang +25 -0
  36. data/source-highlight/html_common.outlang +35 -0
  37. data/source-highlight/html_notfixed.outlang +22 -0
  38. data/source-highlight/html_ref.outlang +6 -0
  39. data/source-highlight/htmlcss.outlang +28 -0
  40. data/source-highlight/htmltable.outlang +14 -0
  41. data/source-highlight/htmltablelinenum.outlang +26 -0
  42. data/source-highlight/java.lang +26 -0
  43. data/source-highlight/javadoc.outlang +24 -0
  44. data/source-highlight/javascript.lang +27 -0
  45. data/source-highlight/key_string.lang +4 -0
  46. data/source-highlight/lang.map +108 -0
  47. data/source-highlight/langdef.lang +21 -0
  48. data/source-highlight/latex.lang +52 -0
  49. data/source-highlight/latex.outlang +59 -0
  50. data/source-highlight/latexcolor.outlang +44 -0
  51. data/source-highlight/ldap.lang +10 -0
  52. data/source-highlight/log.lang +53 -0
  53. data/source-highlight/logtalk.lang +85 -0
  54. data/source-highlight/lsm.lang +7 -0
  55. data/source-highlight/lua.lang +27 -0
  56. data/source-highlight/m4.lang +27 -0
  57. data/source-highlight/makefile.lang +42 -0
  58. data/source-highlight/nohilite.lang +2 -0
  59. data/source-highlight/number.lang +3 -0
  60. data/source-highlight/outlang.lang +16 -0
  61. data/source-highlight/outlang.map +12 -0
  62. data/source-highlight/pascal.lang +20 -0
  63. data/source-highlight/perl.lang +134 -0
  64. data/source-highlight/php.lang +25 -0
  65. data/source-highlight/postscript.lang +42 -0
  66. data/source-highlight/prolog.lang +37 -0
  67. data/source-highlight/properties.lang +7 -0
  68. data/source-highlight/python.lang +26 -0
  69. data/source-highlight/ruby.lang +32 -0
  70. data/source-highlight/scala.lang +31 -0
  71. data/source-highlight/script_comment.lang +3 -0
  72. data/source-highlight/sh.lang +38 -0
  73. data/source-highlight/slang.lang +25 -0
  74. data/source-highlight/sml.lang +5 -0
  75. data/source-highlight/source-highlight +5 -0
  76. data/source-highlight/spec.lang +12 -0
  77. data/source-highlight/sql.lang +46 -0
  78. data/source-highlight/style.defaults +15 -0
  79. data/source-highlight/style.lang +16 -0
  80. data/source-highlight/style2.style +10 -0
  81. data/source-highlight/style3.style +10 -0
  82. data/source-highlight/symbols.lang +2 -0
  83. data/source-highlight/tcl.lang +35 -0
  84. data/source-highlight/texinfo.outlang +34 -0
  85. data/source-highlight/texinfo.style +20 -0
  86. data/source-highlight/universal-darwin9.0/source-highlight +0 -0
  87. data/source-highlight/url.lang +3 -0
  88. data/source-highlight/xhtml.outlang +25 -0
  89. data/source-highlight/xhtml_common.outlang +8 -0
  90. data/source-highlight/xhtml_notfixed.outlang +16 -0
  91. data/source-highlight/xhtmlcss.outlang +19 -0
  92. data/source-highlight/xhtmltable.outlang +7 -0
  93. data/source-highlight/xml.lang +17 -0
  94. data/source-highlight/xorg.lang +10 -0
  95. data/test/spec_helper.rb +11 -3
  96. metadata +261 -178
@@ -0,0 +1,10 @@
1
+ # for ldap syntax
2
+
3
+ comment start "#"
4
+
5
+ (keyword,string) = `(\<[[:alnum:]_]+:)((?:[^,=]*\z)?)`
6
+
7
+ (attribute,symbol,string,symbol)=
8
+ `([[:alnum:]_]+)(=)([^,]+)(,?)`
9
+
10
+
@@ -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
@@ -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,7 @@
1
+ # Linux Software Map language definition
2
+
3
+ keyword = 'Begin[[:digit:]]*|End'
4
+
5
+ type = '^[[:word:]-]+:'
6
+
7
+ include "url.lang"
@@ -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,2 @@
1
+ # Use this definition language if you only want your input file
2
+ # to be formatted in the output language without any highlighting
@@ -0,0 +1,3 @@
1
+ number =
2
+ '\<[+-]?((0x[[:xdigit:]]+)|(([[:digit:]]*\.)?
3
+ [[:digit:]]+([eE][+-]?[[:digit:]]+)?))u?((int(?:8|16|32|64))|L)?\>'
@@ -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
+