RedCloth 4.2.2 → 4.2.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of RedCloth might be problematic. Click here for more details.
- data/CHANGELOG +11 -0
- data/README +4 -0
- data/Rakefile +14 -12
- data/RedCloth.gemspec +7 -7
- data/ext/redcloth_scan/redcloth.h +1 -1
- data/ext/redcloth_scan/redcloth_attributes.c +262 -244
- data/ext/redcloth_scan/redcloth_inline.c +5719 -3717
- data/ext/redcloth_scan/redcloth_scan.c +11922 -11570
- data/lib/redcloth/formatters/html.rb +2 -2
- data/lib/redcloth/version.rb +1 -1
- data/lib/tasks/pureruby.rake +14 -9
- data/spec/fixtures/basic.yml +15 -5
- data/spec/fixtures/threshold.yml +3 -3
- metadata +22 -8
data/CHANGELOG
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 4.2.3 / March 1, 2010
|
2
|
+
|
3
|
+
* Allow quotes in styles so you can do things like listing font-families. [Jason Garber]
|
4
|
+
* Fix uninitialized constant Gem::Specification::PLATFORM_CROSS_TARGETS in Rails [Jason Garber]
|
5
|
+
* Allow uppercase letters in class and ID attributes even though it's invalid [Jason Garber]
|
6
|
+
* Fix compatibility with newer Echoe, by using full-name for Platform [Flameeyes]
|
7
|
+
* Fixes for PPC/PPC64 [Flameeyes]
|
8
|
+
* Added a modified copy of 'Textile Reference' to a doc folder [codesponge]
|
9
|
+
* Add footnote return links [Jonathan Rudenberg]
|
10
|
+
* Add bug report link to the README
|
11
|
+
|
1
12
|
=== 4.2.2 / June 30, 2009
|
2
13
|
|
3
14
|
* Fix regression where percent wasn't accepted in style attribute. [Jason Garber]
|
data/README
CHANGED
@@ -40,6 +40,10 @@ incompatible with Ruby 1.9. The JRuby and pure-Ruby extensions don't support
|
|
40
40
|
multi-byte characters. The RedCloth::EXTENSION_LANGUAGE constant indicates in
|
41
41
|
which language your copy of RedCloth is compiled.
|
42
42
|
|
43
|
+
== Bugs
|
44
|
+
|
45
|
+
Please submit bugs to http://jgarber.lighthouseapp.com/projects/13054-redcloth/overview
|
46
|
+
|
43
47
|
== Using RedCloth
|
44
48
|
|
45
49
|
RedCloth is simply an extension of the String class, which can handle
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'lib/redcloth/version'
|
2
2
|
require 'rubygems'
|
3
|
-
gem 'echoe', '>=
|
3
|
+
gem 'echoe', '>= 4.1'
|
4
4
|
require 'echoe'
|
5
5
|
Dir["#{File.dirname(__FILE__)}/lib/tasks/*.rake"].sort.each { |ext| load(ext) }
|
6
6
|
|
@@ -17,9 +17,9 @@ e = Echoe.new('RedCloth', RedCloth::VERSION.to_s) do |p|
|
|
17
17
|
p.extension_pattern = nil
|
18
18
|
p.development_dependencies = [] # remove echoe from development dependencies
|
19
19
|
|
20
|
-
if Platform.gcc?
|
20
|
+
if Echoe::Platform.gcc?
|
21
21
|
p.platform = 'x86-mswin32-60'
|
22
|
-
elsif Platform.java?
|
22
|
+
elsif Echoe::Platform.java?
|
23
23
|
p.platform = 'universal-java'
|
24
24
|
elsif RUBY_PLATFORM == 'pureruby'
|
25
25
|
p.platform = 'ruby'
|
@@ -56,16 +56,18 @@ def move_extensions
|
|
56
56
|
Dir["ext/**/*.{bundle,so,jar}"].each { |file| mv file, "lib/" }
|
57
57
|
end
|
58
58
|
|
59
|
-
def java_classpath_arg
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
59
|
+
def java_classpath_arg # myriad of ways to discover JRuby classpath
|
60
|
+
begin
|
61
|
+
cpath = Java::java.lang.System.getProperty('java.class.path').split(File::PATH_SEPARATOR)
|
62
|
+
cpath += Java::java.lang.System.getProperty('sun.boot.class.path').split(File::PATH_SEPARATOR)
|
63
|
+
jruby_cpath = cpath.compact.join(File::PATH_SEPARATOR)
|
64
|
+
rescue => e
|
65
|
+
end
|
66
|
+
unless jruby_cpath
|
67
|
+
jruby_cpath = ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] &&
|
68
|
+
FileList["#{ENV['JRUBY_HOME']}/lib/*.jar"].join(File::PATH_SEPARATOR)
|
67
69
|
end
|
68
|
-
|
70
|
+
jruby_cpath ? "-cp \"#{jruby_cpath}\"" : ""
|
69
71
|
end
|
70
72
|
|
71
73
|
ext = "ext/redcloth_scan"
|
data/RedCloth.gemspec
CHANGED
@@ -2,30 +2,30 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{RedCloth}
|
5
|
-
s.version = "4.2.
|
5
|
+
s.version = "4.2.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jason Garber"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2010-03-01}
|
10
10
|
s.default_executable = %q{redcloth}
|
11
|
-
s.description = %q{RedCloth-4.2.
|
11
|
+
s.description = %q{RedCloth-4.2.3 - Textile parser for Ruby.
|
12
|
+
http://redcloth.org/}
|
12
13
|
s.email = %q{redcloth-upwards@rubyforge.org}
|
13
14
|
s.executables = ["redcloth"]
|
14
15
|
s.extensions = ["ext/redcloth_scan/extconf.rb"]
|
15
16
|
s.extra_rdoc_files = ["CHANGELOG", "lib/case_sensitive_require/RedCloth.rb", "lib/redcloth/erb_extension.rb", "lib/redcloth/formatters/base.rb", "lib/redcloth/formatters/html.rb", "lib/redcloth/formatters/latex.rb", "lib/redcloth/textile_doc.rb", "lib/redcloth/version.rb", "lib/redcloth.rb", "README"]
|
16
17
|
s.files = ["bin/redcloth", "CHANGELOG", "COPYING", "ext/redcloth_scan/extconf.rb", "ext/redcloth_scan/redcloth.h", "lib/case_sensitive_require/RedCloth.rb", "lib/redcloth/erb_extension.rb", "lib/redcloth/formatters/base.rb", "lib/redcloth/formatters/html.rb", "lib/redcloth/formatters/latex.rb", "lib/redcloth/formatters/latex_entities.yml", "lib/redcloth/textile_doc.rb", "lib/redcloth/version.rb", "lib/redcloth.rb", "lib/tasks/pureruby.rake", "Manifest", "Rakefile", "README", "setup.rb", "spec/custom_tags_spec.rb", "spec/differs/inline.rb", "spec/erb_spec.rb", "spec/extension_spec.rb", "spec/fixtures/basic.yml", "spec/fixtures/code.yml", "spec/fixtures/definitions.yml", "spec/fixtures/extra_whitespace.yml", "spec/fixtures/filter_html.yml", "spec/fixtures/filter_pba.yml", "spec/fixtures/html.yml", "spec/fixtures/images.yml", "spec/fixtures/instiki.yml", "spec/fixtures/links.yml", "spec/fixtures/lists.yml", "spec/fixtures/poignant.yml", "spec/fixtures/sanitize_html.yml", "spec/fixtures/table.yml", "spec/fixtures/textism.yml", "spec/fixtures/threshold.yml", "spec/formatters/class_filtered_html_spec.rb", "spec/formatters/filtered_html_spec.rb", "spec/formatters/html_no_breaks_spec.rb", "spec/formatters/html_spec.rb", "spec/formatters/id_filtered_html_spec.rb", "spec/formatters/latex_spec.rb", "spec/formatters/lite_mode_html_spec.rb", "spec/formatters/no_span_caps_html_spec.rb", "spec/formatters/sanitized_html_spec.rb", "spec/formatters/style_filtered_html_spec.rb", "spec/parser_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "RedCloth.gemspec", "ext/redcloth_scan/redcloth_attributes.c", "ext/redcloth_scan/redcloth_inline.c", "ext/redcloth_scan/redcloth_scan.c"]
|
17
|
-
s.has_rdoc = true
|
18
18
|
s.homepage = %q{http://redcloth.org}
|
19
19
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "RedCloth", "--main", "README"]
|
20
20
|
s.require_paths = ["lib", "ext", "lib/case_sensitive_require"]
|
21
21
|
s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
|
22
22
|
s.rubyforge_project = %q{redcloth}
|
23
|
-
s.rubygems_version = %q{1.3.
|
24
|
-
s.summary = %q{RedCloth-4.2.
|
23
|
+
s.rubygems_version = %q{1.3.6}
|
24
|
+
s.summary = %q{RedCloth-4.2.3 - Textile parser for Ruby. http://redcloth.org/}
|
25
25
|
|
26
26
|
if s.respond_to? :specification_version then
|
27
27
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
28
|
-
s.specification_version =
|
28
|
+
s.specification_version = 3
|
29
29
|
|
30
30
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
31
31
|
else
|
@@ -129,7 +129,7 @@ VALUE red_pass_code(VALUE, VALUE, VALUE, ID);
|
|
129
129
|
case ')': \
|
130
130
|
{ /*needed to keep inside chars scoped for less memory usage*/\
|
131
131
|
char *temp_p = p - 1; \
|
132
|
-
char level = -1; \
|
132
|
+
signed char level = -1; \
|
133
133
|
while (temp_p > reg) { \
|
134
134
|
switch(*(temp_p - 1)) { \
|
135
135
|
case '(': ++level; break; \
|
@@ -24,281 +24,299 @@ static const char _redcloth_attributes_actions[] = {
|
|
24
24
|
};
|
25
25
|
|
26
26
|
static const short _redcloth_attributes_key_offsets[] = {
|
27
|
-
0, 0, 6, 11,
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
27
|
+
0, 0, 6, 11, 27, 33, 38, 44,
|
28
|
+
60, 66, 87, 108, 118, 129, 137, 146,
|
29
|
+
153, 159, 164, 180, 201, 205, 210, 224,
|
30
|
+
240, 257, 274, 291, 304, 318, 325, 331,
|
31
|
+
346, 360, 375, 385, 391, 406, 420, 435,
|
32
|
+
445, 452, 462, 473, 492, 513, 535, 557,
|
33
|
+
579, 598, 618, 634, 650, 660, 671, 690,
|
34
|
+
711, 733, 755, 777, 796, 816, 819, 825,
|
35
|
+
840, 854, 869, 878, 888, 899, 918, 939,
|
36
|
+
961, 983, 1005, 1024, 1044
|
37
37
|
};
|
38
38
|
|
39
39
|
static const char _redcloth_attributes_trans_keys[] = {
|
40
40
|
0, 9, 10, 32, 11, 13, 0, 9,
|
41
41
|
32, 10, 13, 0, 9, 10, 32, 35,
|
42
|
-
41, 45, 95, 11, 13, 48, 57,
|
43
|
-
122, 0, 9, 10, 32, 11,
|
42
|
+
41, 45, 95, 11, 13, 48, 57, 65,
|
43
|
+
90, 97, 122, 0, 9, 10, 32, 11,
|
44
|
+
13, 0, 9, 32, 10, 13, 0, 9,
|
45
|
+
10, 32, 11, 13, 0, 9, 10, 32,
|
46
|
+
35, 41, 45, 95, 11, 13, 48, 57,
|
47
|
+
65, 90, 97, 122, 0, 9, 10, 32,
|
48
|
+
11, 13, 0, 9, 10, 32, 95, 117,
|
49
|
+
125, 11, 13, 34, 35, 37, 39, 45,
|
50
|
+
46, 48, 59, 65, 90, 97, 122, 0,
|
51
|
+
9, 10, 32, 95, 117, 125, 11, 13,
|
52
|
+
34, 35, 37, 39, 45, 46, 48, 59,
|
53
|
+
65, 90, 97, 122, 32, 35, 45, 95,
|
54
|
+
48, 57, 65, 90, 97, 122, 32, 35,
|
55
|
+
41, 45, 95, 48, 57, 65, 90, 97,
|
56
|
+
122, 45, 95, 48, 57, 65, 90, 97,
|
57
|
+
122, 41, 45, 95, 48, 57, 65, 90,
|
58
|
+
97, 122, 0, 32, 40, 91, 123, 9,
|
59
|
+
13, 0, 9, 10, 32, 11, 13, 0,
|
44
60
|
9, 32, 10, 13, 0, 9, 10, 32,
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
11, 13, 37, 38, 45, 46, 48, 59,
|
62
|
-
97, 122, 45, 95, 97, 122, 45, 93,
|
63
|
-
95, 97, 122, 32, 35, 95, 37, 38,
|
64
|
-
45, 46, 48, 59, 97, 122, 32, 35,
|
65
|
-
95, 117, 125, 37, 38, 45, 46, 48,
|
66
|
-
59, 97, 122, 32, 35, 95, 114, 117,
|
67
|
-
125, 37, 38, 45, 46, 48, 59, 97,
|
68
|
-
122, 32, 35, 95, 108, 117, 125, 37,
|
69
|
-
38, 45, 46, 48, 59, 97, 122, 32,
|
70
|
-
35, 40, 95, 117, 125, 37, 38, 45,
|
71
|
-
46, 48, 59, 97, 122, 39, 43, 61,
|
72
|
-
92, 95, 34, 35, 45, 57, 63, 64,
|
73
|
-
97, 122, 39, 41, 43, 61, 92, 95,
|
61
|
+
35, 41, 45, 95, 11, 13, 48, 57,
|
62
|
+
65, 90, 97, 122, 0, 9, 10, 32,
|
63
|
+
95, 117, 125, 11, 13, 34, 35, 37,
|
64
|
+
39, 45, 46, 48, 59, 65, 90, 97,
|
65
|
+
122, 45, 95, 97, 122, 45, 93, 95,
|
66
|
+
97, 122, 32, 95, 34, 35, 37, 39,
|
67
|
+
45, 46, 48, 59, 65, 90, 97, 122,
|
68
|
+
32, 95, 117, 125, 34, 35, 37, 39,
|
69
|
+
45, 46, 48, 59, 65, 90, 97, 122,
|
70
|
+
32, 95, 114, 117, 125, 34, 35, 37,
|
71
|
+
39, 45, 46, 48, 59, 65, 90, 97,
|
72
|
+
122, 32, 95, 108, 117, 125, 34, 35,
|
73
|
+
37, 39, 45, 46, 48, 59, 65, 90,
|
74
|
+
97, 122, 32, 40, 95, 117, 125, 34,
|
75
|
+
35, 37, 39, 45, 46, 48, 59, 65,
|
76
|
+
90, 97, 122, 39, 43, 61, 92, 95,
|
74
77
|
34, 35, 45, 57, 63, 64, 97, 122,
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
+
39, 41, 43, 61, 92, 95, 34, 35,
|
79
|
+
45, 57, 63, 64, 97, 122, 0, 32,
|
80
|
+
40, 91, 123, 9, 13, 0, 9, 10,
|
81
|
+
32, 11, 13, 0, 9, 10, 32, 35,
|
82
|
+
45, 95, 11, 13, 48, 57, 65, 90,
|
78
83
|
97, 122, 0, 9, 10, 32, 45, 95,
|
79
|
-
11, 13, 48, 57,
|
80
|
-
10, 32, 41, 45, 95, 11,
|
81
|
-
|
84
|
+
11, 13, 48, 57, 65, 90, 97, 122,
|
85
|
+
0, 9, 10, 32, 41, 45, 95, 11,
|
86
|
+
13, 48, 57, 65, 90, 97, 122, 0,
|
87
|
+
9, 10, 32, 40, 46, 91, 123, 11,
|
88
|
+
13, 0, 9, 10, 32, 11, 13, 0,
|
89
|
+
9, 10, 32, 35, 45, 95, 11, 13,
|
90
|
+
48, 57, 65, 90, 97, 122, 0, 9,
|
91
|
+
10, 32, 45, 95, 11, 13, 48, 57,
|
92
|
+
65, 90, 97, 122, 0, 9, 10, 32,
|
93
|
+
41, 45, 95, 11, 13, 48, 57, 65,
|
94
|
+
90, 97, 122, 0, 9, 10, 32, 40,
|
82
95
|
46, 91, 123, 11, 13, 0, 9, 10,
|
83
|
-
32, 11, 13, 0, 9, 10, 32,
|
84
|
-
45, 95, 11, 13,
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
96
|
+
32, 46, 11, 13, 0, 9, 10, 32,
|
97
|
+
45, 95, 11, 13, 97, 122, 0, 9,
|
98
|
+
10, 32, 45, 93, 95, 11, 13, 97,
|
99
|
+
122, 0, 9, 10, 32, 95, 11, 13,
|
100
|
+
34, 35, 37, 39, 45, 46, 48, 59,
|
101
|
+
65, 90, 97, 122, 0, 9, 10, 32,
|
102
|
+
95, 117, 125, 11, 13, 34, 35, 37,
|
103
|
+
39, 45, 46, 48, 59, 65, 90, 97,
|
104
|
+
122, 0, 9, 10, 32, 95, 114, 117,
|
105
|
+
125, 11, 13, 34, 35, 37, 39, 45,
|
106
|
+
46, 48, 59, 65, 90, 97, 122, 0,
|
107
|
+
9, 10, 32, 95, 108, 117, 125, 11,
|
108
|
+
13, 34, 35, 37, 39, 45, 46, 48,
|
109
|
+
59, 65, 90, 97, 122, 0, 9, 10,
|
110
|
+
32, 40, 95, 117, 125, 11, 13, 34,
|
111
|
+
35, 37, 39, 45, 46, 48, 59, 65,
|
112
|
+
90, 97, 122, 0, 9, 10, 32, 39,
|
113
|
+
43, 61, 92, 95, 11, 13, 34, 35,
|
114
|
+
45, 57, 63, 64, 97, 122, 0, 9,
|
115
|
+
10, 32, 39, 41, 43, 61, 92, 95,
|
116
|
+
11, 13, 34, 35, 45, 57, 63, 64,
|
117
|
+
97, 122, 0, 9, 10, 32, 35, 41,
|
118
|
+
45, 95, 11, 13, 48, 57, 65, 90,
|
119
|
+
97, 122, 0, 9, 10, 32, 35, 41,
|
120
|
+
45, 95, 11, 13, 48, 57, 65, 90,
|
121
|
+
97, 122, 0, 9, 10, 32, 45, 95,
|
91
122
|
11, 13, 97, 122, 0, 9, 10, 32,
|
92
123
|
45, 93, 95, 11, 13, 97, 122, 0,
|
93
|
-
9, 10, 32,
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
13,
|
113
|
-
|
114
|
-
9, 10, 32, 45,
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
124
|
+
9, 10, 32, 95, 11, 13, 34, 35,
|
125
|
+
37, 39, 45, 46, 48, 59, 65, 90,
|
126
|
+
97, 122, 0, 9, 10, 32, 95, 117,
|
127
|
+
125, 11, 13, 34, 35, 37, 39, 45,
|
128
|
+
46, 48, 59, 65, 90, 97, 122, 0,
|
129
|
+
9, 10, 32, 95, 114, 117, 125, 11,
|
130
|
+
13, 34, 35, 37, 39, 45, 46, 48,
|
131
|
+
59, 65, 90, 97, 122, 0, 9, 10,
|
132
|
+
32, 95, 108, 117, 125, 11, 13, 34,
|
133
|
+
35, 37, 39, 45, 46, 48, 59, 65,
|
134
|
+
90, 97, 122, 0, 9, 10, 32, 40,
|
135
|
+
95, 117, 125, 11, 13, 34, 35, 37,
|
136
|
+
39, 45, 46, 48, 59, 65, 90, 97,
|
137
|
+
122, 0, 9, 10, 32, 39, 43, 61,
|
138
|
+
92, 95, 11, 13, 34, 35, 45, 57,
|
139
|
+
63, 64, 97, 122, 0, 9, 10, 32,
|
140
|
+
39, 41, 43, 61, 92, 95, 11, 13,
|
141
|
+
34, 35, 45, 57, 63, 64, 97, 122,
|
142
|
+
40, 91, 123, 0, 9, 10, 32, 11,
|
143
|
+
13, 0, 9, 10, 32, 35, 45, 95,
|
144
|
+
11, 13, 48, 57, 65, 90, 97, 122,
|
145
|
+
0, 9, 10, 32, 45, 95, 11, 13,
|
146
|
+
48, 57, 65, 90, 97, 122, 0, 9,
|
147
|
+
10, 32, 41, 45, 95, 11, 13, 48,
|
148
|
+
57, 65, 90, 97, 122, 0, 9, 10,
|
149
|
+
32, 40, 91, 123, 11, 13, 0, 9,
|
150
|
+
10, 32, 45, 95, 11, 13, 97, 122,
|
151
|
+
0, 9, 10, 32, 45, 93, 95, 11,
|
152
|
+
13, 97, 122, 0, 9, 10, 32, 95,
|
153
|
+
11, 13, 34, 35, 37, 39, 45, 46,
|
154
|
+
48, 59, 65, 90, 97, 122, 0, 9,
|
155
|
+
10, 32, 95, 117, 125, 11, 13, 34,
|
156
|
+
35, 37, 39, 45, 46, 48, 59, 65,
|
157
|
+
90, 97, 122, 0, 9, 10, 32, 95,
|
158
|
+
114, 117, 125, 11, 13, 34, 35, 37,
|
159
|
+
39, 45, 46, 48, 59, 65, 90, 97,
|
160
|
+
122, 0, 9, 10, 32, 95, 108, 117,
|
161
|
+
125, 11, 13, 34, 35, 37, 39, 45,
|
162
|
+
46, 48, 59, 65, 90, 97, 122, 0,
|
163
|
+
9, 10, 32, 40, 95, 117, 125, 11,
|
164
|
+
13, 34, 35, 37, 39, 45, 46, 48,
|
165
|
+
59, 65, 90, 97, 122, 0, 9, 10,
|
127
166
|
32, 39, 43, 61, 92, 95, 11, 13,
|
128
167
|
34, 35, 45, 57, 63, 64, 97, 122,
|
129
168
|
0, 9, 10, 32, 39, 41, 43, 61,
|
130
169
|
92, 95, 11, 13, 34, 35, 45, 57,
|
131
|
-
63, 64, 97, 122,
|
132
|
-
|
133
|
-
|
134
|
-
97, 122, 0, 9, 10, 32, 45, 95,
|
135
|
-
11, 13, 48, 57, 97, 122, 0, 9,
|
136
|
-
10, 32, 41, 45, 95, 11, 13, 48,
|
137
|
-
57, 97, 122, 0, 9, 10, 32, 40,
|
138
|
-
91, 123, 11, 13, 0, 9, 10, 32,
|
139
|
-
45, 95, 11, 13, 97, 122, 0, 9,
|
140
|
-
10, 32, 45, 93, 95, 11, 13, 97,
|
141
|
-
122, 0, 9, 10, 32, 35, 95, 11,
|
142
|
-
13, 37, 38, 45, 46, 48, 59, 97,
|
143
|
-
122, 0, 9, 10, 32, 35, 95, 117,
|
144
|
-
125, 11, 13, 37, 38, 45, 46, 48,
|
145
|
-
59, 97, 122, 0, 9, 10, 32, 35,
|
146
|
-
95, 114, 117, 125, 11, 13, 37, 38,
|
147
|
-
45, 46, 48, 59, 97, 122, 0, 9,
|
148
|
-
10, 32, 35, 95, 108, 117, 125, 11,
|
149
|
-
13, 37, 38, 45, 46, 48, 59, 97,
|
150
|
-
122, 0, 9, 10, 32, 35, 40, 95,
|
151
|
-
117, 125, 11, 13, 37, 38, 45, 46,
|
152
|
-
48, 59, 97, 122, 0, 9, 10, 32,
|
153
|
-
39, 43, 61, 92, 95, 11, 13, 34,
|
154
|
-
35, 45, 57, 63, 64, 97, 122, 0,
|
155
|
-
9, 10, 32, 39, 41, 43, 61, 92,
|
156
|
-
95, 11, 13, 34, 35, 45, 57, 63,
|
157
|
-
64, 97, 122, 0, 9, 10, 32, 35,
|
158
|
-
41, 45, 95, 11, 13, 48, 57, 97,
|
159
|
-
122, 0
|
170
|
+
63, 64, 97, 122, 0, 9, 10, 32,
|
171
|
+
35, 41, 45, 95, 11, 13, 48, 57,
|
172
|
+
65, 90, 97, 122, 0
|
160
173
|
};
|
161
174
|
|
162
175
|
static const char _redcloth_attributes_single_lengths[] = {
|
163
176
|
0, 4, 3, 8, 4, 3, 4, 8,
|
164
|
-
4,
|
165
|
-
4, 3, 8,
|
166
|
-
|
177
|
+
4, 7, 7, 4, 5, 2, 3, 5,
|
178
|
+
4, 3, 8, 7, 2, 3, 2, 4,
|
179
|
+
5, 5, 5, 5, 6, 5, 4, 7,
|
167
180
|
6, 7, 8, 4, 7, 6, 7, 8,
|
168
|
-
5, 6, 7,
|
169
|
-
9, 10, 8, 8, 6, 7,
|
170
|
-
|
171
|
-
6, 7, 7, 6, 7,
|
172
|
-
|
181
|
+
5, 6, 7, 5, 7, 8, 8, 8,
|
182
|
+
9, 10, 8, 8, 6, 7, 5, 7,
|
183
|
+
8, 8, 8, 9, 10, 3, 4, 7,
|
184
|
+
6, 7, 7, 6, 7, 5, 7, 8,
|
185
|
+
8, 8, 9, 10, 8
|
173
186
|
};
|
174
187
|
|
175
188
|
static const char _redcloth_attributes_range_lengths[] = {
|
176
|
-
0, 1, 1,
|
177
|
-
1,
|
178
|
-
1, 1,
|
179
|
-
|
180
|
-
|
181
|
-
1, 2, 2,
|
182
|
-
5, 5,
|
183
|
-
|
184
|
-
|
185
|
-
|
189
|
+
0, 1, 1, 4, 1, 1, 1, 4,
|
190
|
+
1, 7, 7, 3, 3, 3, 3, 1,
|
191
|
+
1, 1, 4, 7, 1, 1, 6, 6,
|
192
|
+
6, 6, 6, 4, 4, 1, 1, 4,
|
193
|
+
4, 4, 1, 1, 4, 4, 4, 1,
|
194
|
+
1, 2, 2, 7, 7, 7, 7, 7,
|
195
|
+
5, 5, 4, 4, 2, 2, 7, 7,
|
196
|
+
7, 7, 7, 5, 5, 0, 1, 4,
|
197
|
+
4, 4, 1, 2, 2, 7, 7, 7,
|
198
|
+
7, 7, 5, 5, 4
|
186
199
|
};
|
187
200
|
|
188
201
|
static const short _redcloth_attributes_index_offsets[] = {
|
189
|
-
0, 0, 6, 11,
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
202
|
+
0, 0, 6, 11, 24, 30, 35, 41,
|
203
|
+
54, 60, 75, 90, 98, 107, 113, 120,
|
204
|
+
127, 133, 138, 151, 166, 170, 175, 184,
|
205
|
+
195, 207, 219, 231, 241, 252, 259, 265,
|
206
|
+
277, 288, 300, 310, 316, 328, 339, 351,
|
207
|
+
361, 368, 377, 387, 400, 415, 431, 447,
|
208
|
+
463, 478, 494, 507, 520, 529, 539, 552,
|
209
|
+
567, 583, 599, 615, 630, 646, 650, 656,
|
210
|
+
668, 679, 691, 700, 709, 719, 732, 747,
|
211
|
+
763, 779, 795, 810, 826
|
199
212
|
};
|
200
213
|
|
201
214
|
static const char _redcloth_attributes_indicies[] = {
|
202
215
|
0, 2, 3, 2, 0, 1, 0, 2,
|
203
216
|
2, 0, 1, 0, 2, 3, 4, 5,
|
204
|
-
6, 7, 7, 0, 7, 7,
|
205
|
-
10, 11, 10, 8, 9, 8, 10,
|
206
|
-
8, 9, 0, 2, 3, 13, 0,
|
207
|
-
8, 10, 11, 14, 15, 16, 17,
|
208
|
-
8, 17, 17, 9, 8, 10,
|
209
|
-
8, 12, 8, 10, 11, 19,
|
210
|
-
21, 22, 8, 20, 20, 20, 20,
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
217
|
+
6, 7, 7, 0, 7, 7, 7, 1,
|
218
|
+
8, 10, 11, 10, 8, 9, 8, 10,
|
219
|
+
10, 8, 9, 0, 2, 3, 13, 0,
|
220
|
+
12, 8, 10, 11, 14, 15, 16, 17,
|
221
|
+
17, 8, 17, 17, 17, 9, 8, 10,
|
222
|
+
11, 18, 8, 12, 8, 10, 11, 19,
|
223
|
+
20, 21, 22, 8, 20, 20, 20, 20,
|
224
|
+
20, 20, 9, 0, 2, 3, 23, 24,
|
225
|
+
25, 26, 0, 24, 24, 24, 24, 24,
|
226
|
+
24, 1, 27, 29, 27, 27, 27, 27,
|
227
|
+
27, 28, 30, 31, 32, 30, 30, 30,
|
228
|
+
30, 30, 28, 33, 33, 33, 33, 33,
|
229
|
+
28, 34, 35, 35, 35, 35, 35, 28,
|
216
230
|
28, 28, 37, 38, 39, 28, 36, 40,
|
217
231
|
42, 43, 42, 40, 41, 40, 42, 42,
|
218
232
|
40, 41, 40, 42, 43, 44, 45, 46,
|
219
|
-
47, 47, 40, 47, 47, 41, 40,
|
220
|
-
43, 48, 49,
|
221
|
-
49, 49, 49,
|
222
|
-
53, 54, 53, 53, 28, 55,
|
223
|
-
55, 55, 55, 55,
|
224
|
-
|
225
|
-
56, 56,
|
226
|
-
56,
|
227
|
-
56,
|
228
|
-
56,
|
233
|
+
47, 47, 40, 47, 47, 47, 41, 40,
|
234
|
+
42, 43, 48, 49, 50, 51, 40, 49,
|
235
|
+
49, 49, 49, 49, 49, 41, 52, 52,
|
236
|
+
52, 28, 53, 54, 53, 53, 28, 55,
|
237
|
+
55, 55, 55, 55, 55, 55, 55, 28,
|
238
|
+
56, 56, 57, 58, 56, 56, 56, 56,
|
239
|
+
56, 56, 28, 56, 56, 59, 57, 58,
|
240
|
+
56, 56, 56, 56, 56, 56, 28, 56,
|
241
|
+
56, 60, 57, 58, 56, 56, 56, 56,
|
242
|
+
56, 56, 28, 56, 61, 56, 57, 58,
|
243
|
+
56, 56, 56, 56, 56, 56, 28, 62,
|
229
244
|
62, 62, 62, 62, 62, 62, 62, 62,
|
230
|
-
|
231
|
-
62, 62, 62,
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
2, 71, 71, 67, 71, 71,
|
236
|
-
2, 3, 2, 72, 73, 73, 67,
|
237
|
-
73, 1, 67, 2, 3, 13,
|
238
|
-
76, 77, 67, 12, 78, 10,
|
239
|
-
78, 9, 78, 10, 11, 79,
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
84,
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
2, 3, 23, 24,
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
2,
|
278
|
-
102, 102, 102, 102, 1,
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
106,
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
41, 106, 42, 43, 42,
|
287
|
-
|
288
|
-
|
289
|
-
42,
|
290
|
-
|
291
|
-
|
292
|
-
49,
|
293
|
-
49, 49,
|
245
|
+
28, 62, 56, 62, 62, 62, 62, 62,
|
246
|
+
62, 62, 62, 28, 28, 28, 64, 65,
|
247
|
+
66, 28, 63, 67, 2, 3, 2, 67,
|
248
|
+
1, 67, 2, 3, 68, 69, 70, 70,
|
249
|
+
67, 70, 70, 70, 1, 67, 2, 3,
|
250
|
+
2, 71, 71, 67, 71, 71, 71, 1,
|
251
|
+
67, 2, 3, 2, 72, 73, 73, 67,
|
252
|
+
73, 73, 73, 1, 67, 2, 3, 13,
|
253
|
+
74, 75, 76, 77, 67, 12, 78, 10,
|
254
|
+
11, 10, 78, 9, 78, 10, 11, 79,
|
255
|
+
80, 81, 81, 78, 81, 81, 81, 9,
|
256
|
+
78, 10, 11, 10, 82, 82, 78, 82,
|
257
|
+
82, 82, 9, 78, 10, 11, 10, 83,
|
258
|
+
84, 84, 78, 84, 84, 84, 9, 78,
|
259
|
+
10, 11, 18, 74, 75, 76, 77, 78,
|
260
|
+
12, 78, 10, 11, 18, 75, 78, 12,
|
261
|
+
78, 10, 11, 10, 85, 85, 78, 85,
|
262
|
+
9, 78, 10, 11, 10, 86, 87, 86,
|
263
|
+
78, 86, 9, 78, 10, 11, 88, 89,
|
264
|
+
78, 89, 89, 89, 89, 89, 89, 9,
|
265
|
+
78, 10, 11, 19, 20, 21, 22, 78,
|
266
|
+
20, 20, 20, 20, 20, 20, 9, 78,
|
267
|
+
10, 11, 19, 20, 90, 21, 22, 78,
|
268
|
+
20, 20, 20, 20, 20, 20, 9, 78,
|
269
|
+
10, 11, 19, 20, 91, 21, 22, 78,
|
270
|
+
20, 20, 20, 20, 20, 20, 9, 78,
|
271
|
+
10, 11, 19, 92, 20, 21, 22, 78,
|
272
|
+
20, 20, 20, 20, 20, 20, 9, 78,
|
273
|
+
10, 11, 10, 93, 93, 93, 93, 93,
|
274
|
+
78, 93, 93, 93, 93, 9, 78, 10,
|
275
|
+
11, 10, 93, 20, 93, 93, 93, 93,
|
276
|
+
78, 93, 93, 93, 93, 9, 78, 10,
|
277
|
+
11, 14, 15, 16, 17, 17, 78, 17,
|
278
|
+
17, 17, 9, 67, 2, 3, 4, 5,
|
279
|
+
6, 7, 7, 67, 7, 7, 7, 1,
|
280
|
+
67, 2, 3, 2, 94, 94, 67, 94,
|
281
|
+
1, 67, 2, 3, 2, 95, 96, 95,
|
282
|
+
67, 95, 1, 67, 2, 3, 97, 98,
|
283
|
+
67, 98, 98, 98, 98, 98, 98, 1,
|
284
|
+
67, 2, 3, 23, 24, 25, 26, 67,
|
285
|
+
24, 24, 24, 24, 24, 24, 1, 67,
|
286
|
+
2, 3, 23, 24, 99, 25, 26, 67,
|
287
|
+
24, 24, 24, 24, 24, 24, 1, 67,
|
288
|
+
2, 3, 23, 24, 100, 25, 26, 67,
|
289
|
+
24, 24, 24, 24, 24, 24, 1, 67,
|
290
|
+
2, 3, 23, 101, 24, 25, 26, 67,
|
291
|
+
24, 24, 24, 24, 24, 24, 1, 67,
|
292
|
+
2, 3, 2, 102, 102, 102, 102, 102,
|
293
|
+
67, 102, 102, 102, 102, 1, 67, 2,
|
294
|
+
3, 2, 102, 24, 102, 102, 102, 102,
|
295
|
+
67, 102, 102, 102, 102, 1, 103, 104,
|
296
|
+
105, 28, 106, 42, 43, 42, 106, 41,
|
297
|
+
106, 42, 43, 107, 108, 109, 109, 106,
|
298
|
+
109, 109, 109, 41, 106, 42, 43, 42,
|
299
|
+
110, 110, 106, 110, 110, 110, 41, 106,
|
300
|
+
42, 43, 42, 111, 112, 112, 106, 112,
|
301
|
+
112, 112, 41, 106, 42, 43, 42, 37,
|
302
|
+
38, 39, 106, 36, 106, 42, 43, 42,
|
303
|
+
113, 113, 106, 113, 41, 106, 42, 43,
|
304
|
+
42, 114, 115, 114, 106, 114, 41, 106,
|
305
|
+
42, 43, 116, 117, 106, 117, 117, 117,
|
306
|
+
117, 117, 117, 41, 106, 42, 43, 48,
|
307
|
+
49, 50, 51, 106, 49, 49, 49, 49,
|
308
|
+
49, 49, 41, 106, 42, 43, 48, 49,
|
309
|
+
118, 50, 51, 106, 49, 49, 49, 49,
|
294
310
|
49, 49, 41, 106, 42, 43, 48, 49,
|
295
|
-
|
296
|
-
49, 41, 106, 42, 43,
|
297
|
-
|
298
|
-
41, 106, 42, 43, 42, 121,
|
299
|
-
121, 121, 121,
|
300
|
-
41, 106, 42, 43,
|
301
|
-
|
311
|
+
119, 50, 51, 106, 49, 49, 49, 49,
|
312
|
+
49, 49, 41, 106, 42, 43, 48, 120,
|
313
|
+
49, 50, 51, 106, 49, 49, 49, 49,
|
314
|
+
49, 49, 41, 106, 42, 43, 42, 121,
|
315
|
+
121, 121, 121, 121, 106, 121, 121, 121,
|
316
|
+
121, 41, 106, 42, 43, 42, 121, 49,
|
317
|
+
121, 121, 121, 121, 106, 121, 121, 121,
|
318
|
+
121, 41, 106, 42, 43, 44, 45, 46,
|
319
|
+
47, 47, 106, 47, 47, 47, 41, 0
|
302
320
|
};
|
303
321
|
|
304
322
|
static const char _redcloth_attributes_trans_targs[] = {
|
@@ -399,7 +417,7 @@ redcloth_attribute_parser(machine, self, p, pe)
|
|
399
417
|
VALUE attr_regs = rb_hash_new();
|
400
418
|
|
401
419
|
|
402
|
-
#line
|
420
|
+
#line 421 "ext/redcloth_scan/redcloth_attributes.c"
|
403
421
|
{
|
404
422
|
cs = redcloth_attributes_start;
|
405
423
|
ts = 0;
|
@@ -411,7 +429,7 @@ redcloth_attribute_parser(machine, self, p, pe)
|
|
411
429
|
cs = machine;
|
412
430
|
|
413
431
|
|
414
|
-
#line
|
432
|
+
#line 433 "ext/redcloth_scan/redcloth_attributes.c"
|
415
433
|
{
|
416
434
|
int _klen;
|
417
435
|
unsigned int _trans;
|
@@ -432,7 +450,7 @@ _resume:
|
|
432
450
|
#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl"
|
433
451
|
{ts = p;}
|
434
452
|
break;
|
435
|
-
#line
|
453
|
+
#line 454 "ext/redcloth_scan/redcloth_attributes.c"
|
436
454
|
}
|
437
455
|
}
|
438
456
|
|
@@ -570,7 +588,7 @@ _eof_trans:
|
|
570
588
|
#line 26 "ext/redcloth_scan/redcloth_attributes.c.rl"
|
571
589
|
{{p = ((te))-1;}{ SET_ATTRIBUTE("name_without_attributes", "name"); }}
|
572
590
|
break;
|
573
|
-
#line
|
591
|
+
#line 592 "ext/redcloth_scan/redcloth_attributes.c"
|
574
592
|
}
|
575
593
|
}
|
576
594
|
|
@@ -583,7 +601,7 @@ _again:
|
|
583
601
|
#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl"
|
584
602
|
{ts = 0;}
|
585
603
|
break;
|
586
|
-
#line
|
604
|
+
#line 605 "ext/redcloth_scan/redcloth_attributes.c"
|
587
605
|
}
|
588
606
|
}
|
589
607
|
|