coderay 0.9.7 → 0.9.8.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/README CHANGED
@@ -18,7 +18,7 @@ And with line numbers.
18
18
  * is what everybody should have on their website
19
19
  * solves all your problems and makes the girls run after you
20
20
 
21
- Version: 0.9.7
21
+ Version: 0.9.8
22
22
  Author:: murphy (Kornelius Kalnbach)
23
23
  Contact:: murphy rubychan de
24
24
  Website:: coderay.rubychan.de[http://coderay.rubychan.de]
@@ -134,7 +134,7 @@ module CodeRay
134
134
  # Minor: feature milestone
135
135
  # Teeny: development state, 0 for pre-release
136
136
  # Revision: Subversion Revision number (generated on rake gem:make)
137
- VERSION = '0.9.7'
137
+ VERSION = '0.9.8'
138
138
 
139
139
  require 'coderay/tokens'
140
140
  require 'coderay/token_classes'
@@ -83,42 +83,47 @@ module FileType
83
83
  end
84
84
 
85
85
  TypeFromExt = {
86
- 'c' => :c,
87
- 'css' => :css,
88
- 'diff' => :diff,
89
- 'dpr' => :delphi,
90
- 'groovy' => :groovy,
91
- 'gvy' => :groovy,
92
- 'h' => :c,
93
- 'htm' => :html,
94
- 'html' => :html,
86
+ 'c' => :c,
87
+ 'cfc' => :xml,
88
+ 'cfm' => :xml,
89
+ 'css' => :css,
90
+ 'diff' => :diff,
91
+ 'dpr' => :delphi,
92
+ 'gemspec' => :ruby,
93
+ 'groovy' => :groovy,
94
+ 'gvy' => :groovy,
95
+ 'h' => :c,
96
+ 'htm' => :html,
97
+ 'html' => :html,
95
98
  'html.erb' => :rhtml,
96
- 'java' => :java,
97
- 'js' => :java_script,
98
- 'json' => :json,
99
- 'mab' => :ruby,
100
- 'pas' => :delphi,
101
- 'patch' => :diff,
102
- 'php' => :php,
103
- 'php3' => :php,
104
- 'php4' => :php,
105
- 'php5' => :php,
106
- 'py' => :python,
107
- 'py3' => :python,
108
- 'pyw' => :python,
109
- 'rake' => :ruby,
99
+ 'java' => :java,
100
+ 'js' => :java_script,
101
+ 'json' => :json,
102
+ 'mab' => :ruby,
103
+ 'pas' => :delphi,
104
+ 'patch' => :diff,
105
+ 'php' => :php,
106
+ 'php3' => :php,
107
+ 'php4' => :php,
108
+ 'php5' => :php,
109
+ 'py' => :python,
110
+ 'py3' => :python,
111
+ 'pyw' => :python,
112
+ 'rake' => :ruby,
110
113
  'raydebug' => :debug,
111
- 'rb' => :ruby,
112
- 'rbw' => :ruby,
113
- 'rhtml' => :rhtml,
114
- 'rxml' => :ruby,
115
- 'sch' => :scheme,
116
- 'sql' => :sql,
117
- 'ss' => :scheme,
118
- 'xhtml' => :xhtml,
119
- 'xml' => :xml,
120
- 'yaml' => :yaml,
121
- 'yml' => :yaml,
114
+ 'rb' => :ruby,
115
+ 'rbw' => :ruby,
116
+ 'rhtml' => :rhtml,
117
+ 'rjs' => :ruby,
118
+ 'rpdf' => :ruby,
119
+ 'rxml' => :ruby,
120
+ 'sch' => :scheme,
121
+ 'sql' => :sql,
122
+ 'ss' => :scheme,
123
+ 'xhtml' => :xhtml,
124
+ 'xml' => :xml,
125
+ 'yaml' => :yaml,
126
+ 'yml' => :yaml,
122
127
  }
123
128
  for cpp_alias in %w[cc cpp cp cxx c++ C hh hpp h++ cu]
124
129
  TypeFromExt[cpp_alias] = :cpp
@@ -48,7 +48,7 @@ module CodeRay
48
48
  plugin_host Scanners
49
49
 
50
50
  # Raised if a Scanner fails while scanning
51
- ScanError = Class.new(Exception)
51
+ ScanError = Class.new(StandardError)
52
52
 
53
53
  require 'coderay/helpers/word_list'
54
54
 
@@ -280,6 +280,14 @@ surrounding code:
280
280
  string[pos, ambit],
281
281
  ]
282
282
  end
283
+
284
+ # Shorthand for scan_until(/\z/).
285
+ # This method also avoids a JRuby 1.9 mode bug.
286
+ def scan_rest
287
+ rest = self.rest
288
+ terminate
289
+ rest
290
+ end
283
291
 
284
292
  end
285
293
 
@@ -9,7 +9,7 @@ module Scanners
9
9
  :comment,
10
10
  :class, :pseudo_class, :type,
11
11
  :constant, :directive,
12
- :key, :value, :operator, :color, :float,
12
+ :key, :value, :operator, :color, :float, :content, :delimiter,
13
13
  :error, :important,
14
14
  ]
15
15
 
@@ -89,7 +89,7 @@ module Scanners
89
89
 
90
90
  until eos?
91
91
 
92
- if (match = scan_until(/(?=#{START_OF_RUBY})/o) || scan_until(/\z/)) and not match.empty?
92
+ if (match = scan_until(/(?=#{START_OF_RUBY})/o) || scan_rest) && !match.empty?
93
93
  @html_scanner.tokenize match
94
94
 
95
95
  elsif match = scan(/#{NITRO_VALUE_BLOCK}/o)
@@ -263,7 +263,7 @@ module Scanners
263
263
  label_expected = true
264
264
  states << :php
265
265
  else
266
- match = scan_until(/(?=#{RE::PHP_START})/o) || scan_until(/\z/)
266
+ match = scan_until(/(?=#{RE::PHP_START})/o) || scan_rest
267
267
  @html_scanner.tokenize match unless match.empty?
268
268
  next
269
269
  end
@@ -11,8 +11,7 @@ module Scanners
11
11
  KINDS_NOT_LOC = [:plain]
12
12
 
13
13
  def scan_tokens tokens, options
14
- text = (scan_until(/\z/) || '')
15
- tokens << [text, :plain]
14
+ tokens << [scan_rest, :plain]
16
15
  end
17
16
 
18
17
  end
@@ -45,7 +45,7 @@ module Scanners
45
45
 
46
46
  until eos?
47
47
 
48
- if (match = scan_until(/(?=#{START_OF_ERB})/o) || scan_until(/\z/)) and not match.empty?
48
+ if (match = scan_until(/(?=#{START_OF_ERB})/o) || scan_rest) and not match.empty?
49
49
  @html_scanner.tokenize match
50
50
 
51
51
  elsif match = scan(/#{ERB_RUBY_BLOCK}/o)
@@ -56,7 +56,7 @@ module Scanners
56
56
 
57
57
  if state.instance_of? patterns::StringState
58
58
  # {{{
59
- match = scan_until(state.pattern) || scan_until(/\z/)
59
+ match = scan_until(state.pattern) || scan_rest
60
60
  tokens << [match, :content] unless match.empty?
61
61
  break if eos?
62
62
 
@@ -33,18 +33,7 @@ module Scanners
33
33
  add(RESERVED_WORDS, :reserved).
34
34
  add(PREDEFINED_CONSTANTS, :pre_constant)
35
35
 
36
- if /\w/u === ''
37
- # MRI 1.8.6, 1.8.7
38
- IDENT = /[^\W\d]\w*/
39
- else
40
- if //.respond_to? :encoding
41
- # MRI 1.9.1, 1.9.2
42
- IDENT = Regexp.new '[\p{L}\p{M}\p{Pc}\p{Sm}&&[^\x00-\x40\x5b-\x5e\x60\x7b-\x7f]][\p{L}\p{M}\p{N}\p{Pc}\p{Sm}&&[^\x00-\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\x7f]]*'
43
- else
44
- # JRuby, Rubinius
45
- IDENT = /[^\x00-\x40\x5b-\x5e\x60\x7b-\x7f][^\x00-\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\x7f]*/
46
- end
47
- end
36
+ IDENT = 'ä'[/[[:alpha:]]/] == 'ä' ? /[[:alpha:]_][[:alnum:]_]*/ : /[^\W\d]\w*/
48
37
 
49
38
  METHOD_NAME = / #{IDENT} [?!]? /ox
50
39
  METHOD_NAME_OPERATOR = /
@@ -6,26 +6,24 @@ module CodeRay module Scanners
6
6
  register_for :sql
7
7
 
8
8
  RESERVED_WORDS = %w(
9
- create database table index trigger drop primary key set select
10
- insert update delete replace into
11
- on from values before and or if exists case when
12
- then else as group order by avg where
13
- join inner outer union engine not
14
- like end using collate show columns begin
9
+ and as avg before begin between by case collate columns create database
10
+ databases delete distinct drop else end engine exists fields from full
11
+ group having if index inner insert into is join key like not on or order
12
+ outer primary prompt replace select set show table tables then trigger
13
+ union update using values when where
15
14
  )
16
15
 
17
16
  PREDEFINED_TYPES = %w(
18
- char varchar enum binary text tinytext mediumtext
19
- longtext blob tinyblob mediumblob longblob timestamp
20
- date time datetime year double decimal float int
21
- integer tinyint mediumint bigint smallint unsigned bit
22
- bool boolean hex bin oct
17
+ bigint bin binary bit blob bool boolean char date datetime decimal
18
+ double enum float hex int integer longblob longtext mediumblob mediumint
19
+ mediumtext oct smallint text time timestamp tinyblob tinyint tinytext
20
+ unsigned varchar year
23
21
  )
24
22
 
25
23
  PREDEFINED_FUNCTIONS = %w( sum cast abs pi count min max avg )
26
24
 
27
25
  DIRECTIVES = %w( auto_increment unique default charset )
28
-
26
+
29
27
  PREDEFINED_CONSTANTS = %w( null true false )
30
28
 
31
29
  IDENT_KIND = CaseIgnoringWordList.new(:ident).
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderay
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
5
- prerelease: false
4
+ hash: 961915948
5
+ prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 7
10
- version: 0.9.7
9
+ - 8
10
+ - pre
11
+ version: 0.9.8.pre
11
12
  platform: ruby
12
13
  authors:
13
14
  - murphy
@@ -15,8 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-01-15 00:00:00 +01:00
19
- default_executable:
19
+ date: 2011-04-30 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: |
@@ -96,24 +96,17 @@ files:
96
96
  - ./lib/coderay.rb
97
97
  - ./Rakefile
98
98
  - ./test/functional/basic.rb
99
- - ./test/functional/basic.rbc
100
99
  - ./test/functional/for_redcloth.rb
101
- - ./test/functional/for_redcloth.rbc
102
100
  - ./test/functional/load_plugin_scanner.rb
103
- - ./test/functional/load_plugin_scanner.rbc
104
101
  - ./test/functional/suite.rb
105
- - ./test/functional/suite.rbc
106
102
  - ./test/functional/vhdl.rb
107
- - ./test/functional/vhdl.rbc
108
103
  - ./test/functional/word_list.rb
109
- - ./test/functional/word_list.rbc
110
104
  - ./lib/README
111
105
  - ./LICENSE
112
106
  - lib/README
113
107
  - FOLDERS
114
108
  - bin/coderay
115
109
  - bin/coderay_stylesheet
116
- has_rdoc: true
117
110
  homepage: http://coderay.rubychan.de
118
111
  licenses: []
119
112
 
@@ -138,16 +131,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
131
  required_rubygems_version: !ruby/object:Gem::Requirement
139
132
  none: false
140
133
  requirements:
141
- - - ">="
134
+ - - ">"
142
135
  - !ruby/object:Gem::Version
143
- hash: 3
136
+ hash: 25
144
137
  segments:
145
- - 0
146
- version: "0"
138
+ - 1
139
+ - 3
140
+ - 1
141
+ version: 1.3.1
147
142
  requirements: []
148
143
 
149
144
  rubyforge_project: coderay
150
- rubygems_version: 1.3.7
145
+ rubygems_version: 1.7.2
151
146
  signing_key:
152
147
  specification_version: 3
153
148
  summary: Fast syntax highlighting for selected languages.
@@ -1,2022 +0,0 @@
1
- !RBIX
2
- 0
3
- x
4
- M
5
- 1
6
- n
7
- n
8
- x
9
- 10
10
- __script__
11
- i
12
- 53
13
- 5
14
- 7
15
- 0
16
- 64
17
- 47
18
- 49
19
- 1
20
- 1
21
- 15
22
- 5
23
- 7
24
- 2
25
- 64
26
- 47
27
- 49
28
- 1
29
- 1
30
- 15
31
- 99
32
- 7
33
- 3
34
- 45
35
- 4
36
- 5
37
- 43
38
- 6
39
- 43
40
- 7
41
- 65
42
- 49
43
- 8
44
- 3
45
- 13
46
- 99
47
- 12
48
- 7
49
- 9
50
- 12
51
- 7
52
- 10
53
- 12
54
- 65
55
- 12
56
- 49
57
- 11
58
- 4
59
- 15
60
- 49
61
- 9
62
- 0
63
- 15
64
- 2
65
- 11
66
- I
67
- 6
68
- I
69
- 0
70
- I
71
- 0
72
- I
73
- 0
74
- n
75
- p
76
- 12
77
- s
78
- 9
79
- test/unit
80
- x
81
- 7
82
- require
83
- s
84
- 7
85
- coderay
86
- x
87
- 9
88
- BasicTest
89
- x
90
- 4
91
- Test
92
- n
93
- x
94
- 4
95
- Unit
96
- x
97
- 8
98
- TestCase
99
- x
100
- 10
101
- open_class
102
- x
103
- 14
104
- __class_init__
105
- M
106
- 1
107
- n
108
- n
109
- x
110
- 9
111
- BasicTest
112
- i
113
- 263
114
- 5
115
- 66
116
- 99
117
- 7
118
- 0
119
- 7
120
- 1
121
- 65
122
- 67
123
- 49
124
- 2
125
- 0
126
- 49
127
- 3
128
- 4
129
- 15
130
- 65
131
- 7
132
- 4
133
- 7
134
- 5
135
- 64
136
- 49
137
- 6
138
- 2
139
- 15
140
- 65
141
- 7
142
- 7
143
- 7
144
- 8
145
- 64
146
- 7
147
- 9
148
- 35
149
- 2
150
- 7
151
- 10
152
- 64
153
- 7
154
- 11
155
- 35
156
- 2
157
- 7
158
- 12
159
- 7
160
- 13
161
- 35
162
- 2
163
- 7
164
- 14
165
- 64
166
- 7
167
- 15
168
- 35
169
- 2
170
- 7
171
- 16
172
- 64
173
- 7
174
- 17
175
- 35
176
- 2
177
- 7
178
- 14
179
- 64
180
- 7
181
- 15
182
- 35
183
- 2
184
- 7
185
- 18
186
- 7
187
- 13
188
- 35
189
- 2
190
- 35
191
- 7
192
- 49
193
- 6
194
- 2
195
- 15
196
- 99
197
- 7
198
- 19
199
- 7
200
- 20
201
- 65
202
- 67
203
- 49
204
- 2
205
- 0
206
- 49
207
- 3
208
- 4
209
- 15
210
- 65
211
- 7
212
- 21
213
- 7
214
- 22
215
- 64
216
- 7
217
- 23
218
- 64
219
- 81
220
- 24
221
- 49
222
- 6
223
- 2
224
- 15
225
- 99
226
- 7
227
- 25
228
- 7
229
- 26
230
- 65
231
- 67
232
- 49
233
- 2
234
- 0
235
- 49
236
- 3
237
- 4
238
- 15
239
- 99
240
- 7
241
- 27
242
- 7
243
- 28
244
- 65
245
- 67
246
- 49
247
- 2
248
- 0
249
- 49
250
- 3
251
- 4
252
- 15
253
- 99
254
- 7
255
- 29
256
- 7
257
- 30
258
- 65
259
- 67
260
- 49
261
- 2
262
- 0
263
- 49
264
- 3
265
- 4
266
- 15
267
- 99
268
- 7
269
- 31
270
- 7
271
- 32
272
- 65
273
- 67
274
- 49
275
- 2
276
- 0
277
- 49
278
- 3
279
- 4
280
- 15
281
- 99
282
- 7
283
- 33
284
- 7
285
- 34
286
- 65
287
- 67
288
- 49
289
- 2
290
- 0
291
- 49
292
- 3
293
- 4
294
- 15
295
- 45
296
- 35
297
- 36
298
- 7
299
- 37
300
- 64
301
- 49
302
- 38
303
- 1
304
- 13
305
- 9
306
- 202
307
- 15
308
- 45
309
- 39
310
- 40
311
- 7
312
- 41
313
- 64
314
- 84
315
- 42
316
- 9
317
- 219
318
- 99
319
- 7
320
- 43
321
- 7
322
- 44
323
- 65
324
- 67
325
- 49
326
- 2
327
- 0
328
- 49
329
- 3
330
- 4
331
- 8
332
- 220
333
- 1
334
- 15
335
- 99
336
- 7
337
- 45
338
- 7
339
- 46
340
- 65
341
- 67
342
- 49
343
- 2
344
- 0
345
- 49
346
- 3
347
- 4
348
- 15
349
- 99
350
- 7
351
- 47
352
- 7
353
- 48
354
- 65
355
- 67
356
- 49
357
- 2
358
- 0
359
- 49
360
- 3
361
- 4
362
- 15
363
- 99
364
- 7
365
- 49
366
- 7
367
- 50
368
- 65
369
- 67
370
- 49
371
- 2
372
- 0
373
- 49
374
- 3
375
- 4
376
- 11
377
- I
378
- a
379
- I
380
- 0
381
- I
382
- 0
383
- I
384
- 0
385
- n
386
- p
387
- 51
388
- x
389
- 12
390
- test_version
391
- M
392
- 1
393
- n
394
- n
395
- x
396
- 12
397
- test_version
398
- i
399
- 8
400
- 5
401
- 56
402
- 0
403
- 47
404
- 50
405
- 1
406
- 0
407
- 11
408
- I
409
- 2
410
- I
411
- 0
412
- I
413
- 0
414
- I
415
- 0
416
- n
417
- p
418
- 2
419
- M
420
- 1
421
- p
422
- 2
423
- x
424
- 9
425
- for_block
426
- t
427
- n
428
- x
429
- 12
430
- test_version
431
- i
432
- 29
433
- 5
434
- 7
435
- 0
436
- 13
437
- 70
438
- 9
439
- 19
440
- 15
441
- 44
442
- 43
443
- 1
444
- 7
445
- 2
446
- 78
447
- 49
448
- 3
449
- 2
450
- 6
451
- 0
452
- 45
453
- 4
454
- 5
455
- 43
456
- 6
457
- 47
458
- 49
459
- 7
460
- 2
461
- 11
462
- I
463
- 5
464
- I
465
- 0
466
- I
467
- 0
468
- I
469
- 0
470
- I
471
- -2
472
- p
473
- 8
474
- n
475
- x
476
- 6
477
- Regexp
478
- s
479
- 14
480
- \A\d\.\d\.\d\z
481
- x
482
- 3
483
- new
484
- x
485
- 7
486
- CodeRay
487
- n
488
- x
489
- 7
490
- VERSION
491
- x
492
- 12
493
- assert_match
494
- p
495
- 5
496
- I
497
- 0
498
- I
499
- 7
500
- I
501
- 0
502
- I
503
- 8
504
- I
505
- 1d
506
- x
507
- 55
508
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
509
- p
510
- 0
511
- x
512
- 21
513
- assert_nothing_raised
514
- p
515
- 5
516
- I
517
- 0
518
- I
519
- 6
520
- I
521
- 0
522
- I
523
- 7
524
- I
525
- 8
526
- x
527
- 55
528
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
529
- p
530
- 0
531
- x
532
- 17
533
- method_visibility
534
- x
535
- 15
536
- add_defn_method
537
- x
538
- 14
539
- RUBY_TEST_CODE
540
- s
541
- 20
542
- puts "Hello, World!"
543
- x
544
- 9
545
- const_set
546
- x
547
- 16
548
- RUBY_TEST_TOKENS
549
- s
550
- 4
551
- puts
552
- x
553
- 5
554
- ident
555
- s
556
- 1
557
-
558
- x
559
- 5
560
- space
561
- x
562
- 4
563
- open
564
- x
565
- 6
566
- string
567
- s
568
- 1
569
- "
570
- x
571
- 9
572
- delimiter
573
- s
574
- 13
575
- Hello, World!
576
- x
577
- 7
578
- content
579
- x
580
- 5
581
- close
582
- x
583
- 16
584
- test_simple_scan
585
- M
586
- 1
587
- n
588
- n
589
- x
590
- 16
591
- test_simple_scan
592
- i
593
- 8
594
- 5
595
- 56
596
- 0
597
- 47
598
- 50
599
- 1
600
- 0
601
- 11
602
- I
603
- 2
604
- I
605
- 0
606
- I
607
- 0
608
- I
609
- 0
610
- n
611
- p
612
- 2
613
- M
614
- 1
615
- p
616
- 2
617
- x
618
- 9
619
- for_block
620
- t
621
- n
622
- x
623
- 16
624
- test_simple_scan
625
- i
626
- 23
627
- 5
628
- 45
629
- 0
630
- 1
631
- 45
632
- 2
633
- 3
634
- 45
635
- 4
636
- 5
637
- 7
638
- 6
639
- 49
640
- 7
641
- 2
642
- 49
643
- 8
644
- 0
645
- 47
646
- 49
647
- 9
648
- 2
649
- 11
650
- I
651
- 6
652
- I
653
- 0
654
- I
655
- 0
656
- I
657
- 0
658
- I
659
- -2
660
- p
661
- 10
662
- x
663
- 16
664
- RUBY_TEST_TOKENS
665
- n
666
- x
667
- 7
668
- CodeRay
669
- n
670
- x
671
- 14
672
- RUBY_TEST_CODE
673
- n
674
- x
675
- 4
676
- ruby
677
- x
678
- 4
679
- scan
680
- x
681
- 6
682
- to_ary
683
- x
684
- 12
685
- assert_equal
686
- p
687
- 5
688
- I
689
- 0
690
- I
691
- 18
692
- I
693
- 0
694
- I
695
- 19
696
- I
697
- 17
698
- x
699
- 55
700
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
701
- p
702
- 0
703
- x
704
- 21
705
- assert_nothing_raised
706
- p
707
- 5
708
- I
709
- 0
710
- I
711
- 17
712
- I
713
- 0
714
- I
715
- 18
716
- I
717
- 8
718
- x
719
- 55
720
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
721
- p
722
- 0
723
- x
724
- 14
725
- RUBY_TEST_HTML
726
- s
727
- 51
728
- puts <span class="s"><span class="dl">&quot;</span>
729
- s
730
- 73
731
- <span class="k">Hello, World!</span><span class="dl">&quot;</span></span>
732
- x
733
- 1
734
- +
735
- x
736
- 21
737
- test_simple_highlight
738
- M
739
- 1
740
- n
741
- n
742
- x
743
- 21
744
- test_simple_highlight
745
- i
746
- 8
747
- 5
748
- 56
749
- 0
750
- 47
751
- 50
752
- 1
753
- 0
754
- 11
755
- I
756
- 2
757
- I
758
- 0
759
- I
760
- 0
761
- I
762
- 0
763
- n
764
- p
765
- 2
766
- M
767
- 1
768
- p
769
- 2
770
- x
771
- 9
772
- for_block
773
- t
774
- n
775
- x
776
- 21
777
- test_simple_highlight
778
- i
779
- 23
780
- 5
781
- 45
782
- 0
783
- 1
784
- 45
785
- 2
786
- 3
787
- 45
788
- 4
789
- 5
790
- 7
791
- 6
792
- 49
793
- 7
794
- 2
795
- 49
796
- 8
797
- 0
798
- 47
799
- 49
800
- 9
801
- 2
802
- 11
803
- I
804
- 6
805
- I
806
- 0
807
- I
808
- 0
809
- I
810
- 0
811
- I
812
- -2
813
- p
814
- 10
815
- x
816
- 14
817
- RUBY_TEST_HTML
818
- n
819
- x
820
- 7
821
- CodeRay
822
- n
823
- x
824
- 14
825
- RUBY_TEST_CODE
826
- n
827
- x
828
- 4
829
- ruby
830
- x
831
- 4
832
- scan
833
- x
834
- 4
835
- html
836
- x
837
- 12
838
- assert_equal
839
- p
840
- 5
841
- I
842
- 0
843
- I
844
- 20
845
- I
846
- 0
847
- I
848
- 21
849
- I
850
- 17
851
- x
852
- 55
853
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
854
- p
855
- 0
856
- x
857
- 21
858
- assert_nothing_raised
859
- p
860
- 5
861
- I
862
- 0
863
- I
864
- 1f
865
- I
866
- 0
867
- I
868
- 20
869
- I
870
- 8
871
- x
872
- 55
873
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
874
- p
875
- 0
876
- x
877
- 8
878
- test_duo
879
- M
880
- 1
881
- n
882
- n
883
- x
884
- 8
885
- test_duo
886
- i
887
- 66
888
- 5
889
- 45
890
- 0
891
- 1
892
- 45
893
- 2
894
- 3
895
- 43
896
- 4
897
- 7
898
- 5
899
- 7
900
- 5
901
- 49
902
- 6
903
- 2
904
- 45
905
- 0
906
- 7
907
- 49
908
- 8
909
- 1
910
- 47
911
- 49
912
- 9
913
- 2
914
- 15
915
- 5
916
- 45
917
- 0
918
- 10
919
- 45
920
- 2
921
- 11
922
- 43
923
- 4
924
- 44
925
- 43
926
- 12
927
- 79
928
- 49
929
- 13
930
- 1
931
- 13
932
- 7
933
- 5
934
- 7
935
- 5
936
- 49
937
- 14
938
- 2
939
- 15
940
- 49
941
- 6
942
- 1
943
- 45
944
- 0
945
- 15
946
- 49
947
- 8
948
- 1
949
- 47
950
- 49
951
- 9
952
- 2
953
- 11
954
- I
955
- 7
956
- I
957
- 0
958
- I
959
- 0
960
- I
961
- 0
962
- n
963
- p
964
- 16
965
- x
966
- 14
967
- RUBY_TEST_CODE
968
- n
969
- x
970
- 7
971
- CodeRay
972
- n
973
- x
974
- 3
975
- Duo
976
- x
977
- 5
978
- plain
979
- x
980
- 2
981
- []
982
- n
983
- x
984
- 9
985
- highlight
986
- x
987
- 12
988
- assert_equal
989
- n
990
- n
991
- x
992
- 4
993
- Hash
994
- x
995
- 16
996
- new_from_literal
997
- x
998
- 3
999
- []=
1000
- n
1001
- p
1002
- 15
1003
- I
1004
- 0
1005
- I
1006
- 25
1007
- I
1008
- 0
1009
- I
1010
- 26
1011
- I
1012
- 4
1013
- I
1014
- 27
1015
- I
1016
- 16
1017
- I
1018
- 26
1019
- I
1020
- 1b
1021
- I
1022
- 28
1023
- I
1024
- 1f
1025
- I
1026
- 29
1027
- I
1028
- 3d
1029
- I
1030
- 28
1031
- I
1032
- 42
1033
- x
1034
- 55
1035
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1036
- p
1037
- 0
1038
- x
1039
- 15
1040
- test_duo_stream
1041
- M
1042
- 1
1043
- n
1044
- n
1045
- x
1046
- 15
1047
- test_duo_stream
1048
- i
1049
- 42
1050
- 5
1051
- 45
1052
- 0
1053
- 1
1054
- 45
1055
- 2
1056
- 3
1057
- 43
1058
- 4
1059
- 7
1060
- 5
1061
- 7
1062
- 5
1063
- 49
1064
- 6
1065
- 2
1066
- 45
1067
- 0
1068
- 7
1069
- 44
1070
- 43
1071
- 8
1072
- 79
1073
- 49
1074
- 9
1075
- 1
1076
- 13
1077
- 7
1078
- 10
1079
- 2
1080
- 49
1081
- 11
1082
- 2
1083
- 15
1084
- 49
1085
- 12
1086
- 2
1087
- 47
1088
- 49
1089
- 13
1090
- 2
1091
- 11
1092
- I
1093
- 8
1094
- I
1095
- 0
1096
- I
1097
- 0
1098
- I
1099
- 0
1100
- n
1101
- p
1102
- 14
1103
- x
1104
- 14
1105
- RUBY_TEST_CODE
1106
- n
1107
- x
1108
- 7
1109
- CodeRay
1110
- n
1111
- x
1112
- 3
1113
- Duo
1114
- x
1115
- 5
1116
- plain
1117
- x
1118
- 2
1119
- []
1120
- n
1121
- x
1122
- 4
1123
- Hash
1124
- x
1125
- 16
1126
- new_from_literal
1127
- x
1128
- 6
1129
- stream
1130
- x
1131
- 3
1132
- []=
1133
- x
1134
- 9
1135
- highlight
1136
- x
1137
- 12
1138
- assert_equal
1139
- p
1140
- 9
1141
- I
1142
- 0
1143
- I
1144
- 2c
1145
- I
1146
- 0
1147
- I
1148
- 2d
1149
- I
1150
- 4
1151
- I
1152
- 2e
1153
- I
1154
- 25
1155
- I
1156
- 2d
1157
- I
1158
- 2a
1159
- x
1160
- 55
1161
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1162
- p
1163
- 0
1164
- x
1165
- 19
1166
- test_comment_filter
1167
- M
1168
- 1
1169
- n
1170
- n
1171
- x
1172
- 19
1173
- test_comment_filter
1174
- i
1175
- 26
1176
- 5
1177
- 7
1178
- 0
1179
- 64
1180
- 45
1181
- 1
1182
- 2
1183
- 7
1184
- 3
1185
- 64
1186
- 7
1187
- 4
1188
- 49
1189
- 5
1190
- 2
1191
- 49
1192
- 6
1193
- 0
1194
- 49
1195
- 7
1196
- 0
1197
- 47
1198
- 49
1199
- 8
1200
- 2
1201
- 11
1202
- I
1203
- 5
1204
- I
1205
- 0
1206
- I
1207
- 0
1208
- I
1209
- 0
1210
- n
1211
- p
1212
- 9
1213
- s
1214
- 39
1215
- #!/usr/bin/env ruby
1216
-
1217
- code
1218
-
1219
- more code
1220
-
1221
- x
1222
- 7
1223
- CodeRay
1224
- n
1225
- s
1226
- 127
1227
- #!/usr/bin/env ruby
1228
- =begin
1229
- A multi-line comment.
1230
- =end
1231
- code
1232
- # A single-line comment.
1233
- more code # and another comment, in-line.
1234
-
1235
- x
1236
- 4
1237
- ruby
1238
- x
1239
- 4
1240
- scan
1241
- x
1242
- 14
1243
- comment_filter
1244
- x
1245
- 4
1246
- text
1247
- x
1248
- 12
1249
- assert_equal
1250
- p
1251
- 5
1252
- I
1253
- 0
1254
- I
1255
- 31
1256
- I
1257
- 0
1258
- I
1259
- 32
1260
- I
1261
- 1a
1262
- x
1263
- 55
1264
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1265
- p
1266
- 0
1267
- x
1268
- 18
1269
- test_lines_of_code
1270
- M
1271
- 1
1272
- n
1273
- n
1274
- x
1275
- 18
1276
- test_lines_of_code
1277
- i
1278
- 108
1279
- 5
1280
- 80
1281
- 45
1282
- 0
1283
- 1
1284
- 7
1285
- 2
1286
- 64
1287
- 7
1288
- 3
1289
- 49
1290
- 4
1291
- 2
1292
- 49
1293
- 5
1294
- 0
1295
- 47
1296
- 49
1297
- 6
1298
- 2
1299
- 15
1300
- 7
1301
- 7
1302
- 64
1303
- 19
1304
- 0
1305
- 15
1306
- 5
1307
- 78
1308
- 45
1309
- 0
1310
- 8
1311
- 20
1312
- 0
1313
- 7
1314
- 9
1315
- 49
1316
- 4
1317
- 2
1318
- 49
1319
- 5
1320
- 0
1321
- 47
1322
- 49
1323
- 6
1324
- 2
1325
- 15
1326
- 5
1327
- 78
1328
- 45
1329
- 0
1330
- 10
1331
- 20
1332
- 0
1333
- 7
1334
- 11
1335
- 49
1336
- 4
1337
- 2
1338
- 49
1339
- 5
1340
- 0
1341
- 47
1342
- 49
1343
- 6
1344
- 2
1345
- 15
1346
- 5
1347
- 78
1348
- 45
1349
- 0
1350
- 12
1351
- 20
1352
- 0
1353
- 7
1354
- 13
1355
- 49
1356
- 4
1357
- 2
1358
- 49
1359
- 5
1360
- 0
1361
- 47
1362
- 49
1363
- 6
1364
- 2
1365
- 15
1366
- 5
1367
- 4
1368
- 4
1369
- 45
1370
- 0
1371
- 14
1372
- 20
1373
- 0
1374
- 7
1375
- 15
1376
- 49
1377
- 4
1378
- 2
1379
- 49
1380
- 5
1381
- 0
1382
- 47
1383
- 49
1384
- 6
1385
- 2
1386
- 11
1387
- I
1388
- 6
1389
- I
1390
- 1
1391
- I
1392
- 0
1393
- I
1394
- 0
1395
- n
1396
- p
1397
- 16
1398
- x
1399
- 7
1400
- CodeRay
1401
- n
1402
- s
1403
- 127
1404
- #!/usr/bin/env ruby
1405
- =begin
1406
- A multi-line comment.
1407
- =end
1408
- code
1409
- # A single-line comment.
1410
- more code # and another comment, in-line.
1411
-
1412
- x
1413
- 4
1414
- ruby
1415
- x
1416
- 4
1417
- scan
1418
- x
1419
- 13
1420
- lines_of_code
1421
- x
1422
- 12
1423
- assert_equal
1424
- s
1425
- 514
1426
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
1427
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1428
-
1429
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1430
- <head>
1431
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
1432
- <title><%= controller.controller_name.titleize %>: <%= controller.action_name %></title>
1433
- <%= stylesheet_link_tag 'scaffold' %>
1434
- </head>
1435
- <body>
1436
-
1437
- <p style="color: green"><%= flash[:notice] %></p>
1438
-
1439
- <div id="main">
1440
- <%= yield %>
1441
- </div>
1442
-
1443
- </body>
1444
- </html>
1445
-
1446
- n
1447
- x
1448
- 4
1449
- html
1450
- n
1451
- x
1452
- 3
1453
- php
1454
- n
1455
- x
1456
- 4
1457
- yaml
1458
- n
1459
- x
1460
- 5
1461
- rhtml
1462
- p
1463
- 15
1464
- I
1465
- 0
1466
- I
1467
- 43
1468
- I
1469
- 0
1470
- I
1471
- 44
1472
- I
1473
- 15
1474
- I
1475
- 4d
1476
- I
1477
- 1b
1478
- I
1479
- 62
1480
- I
1481
- 2f
1482
- I
1483
- 63
1484
- I
1485
- 43
1486
- I
1487
- 64
1488
- I
1489
- 57
1490
- I
1491
- 65
1492
- I
1493
- 6c
1494
- x
1495
- 55
1496
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1497
- p
1498
- 1
1499
- x
1500
- 5
1501
- rHTML
1502
- x
1503
- 3
1504
- ENV
1505
- n
1506
- s
1507
- 14
1508
- check_rubygems
1509
- x
1510
- 2
1511
- []
1512
- x
1513
- 12
1514
- RUBY_VERSION
1515
- n
1516
- s
1517
- 3
1518
- 1.9
1519
- x
1520
- 1
1521
- <
1522
- x
1523
- 24
1524
- test_rubygems_not_loaded
1525
- M
1526
- 1
1527
- n
1528
- n
1529
- x
1530
- 24
1531
- test_rubygems_not_loaded
1532
- i
1533
- 34
1534
- 5
1535
- 1
1536
- 26
1537
- 93
1538
- 0
1539
- 15
1540
- 29
1541
- 17
1542
- 0
1543
- 7
1544
- 0
1545
- 98
1546
- 1
1547
- 1
1548
- 30
1549
- 8
1550
- 23
1551
- 25
1552
- 92
1553
- 0
1554
- 27
1555
- 8
1556
- 28
1557
- 15
1558
- 7
1559
- 2
1560
- 8
1561
- 29
1562
- 1
1563
- 47
1564
- 49
1565
- 3
1566
- 2
1567
- 11
1568
- I
1569
- 4
1570
- I
1571
- 0
1572
- I
1573
- 0
1574
- I
1575
- 0
1576
- n
1577
- p
1578
- 4
1579
- x
1580
- 3
1581
- Gem
1582
- x
1583
- 16
1584
- vm_const_defined
1585
- s
1586
- 8
1587
- constant
1588
- x
1589
- 12
1590
- assert_equal
1591
- p
1592
- 5
1593
- I
1594
- 0
1595
- I
1596
- 68
1597
- I
1598
- 0
1599
- I
1600
- 69
1601
- I
1602
- 22
1603
- x
1604
- 55
1605
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1606
- p
1607
- 0
1608
- x
1609
- 21
1610
- test_list_of_encoders
1611
- M
1612
- 1
1613
- n
1614
- n
1615
- x
1616
- 21
1617
- test_list_of_encoders
1618
- i
1619
- 37
1620
- 5
1621
- 45
1622
- 0
1623
- 1
1624
- 45
1625
- 2
1626
- 3
1627
- 43
1628
- 4
1629
- 49
1630
- 5
1631
- 0
1632
- 47
1633
- 49
1634
- 6
1635
- 2
1636
- 15
1637
- 5
1638
- 45
1639
- 2
1640
- 7
1641
- 43
1642
- 4
1643
- 49
1644
- 5
1645
- 0
1646
- 7
1647
- 8
1648
- 64
1649
- 49
1650
- 9
1651
- 1
1652
- 47
1653
- 49
1654
- 10
1655
- 1
1656
- 11
1657
- I
1658
- 3
1659
- I
1660
- 0
1661
- I
1662
- 0
1663
- I
1664
- 0
1665
- n
1666
- p
1667
- 11
1668
- x
1669
- 5
1670
- Array
1671
- n
1672
- x
1673
- 7
1674
- CodeRay
1675
- n
1676
- x
1677
- 8
1678
- Encoders
1679
- x
1680
- 4
1681
- list
1682
- x
1683
- 14
1684
- assert_kind_of
1685
- n
1686
- s
1687
- 5
1688
- count
1689
- x
1690
- 8
1691
- include?
1692
- x
1693
- 6
1694
- assert
1695
- p
1696
- 7
1697
- I
1698
- 0
1699
- I
1700
- 6c
1701
- I
1702
- 0
1703
- I
1704
- 6d
1705
- I
1706
- 11
1707
- I
1708
- 6e
1709
- I
1710
- 25
1711
- x
1712
- 55
1713
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1714
- p
1715
- 0
1716
- x
1717
- 21
1718
- test_list_of_scanners
1719
- M
1720
- 1
1721
- n
1722
- n
1723
- x
1724
- 21
1725
- test_list_of_scanners
1726
- i
1727
- 37
1728
- 5
1729
- 45
1730
- 0
1731
- 1
1732
- 45
1733
- 2
1734
- 3
1735
- 43
1736
- 4
1737
- 49
1738
- 5
1739
- 0
1740
- 47
1741
- 49
1742
- 6
1743
- 2
1744
- 15
1745
- 5
1746
- 45
1747
- 2
1748
- 7
1749
- 43
1750
- 4
1751
- 49
1752
- 5
1753
- 0
1754
- 7
1755
- 8
1756
- 64
1757
- 49
1758
- 9
1759
- 1
1760
- 47
1761
- 49
1762
- 10
1763
- 1
1764
- 11
1765
- I
1766
- 3
1767
- I
1768
- 0
1769
- I
1770
- 0
1771
- I
1772
- 0
1773
- n
1774
- p
1775
- 11
1776
- x
1777
- 5
1778
- Array
1779
- n
1780
- x
1781
- 7
1782
- CodeRay
1783
- n
1784
- x
1785
- 8
1786
- Scanners
1787
- x
1788
- 4
1789
- list
1790
- x
1791
- 14
1792
- assert_kind_of
1793
- n
1794
- s
1795
- 9
1796
- plaintext
1797
- x
1798
- 8
1799
- include?
1800
- x
1801
- 6
1802
- assert
1803
- p
1804
- 7
1805
- I
1806
- 0
1807
- I
1808
- 71
1809
- I
1810
- 0
1811
- I
1812
- 72
1813
- I
1814
- 11
1815
- I
1816
- 73
1817
- I
1818
- 25
1819
- x
1820
- 55
1821
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1822
- p
1823
- 0
1824
- x
1825
- 25
1826
- test_scan_a_frozen_string
1827
- M
1828
- 1
1829
- n
1830
- n
1831
- x
1832
- 25
1833
- test_scan_a_frozen_string
1834
- i
1835
- 12
1836
- 45
1837
- 0
1838
- 1
1839
- 45
1840
- 2
1841
- 3
1842
- 7
1843
- 4
1844
- 49
1845
- 5
1846
- 2
1847
- 11
1848
- I
1849
- 3
1850
- I
1851
- 0
1852
- I
1853
- 0
1854
- I
1855
- 0
1856
- n
1857
- p
1858
- 6
1859
- x
1860
- 7
1861
- CodeRay
1862
- n
1863
- x
1864
- 12
1865
- RUBY_VERSION
1866
- n
1867
- x
1868
- 4
1869
- ruby
1870
- x
1871
- 4
1872
- scan
1873
- p
1874
- 5
1875
- I
1876
- 0
1877
- I
1878
- 76
1879
- I
1880
- 0
1881
- I
1882
- 77
1883
- I
1884
- c
1885
- x
1886
- 55
1887
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1888
- p
1889
- 0
1890
- p
1891
- 51
1892
- I
1893
- 2
1894
- I
1895
- 6
1896
- I
1897
- 10
1898
- I
1899
- c
1900
- I
1901
- 1a
1902
- I
1903
- e
1904
- I
1905
- 1d
1906
- I
1907
- f
1908
- I
1909
- 24
1910
- I
1911
- 10
1912
- I
1913
- 2b
1914
- I
1915
- 11
1916
- I
1917
- 31
1918
- I
1919
- 12
1920
- I
1921
- 38
1922
- I
1923
- 13
1924
- I
1925
- 3f
1926
- I
1927
- 14
1928
- I
1929
- 46
1930
- I
1931
- 15
1932
- I
1933
- 52
1934
- I
1935
- 17
1936
- I
1937
- 60
1938
- I
1939
- 1d
1940
- I
1941
- 63
1942
- I
1943
- 1d
1944
- I
1945
- 66
1946
- I
1947
- 1e
1948
- I
1949
- 6f
1950
- I
1951
- 1f
1952
- I
1953
- 7d
1954
- I
1955
- 25
1956
- I
1957
- 8b
1958
- I
1959
- 2c
1960
- I
1961
- 99
1962
- I
1963
- 31
1964
- I
1965
- a7
1966
- I
1967
- 43
1968
- I
1969
- b5
1970
- I
1971
- 6a
1972
- I
1973
- cc
1974
- I
1975
- 68
1976
- I
1977
- db
1978
- I
1979
- 6a
1980
- I
1981
- dd
1982
- I
1983
- 6c
1984
- I
1985
- eb
1986
- I
1987
- 71
1988
- I
1989
- f9
1990
- I
1991
- 76
1992
- I
1993
- 107
1994
- x
1995
- 55
1996
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
1997
- p
1998
- 0
1999
- x
2000
- 13
2001
- attach_method
2002
- p
2003
- 7
2004
- I
2005
- 0
2006
- I
2007
- 1
2008
- I
2009
- 9
2010
- I
2011
- 2
2012
- I
2013
- 12
2014
- I
2015
- 4
2016
- I
2017
- 35
2018
- x
2019
- 55
2020
- /Users/murphy/ruby/coderay-0.9/test/functional/basic.rb
2021
- p
2022
- 0