RedCloth 4.2.3 → 4.2.4.pre1
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/.gitignore +25 -0
- data/.rspec +1 -0
- data/.rvmrc +1 -0
- data/CHANGELOG +6 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +33 -0
- data/README +18 -9
- data/Rakefile +7 -254
- data/doc/textile_reference.html +631 -0
- data/ext/redcloth_scan/extconf.rb +4 -7
- data/ext/redcloth_scan/redcloth_attributes.c +37 -32
- data/ext/redcloth_scan/redcloth_inline.c +135 -130
- data/ext/redcloth_scan/redcloth_scan.c +223 -218
- data/lib/redcloth.rb +8 -7
- data/lib/redcloth/formatters/latex_entities.yml +8 -8
- data/lib/redcloth/version.rb +6 -5
- data/redcloth.gemspec +48 -0
- data/spec/benchmark_spec.rb +15 -0
- data/spec/fixtures/code.yml +6 -6
- data/spec/fixtures/table.yml +2 -2
- data/spec/fixtures/textism.yml +3 -3
- data/spec/fixtures/threshold.yml +3 -3
- data/spec/spec_helper.rb +26 -32
- data/tasks/compile.rake +47 -0
- data/tasks/gems.rake +38 -0
- data/tasks/ragel_extension_task.rb +127 -0
- data/tasks/release.rake +15 -0
- data/tasks/rspec.rake +11 -0
- data/tasks/rvm.rake +43 -0
- data/test/ragel_profiler.rb +73 -0
- data/test/validate_fixtures.rb +74 -0
- metadata +125 -46
- data/RedCloth.gemspec +0 -35
- data/spec/differs/inline.rb +0 -48
- data/spec/spec.opts +0 -3
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
#line 1 "ragel/redcloth_scan.c.rl"
|
2
3
|
/*
|
3
4
|
* redcloth_scan.c.rl
|
4
5
|
*
|
@@ -12,11 +13,12 @@
|
|
12
13
|
VALUE mRedCloth, super_ParseError, super_RedCloth, super_HTML, super_LATEX;
|
13
14
|
int SYM_escape_preformatted, SYM_escape_attributes;
|
14
15
|
|
15
|
-
|
16
|
+
|
17
|
+
#line 23 "ragel/redcloth_scan.c.rl"
|
16
18
|
|
17
19
|
|
18
20
|
|
19
|
-
#line
|
21
|
+
#line 22 "ext/redcloth_scan/redcloth_scan.c"
|
20
22
|
static const unsigned char _redcloth_scan_actions[] = {
|
21
23
|
0, 1, 0, 1, 2, 1, 3, 1,
|
22
24
|
4, 1, 5, 1, 6, 1, 7, 1,
|
@@ -22888,7 +22890,8 @@ static const int redcloth_scan_en_list_content = 2468;
|
|
22888
22890
|
static const int redcloth_scan_en_dl = 2472;
|
22889
22891
|
static const int redcloth_scan_en_main = 2251;
|
22890
22892
|
|
22891
|
-
|
22893
|
+
|
22894
|
+
#line 26 "ragel/redcloth_scan.c.rl"
|
22892
22895
|
|
22893
22896
|
VALUE
|
22894
22897
|
redcloth_transform(self, p, pe, refs)
|
@@ -22914,17 +22917,18 @@ redcloth_transform(self, p, pe, refs)
|
|
22914
22917
|
VALUE refs_found = rb_hash_new();
|
22915
22918
|
|
22916
22919
|
|
22917
|
-
#line
|
22920
|
+
#line 22921 "ext/redcloth_scan/redcloth_scan.c"
|
22918
22921
|
{
|
22919
22922
|
cs = redcloth_scan_start;
|
22920
22923
|
ts = 0;
|
22921
22924
|
te = 0;
|
22922
22925
|
act = 0;
|
22923
22926
|
}
|
22924
|
-
|
22927
|
+
|
22928
|
+
#line 51 "ragel/redcloth_scan.c.rl"
|
22925
22929
|
|
22926
22930
|
|
22927
|
-
#line
|
22931
|
+
#line 22932 "ext/redcloth_scan/redcloth_scan.c"
|
22928
22932
|
{
|
22929
22933
|
int _klen;
|
22930
22934
|
unsigned int _trans;
|
@@ -22943,10 +22947,10 @@ _resume:
|
|
22943
22947
|
while ( _nacts-- > 0 ) {
|
22944
22948
|
switch ( *_acts++ ) {
|
22945
22949
|
case 60:
|
22946
|
-
#line 1 "
|
22950
|
+
#line 1 "NONE"
|
22947
22951
|
{ts = p;}
|
22948
22952
|
break;
|
22949
|
-
#line
|
22953
|
+
#line 22954 "ext/redcloth_scan/redcloth_scan.c"
|
22950
22954
|
}
|
22951
22955
|
}
|
22952
22956
|
|
@@ -22971,21 +22975,21 @@ _resume:
|
|
22971
22975
|
case 0: {
|
22972
22976
|
_widec = (short)(128 + ((*p) - -128));
|
22973
22977
|
if (
|
22974
|
-
#line 16 "
|
22978
|
+
#line 16 "ragel/redcloth_common.c.rl"
|
22975
22979
|
!NIL_P(extend) ) _widec += 256;
|
22976
22980
|
break;
|
22977
22981
|
}
|
22978
22982
|
case 1: {
|
22979
22983
|
_widec = (short)(640 + ((*p) - -128));
|
22980
22984
|
if (
|
22981
|
-
#line 17 "
|
22985
|
+
#line 17 "ragel/redcloth_common.c.rl"
|
22982
22986
|
NIL_P(extend) ) _widec += 256;
|
22983
22987
|
break;
|
22984
22988
|
}
|
22985
22989
|
case 2: {
|
22986
22990
|
_widec = (short)(2176 + ((*p) - -128));
|
22987
22991
|
if (
|
22988
|
-
#line 18 "
|
22992
|
+
#line 18 "ragel/redcloth_common.c.rl"
|
22989
22993
|
|
22990
22994
|
(*(p+1) == '#') ? (*(p+2) == '#' || *(p+2) == '*' || *(p+2) == ' ') : 1 == 1
|
22991
22995
|
) _widec += 256;
|
@@ -22994,10 +22998,10 @@ _resume:
|
|
22994
22998
|
case 3: {
|
22995
22999
|
_widec = (short)(1152 + ((*p) - -128));
|
22996
23000
|
if (
|
22997
|
-
#line 16 "
|
23001
|
+
#line 16 "ragel/redcloth_common.c.rl"
|
22998
23002
|
!NIL_P(extend) ) _widec += 256;
|
22999
23003
|
if (
|
23000
|
-
#line 17 "
|
23004
|
+
#line 17 "ragel/redcloth_common.c.rl"
|
23001
23005
|
NIL_P(extend) ) _widec += 512;
|
23002
23006
|
break;
|
23003
23007
|
}
|
@@ -23070,303 +23074,303 @@ _eof_trans:
|
|
23070
23074
|
switch ( *_acts++ )
|
23071
23075
|
{
|
23072
23076
|
case 0:
|
23073
|
-
#line 5 "
|
23077
|
+
#line 5 "ragel/redcloth_common.rl"
|
23074
23078
|
{ MARK(); }
|
23075
23079
|
break;
|
23076
23080
|
case 1:
|
23077
|
-
#line 6 "
|
23081
|
+
#line 6 "ragel/redcloth_common.rl"
|
23078
23082
|
{ MARK_B(); }
|
23079
23083
|
break;
|
23080
23084
|
case 2:
|
23081
|
-
#line 7 "
|
23085
|
+
#line 7 "ragel/redcloth_common.rl"
|
23082
23086
|
{ MARK_ATTR(); }
|
23083
23087
|
break;
|
23084
23088
|
case 3:
|
23085
|
-
#line 8 "
|
23089
|
+
#line 8 "ragel/redcloth_common.rl"
|
23086
23090
|
{ SET_ATTRIBUTES(); }
|
23087
23091
|
break;
|
23088
23092
|
case 4:
|
23089
|
-
#line 9 "
|
23093
|
+
#line 9 "ragel/redcloth_common.rl"
|
23090
23094
|
{ STORE("text"); }
|
23091
23095
|
break;
|
23092
23096
|
case 5:
|
23093
|
-
#line 10 "
|
23097
|
+
#line 10 "ragel/redcloth_common.rl"
|
23094
23098
|
{ CLEAR_REGS(); RESET_REG(); }
|
23095
23099
|
break;
|
23096
23100
|
case 6:
|
23097
|
-
#line 26 "
|
23101
|
+
#line 26 "ragel/redcloth_common.rl"
|
23098
23102
|
{ ATTR_SET("align", "left"); }
|
23099
23103
|
break;
|
23100
23104
|
case 7:
|
23101
|
-
#line 27 "
|
23105
|
+
#line 27 "ragel/redcloth_common.rl"
|
23102
23106
|
{ ATTR_SET("align", "right"); }
|
23103
23107
|
break;
|
23104
23108
|
case 8:
|
23105
|
-
#line 28 "
|
23109
|
+
#line 28 "ragel/redcloth_common.rl"
|
23106
23110
|
{ ATTR_SET("align", "justify"); }
|
23107
23111
|
break;
|
23108
23112
|
case 9:
|
23109
|
-
#line 29 "
|
23113
|
+
#line 29 "ragel/redcloth_common.rl"
|
23110
23114
|
{ ATTR_SET("align", "center"); }
|
23111
23115
|
break;
|
23112
23116
|
case 10:
|
23113
|
-
#line 30 "
|
23117
|
+
#line 30 "ragel/redcloth_common.rl"
|
23114
23118
|
{ ATTR_INC("padding-left"); }
|
23115
23119
|
break;
|
23116
23120
|
case 11:
|
23117
|
-
#line 31 "
|
23121
|
+
#line 31 "ragel/redcloth_common.rl"
|
23118
23122
|
{ ATTR_INC("padding-right"); }
|
23119
23123
|
break;
|
23120
23124
|
case 12:
|
23121
|
-
#line 34 "
|
23125
|
+
#line 34 "ragel/redcloth_common.rl"
|
23122
23126
|
{ ATTR_SET("vertical-align", "middle"); }
|
23123
23127
|
break;
|
23124
23128
|
case 13:
|
23125
|
-
#line 34 "
|
23129
|
+
#line 34 "ragel/redcloth_common.rl"
|
23126
23130
|
{ ATTR_SET("vertical-align", "top"); }
|
23127
23131
|
break;
|
23128
23132
|
case 14:
|
23129
|
-
#line 34 "
|
23133
|
+
#line 34 "ragel/redcloth_common.rl"
|
23130
23134
|
{ ATTR_SET("vertical-align", "bottom"); }
|
23131
23135
|
break;
|
23132
23136
|
case 15:
|
23133
|
-
#line 35 "
|
23137
|
+
#line 35 "ragel/redcloth_common.rl"
|
23134
23138
|
{ STORE_ATTR("class"); }
|
23135
23139
|
break;
|
23136
23140
|
case 16:
|
23137
|
-
#line 36 "
|
23141
|
+
#line 36 "ragel/redcloth_common.rl"
|
23138
23142
|
{ STORE_ATTR("id"); }
|
23139
23143
|
break;
|
23140
23144
|
case 17:
|
23141
|
-
#line 38 "
|
23145
|
+
#line 38 "ragel/redcloth_common.rl"
|
23142
23146
|
{ STORE_ATTR("lang"); }
|
23143
23147
|
break;
|
23144
23148
|
case 18:
|
23145
|
-
#line 39 "
|
23149
|
+
#line 39 "ragel/redcloth_common.rl"
|
23146
23150
|
{ STORE_ATTR("style"); }
|
23147
23151
|
break;
|
23148
23152
|
case 19:
|
23149
|
-
#line 40 "
|
23153
|
+
#line 40 "ragel/redcloth_common.rl"
|
23150
23154
|
{ STORE_ATTR("colspan"); }
|
23151
23155
|
break;
|
23152
23156
|
case 20:
|
23153
|
-
#line 41 "
|
23157
|
+
#line 41 "ragel/redcloth_common.rl"
|
23154
23158
|
{ STORE_ATTR("rowspan"); }
|
23155
23159
|
break;
|
23156
23160
|
case 21:
|
23157
|
-
#line 42 "
|
23161
|
+
#line 42 "ragel/redcloth_common.rl"
|
23158
23162
|
{ ATTR_SET("th", "true"); }
|
23159
23163
|
break;
|
23160
23164
|
case 22:
|
23161
|
-
#line 48 "
|
23165
|
+
#line 48 "ragel/redcloth_common.rl"
|
23162
23166
|
{ ATTR_SET("list_continue", "true"); }
|
23163
23167
|
break;
|
23164
23168
|
case 23:
|
23165
|
-
#line 49 "
|
23169
|
+
#line 49 "ragel/redcloth_common.rl"
|
23166
23170
|
{ STORE_ATTR("start"); }
|
23167
23171
|
break;
|
23168
23172
|
case 24:
|
23169
|
-
#line 19 "
|
23173
|
+
#line 19 "ragel/redcloth_scan.c.rl"
|
23170
23174
|
{ extend = rb_hash_aref(regs, ID2SYM(rb_intern("type"))); }
|
23171
23175
|
break;
|
23172
23176
|
case 25:
|
23173
|
-
#line 13 "
|
23177
|
+
#line 13 "ragel/redcloth_scan.rl"
|
23174
23178
|
{ STORE("type"); }
|
23175
23179
|
break;
|
23176
23180
|
case 26:
|
23177
|
-
#line 16 "
|
23181
|
+
#line 16 "ragel/redcloth_scan.rl"
|
23178
23182
|
{ STORE("type"); }
|
23179
23183
|
break;
|
23180
23184
|
case 27:
|
23181
|
-
#line 17 "
|
23185
|
+
#line 17 "ragel/redcloth_scan.rl"
|
23182
23186
|
{ STORE("type"); }
|
23183
23187
|
break;
|
23184
23188
|
case 28:
|
23185
|
-
#line 18 "
|
23189
|
+
#line 18 "ragel/redcloth_scan.rl"
|
23186
23190
|
{ STORE("type"); }
|
23187
23191
|
break;
|
23188
23192
|
case 29:
|
23189
|
-
#line 18 "
|
23193
|
+
#line 18 "ragel/redcloth_scan.rl"
|
23190
23194
|
{ STORE("cite"); }
|
23191
23195
|
break;
|
23192
23196
|
case 30:
|
23193
|
-
#line 21 "
|
23197
|
+
#line 21 "ragel/redcloth_scan.rl"
|
23194
23198
|
{ STORE("type"); }
|
23195
23199
|
break;
|
23196
23200
|
case 31:
|
23197
|
-
#line 21 "
|
23201
|
+
#line 21 "ragel/redcloth_scan.rl"
|
23198
23202
|
{ STORE_B("fallback"); }
|
23199
23203
|
break;
|
23200
23204
|
case 32:
|
23201
|
-
#line 23 "
|
23205
|
+
#line 23 "ragel/redcloth_scan.rl"
|
23202
23206
|
{ {p = (((reg)))-1;} }
|
23203
23207
|
break;
|
23204
23208
|
case 33:
|
23205
|
-
#line 26 "
|
23209
|
+
#line 26 "ragel/redcloth_scan.rl"
|
23206
23210
|
{ STORE("type"); }
|
23207
23211
|
break;
|
23208
23212
|
case 34:
|
23209
|
-
#line 26 "
|
23213
|
+
#line 26 "ragel/redcloth_scan.rl"
|
23210
23214
|
{ STORE("id"); }
|
23211
23215
|
break;
|
23212
23216
|
case 35:
|
23213
|
-
#line 28 "
|
23217
|
+
#line 28 "ragel/redcloth_scan.rl"
|
23214
23218
|
{NEST(); SET_LIST_TYPE("ul");}
|
23215
23219
|
break;
|
23216
23220
|
case 36:
|
23217
|
-
#line 29 "
|
23221
|
+
#line 29 "ragel/redcloth_scan.rl"
|
23218
23222
|
{NEST(); SET_LIST_TYPE("ol");}
|
23219
23223
|
break;
|
23220
23224
|
case 37:
|
23221
|
-
#line 32 "
|
23225
|
+
#line 32 "ragel/redcloth_scan.rl"
|
23222
23226
|
{RESET_NEST();}
|
23223
23227
|
break;
|
23224
23228
|
case 38:
|
23225
|
-
#line 32 "
|
23229
|
+
#line 32 "ragel/redcloth_scan.rl"
|
23226
23230
|
{ {p = (((bck)))-1;} }
|
23227
23231
|
break;
|
23228
23232
|
case 39:
|
23229
|
-
#line 36 "
|
23233
|
+
#line 36 "ragel/redcloth_scan.rl"
|
23230
23234
|
{ ADD_BLOCK(); ASET("type", "dd"); }
|
23231
23235
|
break;
|
23232
23236
|
case 40:
|
23233
|
-
#line 36 "
|
23237
|
+
#line 36 "ragel/redcloth_scan.rl"
|
23234
23238
|
{ TRANSFORM("text"); }
|
23235
23239
|
break;
|
23236
23240
|
case 41:
|
23237
|
-
#line 39 "
|
23241
|
+
#line 39 "ragel/redcloth_scan.rl"
|
23238
23242
|
{ ASET("type", "ignore"); }
|
23239
23243
|
break;
|
23240
23244
|
case 42:
|
23241
|
-
#line 39 "
|
23245
|
+
#line 39 "ragel/redcloth_scan.rl"
|
23242
23246
|
{ STORE_URL("href"); }
|
23243
23247
|
break;
|
23244
23248
|
case 43:
|
23245
|
-
#line 43 "
|
23249
|
+
#line 43 "ragel/redcloth_scan.rl"
|
23246
23250
|
{ ASET("float", "left"); }
|
23247
23251
|
break;
|
23248
23252
|
case 44:
|
23249
|
-
#line 44 "
|
23253
|
+
#line 44 "ragel/redcloth_scan.rl"
|
23250
23254
|
{ ASET("float", "right"); }
|
23251
23255
|
break;
|
23252
23256
|
case 45:
|
23253
|
-
#line 45 "
|
23257
|
+
#line 45 "ragel/redcloth_scan.rl"
|
23254
23258
|
{ {p = (((reg)))-1;} }
|
23255
23259
|
break;
|
23256
23260
|
case 46:
|
23257
|
-
#line 52 "
|
23261
|
+
#line 52 "ragel/redcloth_scan.rl"
|
23258
23262
|
{STORE_B("indent_before_start");}
|
23259
23263
|
break;
|
23260
23264
|
case 47:
|
23261
|
-
#line 52 "
|
23265
|
+
#line 52 "ragel/redcloth_scan.rl"
|
23262
23266
|
{STORE_B("start_tag");}
|
23263
23267
|
break;
|
23264
23268
|
case 48:
|
23265
|
-
#line 52 "
|
23269
|
+
#line 52 "ragel/redcloth_scan.rl"
|
23266
23270
|
{STORE_B("indent_after_start");}
|
23267
23271
|
break;
|
23268
23272
|
case 49:
|
23269
|
-
#line 53 "
|
23273
|
+
#line 53 "ragel/redcloth_scan.rl"
|
23270
23274
|
{STORE_B("indent_before_end");}
|
23271
23275
|
break;
|
23272
23276
|
case 50:
|
23273
|
-
#line 53 "
|
23277
|
+
#line 53 "ragel/redcloth_scan.rl"
|
23274
23278
|
{STORE_B("end_tag");}
|
23275
23279
|
break;
|
23276
23280
|
case 51:
|
23277
|
-
#line 53 "
|
23281
|
+
#line 53 "ragel/redcloth_scan.rl"
|
23278
23282
|
{STORE_B("indent_after_end");}
|
23279
23283
|
break;
|
23280
23284
|
case 52:
|
23281
|
-
#line 55 "
|
23285
|
+
#line 55 "ragel/redcloth_scan.rl"
|
23282
23286
|
{ {p = (((reg)))-1;} }
|
23283
23287
|
break;
|
23284
23288
|
case 53:
|
23285
|
-
#line 61 "
|
23289
|
+
#line 61 "ragel/redcloth_scan.rl"
|
23286
23290
|
{PASS(table, "text", "td");}
|
23287
23291
|
break;
|
23288
23292
|
case 54:
|
23289
|
-
#line 63 "
|
23293
|
+
#line 63 "ragel/redcloth_scan.rl"
|
23290
23294
|
{INLINE(table, "tr_open");}
|
23291
23295
|
break;
|
23292
23296
|
case 55:
|
23293
|
-
#line 63 "
|
23297
|
+
#line 63 "ragel/redcloth_scan.rl"
|
23294
23298
|
{INLINE(table, "tr_close");}
|
23295
23299
|
break;
|
23296
23300
|
case 56:
|
23297
|
-
#line 66 "
|
23301
|
+
#line 66 "ragel/redcloth_scan.rl"
|
23298
23302
|
{CLEAR(table); INLINE(table, "table_open"); RESET_REG();}
|
23299
23303
|
break;
|
23300
23304
|
case 57:
|
23301
|
-
#line 69 "
|
23305
|
+
#line 69 "ragel/redcloth_scan.rl"
|
23302
23306
|
{STORE("prefix");}
|
23303
23307
|
break;
|
23304
23308
|
case 58:
|
23305
|
-
#line 150 "
|
23309
|
+
#line 150 "ragel/redcloth_scan.rl"
|
23306
23310
|
{ SET_ATTRIBUTES(); {cs = 2468; goto _again;} }
|
23307
23311
|
break;
|
23308
23312
|
case 61:
|
23309
|
-
#line 1 "
|
23313
|
+
#line 1 "NONE"
|
23310
23314
|
{te = p+1;}
|
23311
23315
|
break;
|
23312
23316
|
case 62:
|
23313
|
-
#line 72 "
|
23317
|
+
#line 72 "ragel/redcloth_scan.rl"
|
23314
23318
|
{te = p+1;{ CAT(block); DONE(block); {cs = 2251; goto _again;} }}
|
23315
23319
|
break;
|
23316
23320
|
case 63:
|
23317
|
-
#line 6 "
|
23321
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23318
23322
|
{te = p+1;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23319
23323
|
break;
|
23320
23324
|
case 64:
|
23321
|
-
#line 72 "
|
23325
|
+
#line 72 "ragel/redcloth_scan.rl"
|
23322
23326
|
{te = p;p--;{ CAT(block); DONE(block); {cs = 2251; goto _again;} }}
|
23323
23327
|
break;
|
23324
23328
|
case 65:
|
23325
|
-
#line 6 "
|
23329
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23326
23330
|
{te = p;p--;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23327
23331
|
break;
|
23328
23332
|
case 66:
|
23329
|
-
#line 6 "
|
23333
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23330
23334
|
{{p = ((te))-1;}{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23331
23335
|
break;
|
23332
23336
|
case 67:
|
23333
|
-
#line 78 "
|
23337
|
+
#line 78 "ragel/redcloth_scan.rl"
|
23334
23338
|
{act = 4;}
|
23335
23339
|
break;
|
23336
23340
|
case 68:
|
23337
|
-
#line 79 "
|
23341
|
+
#line 79 "ragel/redcloth_scan.rl"
|
23338
23342
|
{act = 5;}
|
23339
23343
|
break;
|
23340
23344
|
case 69:
|
23341
|
-
#line 6 "
|
23345
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23342
23346
|
{act = 8;}
|
23343
23347
|
break;
|
23344
23348
|
case 70:
|
23345
|
-
#line 77 "
|
23349
|
+
#line 77 "ragel/redcloth_scan.rl"
|
23346
23350
|
{te = p+1;{ ADD_BLOCKCODE(); {cs = 2251; goto _again;} }}
|
23347
23351
|
break;
|
23348
23352
|
case 71:
|
23349
|
-
#line 80 "
|
23353
|
+
#line 80 "ragel/redcloth_scan.rl"
|
23350
23354
|
{te = p+1;{ ADD_EXTENDED_BLOCKCODE(); END_EXTENDED(); {cs = 2251; goto _again;} }}
|
23351
23355
|
break;
|
23352
23356
|
case 72:
|
23353
|
-
#line 81 "
|
23357
|
+
#line 81 "ragel/redcloth_scan.rl"
|
23354
23358
|
{te = p+1;{ ADD_BLOCKCODE(); {cs = 2251; goto _again;} }}
|
23355
23359
|
break;
|
23356
23360
|
case 73:
|
23357
|
-
#line 6 "
|
23361
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23358
23362
|
{te = p+1;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23359
23363
|
break;
|
23360
23364
|
case 74:
|
23361
|
-
#line 6 "
|
23365
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23362
23366
|
{te = p;p--;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23363
23367
|
break;
|
23364
23368
|
case 75:
|
23365
|
-
#line 6 "
|
23369
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23366
23370
|
{{p = ((te))-1;}{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23367
23371
|
break;
|
23368
23372
|
case 76:
|
23369
|
-
#line 1 "
|
23373
|
+
#line 1 "NONE"
|
23370
23374
|
{ switch( act ) {
|
23371
23375
|
case 4:
|
23372
23376
|
{{p = ((te))-1;} ADD_EXTENDED_BLOCKCODE(); }
|
@@ -23381,75 +23385,75 @@ _eof_trans:
|
|
23381
23385
|
}
|
23382
23386
|
break;
|
23383
23387
|
case 77:
|
23384
|
-
#line 86 "
|
23388
|
+
#line 86 "ragel/redcloth_scan.rl"
|
23385
23389
|
{te = p+1;{ CAT(block); ASET("type", "ignore"); ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23386
23390
|
break;
|
23387
23391
|
case 78:
|
23388
|
-
#line 87 "
|
23392
|
+
#line 87 "ragel/redcloth_scan.rl"
|
23389
23393
|
{te = p+1;{ ASET("type", "ignore"); ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23390
23394
|
break;
|
23391
23395
|
case 79:
|
23392
|
-
#line 11 "
|
23396
|
+
#line 11 "ragel/redcloth_common.rl"
|
23393
23397
|
{te = p+1;{ CAT(block); }}
|
23394
23398
|
break;
|
23395
23399
|
case 80:
|
23396
|
-
#line 86 "
|
23400
|
+
#line 86 "ragel/redcloth_scan.rl"
|
23397
23401
|
{te = p;p--;{ CAT(block); ASET("type", "ignore"); ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23398
23402
|
break;
|
23399
23403
|
case 81:
|
23400
|
-
#line 11 "
|
23404
|
+
#line 11 "ragel/redcloth_common.rl"
|
23401
23405
|
{te = p;p--;{ CAT(block); }}
|
23402
23406
|
break;
|
23403
23407
|
case 82:
|
23404
|
-
#line 11 "
|
23408
|
+
#line 11 "ragel/redcloth_common.rl"
|
23405
23409
|
{{p = ((te))-1;}{ CAT(block); }}
|
23406
23410
|
break;
|
23407
23411
|
case 83:
|
23408
|
-
#line 92 "
|
23412
|
+
#line 92 "ragel/redcloth_scan.rl"
|
23409
23413
|
{te = p+1;{ ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23410
23414
|
break;
|
23411
23415
|
case 84:
|
23412
|
-
#line 11 "
|
23416
|
+
#line 11 "ragel/redcloth_common.rl"
|
23413
23417
|
{te = p+1;{ CAT(block); }}
|
23414
23418
|
break;
|
23415
23419
|
case 85:
|
23416
|
-
#line 98 "
|
23420
|
+
#line 98 "ragel/redcloth_scan.rl"
|
23417
23421
|
{act = 15;}
|
23418
23422
|
break;
|
23419
23423
|
case 86:
|
23420
|
-
#line 99 "
|
23424
|
+
#line 99 "ragel/redcloth_scan.rl"
|
23421
23425
|
{act = 16;}
|
23422
23426
|
break;
|
23423
23427
|
case 87:
|
23424
|
-
#line 11 "
|
23428
|
+
#line 11 "ragel/redcloth_common.rl"
|
23425
23429
|
{act = 19;}
|
23426
23430
|
break;
|
23427
23431
|
case 88:
|
23428
|
-
#line 97 "
|
23432
|
+
#line 97 "ragel/redcloth_scan.rl"
|
23429
23433
|
{te = p+1;{ ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23430
23434
|
break;
|
23431
23435
|
case 89:
|
23432
|
-
#line 100 "
|
23436
|
+
#line 100 "ragel/redcloth_scan.rl"
|
23433
23437
|
{te = p+1;{ CAT(block); ADD_EXTENDED_BLOCK(); END_EXTENDED(); {cs = 2251; goto _again;} }}
|
23434
23438
|
break;
|
23435
23439
|
case 90:
|
23436
|
-
#line 101 "
|
23440
|
+
#line 101 "ragel/redcloth_scan.rl"
|
23437
23441
|
{te = p+1;{ ADD_BLOCK(); CAT(html); {cs = 2251; goto _again;} }}
|
23438
23442
|
break;
|
23439
23443
|
case 91:
|
23440
|
-
#line 11 "
|
23444
|
+
#line 11 "ragel/redcloth_common.rl"
|
23441
23445
|
{te = p+1;{ CAT(block); }}
|
23442
23446
|
break;
|
23443
23447
|
case 92:
|
23444
|
-
#line 11 "
|
23448
|
+
#line 11 "ragel/redcloth_common.rl"
|
23445
23449
|
{te = p;p--;{ CAT(block); }}
|
23446
23450
|
break;
|
23447
23451
|
case 93:
|
23448
|
-
#line 11 "
|
23452
|
+
#line 11 "ragel/redcloth_common.rl"
|
23449
23453
|
{{p = ((te))-1;}{ CAT(block); }}
|
23450
23454
|
break;
|
23451
23455
|
case 94:
|
23452
|
-
#line 1 "
|
23456
|
+
#line 1 "NONE"
|
23453
23457
|
{ switch( act ) {
|
23454
23458
|
case 15:
|
23455
23459
|
{{p = ((te))-1;} CAT(block); ADD_EXTENDED_BLOCK(); CAT(html); }
|
@@ -23464,59 +23468,59 @@ _eof_trans:
|
|
23464
23468
|
}
|
23465
23469
|
break;
|
23466
23470
|
case 95:
|
23467
|
-
#line 11 "
|
23471
|
+
#line 11 "ragel/redcloth_common.rl"
|
23468
23472
|
{te = p+1;{ CAT(block); }}
|
23469
23473
|
break;
|
23470
23474
|
case 96:
|
23471
|
-
#line 106 "
|
23475
|
+
#line 106 "ragel/redcloth_scan.rl"
|
23472
23476
|
{te = p;p--;{ ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23473
23477
|
break;
|
23474
23478
|
case 97:
|
23475
|
-
#line 11 "
|
23479
|
+
#line 11 "ragel/redcloth_common.rl"
|
23476
23480
|
{te = p;p--;{ CAT(block); }}
|
23477
23481
|
break;
|
23478
23482
|
case 98:
|
23479
|
-
#line 11 "
|
23483
|
+
#line 11 "ragel/redcloth_common.rl"
|
23480
23484
|
{{p = ((te))-1;}{ CAT(block); }}
|
23481
23485
|
break;
|
23482
23486
|
case 99:
|
23483
|
-
#line 112 "
|
23487
|
+
#line 112 "ragel/redcloth_scan.rl"
|
23484
23488
|
{act = 23;}
|
23485
23489
|
break;
|
23486
23490
|
case 100:
|
23487
|
-
#line 113 "
|
23491
|
+
#line 113 "ragel/redcloth_scan.rl"
|
23488
23492
|
{act = 24;}
|
23489
23493
|
break;
|
23490
23494
|
case 101:
|
23491
|
-
#line 6 "
|
23495
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23492
23496
|
{act = 27;}
|
23493
23497
|
break;
|
23494
23498
|
case 102:
|
23495
|
-
#line 111 "
|
23499
|
+
#line 111 "ragel/redcloth_scan.rl"
|
23496
23500
|
{te = p+1;{ ADD_BLOCKCODE(); INLINE(html, "bc_close"); SET_PLAIN_BLOCK("p"); {cs = 2251; goto _again;} }}
|
23497
23501
|
break;
|
23498
23502
|
case 103:
|
23499
|
-
#line 114 "
|
23503
|
+
#line 114 "ragel/redcloth_scan.rl"
|
23500
23504
|
{te = p+1;{ ADD_EXTENDED_BLOCKCODE(); CAT(html); RSTRIP_BANG(html); INLINE(html, "bc_close"); SET_PLAIN_BLOCK("p"); END_EXTENDED(); {cs = 2251; goto _again;} }}
|
23501
23505
|
break;
|
23502
23506
|
case 104:
|
23503
|
-
#line 115 "
|
23507
|
+
#line 115 "ragel/redcloth_scan.rl"
|
23504
23508
|
{te = p+1;{ ADD_BLOCKCODE(); INLINE(html, "bc_close"); SET_PLAIN_BLOCK("p"); {cs = 2251; goto _again;} }}
|
23505
23509
|
break;
|
23506
23510
|
case 105:
|
23507
|
-
#line 6 "
|
23511
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23508
23512
|
{te = p+1;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23509
23513
|
break;
|
23510
23514
|
case 106:
|
23511
|
-
#line 6 "
|
23515
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23512
23516
|
{te = p;p--;{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23513
23517
|
break;
|
23514
23518
|
case 107:
|
23515
|
-
#line 6 "
|
23519
|
+
#line 6 "ragel/redcloth_common.c.rl"
|
23516
23520
|
{{p = ((te))-1;}{ rb_str_cat_escaped_for_preformatted(self, block, ts, te); }}
|
23517
23521
|
break;
|
23518
23522
|
case 108:
|
23519
|
-
#line 1 "
|
23523
|
+
#line 1 "NONE"
|
23520
23524
|
{ switch( act ) {
|
23521
23525
|
case 23:
|
23522
23526
|
{{p = ((te))-1;} ADD_EXTENDED_BLOCKCODE(); CAT(html); }
|
@@ -23531,51 +23535,51 @@ _eof_trans:
|
|
23531
23535
|
}
|
23532
23536
|
break;
|
23533
23537
|
case 109:
|
23534
|
-
#line 121 "
|
23538
|
+
#line 121 "ragel/redcloth_scan.rl"
|
23535
23539
|
{act = 29;}
|
23536
23540
|
break;
|
23537
23541
|
case 110:
|
23538
|
-
#line 122 "
|
23542
|
+
#line 122 "ragel/redcloth_scan.rl"
|
23539
23543
|
{act = 30;}
|
23540
23544
|
break;
|
23541
23545
|
case 111:
|
23542
|
-
#line 11 "
|
23546
|
+
#line 11 "ragel/redcloth_common.rl"
|
23543
23547
|
{act = 35;}
|
23544
23548
|
break;
|
23545
23549
|
case 112:
|
23546
|
-
#line 120 "
|
23550
|
+
#line 120 "ragel/redcloth_scan.rl"
|
23547
23551
|
{te = p+1;{ ADD_BLOCK(); INLINE(html, "bq_close"); {cs = 2251; goto _again;} }}
|
23548
23552
|
break;
|
23549
23553
|
case 113:
|
23550
|
-
#line 123 "
|
23554
|
+
#line 123 "ragel/redcloth_scan.rl"
|
23551
23555
|
{te = p+1;{ ADD_EXTENDED_BLOCK(); INLINE(html, "bq_close"); END_EXTENDED(); {cs = 2251; goto _again;} }}
|
23552
23556
|
break;
|
23553
23557
|
case 114:
|
23554
|
-
#line 124 "
|
23558
|
+
#line 124 "ragel/redcloth_scan.rl"
|
23555
23559
|
{te = p+1;{ ADD_BLOCK(); INLINE(html, "bq_close"); {cs = 2251; goto _again;} }}
|
23556
23560
|
break;
|
23557
23561
|
case 115:
|
23558
|
-
#line 125 "
|
23562
|
+
#line 125 "ragel/redcloth_scan.rl"
|
23559
23563
|
{te = p+1;{ ADD_EXTENDED_BLOCK(); INLINE(html, "bq_close"); END_EXTENDED(); {cs = 2251; goto _again;} }}
|
23560
23564
|
break;
|
23561
23565
|
case 116:
|
23562
|
-
#line 126 "
|
23566
|
+
#line 126 "ragel/redcloth_scan.rl"
|
23563
23567
|
{te = p+1;{ ADD_BLOCK(); INLINE(html, "bq_close"); {cs = 2251; goto _again;} }}
|
23564
23568
|
break;
|
23565
23569
|
case 117:
|
23566
|
-
#line 11 "
|
23570
|
+
#line 11 "ragel/redcloth_common.rl"
|
23567
23571
|
{te = p+1;{ CAT(block); }}
|
23568
23572
|
break;
|
23569
23573
|
case 118:
|
23570
|
-
#line 11 "
|
23574
|
+
#line 11 "ragel/redcloth_common.rl"
|
23571
23575
|
{te = p;p--;{ CAT(block); }}
|
23572
23576
|
break;
|
23573
23577
|
case 119:
|
23574
|
-
#line 11 "
|
23578
|
+
#line 11 "ragel/redcloth_common.rl"
|
23575
23579
|
{{p = ((te))-1;}{ CAT(block); }}
|
23576
23580
|
break;
|
23577
23581
|
case 120:
|
23578
|
-
#line 1 "
|
23582
|
+
#line 1 "NONE"
|
23579
23583
|
{ switch( act ) {
|
23580
23584
|
case 29:
|
23581
23585
|
{{p = ((te))-1;} ADD_EXTENDED_BLOCK(); }
|
@@ -23590,59 +23594,59 @@ _eof_trans:
|
|
23590
23594
|
}
|
23591
23595
|
break;
|
23592
23596
|
case 121:
|
23593
|
-
#line 132 "
|
23597
|
+
#line 132 "ragel/redcloth_scan.rl"
|
23594
23598
|
{act = 37;}
|
23595
23599
|
break;
|
23596
23600
|
case 122:
|
23597
|
-
#line 133 "
|
23601
|
+
#line 133 "ragel/redcloth_scan.rl"
|
23598
23602
|
{act = 38;}
|
23599
23603
|
break;
|
23600
23604
|
case 123:
|
23601
|
-
#line 138 "
|
23605
|
+
#line 138 "ragel/redcloth_scan.rl"
|
23602
23606
|
{act = 43;}
|
23603
23607
|
break;
|
23604
23608
|
case 124:
|
23605
|
-
#line 11 "
|
23609
|
+
#line 11 "ragel/redcloth_common.rl"
|
23606
23610
|
{act = 44;}
|
23607
23611
|
break;
|
23608
23612
|
case 125:
|
23609
|
-
#line 131 "
|
23613
|
+
#line 131 "ragel/redcloth_scan.rl"
|
23610
23614
|
{te = p+1;{ ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23611
23615
|
break;
|
23612
23616
|
case 126:
|
23613
|
-
#line 134 "
|
23617
|
+
#line 134 "ragel/redcloth_scan.rl"
|
23614
23618
|
{te = p+1;{ ADD_EXTENDED_BLOCK(); END_EXTENDED(); {cs = 2251; goto _again;} }}
|
23615
23619
|
break;
|
23616
23620
|
case 127:
|
23617
|
-
#line 135 "
|
23621
|
+
#line 135 "ragel/redcloth_scan.rl"
|
23618
23622
|
{te = p+1;{ ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23619
23623
|
break;
|
23620
23624
|
case 128:
|
23621
|
-
#line 136 "
|
23625
|
+
#line 136 "ragel/redcloth_scan.rl"
|
23622
23626
|
{te = p+1;{ ADD_EXTENDED_BLOCK(); END_EXTENDED(); {cs = 2251; goto _again;} }}
|
23623
23627
|
break;
|
23624
23628
|
case 129:
|
23625
|
-
#line 137 "
|
23629
|
+
#line 137 "ragel/redcloth_scan.rl"
|
23626
23630
|
{te = p+1;{ ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23627
23631
|
break;
|
23628
23632
|
case 130:
|
23629
|
-
#line 11 "
|
23633
|
+
#line 11 "ragel/redcloth_common.rl"
|
23630
23634
|
{te = p+1;{ CAT(block); }}
|
23631
23635
|
break;
|
23632
23636
|
case 131:
|
23633
|
-
#line 138 "
|
23637
|
+
#line 138 "ragel/redcloth_scan.rl"
|
23634
23638
|
{te = p;p--;{ ADD_BLOCK(); CLEAR_LIST(); LIST_LAYOUT(); {cs = 2160; goto _again;} }}
|
23635
23639
|
break;
|
23636
23640
|
case 132:
|
23637
|
-
#line 11 "
|
23641
|
+
#line 11 "ragel/redcloth_common.rl"
|
23638
23642
|
{te = p;p--;{ CAT(block); }}
|
23639
23643
|
break;
|
23640
23644
|
case 133:
|
23641
|
-
#line 11 "
|
23645
|
+
#line 11 "ragel/redcloth_common.rl"
|
23642
23646
|
{{p = ((te))-1;}{ CAT(block); }}
|
23643
23647
|
break;
|
23644
23648
|
case 134:
|
23645
|
-
#line 1 "
|
23649
|
+
#line 1 "NONE"
|
23646
23650
|
{ switch( act ) {
|
23647
23651
|
case 37:
|
23648
23652
|
{{p = ((te))-1;} ADD_EXTENDED_BLOCK(); }
|
@@ -23660,51 +23664,51 @@ _eof_trans:
|
|
23660
23664
|
}
|
23661
23665
|
break;
|
23662
23666
|
case 135:
|
23663
|
-
#line 144 "
|
23667
|
+
#line 144 "ragel/redcloth_scan.rl"
|
23664
23668
|
{te = p+1;{ ADD_BLOCK(); {cs = 2251; goto _again;} }}
|
23665
23669
|
break;
|
23666
23670
|
case 136:
|
23667
|
-
#line 11 "
|
23671
|
+
#line 11 "ragel/redcloth_common.rl"
|
23668
23672
|
{te = p+1;{ CAT(block); }}
|
23669
23673
|
break;
|
23670
23674
|
case 137:
|
23671
|
-
#line 11 "
|
23675
|
+
#line 11 "ragel/redcloth_common.rl"
|
23672
23676
|
{te = p;p--;{ CAT(block); }}
|
23673
23677
|
break;
|
23674
23678
|
case 138:
|
23675
|
-
#line 11 "
|
23679
|
+
#line 11 "ragel/redcloth_common.rl"
|
23676
23680
|
{{p = ((te))-1;}{ CAT(block); }}
|
23677
23681
|
break;
|
23678
23682
|
case 139:
|
23679
|
-
#line 153 "
|
23683
|
+
#line 153 "ragel/redcloth_scan.rl"
|
23680
23684
|
{act = 47;}
|
23681
23685
|
break;
|
23682
23686
|
case 140:
|
23683
|
-
#line 11 "
|
23687
|
+
#line 11 "ragel/redcloth_common.rl"
|
23684
23688
|
{act = 49;}
|
23685
23689
|
break;
|
23686
23690
|
case 141:
|
23687
|
-
#line 154 "
|
23691
|
+
#line 154 "ragel/redcloth_scan.rl"
|
23688
23692
|
{te = p+1;{ ADD_BLOCK(); RESET_NEST(); LIST_LAYOUT(); {cs = 2251; goto _again;} }}
|
23689
23693
|
break;
|
23690
23694
|
case 142:
|
23691
|
-
#line 11 "
|
23695
|
+
#line 11 "ragel/redcloth_common.rl"
|
23692
23696
|
{te = p+1;{ CAT(block); }}
|
23693
23697
|
break;
|
23694
23698
|
case 143:
|
23695
|
-
#line 153 "
|
23699
|
+
#line 153 "ragel/redcloth_scan.rl"
|
23696
23700
|
{te = p;p--;{ ADD_BLOCK(); LIST_LAYOUT(); {cs = 2160; goto _again;} }}
|
23697
23701
|
break;
|
23698
23702
|
case 144:
|
23699
|
-
#line 11 "
|
23703
|
+
#line 11 "ragel/redcloth_common.rl"
|
23700
23704
|
{te = p;p--;{ CAT(block); }}
|
23701
23705
|
break;
|
23702
23706
|
case 145:
|
23703
|
-
#line 11 "
|
23707
|
+
#line 11 "ragel/redcloth_common.rl"
|
23704
23708
|
{{p = ((te))-1;}{ CAT(block); }}
|
23705
23709
|
break;
|
23706
23710
|
case 146:
|
23707
|
-
#line 1 "
|
23711
|
+
#line 1 "NONE"
|
23708
23712
|
{ switch( act ) {
|
23709
23713
|
case 47:
|
23710
23714
|
{{p = ((te))-1;} ADD_BLOCK(); LIST_LAYOUT(); {cs = 2160; goto _again;} }
|
@@ -23716,107 +23720,107 @@ _eof_trans:
|
|
23716
23720
|
}
|
23717
23721
|
break;
|
23718
23722
|
case 147:
|
23719
|
-
#line 161 "
|
23723
|
+
#line 161 "ragel/redcloth_scan.rl"
|
23720
23724
|
{te = p+1;{ INLINE(html, "dd"); CLEAR_REGS(); }}
|
23721
23725
|
break;
|
23722
23726
|
case 148:
|
23723
|
-
#line 162 "
|
23727
|
+
#line 162 "ragel/redcloth_scan.rl"
|
23724
23728
|
{te = p+1;{ ADD_BLOCK(); INLINE(html, "dl_close"); {cs = 2251; goto _again;} }}
|
23725
23729
|
break;
|
23726
23730
|
case 149:
|
23727
|
-
#line 11 "
|
23731
|
+
#line 11 "ragel/redcloth_common.rl"
|
23728
23732
|
{te = p+1;{ CAT(block); }}
|
23729
23733
|
break;
|
23730
23734
|
case 150:
|
23731
|
-
#line 159 "
|
23735
|
+
#line 159 "ragel/redcloth_scan.rl"
|
23732
23736
|
{te = p;p--;{ ADD_BLOCK(); ASET("type", "dt"); }}
|
23733
23737
|
break;
|
23734
23738
|
case 151:
|
23735
|
-
#line 160 "
|
23739
|
+
#line 160 "ragel/redcloth_scan.rl"
|
23736
23740
|
{te = p;p--;{ ADD_BLOCK(); ASET("type", "dd"); }}
|
23737
23741
|
break;
|
23738
23742
|
case 152:
|
23739
|
-
#line 11 "
|
23743
|
+
#line 11 "ragel/redcloth_common.rl"
|
23740
23744
|
{te = p;p--;{ CAT(block); }}
|
23741
23745
|
break;
|
23742
23746
|
case 153:
|
23743
|
-
#line 160 "
|
23747
|
+
#line 160 "ragel/redcloth_scan.rl"
|
23744
23748
|
{{p = ((te))-1;}{ ADD_BLOCK(); ASET("type", "dd"); }}
|
23745
23749
|
break;
|
23746
23750
|
case 154:
|
23747
|
-
#line 11 "
|
23751
|
+
#line 11 "ragel/redcloth_common.rl"
|
23748
23752
|
{{p = ((te))-1;}{ CAT(block); }}
|
23749
23753
|
break;
|
23750
23754
|
case 155:
|
23751
|
-
#line 167 "
|
23755
|
+
#line 167 "ragel/redcloth_scan.rl"
|
23752
23756
|
{act = 55;}
|
23753
23757
|
break;
|
23754
23758
|
case 156:
|
23755
|
-
#line 170 "
|
23759
|
+
#line 170 "ragel/redcloth_scan.rl"
|
23756
23760
|
{act = 58;}
|
23757
23761
|
break;
|
23758
23762
|
case 157:
|
23759
|
-
#line 171 "
|
23763
|
+
#line 171 "ragel/redcloth_scan.rl"
|
23760
23764
|
{act = 59;}
|
23761
23765
|
break;
|
23762
23766
|
case 158:
|
23763
|
-
#line 173 "
|
23767
|
+
#line 173 "ragel/redcloth_scan.rl"
|
23764
23768
|
{act = 61;}
|
23765
23769
|
break;
|
23766
23770
|
case 159:
|
23767
|
-
#line 174 "
|
23771
|
+
#line 174 "ragel/redcloth_scan.rl"
|
23768
23772
|
{act = 62;}
|
23769
23773
|
break;
|
23770
23774
|
case 160:
|
23771
|
-
#line 179 "
|
23775
|
+
#line 179 "ragel/redcloth_scan.rl"
|
23772
23776
|
{act = 67;}
|
23773
23777
|
break;
|
23774
23778
|
case 161:
|
23775
|
-
#line 180 "
|
23779
|
+
#line 180 "ragel/redcloth_scan.rl"
|
23776
23780
|
{act = 68;}
|
23777
23781
|
break;
|
23778
23782
|
case 162:
|
23779
|
-
#line 181 "
|
23783
|
+
#line 181 "ragel/redcloth_scan.rl"
|
23780
23784
|
{act = 69;}
|
23781
23785
|
break;
|
23782
23786
|
case 163:
|
23783
|
-
#line 182 "
|
23787
|
+
#line 182 "ragel/redcloth_scan.rl"
|
23784
23788
|
{act = 70;}
|
23785
23789
|
break;
|
23786
23790
|
case 164:
|
23787
|
-
#line 183 "
|
23791
|
+
#line 183 "ragel/redcloth_scan.rl"
|
23788
23792
|
{act = 71;}
|
23789
23793
|
break;
|
23790
23794
|
case 165:
|
23791
|
-
#line 184 "
|
23795
|
+
#line 184 "ragel/redcloth_scan.rl"
|
23792
23796
|
{act = 72;}
|
23793
23797
|
break;
|
23794
23798
|
case 166:
|
23795
|
-
#line 188 "
|
23799
|
+
#line 188 "ragel/redcloth_scan.rl"
|
23796
23800
|
{act = 75;}
|
23797
23801
|
break;
|
23798
23802
|
case 167:
|
23799
|
-
#line 168 "
|
23803
|
+
#line 168 "ragel/redcloth_scan.rl"
|
23800
23804
|
{te = p+1;{ INLINE(html, "notextile"); }}
|
23801
23805
|
break;
|
23802
23806
|
case 168:
|
23803
|
-
#line 171 "
|
23807
|
+
#line 171 "ragel/redcloth_scan.rl"
|
23804
23808
|
{te = p+1;{ ASET("type", "notextile"); CAT(block); {cs = 2420; goto _again;} }}
|
23805
23809
|
break;
|
23806
23810
|
case 169:
|
23807
|
-
#line 173 "
|
23811
|
+
#line 173 "ragel/redcloth_scan.rl"
|
23808
23812
|
{te = p+1;{ ASET("type", "html"); CAT(block); ADD_BLOCK(); }}
|
23809
23813
|
break;
|
23810
23814
|
case 170:
|
23811
|
-
#line 185 "
|
23815
|
+
#line 185 "ragel/redcloth_scan.rl"
|
23812
23816
|
{te = p+1;{ INLINE(html, "redcloth_version"); }}
|
23813
23817
|
break;
|
23814
23818
|
case 171:
|
23815
|
-
#line 11 "
|
23819
|
+
#line 11 "ragel/redcloth_common.rl"
|
23816
23820
|
{te = p+1;{ CAT(block); }}
|
23817
23821
|
break;
|
23818
23822
|
case 172:
|
23819
|
-
#line 188 "
|
23823
|
+
#line 188 "ragel/redcloth_scan.rl"
|
23820
23824
|
{te = p+1;{
|
23821
23825
|
CLEAR_REGS();
|
23822
23826
|
RESET_TYPE();
|
@@ -23825,87 +23829,87 @@ _eof_trans:
|
|
23825
23829
|
}}
|
23826
23830
|
break;
|
23827
23831
|
case 173:
|
23828
|
-
#line 194 "
|
23832
|
+
#line 194 "ragel/redcloth_scan.rl"
|
23829
23833
|
{te = p+1;}
|
23830
23834
|
break;
|
23831
23835
|
case 174:
|
23832
|
-
#line 167 "
|
23836
|
+
#line 167 "ragel/redcloth_scan.rl"
|
23833
23837
|
{te = p;p--;{ ASET("type", "ignored_line"); {cs = 2432; goto _again;} }}
|
23834
23838
|
break;
|
23835
23839
|
case 175:
|
23836
|
-
#line 168 "
|
23840
|
+
#line 168 "ragel/redcloth_scan.rl"
|
23837
23841
|
{te = p;p--;{ INLINE(html, "notextile"); }}
|
23838
23842
|
break;
|
23839
23843
|
case 176:
|
23840
|
-
#line 169 "
|
23844
|
+
#line 169 "ragel/redcloth_scan.rl"
|
23841
23845
|
{te = p;p--;{ ASET("type", "notextile"); {cs = 2433; goto _again;} }}
|
23842
23846
|
break;
|
23843
23847
|
case 177:
|
23844
|
-
#line 170 "
|
23848
|
+
#line 170 "ragel/redcloth_scan.rl"
|
23845
23849
|
{te = p;p--;{ CAT(block); {cs = 2429; goto _again;} }}
|
23846
23850
|
break;
|
23847
23851
|
case 178:
|
23848
|
-
#line 171 "
|
23852
|
+
#line 171 "ragel/redcloth_scan.rl"
|
23849
23853
|
{te = p;p--;{ ASET("type", "notextile"); CAT(block); {cs = 2420; goto _again;} }}
|
23850
23854
|
break;
|
23851
23855
|
case 179:
|
23852
|
-
#line 172 "
|
23856
|
+
#line 172 "ragel/redcloth_scan.rl"
|
23853
23857
|
{te = p;p--;{ {cs = 2423; goto _again;} }}
|
23854
23858
|
break;
|
23855
23859
|
case 180:
|
23856
|
-
#line 173 "
|
23860
|
+
#line 173 "ragel/redcloth_scan.rl"
|
23857
23861
|
{te = p;p--;{ ASET("type", "html"); CAT(block); ADD_BLOCK(); }}
|
23858
23862
|
break;
|
23859
23863
|
case 181:
|
23860
|
-
#line 174 "
|
23864
|
+
#line 174 "ragel/redcloth_scan.rl"
|
23861
23865
|
{te = p;p--;{ ASET("type", "html_block"); {cs = 2439; goto _again;} }}
|
23862
23866
|
break;
|
23863
23867
|
case 182:
|
23864
|
-
#line 175 "
|
23868
|
+
#line 175 "ragel/redcloth_scan.rl"
|
23865
23869
|
{te = p;p--;{ INLINE(html, "bc_open"); ASET("type", "code"); SET_PLAIN_BLOCK("code"); {cs = 2445; goto _again;} }}
|
23866
23870
|
break;
|
23867
23871
|
case 183:
|
23868
|
-
#line 176 "
|
23872
|
+
#line 176 "ragel/redcloth_scan.rl"
|
23869
23873
|
{te = p;p--;{ INLINE(html, "bq_open"); ASET("type", "p"); {cs = 2451; goto _again;} }}
|
23870
23874
|
break;
|
23871
23875
|
case 184:
|
23872
|
-
#line 177 "
|
23876
|
+
#line 177 "ragel/redcloth_scan.rl"
|
23873
23877
|
{te = p;p--;{ {cs = 2457; goto _again;} }}
|
23874
23878
|
break;
|
23875
23879
|
case 185:
|
23876
|
-
#line 178 "
|
23880
|
+
#line 178 "ragel/redcloth_scan.rl"
|
23877
23881
|
{te = p;p--;{ {cs = 2465; goto _again;} }}
|
23878
23882
|
break;
|
23879
23883
|
case 186:
|
23880
|
-
#line 179 "
|
23884
|
+
#line 179 "ragel/redcloth_scan.rl"
|
23881
23885
|
{te = p;p--;{ INLINE(html, "hr"); }}
|
23882
23886
|
break;
|
23883
23887
|
case 187:
|
23884
|
-
#line 180 "
|
23888
|
+
#line 180 "ragel/redcloth_scan.rl"
|
23885
23889
|
{te = p;p--;{ CLEAR_LIST(); LIST_LAYOUT(); {cs = 2160; goto _again;} }}
|
23886
23890
|
break;
|
23887
23891
|
case 188:
|
23888
|
-
#line 181 "
|
23892
|
+
#line 181 "ragel/redcloth_scan.rl"
|
23889
23893
|
{te = p;p--;{ {p = (((ts + 1)))-1;} INLINE(html, "dl_open"); ASET("type", "dt"); {cs = 2472; goto _again;} }}
|
23890
23894
|
break;
|
23891
23895
|
case 189:
|
23892
|
-
#line 182 "
|
23896
|
+
#line 182 "ragel/redcloth_scan.rl"
|
23893
23897
|
{te = p;p--;{ INLINE(table, "table_close"); DONE(table); {cs = 2457; goto _again;} }}
|
23894
23898
|
break;
|
23895
23899
|
case 190:
|
23896
|
-
#line 183 "
|
23900
|
+
#line 183 "ragel/redcloth_scan.rl"
|
23897
23901
|
{te = p;p--;{ STORE_LINK_ALIAS(); DONE(block); }}
|
23898
23902
|
break;
|
23899
23903
|
case 191:
|
23900
|
-
#line 184 "
|
23904
|
+
#line 184 "ragel/redcloth_scan.rl"
|
23901
23905
|
{te = p;p--;{ RESET_TYPE(); {cs = 2457; goto _again;} }}
|
23902
23906
|
break;
|
23903
23907
|
case 192:
|
23904
|
-
#line 185 "
|
23908
|
+
#line 185 "ragel/redcloth_scan.rl"
|
23905
23909
|
{te = p;p--;{ INLINE(html, "redcloth_version"); }}
|
23906
23910
|
break;
|
23907
23911
|
case 193:
|
23908
|
-
#line 188 "
|
23912
|
+
#line 188 "ragel/redcloth_scan.rl"
|
23909
23913
|
{te = p;p--;{
|
23910
23914
|
CLEAR_REGS();
|
23911
23915
|
RESET_TYPE();
|
@@ -23914,27 +23918,27 @@ _eof_trans:
|
|
23914
23918
|
}}
|
23915
23919
|
break;
|
23916
23920
|
case 194:
|
23917
|
-
#line 167 "
|
23921
|
+
#line 167 "ragel/redcloth_scan.rl"
|
23918
23922
|
{{p = ((te))-1;}{ ASET("type", "ignored_line"); {cs = 2432; goto _again;} }}
|
23919
23923
|
break;
|
23920
23924
|
case 195:
|
23921
|
-
#line 171 "
|
23925
|
+
#line 171 "ragel/redcloth_scan.rl"
|
23922
23926
|
{{p = ((te))-1;}{ ASET("type", "notextile"); CAT(block); {cs = 2420; goto _again;} }}
|
23923
23927
|
break;
|
23924
23928
|
case 196:
|
23925
|
-
#line 182 "
|
23929
|
+
#line 182 "ragel/redcloth_scan.rl"
|
23926
23930
|
{{p = ((te))-1;}{ INLINE(table, "table_close"); DONE(table); {cs = 2457; goto _again;} }}
|
23927
23931
|
break;
|
23928
23932
|
case 197:
|
23929
|
-
#line 183 "
|
23933
|
+
#line 183 "ragel/redcloth_scan.rl"
|
23930
23934
|
{{p = ((te))-1;}{ STORE_LINK_ALIAS(); DONE(block); }}
|
23931
23935
|
break;
|
23932
23936
|
case 198:
|
23933
|
-
#line 185 "
|
23937
|
+
#line 185 "ragel/redcloth_scan.rl"
|
23934
23938
|
{{p = ((te))-1;}{ INLINE(html, "redcloth_version"); }}
|
23935
23939
|
break;
|
23936
23940
|
case 199:
|
23937
|
-
#line 188 "
|
23941
|
+
#line 188 "ragel/redcloth_scan.rl"
|
23938
23942
|
{{p = ((te))-1;}{
|
23939
23943
|
CLEAR_REGS();
|
23940
23944
|
RESET_TYPE();
|
@@ -23943,7 +23947,7 @@ _eof_trans:
|
|
23943
23947
|
}}
|
23944
23948
|
break;
|
23945
23949
|
case 200:
|
23946
|
-
#line 1 "
|
23950
|
+
#line 1 "NONE"
|
23947
23951
|
{ switch( act ) {
|
23948
23952
|
case 55:
|
23949
23953
|
{{p = ((te))-1;} ASET("type", "ignored_line"); {cs = 2432; goto _again;} }
|
@@ -23989,7 +23993,7 @@ _eof_trans:
|
|
23989
23993
|
}
|
23990
23994
|
}
|
23991
23995
|
break;
|
23992
|
-
#line
|
23996
|
+
#line 23997 "ext/redcloth_scan/redcloth_scan.c"
|
23993
23997
|
}
|
23994
23998
|
}
|
23995
23999
|
|
@@ -23999,10 +24003,10 @@ _again:
|
|
23999
24003
|
while ( _nacts-- > 0 ) {
|
24000
24004
|
switch ( *_acts++ ) {
|
24001
24005
|
case 59:
|
24002
|
-
#line 1 "
|
24006
|
+
#line 1 "NONE"
|
24003
24007
|
{ts = 0;}
|
24004
24008
|
break;
|
24005
|
-
#line
|
24009
|
+
#line 24010 "ext/redcloth_scan/redcloth_scan.c"
|
24006
24010
|
}
|
24007
24011
|
}
|
24008
24012
|
|
@@ -24021,7 +24025,8 @@ _again:
|
|
24021
24025
|
|
24022
24026
|
_out: {}
|
24023
24027
|
}
|
24024
|
-
|
24028
|
+
|
24029
|
+
#line 53 "ragel/redcloth_scan.c.rl"
|
24025
24030
|
|
24026
24031
|
if (RSTRING_LEN(block) > 0)
|
24027
24032
|
{
|
@@ -24197,4 +24202,4 @@ void Init_redcloth_scan()
|
|
24197
24202
|
rb_define_method(super_RedCloth, "latex_esc", redcloth_latex_esc, 1);
|
24198
24203
|
SYM_escape_preformatted = ID2SYM(rb_intern("html_escape_preformatted"));
|
24199
24204
|
SYM_escape_attributes = ID2SYM(rb_intern("html_escape_attributes"));
|
24200
|
-
}
|
24205
|
+
}
|