maruku 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/maruku +41 -25
- data/docs/char.html +1924 -0
- data/docs/entity_test.html +2 -2
- data/docs/exd.html +92 -0
- data/docs/index.html +77 -23
- data/docs/markdown_syntax.html +6 -6
- data/docs/maruku.html +75 -21
- data/docs/maruku.md +60 -26
- data/docs/proposal.html +105 -123
- data/docs/proposal.md +121 -109
- data/lib/maruku/attributes.rb +33 -1
- data/lib/maruku/defaults.rb +8 -0
- data/lib/maruku/input/charsource.rb +8 -2
- data/lib/maruku/input/parse_block.rb +44 -18
- data/lib/maruku/input/parse_doc.rb +28 -26
- data/lib/maruku/input/parse_span_better.rb +57 -41
- data/lib/maruku/input/type_detection.rb +3 -2
- data/lib/maruku/output/to_html.rb +6 -6
- data/lib/maruku/output/to_latex.rb +21 -5
- data/lib/maruku/structures.rb +0 -4
- data/lib/maruku/tests/new_parser.rb +6 -1
- data/lib/maruku/version.rb +1 -1
- data/tests/unittest/attributes/att2.md +36 -0
- data/tests/unittest/attributes/att3.md +55 -0
- data/tests/unittest/attributes/attributes.md +23 -18
- data/tests/unittest/attributes/circular.md +9 -9
- data/tests/unittest/email.md +2 -2
- data/tests/unittest/links.md +2 -2
- data/tests/unittest/misc_sw.md +1 -1
- data/tests/unittest/syntax_hl.md +3 -5
- data/tests/unittest/xml_instruction.md +1 -2
- metadata +6 -2
data/bin/maruku
CHANGED
@@ -18,6 +18,7 @@ OptionParser.new do |opts|
|
|
18
18
|
opts.on_tail("--pdf", "Write PDF" ) do export = :pdf end
|
19
19
|
opts.on_tail("--html", "Write HTML") do export = :html end
|
20
20
|
opts.on_tail("--tex", "Write LaTeX" ) do export = :tex end
|
21
|
+
opts.on_tail("--inspect", "Shows the parsing result" ) do export = :inspect end
|
21
22
|
|
22
23
|
opts.on_tail("--version", "Show version") do
|
23
24
|
puts OptionParser::Version.join('.')
|
@@ -34,52 +35,67 @@ end.parse!
|
|
34
35
|
#p ARGV
|
35
36
|
#p MaRuKu::Globals
|
36
37
|
|
38
|
+
inputs =
|
37
39
|
# If we are given filenames, convert each file
|
38
40
|
if not ARGV.empty?
|
39
|
-
ARGV.
|
40
|
-
|
41
|
+
ARGV.map do |f|
|
41
42
|
# read file content
|
42
|
-
|
43
|
+
$stderr.puts "Reading from #{f}."
|
44
|
+
[f, File.open(f,'r').read]
|
45
|
+
end
|
46
|
+
else
|
47
|
+
export = :html_frag if export == :html
|
48
|
+
export = :tex_frag if export == :tex
|
49
|
+
|
50
|
+
$stderr.puts "Reading from standard input."
|
51
|
+
[[nil, $stdin.read]]
|
52
|
+
end
|
43
53
|
|
44
|
-
|
54
|
+
inputs.each do |f, input|
|
45
55
|
|
46
56
|
# create Maruku
|
47
57
|
doc = Maruku.new(input, {:on_error=>:warning})
|
48
58
|
|
49
|
-
|
50
59
|
out=""; prefix = "?"
|
51
60
|
case export
|
52
61
|
when :html
|
53
62
|
prefix='html'
|
54
63
|
out = doc.to_html_document( {:indent => -1})
|
64
|
+
when :html_frag
|
65
|
+
prefix='html_frag'
|
66
|
+
out = doc.to_html( {:indent => -1})
|
55
67
|
when :pdf, :tex
|
56
68
|
prefix='tex'
|
57
69
|
out = doc.to_latex_document
|
70
|
+
when :tex_frag
|
71
|
+
prefix='html_frag'
|
72
|
+
out = doc.to_latex
|
73
|
+
when :inspect
|
74
|
+
prefix='.txt'
|
75
|
+
out = doc.inspect
|
58
76
|
when :markdown
|
59
77
|
prefix='pretty_md'
|
60
78
|
out = doc.to_markdown
|
61
79
|
end
|
62
80
|
|
63
|
-
# write to file
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
81
|
+
# write to file or stdout
|
82
|
+
if f
|
83
|
+
dir = File.dirname(f)
|
84
|
+
job = File.join(dir, File.basename(f, File.extname(f)))
|
85
|
+
filename = job + "." + prefix
|
86
|
+
|
87
|
+
$stderr.puts "Writing to #{filename}"
|
88
|
+
File.open(filename,'w') do |f| f.puts out end
|
70
89
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
90
|
+
if export == :pdf
|
91
|
+
cmd = "pdflatex '#{job}' -interaction=nonstopmode "+
|
92
|
+
"'-output-directory=#{dir}' "
|
93
|
+
# run twice for cross references
|
94
|
+
system cmd
|
95
|
+
system cmd
|
96
|
+
end
|
97
|
+
else # write to stdout
|
98
|
+
$stdout.write out
|
77
99
|
end
|
78
100
|
end
|
79
|
-
|
80
|
-
else
|
81
|
-
# else, act as a filter
|
82
|
-
data = $stdin.read
|
83
|
-
puts Maruku.new(data, {:on_error=>:warning}).to_html
|
84
|
-
end
|
85
|
-
|
101
|
+
|
data/docs/char.html
ADDED
@@ -0,0 +1,1924 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<!-- ViewVC :: http://www.viewvc.org/ -->
|
5
|
+
<head>
|
6
|
+
<title>[maruku] Annotation of /trunk/lib/maruku/input/charsource.rb</title>
|
7
|
+
<meta name="generator" content="ViewVC 1.1-dev" />
|
8
|
+
<link rel="stylesheet" href="/viewvc/*docroot*/styles.css" type="text/css" />
|
9
|
+
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<div class="vc_navheader">
|
13
|
+
|
14
|
+
<form method="get" action="/viewvc/">
|
15
|
+
|
16
|
+
<table style="padding:0.1em;">
|
17
|
+
<tr>
|
18
|
+
<td>
|
19
|
+
<strong>
|
20
|
+
<a href="/viewvc/?root=maruku"> [maruku]</a> / <a href="/viewvc/trunk/?root=maruku"> trunk</a> / <a href="/viewvc/trunk/lib/?root=maruku"> lib</a> / <a href="/viewvc/trunk/lib/maruku/?root=maruku"> maruku</a> / <a href="/viewvc/trunk/lib/maruku/input/?root=maruku"> input</a> / <a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=log"> charsource.rb</a> </strong>
|
21
|
+
</td>
|
22
|
+
<td style="text-align:right;">
|
23
|
+
</td>
|
24
|
+
</tr>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
</form>
|
28
|
+
|
29
|
+
</div>
|
30
|
+
<div style="float: right; padding: 5px;"><a href="http://rubyforge.org/" title="RubyForge ViewVC"><img src="http://static.rubyforge.vm.bytemark.co.uk/themes/rubyforge/images/logo.png" alt="ViewVC logotype" width="272" height="59" /></a></div>
|
31
|
+
<h1>Annotation of /trunk/lib/maruku/input/charsource.rb</h1>
|
32
|
+
|
33
|
+
<p style="margin:0;">
|
34
|
+
|
35
|
+
<a href="/viewvc/trunk/lib/maruku/input/?root=maruku"><img src="/viewvc/*docroot*/images/back_small.png" class="vc_icon" alt="Parent Directory" /> Parent Directory</a>
|
36
|
+
|
37
|
+
| <a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=log"><img src="/viewvc/*docroot*/images/log.png" class="vc_icon" alt="Revision Log" /> Revision Log</a>
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
</p>
|
43
|
+
|
44
|
+
<hr />
|
45
|
+
<p>
|
46
|
+
Revision <a href="/viewvc?view=rev&root=maruku&revision=71"><strong>71</strong></a> -
|
47
|
+
(<a href="/viewvc/trunk/lib/maruku/input/charsource.rb?revision=71&root=maruku&view=markup"><strong>view</strong></a>)
|
48
|
+
(<a href="/viewvc/trunk/lib/maruku/input/charsource.rb?revision=71&root=maruku"><strong>download</strong></a>)
|
49
|
+
|
50
|
+
|
51
|
+
</p>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<table cellspacing="0" cellpadding="0">
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<tr class="vc_row_odd" id="l1">
|
64
|
+
<td class="vc_blame_line">1 :</td>
|
65
|
+
<td class="vc_blame_author">andrea</td>
|
66
|
+
<td class="vc_blame_rev"><a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=diff&r1=58&r2=59">59</a></td>
|
67
|
+
<td class="vc_blame_text">#--
|
68
|
+
</td>
|
69
|
+
</tr>
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<tr class="vc_row_even" id="l2">
|
78
|
+
<td class="vc_blame_line">2 :</td>
|
79
|
+
<td class="vc_blame_author">andrea</td>
|
80
|
+
<td class="vc_blame_rev">52</td>
|
81
|
+
<td class="vc_blame_text"># Copyright (C) 2006 Andrea Censi <andrea (at) rubyforge.org>
|
82
|
+
</td>
|
83
|
+
</tr>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<tr class="vc_row_even" id="l3">
|
89
|
+
<td class="vc_blame_line">3 :</td>
|
90
|
+
<td class="vc_blame_author"> </td>
|
91
|
+
<td class="vc_blame_rev"> </td>
|
92
|
+
<td class="vc_blame_text">#
|
93
|
+
</td>
|
94
|
+
</tr>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<tr class="vc_row_even" id="l4">
|
100
|
+
<td class="vc_blame_line">4 :</td>
|
101
|
+
<td class="vc_blame_author"> </td>
|
102
|
+
<td class="vc_blame_rev"> </td>
|
103
|
+
<td class="vc_blame_text"># This file is part of Maruku.
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<tr class="vc_row_even" id="l5">
|
111
|
+
<td class="vc_blame_line">5 :</td>
|
112
|
+
<td class="vc_blame_author"> </td>
|
113
|
+
<td class="vc_blame_rev"> </td>
|
114
|
+
<td class="vc_blame_text">#
|
115
|
+
</td>
|
116
|
+
</tr>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<tr class="vc_row_even" id="l6">
|
122
|
+
<td class="vc_blame_line">6 :</td>
|
123
|
+
<td class="vc_blame_author"> </td>
|
124
|
+
<td class="vc_blame_rev"> </td>
|
125
|
+
<td class="vc_blame_text"># Maruku is free software; you can redistribute it and/or modify
|
126
|
+
</td>
|
127
|
+
</tr>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
<tr class="vc_row_even" id="l7">
|
133
|
+
<td class="vc_blame_line">7 :</td>
|
134
|
+
<td class="vc_blame_author"> </td>
|
135
|
+
<td class="vc_blame_rev"> </td>
|
136
|
+
<td class="vc_blame_text"># it under the terms of the GNU General Public License as published by
|
137
|
+
</td>
|
138
|
+
</tr>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<tr class="vc_row_even" id="l8">
|
144
|
+
<td class="vc_blame_line">8 :</td>
|
145
|
+
<td class="vc_blame_author"> </td>
|
146
|
+
<td class="vc_blame_rev"> </td>
|
147
|
+
<td class="vc_blame_text"># the Free Software Foundation; either version 2 of the License, or
|
148
|
+
</td>
|
149
|
+
</tr>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<tr class="vc_row_even" id="l9">
|
155
|
+
<td class="vc_blame_line">9 :</td>
|
156
|
+
<td class="vc_blame_author"> </td>
|
157
|
+
<td class="vc_blame_rev"> </td>
|
158
|
+
<td class="vc_blame_text"># (at your option) any later version.
|
159
|
+
</td>
|
160
|
+
</tr>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<tr class="vc_row_even" id="l10">
|
166
|
+
<td class="vc_blame_line">10 :</td>
|
167
|
+
<td class="vc_blame_author"> </td>
|
168
|
+
<td class="vc_blame_rev"> </td>
|
169
|
+
<td class="vc_blame_text">#
|
170
|
+
</td>
|
171
|
+
</tr>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
<tr class="vc_row_even" id="l11">
|
177
|
+
<td class="vc_blame_line">11 :</td>
|
178
|
+
<td class="vc_blame_author"> </td>
|
179
|
+
<td class="vc_blame_rev"> </td>
|
180
|
+
<td class="vc_blame_text"># Maruku is distributed in the hope that it will be useful,
|
181
|
+
</td>
|
182
|
+
</tr>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<tr class="vc_row_even" id="l12">
|
188
|
+
<td class="vc_blame_line">12 :</td>
|
189
|
+
<td class="vc_blame_author"> </td>
|
190
|
+
<td class="vc_blame_rev"> </td>
|
191
|
+
<td class="vc_blame_text"># but WITHOUT ANY WARRANTY; without even the implied warranty of
|
192
|
+
</td>
|
193
|
+
</tr>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<tr class="vc_row_even" id="l13">
|
199
|
+
<td class="vc_blame_line">13 :</td>
|
200
|
+
<td class="vc_blame_author"> </td>
|
201
|
+
<td class="vc_blame_rev"> </td>
|
202
|
+
<td class="vc_blame_text"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
203
|
+
</td>
|
204
|
+
</tr>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
<tr class="vc_row_even" id="l14">
|
210
|
+
<td class="vc_blame_line">14 :</td>
|
211
|
+
<td class="vc_blame_author"> </td>
|
212
|
+
<td class="vc_blame_rev"> </td>
|
213
|
+
<td class="vc_blame_text"># GNU General Public License for more details.
|
214
|
+
</td>
|
215
|
+
</tr>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
<tr class="vc_row_even" id="l15">
|
221
|
+
<td class="vc_blame_line">15 :</td>
|
222
|
+
<td class="vc_blame_author"> </td>
|
223
|
+
<td class="vc_blame_rev"> </td>
|
224
|
+
<td class="vc_blame_text">#
|
225
|
+
</td>
|
226
|
+
</tr>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
<tr class="vc_row_even" id="l16">
|
232
|
+
<td class="vc_blame_line">16 :</td>
|
233
|
+
<td class="vc_blame_author"> </td>
|
234
|
+
<td class="vc_blame_rev"> </td>
|
235
|
+
<td class="vc_blame_text"># You should have received a copy of the GNU General Public License
|
236
|
+
</td>
|
237
|
+
</tr>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
<tr class="vc_row_even" id="l17">
|
243
|
+
<td class="vc_blame_line">17 :</td>
|
244
|
+
<td class="vc_blame_author"> </td>
|
245
|
+
<td class="vc_blame_rev"> </td>
|
246
|
+
<td class="vc_blame_text"># along with Maruku; if not, write to the Free Software
|
247
|
+
</td>
|
248
|
+
</tr>
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
<tr class="vc_row_even" id="l18">
|
254
|
+
<td class="vc_blame_line">18 :</td>
|
255
|
+
<td class="vc_blame_author"> </td>
|
256
|
+
<td class="vc_blame_rev"> </td>
|
257
|
+
<td class="vc_blame_text"># Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
258
|
+
</td>
|
259
|
+
</tr>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<tr class="vc_row_odd" id="l19">
|
268
|
+
<td class="vc_blame_line">19 :</td>
|
269
|
+
<td class="vc_blame_author">andrea</td>
|
270
|
+
<td class="vc_blame_rev"><a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=diff&r1=58&r2=59">59</a></td>
|
271
|
+
<td class="vc_blame_text">#++
|
272
|
+
</td>
|
273
|
+
</tr>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
<tr class="vc_row_even" id="l20">
|
282
|
+
<td class="vc_blame_line">20 :</td>
|
283
|
+
<td class="vc_blame_author">andrea</td>
|
284
|
+
<td class="vc_blame_rev">52</td>
|
285
|
+
<td class="vc_blame_text">
|
286
|
+
</td>
|
287
|
+
</tr>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<tr class="vc_row_odd" id="l21">
|
296
|
+
<td class="vc_blame_line">21 :</td>
|
297
|
+
<td class="vc_blame_author">andrea</td>
|
298
|
+
<td class="vc_blame_rev"><a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=diff&r1=58&r2=59">59</a></td>
|
299
|
+
<td class="vc_blame_text">
|
300
|
+
</td>
|
301
|
+
</tr>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
<tr class="vc_row_even" id="l22">
|
310
|
+
<td class="vc_blame_line">22 :</td>
|
311
|
+
<td class="vc_blame_author">andrea</td>
|
312
|
+
<td class="vc_blame_rev"><a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=diff&r1=55&r2=56">56</a></td>
|
313
|
+
<td class="vc_blame_text">module MaRuKu; module In; module Markdown; module SpanLevelParser
|
314
|
+
</td>
|
315
|
+
</tr>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<tr class="vc_row_odd" id="l23">
|
324
|
+
<td class="vc_blame_line">23 :</td>
|
325
|
+
<td class="vc_blame_author">andrea</td>
|
326
|
+
<td class="vc_blame_rev">52</td>
|
327
|
+
<td class="vc_blame_text">
|
328
|
+
</td>
|
329
|
+
</tr>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
<tr class="vc_row_odd" id="l24">
|
335
|
+
<td class="vc_blame_line">24 :</td>
|
336
|
+
<td class="vc_blame_author"> </td>
|
337
|
+
<td class="vc_blame_rev"> </td>
|
338
|
+
<td class="vc_blame_text">class CharSource
|
339
|
+
</td>
|
340
|
+
</tr>
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
<tr class="vc_row_even" id="l25">
|
349
|
+
<td class="vc_blame_line">25 :</td>
|
350
|
+
<td class="vc_blame_author">andrea</td>
|
351
|
+
<td class="vc_blame_rev"><a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=diff&r1=55&r2=56">56</a></td>
|
352
|
+
<td class="vc_blame_text"> include MaRuKu::Strings
|
353
|
+
</td>
|
354
|
+
</tr>
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
<tr class="vc_row_odd" id="l26">
|
363
|
+
<td class="vc_blame_line">26 :</td>
|
364
|
+
<td class="vc_blame_author">andrea</td>
|
365
|
+
<td class="vc_blame_rev">52</td>
|
366
|
+
<td class="vc_blame_text">
|
367
|
+
</td>
|
368
|
+
</tr>
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
<tr class="vc_row_odd" id="l27">
|
374
|
+
<td class="vc_blame_line">27 :</td>
|
375
|
+
<td class="vc_blame_author"> </td>
|
376
|
+
<td class="vc_blame_rev"> </td>
|
377
|
+
<td class="vc_blame_text"> def initialize(s)
|
378
|
+
</td>
|
379
|
+
</tr>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
<tr class="vc_row_odd" id="l28">
|
385
|
+
<td class="vc_blame_line">28 :</td>
|
386
|
+
<td class="vc_blame_author"> </td>
|
387
|
+
<td class="vc_blame_rev"> </td>
|
388
|
+
<td class="vc_blame_text"> @buffer = s
|
389
|
+
</td>
|
390
|
+
</tr>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
<tr class="vc_row_odd" id="l29">
|
396
|
+
<td class="vc_blame_line">29 :</td>
|
397
|
+
<td class="vc_blame_author"> </td>
|
398
|
+
<td class="vc_blame_rev"> </td>
|
399
|
+
<td class="vc_blame_text"> @buffer_index = 0
|
400
|
+
</td>
|
401
|
+
</tr>
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
<tr class="vc_row_odd" id="l30">
|
407
|
+
<td class="vc_blame_line">30 :</td>
|
408
|
+
<td class="vc_blame_author"> </td>
|
409
|
+
<td class="vc_blame_rev"> </td>
|
410
|
+
<td class="vc_blame_text"> end
|
411
|
+
</td>
|
412
|
+
</tr>
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
<tr class="vc_row_odd" id="l31">
|
418
|
+
<td class="vc_blame_line">31 :</td>
|
419
|
+
<td class="vc_blame_author"> </td>
|
420
|
+
<td class="vc_blame_rev"> </td>
|
421
|
+
<td class="vc_blame_text">
|
422
|
+
</td>
|
423
|
+
</tr>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
<tr class="vc_row_odd" id="l32">
|
429
|
+
<td class="vc_blame_line">32 :</td>
|
430
|
+
<td class="vc_blame_author"> </td>
|
431
|
+
<td class="vc_blame_rev"> </td>
|
432
|
+
<td class="vc_blame_text"> # Return current char as a FixNum (or nil).
|
433
|
+
</td>
|
434
|
+
</tr>
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
<tr class="vc_row_odd" id="l33">
|
440
|
+
<td class="vc_blame_line">33 :</td>
|
441
|
+
<td class="vc_blame_author"> </td>
|
442
|
+
<td class="vc_blame_rev"> </td>
|
443
|
+
<td class="vc_blame_text"> def cur_char; @buffer[@buffer_index] end
|
444
|
+
</td>
|
445
|
+
</tr>
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
<tr class="vc_row_odd" id="l34">
|
451
|
+
<td class="vc_blame_line">34 :</td>
|
452
|
+
<td class="vc_blame_author"> </td>
|
453
|
+
<td class="vc_blame_rev"> </td>
|
454
|
+
<td class="vc_blame_text">
|
455
|
+
</td>
|
456
|
+
</tr>
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
<tr class="vc_row_odd" id="l35">
|
462
|
+
<td class="vc_blame_line">35 :</td>
|
463
|
+
<td class="vc_blame_author"> </td>
|
464
|
+
<td class="vc_blame_rev"> </td>
|
465
|
+
<td class="vc_blame_text"> # Return the next n chars as a String.
|
466
|
+
</td>
|
467
|
+
</tr>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
<tr class="vc_row_odd" id="l36">
|
473
|
+
<td class="vc_blame_line">36 :</td>
|
474
|
+
<td class="vc_blame_author"> </td>
|
475
|
+
<td class="vc_blame_rev"> </td>
|
476
|
+
<td class="vc_blame_text"> def cur_chars(n); @buffer[@buffer_index,n] end
|
477
|
+
</td>
|
478
|
+
</tr>
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
<tr class="vc_row_odd" id="l37">
|
484
|
+
<td class="vc_blame_line">37 :</td>
|
485
|
+
<td class="vc_blame_author"> </td>
|
486
|
+
<td class="vc_blame_rev"> </td>
|
487
|
+
<td class="vc_blame_text">
|
488
|
+
</td>
|
489
|
+
</tr>
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
<tr class="vc_row_odd" id="l38">
|
495
|
+
<td class="vc_blame_line">38 :</td>
|
496
|
+
<td class="vc_blame_author"> </td>
|
497
|
+
<td class="vc_blame_rev"> </td>
|
498
|
+
<td class="vc_blame_text"> # Return the char after current char as a FixNum (or nil).
|
499
|
+
</td>
|
500
|
+
</tr>
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
<tr class="vc_row_odd" id="l39">
|
506
|
+
<td class="vc_blame_line">39 :</td>
|
507
|
+
<td class="vc_blame_author"> </td>
|
508
|
+
<td class="vc_blame_rev"> </td>
|
509
|
+
<td class="vc_blame_text"> def next_char; @buffer[@buffer_index+1] end
|
510
|
+
</td>
|
511
|
+
</tr>
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
<tr class="vc_row_odd" id="l40">
|
517
|
+
<td class="vc_blame_line">40 :</td>
|
518
|
+
<td class="vc_blame_author"> </td>
|
519
|
+
<td class="vc_blame_rev"> </td>
|
520
|
+
<td class="vc_blame_text">
|
521
|
+
</td>
|
522
|
+
</tr>
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
<tr class="vc_row_odd" id="l41">
|
528
|
+
<td class="vc_blame_line">41 :</td>
|
529
|
+
<td class="vc_blame_author"> </td>
|
530
|
+
<td class="vc_blame_rev"> </td>
|
531
|
+
<td class="vc_blame_text"> def shift_char
|
532
|
+
</td>
|
533
|
+
</tr>
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
<tr class="vc_row_odd" id="l42">
|
539
|
+
<td class="vc_blame_line">42 :</td>
|
540
|
+
<td class="vc_blame_author"> </td>
|
541
|
+
<td class="vc_blame_rev"> </td>
|
542
|
+
<td class="vc_blame_text"> c = @buffer[@buffer_index]
|
543
|
+
</td>
|
544
|
+
</tr>
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
<tr class="vc_row_odd" id="l43">
|
550
|
+
<td class="vc_blame_line">43 :</td>
|
551
|
+
<td class="vc_blame_author"> </td>
|
552
|
+
<td class="vc_blame_rev"> </td>
|
553
|
+
<td class="vc_blame_text"> @buffer_index+=1
|
554
|
+
</td>
|
555
|
+
</tr>
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
<tr class="vc_row_odd" id="l44">
|
561
|
+
<td class="vc_blame_line">44 :</td>
|
562
|
+
<td class="vc_blame_author"> </td>
|
563
|
+
<td class="vc_blame_rev"> </td>
|
564
|
+
<td class="vc_blame_text"> c
|
565
|
+
</td>
|
566
|
+
</tr>
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
<tr class="vc_row_odd" id="l45">
|
572
|
+
<td class="vc_blame_line">45 :</td>
|
573
|
+
<td class="vc_blame_author"> </td>
|
574
|
+
<td class="vc_blame_rev"> </td>
|
575
|
+
<td class="vc_blame_text"> end
|
576
|
+
</td>
|
577
|
+
</tr>
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
<tr class="vc_row_odd" id="l46">
|
583
|
+
<td class="vc_blame_line">46 :</td>
|
584
|
+
<td class="vc_blame_author"> </td>
|
585
|
+
<td class="vc_blame_rev"> </td>
|
586
|
+
<td class="vc_blame_text">
|
587
|
+
</td>
|
588
|
+
</tr>
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
<tr class="vc_row_odd" id="l47">
|
594
|
+
<td class="vc_blame_line">47 :</td>
|
595
|
+
<td class="vc_blame_author"> </td>
|
596
|
+
<td class="vc_blame_rev"> </td>
|
597
|
+
<td class="vc_blame_text"> def ignore_char
|
598
|
+
</td>
|
599
|
+
</tr>
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
<tr class="vc_row_odd" id="l48">
|
605
|
+
<td class="vc_blame_line">48 :</td>
|
606
|
+
<td class="vc_blame_author"> </td>
|
607
|
+
<td class="vc_blame_rev"> </td>
|
608
|
+
<td class="vc_blame_text"> @buffer_index+=1
|
609
|
+
</td>
|
610
|
+
</tr>
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
<tr class="vc_row_odd" id="l49">
|
616
|
+
<td class="vc_blame_line">49 :</td>
|
617
|
+
<td class="vc_blame_author"> </td>
|
618
|
+
<td class="vc_blame_rev"> </td>
|
619
|
+
<td class="vc_blame_text"> end
|
620
|
+
</td>
|
621
|
+
</tr>
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
|
626
|
+
<tr class="vc_row_odd" id="l50">
|
627
|
+
<td class="vc_blame_line">50 :</td>
|
628
|
+
<td class="vc_blame_author"> </td>
|
629
|
+
<td class="vc_blame_rev"> </td>
|
630
|
+
<td class="vc_blame_text">
|
631
|
+
</td>
|
632
|
+
</tr>
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
<tr class="vc_row_odd" id="l51">
|
638
|
+
<td class="vc_blame_line">51 :</td>
|
639
|
+
<td class="vc_blame_author"> </td>
|
640
|
+
<td class="vc_blame_rev"> </td>
|
641
|
+
<td class="vc_blame_text"> def ignore_chars(n)
|
642
|
+
</td>
|
643
|
+
</tr>
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
<tr class="vc_row_odd" id="l52">
|
649
|
+
<td class="vc_blame_line">52 :</td>
|
650
|
+
<td class="vc_blame_author"> </td>
|
651
|
+
<td class="vc_blame_rev"> </td>
|
652
|
+
<td class="vc_blame_text"> @buffer_index+=n
|
653
|
+
</td>
|
654
|
+
</tr>
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
<tr class="vc_row_odd" id="l53">
|
660
|
+
<td class="vc_blame_line">53 :</td>
|
661
|
+
<td class="vc_blame_author"> </td>
|
662
|
+
<td class="vc_blame_rev"> </td>
|
663
|
+
<td class="vc_blame_text"> nil
|
664
|
+
</td>
|
665
|
+
</tr>
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
<tr class="vc_row_odd" id="l54">
|
671
|
+
<td class="vc_blame_line">54 :</td>
|
672
|
+
<td class="vc_blame_author"> </td>
|
673
|
+
<td class="vc_blame_rev"> </td>
|
674
|
+
<td class="vc_blame_text"> end
|
675
|
+
</td>
|
676
|
+
</tr>
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
<tr class="vc_row_odd" id="l55">
|
682
|
+
<td class="vc_blame_line">55 :</td>
|
683
|
+
<td class="vc_blame_author"> </td>
|
684
|
+
<td class="vc_blame_rev"> </td>
|
685
|
+
<td class="vc_blame_text">
|
686
|
+
</td>
|
687
|
+
</tr>
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
<tr class="vc_row_odd" id="l56">
|
693
|
+
<td class="vc_blame_line">56 :</td>
|
694
|
+
<td class="vc_blame_author"> </td>
|
695
|
+
<td class="vc_blame_rev"> </td>
|
696
|
+
<td class="vc_blame_text"> def current_remaining_buffer
|
697
|
+
</td>
|
698
|
+
</tr>
|
699
|
+
|
700
|
+
|
701
|
+
|
702
|
+
|
703
|
+
<tr class="vc_row_odd" id="l57">
|
704
|
+
<td class="vc_blame_line">57 :</td>
|
705
|
+
<td class="vc_blame_author"> </td>
|
706
|
+
<td class="vc_blame_rev"> </td>
|
707
|
+
<td class="vc_blame_text"> @buffer[@buffer_index, @buffer.size-@buffer_index]
|
708
|
+
</td>
|
709
|
+
</tr>
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
<tr class="vc_row_odd" id="l58">
|
715
|
+
<td class="vc_blame_line">58 :</td>
|
716
|
+
<td class="vc_blame_author"> </td>
|
717
|
+
<td class="vc_blame_rev"> </td>
|
718
|
+
<td class="vc_blame_text"> end
|
719
|
+
</td>
|
720
|
+
</tr>
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
<tr class="vc_row_odd" id="l59">
|
726
|
+
<td class="vc_blame_line">59 :</td>
|
727
|
+
<td class="vc_blame_author"> </td>
|
728
|
+
<td class="vc_blame_rev"> </td>
|
729
|
+
<td class="vc_blame_text">
|
730
|
+
</td>
|
731
|
+
</tr>
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
|
736
|
+
<tr class="vc_row_odd" id="l60">
|
737
|
+
<td class="vc_blame_line">60 :</td>
|
738
|
+
<td class="vc_blame_author"> </td>
|
739
|
+
<td class="vc_blame_rev"> </td>
|
740
|
+
<td class="vc_blame_text"> def cur_chars_are(string)
|
741
|
+
</td>
|
742
|
+
</tr>
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
<tr class="vc_row_even" id="l61">
|
751
|
+
<td class="vc_blame_line">61 :</td>
|
752
|
+
<td class="vc_blame_author">andrea</td>
|
753
|
+
<td class="vc_blame_rev"><a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=diff&r1=55&r2=56">56</a></td>
|
754
|
+
<td class="vc_blame_text"> # There is a bug here
|
755
|
+
</td>
|
756
|
+
</tr>
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
<tr class="vc_row_even" id="l62">
|
762
|
+
<td class="vc_blame_line">62 :</td>
|
763
|
+
<td class="vc_blame_author"> </td>
|
764
|
+
<td class="vc_blame_rev"> </td>
|
765
|
+
<td class="vc_blame_text"> if false
|
766
|
+
</td>
|
767
|
+
</tr>
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
<tr class="vc_row_even" id="l63">
|
773
|
+
<td class="vc_blame_line">63 :</td>
|
774
|
+
<td class="vc_blame_author"> </td>
|
775
|
+
<td class="vc_blame_rev"> </td>
|
776
|
+
<td class="vc_blame_text"> r2 = /^.{#{@buffer_index}}#{Regexp.escape string}/m
|
777
|
+
</td>
|
778
|
+
</tr>
|
779
|
+
|
780
|
+
|
781
|
+
|
782
|
+
|
783
|
+
<tr class="vc_row_even" id="l64">
|
784
|
+
<td class="vc_blame_line">64 :</td>
|
785
|
+
<td class="vc_blame_author"> </td>
|
786
|
+
<td class="vc_blame_rev"> </td>
|
787
|
+
<td class="vc_blame_text"> @buffer =~ r2
|
788
|
+
</td>
|
789
|
+
</tr>
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
<tr class="vc_row_even" id="l65">
|
795
|
+
<td class="vc_blame_line">65 :</td>
|
796
|
+
<td class="vc_blame_author"> </td>
|
797
|
+
<td class="vc_blame_rev"> </td>
|
798
|
+
<td class="vc_blame_text"> else
|
799
|
+
</td>
|
800
|
+
</tr>
|
801
|
+
|
802
|
+
|
803
|
+
|
804
|
+
|
805
|
+
<tr class="vc_row_even" id="l66">
|
806
|
+
<td class="vc_blame_line">66 :</td>
|
807
|
+
<td class="vc_blame_author"> </td>
|
808
|
+
<td class="vc_blame_rev"> </td>
|
809
|
+
<td class="vc_blame_text"> cur_chars(string.size) == string
|
810
|
+
</td>
|
811
|
+
</tr>
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
<tr class="vc_row_even" id="l67">
|
817
|
+
<td class="vc_blame_line">67 :</td>
|
818
|
+
<td class="vc_blame_author"> </td>
|
819
|
+
<td class="vc_blame_rev"> </td>
|
820
|
+
<td class="vc_blame_text"> end
|
821
|
+
</td>
|
822
|
+
</tr>
|
823
|
+
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
<tr class="vc_row_odd" id="l68">
|
831
|
+
<td class="vc_blame_line">68 :</td>
|
832
|
+
<td class="vc_blame_author">andrea</td>
|
833
|
+
<td class="vc_blame_rev">52</td>
|
834
|
+
<td class="vc_blame_text"> end
|
835
|
+
</td>
|
836
|
+
</tr>
|
837
|
+
|
838
|
+
|
839
|
+
|
840
|
+
|
841
|
+
<tr class="vc_row_odd" id="l69">
|
842
|
+
<td class="vc_blame_line">69 :</td>
|
843
|
+
<td class="vc_blame_author"> </td>
|
844
|
+
<td class="vc_blame_rev"> </td>
|
845
|
+
<td class="vc_blame_text">
|
846
|
+
</td>
|
847
|
+
</tr>
|
848
|
+
|
849
|
+
|
850
|
+
|
851
|
+
|
852
|
+
<tr class="vc_row_odd" id="l70">
|
853
|
+
<td class="vc_blame_line">70 :</td>
|
854
|
+
<td class="vc_blame_author"> </td>
|
855
|
+
<td class="vc_blame_rev"> </td>
|
856
|
+
<td class="vc_blame_text"> def next_matches(r)
|
857
|
+
</td>
|
858
|
+
</tr>
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
<tr class="vc_row_odd" id="l71">
|
864
|
+
<td class="vc_blame_line">71 :</td>
|
865
|
+
<td class="vc_blame_author"> </td>
|
866
|
+
<td class="vc_blame_rev"> </td>
|
867
|
+
<td class="vc_blame_text"> r2 = /^.{#{@buffer_index}}#{r}/m
|
868
|
+
</td>
|
869
|
+
</tr>
|
870
|
+
|
871
|
+
|
872
|
+
|
873
|
+
|
874
|
+
<tr class="vc_row_odd" id="l72">
|
875
|
+
<td class="vc_blame_line">72 :</td>
|
876
|
+
<td class="vc_blame_author"> </td>
|
877
|
+
<td class="vc_blame_rev"> </td>
|
878
|
+
<td class="vc_blame_text"> r2.match @buffer
|
879
|
+
</td>
|
880
|
+
</tr>
|
881
|
+
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
<tr class="vc_row_odd" id="l73">
|
886
|
+
<td class="vc_blame_line">73 :</td>
|
887
|
+
<td class="vc_blame_author"> </td>
|
888
|
+
<td class="vc_blame_rev"> </td>
|
889
|
+
<td class="vc_blame_text"> end
|
890
|
+
</td>
|
891
|
+
</tr>
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
|
896
|
+
<tr class="vc_row_odd" id="l74">
|
897
|
+
<td class="vc_blame_line">74 :</td>
|
898
|
+
<td class="vc_blame_author"> </td>
|
899
|
+
<td class="vc_blame_rev"> </td>
|
900
|
+
<td class="vc_blame_text">
|
901
|
+
</td>
|
902
|
+
</tr>
|
903
|
+
|
904
|
+
|
905
|
+
|
906
|
+
|
907
|
+
<tr class="vc_row_odd" id="l75">
|
908
|
+
<td class="vc_blame_line">75 :</td>
|
909
|
+
<td class="vc_blame_author"> </td>
|
910
|
+
<td class="vc_blame_rev"> </td>
|
911
|
+
<td class="vc_blame_text"> def read_regexp(r)
|
912
|
+
</td>
|
913
|
+
</tr>
|
914
|
+
|
915
|
+
|
916
|
+
|
917
|
+
|
918
|
+
<tr class="vc_row_odd" id="l76">
|
919
|
+
<td class="vc_blame_line">76 :</td>
|
920
|
+
<td class="vc_blame_author"> </td>
|
921
|
+
<td class="vc_blame_rev"> </td>
|
922
|
+
<td class="vc_blame_text"> r2 = /^.{#{@buffer_index}}#{r}/m
|
923
|
+
</td>
|
924
|
+
</tr>
|
925
|
+
|
926
|
+
|
927
|
+
|
928
|
+
|
929
|
+
<tr class="vc_row_odd" id="l77">
|
930
|
+
<td class="vc_blame_line">77 :</td>
|
931
|
+
<td class="vc_blame_author"> </td>
|
932
|
+
<td class="vc_blame_rev"> </td>
|
933
|
+
<td class="vc_blame_text"> m = r2.match @buffer
|
934
|
+
</td>
|
935
|
+
</tr>
|
936
|
+
|
937
|
+
|
938
|
+
|
939
|
+
|
940
|
+
<tr class="vc_row_odd" id="l78">
|
941
|
+
<td class="vc_blame_line">78 :</td>
|
942
|
+
<td class="vc_blame_author"> </td>
|
943
|
+
<td class="vc_blame_rev"> </td>
|
944
|
+
<td class="vc_blame_text"> if m
|
945
|
+
</td>
|
946
|
+
</tr>
|
947
|
+
|
948
|
+
|
949
|
+
|
950
|
+
|
951
|
+
<tr class="vc_row_odd" id="l79">
|
952
|
+
<td class="vc_blame_line">79 :</td>
|
953
|
+
<td class="vc_blame_author"> </td>
|
954
|
+
<td class="vc_blame_rev"> </td>
|
955
|
+
<td class="vc_blame_text"> consumed = m.to_s.size - @buffer_index
|
956
|
+
</td>
|
957
|
+
</tr>
|
958
|
+
|
959
|
+
|
960
|
+
|
961
|
+
|
962
|
+
<tr class="vc_row_odd" id="l80">
|
963
|
+
<td class="vc_blame_line">80 :</td>
|
964
|
+
<td class="vc_blame_author"> </td>
|
965
|
+
<td class="vc_blame_rev"> </td>
|
966
|
+
<td class="vc_blame_text"># puts "Consumed #{consumed} chars (entire is #{m.to_s.inspect})"
|
967
|
+
</td>
|
968
|
+
</tr>
|
969
|
+
|
970
|
+
|
971
|
+
|
972
|
+
|
973
|
+
<tr class="vc_row_odd" id="l81">
|
974
|
+
<td class="vc_blame_line">81 :</td>
|
975
|
+
<td class="vc_blame_author"> </td>
|
976
|
+
<td class="vc_blame_rev"> </td>
|
977
|
+
<td class="vc_blame_text"> ignore_chars consumed
|
978
|
+
</td>
|
979
|
+
</tr>
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
<tr class="vc_row_odd" id="l82">
|
985
|
+
<td class="vc_blame_line">82 :</td>
|
986
|
+
<td class="vc_blame_author"> </td>
|
987
|
+
<td class="vc_blame_rev"> </td>
|
988
|
+
<td class="vc_blame_text"> else
|
989
|
+
</td>
|
990
|
+
</tr>
|
991
|
+
|
992
|
+
|
993
|
+
|
994
|
+
|
995
|
+
<tr class="vc_row_odd" id="l83">
|
996
|
+
<td class="vc_blame_line">83 :</td>
|
997
|
+
<td class="vc_blame_author"> </td>
|
998
|
+
<td class="vc_blame_rev"> </td>
|
999
|
+
<td class="vc_blame_text"># puts "Could not read regexp #{r2.inspect} from buffer "+
|
1000
|
+
</td>
|
1001
|
+
</tr>
|
1002
|
+
|
1003
|
+
|
1004
|
+
|
1005
|
+
|
1006
|
+
<tr class="vc_row_odd" id="l84">
|
1007
|
+
<td class="vc_blame_line">84 :</td>
|
1008
|
+
<td class="vc_blame_author"> </td>
|
1009
|
+
<td class="vc_blame_rev"> </td>
|
1010
|
+
<td class="vc_blame_text"># " index=#{@buffer_index}"
|
1011
|
+
</td>
|
1012
|
+
</tr>
|
1013
|
+
|
1014
|
+
|
1015
|
+
|
1016
|
+
|
1017
|
+
<tr class="vc_row_odd" id="l85">
|
1018
|
+
<td class="vc_blame_line">85 :</td>
|
1019
|
+
<td class="vc_blame_author"> </td>
|
1020
|
+
<td class="vc_blame_rev"> </td>
|
1021
|
+
<td class="vc_blame_text"># puts "Cur chars = #{cur_chars(20).inspect}"
|
1022
|
+
</td>
|
1023
|
+
</tr>
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
<tr class="vc_row_odd" id="l86">
|
1029
|
+
<td class="vc_blame_line">86 :</td>
|
1030
|
+
<td class="vc_blame_author"> </td>
|
1031
|
+
<td class="vc_blame_rev"> </td>
|
1032
|
+
<td class="vc_blame_text"># puts "Matches? = #{cur_chars(20) =~ r}"
|
1033
|
+
</td>
|
1034
|
+
</tr>
|
1035
|
+
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
1039
|
+
<tr class="vc_row_odd" id="l87">
|
1040
|
+
<td class="vc_blame_line">87 :</td>
|
1041
|
+
<td class="vc_blame_author"> </td>
|
1042
|
+
<td class="vc_blame_rev"> </td>
|
1043
|
+
<td class="vc_blame_text"> end
|
1044
|
+
</td>
|
1045
|
+
</tr>
|
1046
|
+
|
1047
|
+
|
1048
|
+
|
1049
|
+
|
1050
|
+
<tr class="vc_row_odd" id="l88">
|
1051
|
+
<td class="vc_blame_line">88 :</td>
|
1052
|
+
<td class="vc_blame_author"> </td>
|
1053
|
+
<td class="vc_blame_rev"> </td>
|
1054
|
+
<td class="vc_blame_text"> m
|
1055
|
+
</td>
|
1056
|
+
</tr>
|
1057
|
+
|
1058
|
+
|
1059
|
+
|
1060
|
+
|
1061
|
+
<tr class="vc_row_odd" id="l89">
|
1062
|
+
<td class="vc_blame_line">89 :</td>
|
1063
|
+
<td class="vc_blame_author"> </td>
|
1064
|
+
<td class="vc_blame_rev"> </td>
|
1065
|
+
<td class="vc_blame_text"> end
|
1066
|
+
</td>
|
1067
|
+
</tr>
|
1068
|
+
|
1069
|
+
|
1070
|
+
|
1071
|
+
|
1072
|
+
<tr class="vc_row_odd" id="l90">
|
1073
|
+
<td class="vc_blame_line">90 :</td>
|
1074
|
+
<td class="vc_blame_author"> </td>
|
1075
|
+
<td class="vc_blame_rev"> </td>
|
1076
|
+
<td class="vc_blame_text">
|
1077
|
+
</td>
|
1078
|
+
</tr>
|
1079
|
+
|
1080
|
+
|
1081
|
+
|
1082
|
+
|
1083
|
+
<tr class="vc_row_odd" id="l91">
|
1084
|
+
<td class="vc_blame_line">91 :</td>
|
1085
|
+
<td class="vc_blame_author"> </td>
|
1086
|
+
<td class="vc_blame_rev"> </td>
|
1087
|
+
<td class="vc_blame_text"> def consume_whitespace
|
1088
|
+
</td>
|
1089
|
+
</tr>
|
1090
|
+
|
1091
|
+
|
1092
|
+
|
1093
|
+
|
1094
|
+
<tr class="vc_row_odd" id="l92">
|
1095
|
+
<td class="vc_blame_line">92 :</td>
|
1096
|
+
<td class="vc_blame_author"> </td>
|
1097
|
+
<td class="vc_blame_rev"> </td>
|
1098
|
+
<td class="vc_blame_text"> while c = cur_char
|
1099
|
+
</td>
|
1100
|
+
</tr>
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
<tr class="vc_row_odd" id="l93">
|
1106
|
+
<td class="vc_blame_line">93 :</td>
|
1107
|
+
<td class="vc_blame_author"> </td>
|
1108
|
+
<td class="vc_blame_rev"> </td>
|
1109
|
+
<td class="vc_blame_text"> if (c == 32 || c == ?\t)
|
1110
|
+
</td>
|
1111
|
+
</tr>
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
<tr class="vc_row_odd" id="l94">
|
1117
|
+
<td class="vc_blame_line">94 :</td>
|
1118
|
+
<td class="vc_blame_author"> </td>
|
1119
|
+
<td class="vc_blame_rev"> </td>
|
1120
|
+
<td class="vc_blame_text"># puts "ignoring #{c}"
|
1121
|
+
</td>
|
1122
|
+
</tr>
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
1127
|
+
<tr class="vc_row_odd" id="l95">
|
1128
|
+
<td class="vc_blame_line">95 :</td>
|
1129
|
+
<td class="vc_blame_author"> </td>
|
1130
|
+
<td class="vc_blame_rev"> </td>
|
1131
|
+
<td class="vc_blame_text"> ignore_char
|
1132
|
+
</td>
|
1133
|
+
</tr>
|
1134
|
+
|
1135
|
+
|
1136
|
+
|
1137
|
+
|
1138
|
+
<tr class="vc_row_odd" id="l96">
|
1139
|
+
<td class="vc_blame_line">96 :</td>
|
1140
|
+
<td class="vc_blame_author"> </td>
|
1141
|
+
<td class="vc_blame_rev"> </td>
|
1142
|
+
<td class="vc_blame_text"> else
|
1143
|
+
</td>
|
1144
|
+
</tr>
|
1145
|
+
|
1146
|
+
|
1147
|
+
|
1148
|
+
|
1149
|
+
<tr class="vc_row_odd" id="l97">
|
1150
|
+
<td class="vc_blame_line">97 :</td>
|
1151
|
+
<td class="vc_blame_author"> </td>
|
1152
|
+
<td class="vc_blame_rev"> </td>
|
1153
|
+
<td class="vc_blame_text"># puts "#{c} is not ws: "<<c
|
1154
|
+
</td>
|
1155
|
+
</tr>
|
1156
|
+
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
1160
|
+
<tr class="vc_row_odd" id="l98">
|
1161
|
+
<td class="vc_blame_line">98 :</td>
|
1162
|
+
<td class="vc_blame_author"> </td>
|
1163
|
+
<td class="vc_blame_rev"> </td>
|
1164
|
+
<td class="vc_blame_text"> break
|
1165
|
+
</td>
|
1166
|
+
</tr>
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
<tr class="vc_row_odd" id="l99">
|
1172
|
+
<td class="vc_blame_line">99 :</td>
|
1173
|
+
<td class="vc_blame_author"> </td>
|
1174
|
+
<td class="vc_blame_rev"> </td>
|
1175
|
+
<td class="vc_blame_text"> end
|
1176
|
+
</td>
|
1177
|
+
</tr>
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
1181
|
+
|
1182
|
+
<tr class="vc_row_odd" id="l100">
|
1183
|
+
<td class="vc_blame_line">100 :</td>
|
1184
|
+
<td class="vc_blame_author"> </td>
|
1185
|
+
<td class="vc_blame_rev"> </td>
|
1186
|
+
<td class="vc_blame_text"> end
|
1187
|
+
</td>
|
1188
|
+
</tr>
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
<tr class="vc_row_odd" id="l101">
|
1194
|
+
<td class="vc_blame_line">101 :</td>
|
1195
|
+
<td class="vc_blame_author"> </td>
|
1196
|
+
<td class="vc_blame_rev"> </td>
|
1197
|
+
<td class="vc_blame_text"> end
|
1198
|
+
</td>
|
1199
|
+
</tr>
|
1200
|
+
|
1201
|
+
|
1202
|
+
|
1203
|
+
|
1204
|
+
<tr class="vc_row_odd" id="l102">
|
1205
|
+
<td class="vc_blame_line">102 :</td>
|
1206
|
+
<td class="vc_blame_author"> </td>
|
1207
|
+
<td class="vc_blame_rev"> </td>
|
1208
|
+
<td class="vc_blame_text">
|
1209
|
+
</td>
|
1210
|
+
</tr>
|
1211
|
+
|
1212
|
+
|
1213
|
+
|
1214
|
+
|
1215
|
+
<tr class="vc_row_odd" id="l103">
|
1216
|
+
<td class="vc_blame_line">103 :</td>
|
1217
|
+
<td class="vc_blame_author"> </td>
|
1218
|
+
<td class="vc_blame_rev"> </td>
|
1219
|
+
<td class="vc_blame_text"> def read_text_chars(out)
|
1220
|
+
</td>
|
1221
|
+
</tr>
|
1222
|
+
|
1223
|
+
|
1224
|
+
|
1225
|
+
|
1226
|
+
<tr class="vc_row_odd" id="l104">
|
1227
|
+
<td class="vc_blame_line">104 :</td>
|
1228
|
+
<td class="vc_blame_author"> </td>
|
1229
|
+
<td class="vc_blame_rev"> </td>
|
1230
|
+
<td class="vc_blame_text"> s = @buffer.size; c=nil
|
1231
|
+
</td>
|
1232
|
+
</tr>
|
1233
|
+
|
1234
|
+
|
1235
|
+
|
1236
|
+
|
1237
|
+
<tr class="vc_row_odd" id="l105">
|
1238
|
+
<td class="vc_blame_line">105 :</td>
|
1239
|
+
<td class="vc_blame_author"> </td>
|
1240
|
+
<td class="vc_blame_rev"> </td>
|
1241
|
+
<td class="vc_blame_text"> while @buffer_index < s && (c=@buffer[@buffer_index]) &&
|
1242
|
+
</td>
|
1243
|
+
</tr>
|
1244
|
+
|
1245
|
+
|
1246
|
+
|
1247
|
+
|
1248
|
+
<tr class="vc_row_odd" id="l106">
|
1249
|
+
<td class="vc_blame_line">106 :</td>
|
1250
|
+
<td class="vc_blame_author"> </td>
|
1251
|
+
<td class="vc_blame_rev"> </td>
|
1252
|
+
<td class="vc_blame_text"> ((c>=?a && c<=?z) || (c>=?A && c<=?Z))
|
1253
|
+
</td>
|
1254
|
+
</tr>
|
1255
|
+
|
1256
|
+
|
1257
|
+
|
1258
|
+
|
1259
|
+
<tr class="vc_row_odd" id="l107">
|
1260
|
+
<td class="vc_blame_line">107 :</td>
|
1261
|
+
<td class="vc_blame_author"> </td>
|
1262
|
+
<td class="vc_blame_rev"> </td>
|
1263
|
+
<td class="vc_blame_text"> out << c
|
1264
|
+
</td>
|
1265
|
+
</tr>
|
1266
|
+
|
1267
|
+
|
1268
|
+
|
1269
|
+
|
1270
|
+
<tr class="vc_row_odd" id="l108">
|
1271
|
+
<td class="vc_blame_line">108 :</td>
|
1272
|
+
<td class="vc_blame_author"> </td>
|
1273
|
+
<td class="vc_blame_rev"> </td>
|
1274
|
+
<td class="vc_blame_text"> @buffer_index += 1
|
1275
|
+
</td>
|
1276
|
+
</tr>
|
1277
|
+
|
1278
|
+
|
1279
|
+
|
1280
|
+
|
1281
|
+
<tr class="vc_row_odd" id="l109">
|
1282
|
+
<td class="vc_blame_line">109 :</td>
|
1283
|
+
<td class="vc_blame_author"> </td>
|
1284
|
+
<td class="vc_blame_rev"> </td>
|
1285
|
+
<td class="vc_blame_text"> end
|
1286
|
+
</td>
|
1287
|
+
</tr>
|
1288
|
+
|
1289
|
+
|
1290
|
+
|
1291
|
+
|
1292
|
+
<tr class="vc_row_odd" id="l110">
|
1293
|
+
<td class="vc_blame_line">110 :</td>
|
1294
|
+
<td class="vc_blame_author"> </td>
|
1295
|
+
<td class="vc_blame_rev"> </td>
|
1296
|
+
<td class="vc_blame_text"> end
|
1297
|
+
</td>
|
1298
|
+
</tr>
|
1299
|
+
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
<tr class="vc_row_odd" id="l111">
|
1304
|
+
<td class="vc_blame_line">111 :</td>
|
1305
|
+
<td class="vc_blame_author"> </td>
|
1306
|
+
<td class="vc_blame_rev"> </td>
|
1307
|
+
<td class="vc_blame_text">
|
1308
|
+
</td>
|
1309
|
+
</tr>
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
1313
|
+
|
1314
|
+
<tr class="vc_row_odd" id="l112">
|
1315
|
+
<td class="vc_blame_line">112 :</td>
|
1316
|
+
<td class="vc_blame_author"> </td>
|
1317
|
+
<td class="vc_blame_rev"> </td>
|
1318
|
+
<td class="vc_blame_text"> def describe
|
1319
|
+
</td>
|
1320
|
+
</tr>
|
1321
|
+
|
1322
|
+
|
1323
|
+
|
1324
|
+
|
1325
|
+
<tr class="vc_row_odd" id="l113">
|
1326
|
+
<td class="vc_blame_line">113 :</td>
|
1327
|
+
<td class="vc_blame_author"> </td>
|
1328
|
+
<td class="vc_blame_rev"> </td>
|
1329
|
+
<td class="vc_blame_text">
|
1330
|
+
</td>
|
1331
|
+
</tr>
|
1332
|
+
|
1333
|
+
|
1334
|
+
|
1335
|
+
|
1336
|
+
<tr class="vc_row_odd" id="l114">
|
1337
|
+
<td class="vc_blame_line">114 :</td>
|
1338
|
+
<td class="vc_blame_author"> </td>
|
1339
|
+
<td class="vc_blame_rev"> </td>
|
1340
|
+
<td class="vc_blame_text"> len = 75
|
1341
|
+
</td>
|
1342
|
+
</tr>
|
1343
|
+
|
1344
|
+
|
1345
|
+
|
1346
|
+
|
1347
|
+
<tr class="vc_row_odd" id="l115">
|
1348
|
+
<td class="vc_blame_line">115 :</td>
|
1349
|
+
<td class="vc_blame_author"> </td>
|
1350
|
+
<td class="vc_blame_rev"> </td>
|
1351
|
+
<td class="vc_blame_text"> num_before = [len/2, @buffer_index].min
|
1352
|
+
</td>
|
1353
|
+
</tr>
|
1354
|
+
|
1355
|
+
|
1356
|
+
|
1357
|
+
|
1358
|
+
<tr class="vc_row_odd" id="l116">
|
1359
|
+
<td class="vc_blame_line">116 :</td>
|
1360
|
+
<td class="vc_blame_author"> </td>
|
1361
|
+
<td class="vc_blame_rev"> </td>
|
1362
|
+
<td class="vc_blame_text"> num_after = [len/2, @buffer.size-@buffer_index].min
|
1363
|
+
</td>
|
1364
|
+
</tr>
|
1365
|
+
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1369
|
+
<tr class="vc_row_odd" id="l117">
|
1370
|
+
<td class="vc_blame_line">117 :</td>
|
1371
|
+
<td class="vc_blame_author"> </td>
|
1372
|
+
<td class="vc_blame_rev"> </td>
|
1373
|
+
<td class="vc_blame_text"> num_before_max = @buffer_index
|
1374
|
+
</td>
|
1375
|
+
</tr>
|
1376
|
+
|
1377
|
+
|
1378
|
+
|
1379
|
+
|
1380
|
+
<tr class="vc_row_odd" id="l118">
|
1381
|
+
<td class="vc_blame_line">118 :</td>
|
1382
|
+
<td class="vc_blame_author"> </td>
|
1383
|
+
<td class="vc_blame_rev"> </td>
|
1384
|
+
<td class="vc_blame_text"> num_after_max = @buffer.size-@buffer_index
|
1385
|
+
</td>
|
1386
|
+
</tr>
|
1387
|
+
|
1388
|
+
|
1389
|
+
|
1390
|
+
|
1391
|
+
<tr class="vc_row_odd" id="l119">
|
1392
|
+
<td class="vc_blame_line">119 :</td>
|
1393
|
+
<td class="vc_blame_author"> </td>
|
1394
|
+
<td class="vc_blame_rev"> </td>
|
1395
|
+
<td class="vc_blame_text">
|
1396
|
+
</td>
|
1397
|
+
</tr>
|
1398
|
+
|
1399
|
+
|
1400
|
+
|
1401
|
+
|
1402
|
+
<tr class="vc_row_odd" id="l120">
|
1403
|
+
<td class="vc_blame_line">120 :</td>
|
1404
|
+
<td class="vc_blame_author"> </td>
|
1405
|
+
<td class="vc_blame_rev"> </td>
|
1406
|
+
<td class="vc_blame_text"># puts "num #{num_before} #{num_after}"
|
1407
|
+
</td>
|
1408
|
+
</tr>
|
1409
|
+
|
1410
|
+
|
1411
|
+
|
1412
|
+
|
1413
|
+
<tr class="vc_row_odd" id="l121">
|
1414
|
+
<td class="vc_blame_line">121 :</td>
|
1415
|
+
<td class="vc_blame_author"> </td>
|
1416
|
+
<td class="vc_blame_rev"> </td>
|
1417
|
+
<td class="vc_blame_text"> num_before = [num_before_max, len-num_after].min
|
1418
|
+
</td>
|
1419
|
+
</tr>
|
1420
|
+
|
1421
|
+
|
1422
|
+
|
1423
|
+
|
1424
|
+
<tr class="vc_row_odd" id="l122">
|
1425
|
+
<td class="vc_blame_line">122 :</td>
|
1426
|
+
<td class="vc_blame_author"> </td>
|
1427
|
+
<td class="vc_blame_rev"> </td>
|
1428
|
+
<td class="vc_blame_text"> num_after = [num_after_max, len-num_before].min
|
1429
|
+
</td>
|
1430
|
+
</tr>
|
1431
|
+
|
1432
|
+
|
1433
|
+
|
1434
|
+
|
1435
|
+
<tr class="vc_row_odd" id="l123">
|
1436
|
+
<td class="vc_blame_line">123 :</td>
|
1437
|
+
<td class="vc_blame_author"> </td>
|
1438
|
+
<td class="vc_blame_rev"> </td>
|
1439
|
+
<td class="vc_blame_text"># puts "num #{num_before} #{num_after}"
|
1440
|
+
</td>
|
1441
|
+
</tr>
|
1442
|
+
|
1443
|
+
|
1444
|
+
|
1445
|
+
|
1446
|
+
<tr class="vc_row_odd" id="l124">
|
1447
|
+
<td class="vc_blame_line">124 :</td>
|
1448
|
+
<td class="vc_blame_author"> </td>
|
1449
|
+
<td class="vc_blame_rev"> </td>
|
1450
|
+
<td class="vc_blame_text">
|
1451
|
+
</td>
|
1452
|
+
</tr>
|
1453
|
+
|
1454
|
+
|
1455
|
+
|
1456
|
+
|
1457
|
+
<tr class="vc_row_odd" id="l125">
|
1458
|
+
<td class="vc_blame_line">125 :</td>
|
1459
|
+
<td class="vc_blame_author"> </td>
|
1460
|
+
<td class="vc_blame_rev"> </td>
|
1461
|
+
<td class="vc_blame_text"> index_start = [@buffer_index - num_before, 0].max
|
1462
|
+
</td>
|
1463
|
+
</tr>
|
1464
|
+
|
1465
|
+
|
1466
|
+
|
1467
|
+
|
1468
|
+
<tr class="vc_row_odd" id="l126">
|
1469
|
+
<td class="vc_blame_line">126 :</td>
|
1470
|
+
<td class="vc_blame_author"> </td>
|
1471
|
+
<td class="vc_blame_rev"> </td>
|
1472
|
+
<td class="vc_blame_text"> index_end = [@buffer_index + num_after, @buffer.size].min
|
1473
|
+
</td>
|
1474
|
+
</tr>
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
1478
|
+
|
1479
|
+
<tr class="vc_row_odd" id="l127">
|
1480
|
+
<td class="vc_blame_line">127 :</td>
|
1481
|
+
<td class="vc_blame_author"> </td>
|
1482
|
+
<td class="vc_blame_rev"> </td>
|
1483
|
+
<td class="vc_blame_text">
|
1484
|
+
</td>
|
1485
|
+
</tr>
|
1486
|
+
|
1487
|
+
|
1488
|
+
|
1489
|
+
|
1490
|
+
<tr class="vc_row_odd" id="l128">
|
1491
|
+
<td class="vc_blame_line">128 :</td>
|
1492
|
+
<td class="vc_blame_author"> </td>
|
1493
|
+
<td class="vc_blame_rev"> </td>
|
1494
|
+
<td class="vc_blame_text"> size = index_end- index_start
|
1495
|
+
</td>
|
1496
|
+
</tr>
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
|
1501
|
+
<tr class="vc_row_odd" id="l129">
|
1502
|
+
<td class="vc_blame_line">129 :</td>
|
1503
|
+
<td class="vc_blame_author"> </td>
|
1504
|
+
<td class="vc_blame_rev"> </td>
|
1505
|
+
<td class="vc_blame_text">
|
1506
|
+
</td>
|
1507
|
+
</tr>
|
1508
|
+
|
1509
|
+
|
1510
|
+
|
1511
|
+
|
1512
|
+
<tr class="vc_row_odd" id="l130">
|
1513
|
+
<td class="vc_blame_line">130 :</td>
|
1514
|
+
<td class="vc_blame_author"> </td>
|
1515
|
+
<td class="vc_blame_rev"> </td>
|
1516
|
+
<td class="vc_blame_text"># puts "- #{index_start} #{size}"
|
1517
|
+
</td>
|
1518
|
+
</tr>
|
1519
|
+
|
1520
|
+
|
1521
|
+
|
1522
|
+
|
1523
|
+
<tr class="vc_row_odd" id="l131">
|
1524
|
+
<td class="vc_blame_line">131 :</td>
|
1525
|
+
<td class="vc_blame_author"> </td>
|
1526
|
+
<td class="vc_blame_rev"> </td>
|
1527
|
+
<td class="vc_blame_text">
|
1528
|
+
</td>
|
1529
|
+
</tr>
|
1530
|
+
|
1531
|
+
|
1532
|
+
|
1533
|
+
|
1534
|
+
<tr class="vc_row_odd" id="l132">
|
1535
|
+
<td class="vc_blame_line">132 :</td>
|
1536
|
+
<td class="vc_blame_author"> </td>
|
1537
|
+
<td class="vc_blame_rev"> </td>
|
1538
|
+
<td class="vc_blame_text"> str = @buffer[index_start, size]
|
1539
|
+
</td>
|
1540
|
+
</tr>
|
1541
|
+
|
1542
|
+
|
1543
|
+
|
1544
|
+
|
1545
|
+
<tr class="vc_row_odd" id="l133">
|
1546
|
+
<td class="vc_blame_line">133 :</td>
|
1547
|
+
<td class="vc_blame_author"> </td>
|
1548
|
+
<td class="vc_blame_rev"> </td>
|
1549
|
+
<td class="vc_blame_text"> str.gsub!("\n",'N')
|
1550
|
+
</td>
|
1551
|
+
</tr>
|
1552
|
+
|
1553
|
+
|
1554
|
+
|
1555
|
+
|
1556
|
+
<tr class="vc_row_odd" id="l134">
|
1557
|
+
<td class="vc_blame_line">134 :</td>
|
1558
|
+
<td class="vc_blame_author"> </td>
|
1559
|
+
<td class="vc_blame_rev"> </td>
|
1560
|
+
<td class="vc_blame_text"> str.gsub!("\t",'T')
|
1561
|
+
</td>
|
1562
|
+
</tr>
|
1563
|
+
|
1564
|
+
|
1565
|
+
|
1566
|
+
|
1567
|
+
<tr class="vc_row_odd" id="l135">
|
1568
|
+
<td class="vc_blame_line">135 :</td>
|
1569
|
+
<td class="vc_blame_author"> </td>
|
1570
|
+
<td class="vc_blame_rev"> </td>
|
1571
|
+
<td class="vc_blame_text">
|
1572
|
+
</td>
|
1573
|
+
</tr>
|
1574
|
+
|
1575
|
+
|
1576
|
+
|
1577
|
+
|
1578
|
+
<tr class="vc_row_odd" id="l136">
|
1579
|
+
<td class="vc_blame_line">136 :</td>
|
1580
|
+
<td class="vc_blame_author"> </td>
|
1581
|
+
<td class="vc_blame_rev"> </td>
|
1582
|
+
<td class="vc_blame_text"> if index_end == @buffer.size
|
1583
|
+
</td>
|
1584
|
+
</tr>
|
1585
|
+
|
1586
|
+
|
1587
|
+
|
1588
|
+
|
1589
|
+
<tr class="vc_row_odd" id="l137">
|
1590
|
+
<td class="vc_blame_line">137 :</td>
|
1591
|
+
<td class="vc_blame_author"> </td>
|
1592
|
+
<td class="vc_blame_rev"> </td>
|
1593
|
+
<td class="vc_blame_text"> str += "EOF"
|
1594
|
+
</td>
|
1595
|
+
</tr>
|
1596
|
+
|
1597
|
+
|
1598
|
+
|
1599
|
+
|
1600
|
+
<tr class="vc_row_odd" id="l138">
|
1601
|
+
<td class="vc_blame_line">138 :</td>
|
1602
|
+
<td class="vc_blame_author"> </td>
|
1603
|
+
<td class="vc_blame_rev"> </td>
|
1604
|
+
<td class="vc_blame_text"> end
|
1605
|
+
</td>
|
1606
|
+
</tr>
|
1607
|
+
|
1608
|
+
|
1609
|
+
|
1610
|
+
|
1611
|
+
<tr class="vc_row_odd" id="l139">
|
1612
|
+
<td class="vc_blame_line">139 :</td>
|
1613
|
+
<td class="vc_blame_author"> </td>
|
1614
|
+
<td class="vc_blame_rev"> </td>
|
1615
|
+
<td class="vc_blame_text">
|
1616
|
+
</td>
|
1617
|
+
</tr>
|
1618
|
+
|
1619
|
+
|
1620
|
+
|
1621
|
+
|
1622
|
+
<tr class="vc_row_odd" id="l140">
|
1623
|
+
<td class="vc_blame_line">140 :</td>
|
1624
|
+
<td class="vc_blame_author"> </td>
|
1625
|
+
<td class="vc_blame_rev"> </td>
|
1626
|
+
<td class="vc_blame_text"> pre_s = @buffer_index-index_start
|
1627
|
+
</td>
|
1628
|
+
</tr>
|
1629
|
+
|
1630
|
+
|
1631
|
+
|
1632
|
+
|
1633
|
+
<tr class="vc_row_odd" id="l141">
|
1634
|
+
<td class="vc_blame_line">141 :</td>
|
1635
|
+
<td class="vc_blame_author"> </td>
|
1636
|
+
<td class="vc_blame_rev"> </td>
|
1637
|
+
<td class="vc_blame_text"> pre_s = [pre_s, 0].max
|
1638
|
+
</td>
|
1639
|
+
</tr>
|
1640
|
+
|
1641
|
+
|
1642
|
+
|
1643
|
+
|
1644
|
+
<tr class="vc_row_odd" id="l142">
|
1645
|
+
<td class="vc_blame_line">142 :</td>
|
1646
|
+
<td class="vc_blame_author"> </td>
|
1647
|
+
<td class="vc_blame_rev"> </td>
|
1648
|
+
<td class="vc_blame_text"> pre_s2 = [len-pre_s,0].max
|
1649
|
+
</td>
|
1650
|
+
</tr>
|
1651
|
+
|
1652
|
+
|
1653
|
+
|
1654
|
+
|
1655
|
+
<tr class="vc_row_odd" id="l143">
|
1656
|
+
<td class="vc_blame_line">143 :</td>
|
1657
|
+
<td class="vc_blame_author"> </td>
|
1658
|
+
<td class="vc_blame_rev"> </td>
|
1659
|
+
<td class="vc_blame_text"># puts "pre_S = #{pre_s}"
|
1660
|
+
</td>
|
1661
|
+
</tr>
|
1662
|
+
|
1663
|
+
|
1664
|
+
|
1665
|
+
|
1666
|
+
<tr class="vc_row_odd" id="l144">
|
1667
|
+
<td class="vc_blame_line">144 :</td>
|
1668
|
+
<td class="vc_blame_author"> </td>
|
1669
|
+
<td class="vc_blame_rev"> </td>
|
1670
|
+
<td class="vc_blame_text"> pre =" "*(pre_s)
|
1671
|
+
</td>
|
1672
|
+
</tr>
|
1673
|
+
|
1674
|
+
|
1675
|
+
|
1676
|
+
|
1677
|
+
<tr class="vc_row_odd" id="l145">
|
1678
|
+
<td class="vc_blame_line">145 :</td>
|
1679
|
+
<td class="vc_blame_author"> </td>
|
1680
|
+
<td class="vc_blame_rev"> </td>
|
1681
|
+
<td class="vc_blame_text">
|
1682
|
+
</td>
|
1683
|
+
</tr>
|
1684
|
+
|
1685
|
+
|
1686
|
+
|
1687
|
+
|
1688
|
+
<tr class="vc_row_odd" id="l146">
|
1689
|
+
<td class="vc_blame_line">146 :</td>
|
1690
|
+
<td class="vc_blame_author"> </td>
|
1691
|
+
<td class="vc_blame_rev"> </td>
|
1692
|
+
<td class="vc_blame_text"> "-"*len+"\n"+
|
1693
|
+
</td>
|
1694
|
+
</tr>
|
1695
|
+
|
1696
|
+
|
1697
|
+
|
1698
|
+
|
1699
|
+
<tr class="vc_row_odd" id="l147">
|
1700
|
+
<td class="vc_blame_line">147 :</td>
|
1701
|
+
<td class="vc_blame_author"> </td>
|
1702
|
+
<td class="vc_blame_rev"> </td>
|
1703
|
+
<td class="vc_blame_text"> str + "\n" +
|
1704
|
+
</td>
|
1705
|
+
</tr>
|
1706
|
+
|
1707
|
+
|
1708
|
+
|
1709
|
+
|
1710
|
+
<tr class="vc_row_odd" id="l148">
|
1711
|
+
<td class="vc_blame_line">148 :</td>
|
1712
|
+
<td class="vc_blame_author"> </td>
|
1713
|
+
<td class="vc_blame_rev"> </td>
|
1714
|
+
<td class="vc_blame_text"> "-"*pre_s + "|" + "-"*(pre_s2)+"\n"+
|
1715
|
+
</td>
|
1716
|
+
</tr>
|
1717
|
+
|
1718
|
+
|
1719
|
+
|
1720
|
+
|
1721
|
+
<tr class="vc_row_odd" id="l149">
|
1722
|
+
<td class="vc_blame_line">149 :</td>
|
1723
|
+
<td class="vc_blame_author"> </td>
|
1724
|
+
<td class="vc_blame_rev"> </td>
|
1725
|
+
<td class="vc_blame_text"># pre + "|\n"+
|
1726
|
+
</td>
|
1727
|
+
</tr>
|
1728
|
+
|
1729
|
+
|
1730
|
+
|
1731
|
+
|
1732
|
+
<tr class="vc_row_odd" id="l150">
|
1733
|
+
<td class="vc_blame_line">150 :</td>
|
1734
|
+
<td class="vc_blame_author"> </td>
|
1735
|
+
<td class="vc_blame_rev"> </td>
|
1736
|
+
<td class="vc_blame_text"> pre + "+--- Byte #{@buffer_index}\n"+
|
1737
|
+
</td>
|
1738
|
+
</tr>
|
1739
|
+
|
1740
|
+
|
1741
|
+
|
1742
|
+
|
1743
|
+
<tr class="vc_row_odd" id="l151">
|
1744
|
+
<td class="vc_blame_line">151 :</td>
|
1745
|
+
<td class="vc_blame_author"> </td>
|
1746
|
+
<td class="vc_blame_rev"> </td>
|
1747
|
+
<td class="vc_blame_text">
|
1748
|
+
</td>
|
1749
|
+
</tr>
|
1750
|
+
|
1751
|
+
|
1752
|
+
|
1753
|
+
|
1754
|
+
<tr class="vc_row_odd" id="l152">
|
1755
|
+
<td class="vc_blame_line">152 :</td>
|
1756
|
+
<td class="vc_blame_author"> </td>
|
1757
|
+
<td class="vc_blame_rev"> </td>
|
1758
|
+
<td class="vc_blame_text"> "Shown bytes [#{index_start} to #{size}] of #{@buffer.size}:\n"+
|
1759
|
+
</td>
|
1760
|
+
</tr>
|
1761
|
+
|
1762
|
+
|
1763
|
+
|
1764
|
+
|
1765
|
+
<tr class="vc_row_odd" id="l153">
|
1766
|
+
<td class="vc_blame_line">153 :</td>
|
1767
|
+
<td class="vc_blame_author"> </td>
|
1768
|
+
<td class="vc_blame_rev"> </td>
|
1769
|
+
<td class="vc_blame_text"> add_tabs(@buffer,1,">")
|
1770
|
+
</td>
|
1771
|
+
</tr>
|
1772
|
+
|
1773
|
+
|
1774
|
+
|
1775
|
+
|
1776
|
+
<tr class="vc_row_odd" id="l154">
|
1777
|
+
<td class="vc_blame_line">154 :</td>
|
1778
|
+
<td class="vc_blame_author"> </td>
|
1779
|
+
<td class="vc_blame_rev"> </td>
|
1780
|
+
<td class="vc_blame_text">
|
1781
|
+
</td>
|
1782
|
+
</tr>
|
1783
|
+
|
1784
|
+
|
1785
|
+
|
1786
|
+
|
1787
|
+
<tr class="vc_row_odd" id="l155">
|
1788
|
+
<td class="vc_blame_line">155 :</td>
|
1789
|
+
<td class="vc_blame_author"> </td>
|
1790
|
+
<td class="vc_blame_rev"> </td>
|
1791
|
+
<td class="vc_blame_text"># "CharSource: At character #{@buffer_index} of block "+
|
1792
|
+
</td>
|
1793
|
+
</tr>
|
1794
|
+
|
1795
|
+
|
1796
|
+
|
1797
|
+
|
1798
|
+
<tr class="vc_row_odd" id="l156">
|
1799
|
+
<td class="vc_blame_line">156 :</td>
|
1800
|
+
<td class="vc_blame_author"> </td>
|
1801
|
+
<td class="vc_blame_rev"> </td>
|
1802
|
+
<td class="vc_blame_text"># " beginning with:\n #{@buffer[0,50].inspect} ...\n"+
|
1803
|
+
</td>
|
1804
|
+
</tr>
|
1805
|
+
|
1806
|
+
|
1807
|
+
|
1808
|
+
|
1809
|
+
<tr class="vc_row_odd" id="l157">
|
1810
|
+
<td class="vc_blame_line">157 :</td>
|
1811
|
+
<td class="vc_blame_author"> </td>
|
1812
|
+
<td class="vc_blame_rev"> </td>
|
1813
|
+
<td class="vc_blame_text"># " before: \n ... #{cur_chars(50).inspect} ... "
|
1814
|
+
</td>
|
1815
|
+
</tr>
|
1816
|
+
|
1817
|
+
|
1818
|
+
|
1819
|
+
|
1820
|
+
<tr class="vc_row_odd" id="l158">
|
1821
|
+
<td class="vc_blame_line">158 :</td>
|
1822
|
+
<td class="vc_blame_author"> </td>
|
1823
|
+
<td class="vc_blame_rev"> </td>
|
1824
|
+
<td class="vc_blame_text"> end
|
1825
|
+
</td>
|
1826
|
+
</tr>
|
1827
|
+
|
1828
|
+
|
1829
|
+
|
1830
|
+
|
1831
|
+
<tr class="vc_row_odd" id="l159">
|
1832
|
+
<td class="vc_blame_line">159 :</td>
|
1833
|
+
<td class="vc_blame_author"> </td>
|
1834
|
+
<td class="vc_blame_rev"> </td>
|
1835
|
+
<td class="vc_blame_text">
|
1836
|
+
</td>
|
1837
|
+
</tr>
|
1838
|
+
|
1839
|
+
|
1840
|
+
|
1841
|
+
|
1842
|
+
<tr class="vc_row_odd" id="l160">
|
1843
|
+
<td class="vc_blame_line">160 :</td>
|
1844
|
+
<td class="vc_blame_author"> </td>
|
1845
|
+
<td class="vc_blame_rev"> </td>
|
1846
|
+
<td class="vc_blame_text"> def some
|
1847
|
+
</td>
|
1848
|
+
</tr>
|
1849
|
+
|
1850
|
+
|
1851
|
+
|
1852
|
+
|
1853
|
+
<tr class="vc_row_odd" id="l161">
|
1854
|
+
<td class="vc_blame_line">161 :</td>
|
1855
|
+
<td class="vc_blame_author"> </td>
|
1856
|
+
<td class="vc_blame_rev"> </td>
|
1857
|
+
<td class="vc_blame_text"> cur_chars(15).inspect
|
1858
|
+
</td>
|
1859
|
+
</tr>
|
1860
|
+
|
1861
|
+
|
1862
|
+
|
1863
|
+
|
1864
|
+
<tr class="vc_row_odd" id="l162">
|
1865
|
+
<td class="vc_blame_line">162 :</td>
|
1866
|
+
<td class="vc_blame_author"> </td>
|
1867
|
+
<td class="vc_blame_rev"> </td>
|
1868
|
+
<td class="vc_blame_text"> end
|
1869
|
+
</td>
|
1870
|
+
</tr>
|
1871
|
+
|
1872
|
+
|
1873
|
+
|
1874
|
+
|
1875
|
+
<tr class="vc_row_odd" id="l163">
|
1876
|
+
<td class="vc_blame_line">163 :</td>
|
1877
|
+
<td class="vc_blame_author"> </td>
|
1878
|
+
<td class="vc_blame_rev"> </td>
|
1879
|
+
<td class="vc_blame_text">end
|
1880
|
+
</td>
|
1881
|
+
</tr>
|
1882
|
+
|
1883
|
+
|
1884
|
+
|
1885
|
+
|
1886
|
+
|
1887
|
+
|
1888
|
+
|
1889
|
+
<tr class="vc_row_even" id="l164">
|
1890
|
+
<td class="vc_blame_line">164 :</td>
|
1891
|
+
<td class="vc_blame_author">andrea</td>
|
1892
|
+
<td class="vc_blame_rev"><a href="/viewvc/trunk/lib/maruku/input/charsource.rb?root=maruku&view=diff&r1=55&r2=56">56</a></td>
|
1893
|
+
<td class="vc_blame_text">
|
1894
|
+
</td>
|
1895
|
+
</tr>
|
1896
|
+
|
1897
|
+
|
1898
|
+
|
1899
|
+
|
1900
|
+
<tr class="vc_row_even" id="l165">
|
1901
|
+
<td class="vc_blame_line">165 :</td>
|
1902
|
+
<td class="vc_blame_author"> </td>
|
1903
|
+
<td class="vc_blame_rev"> </td>
|
1904
|
+
<td class="vc_blame_text">end end end end
|
1905
|
+
</td>
|
1906
|
+
</tr>
|
1907
|
+
|
1908
|
+
|
1909
|
+
</table>
|
1910
|
+
|
1911
|
+
<hr />
|
1912
|
+
<table>
|
1913
|
+
<tr>
|
1914
|
+
<td><address><a href="mailto:tom@infoether.com">Tom Copeland</a></address></td>
|
1915
|
+
<td style="text-align: right;"><strong><a href="/viewvc/*docroot*/help_rootview.html">ViewVC Help</a></strong></td>
|
1916
|
+
</tr>
|
1917
|
+
<tr>
|
1918
|
+
<td>Powered by <a href="http://viewvc.tigris.org/">ViewVC 1.1-dev</a></td>
|
1919
|
+
<td style="text-align: right;"> </td>
|
1920
|
+
</tr>
|
1921
|
+
</table>
|
1922
|
+
</body>
|
1923
|
+
</html>
|
1924
|
+
|