rdoc 4.0.1 → 4.1.0.preview.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rdoc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.autotest +1 -3
- data/{DEVELOPERS.rdoc → CONTRIBUTING.rdoc} +28 -3
- data/ExampleMarkdown.md +37 -0
- data/ExampleRDoc.rdoc +208 -0
- data/History.rdoc +81 -0
- data/Manifest.txt +11 -2
- data/README.rdoc +5 -5
- data/Rakefile +34 -4
- data/lib/rdoc.rb +4 -3
- data/lib/rdoc/any_method.rb +48 -4
- data/lib/rdoc/class_module.rb +16 -2
- data/lib/rdoc/code_object.rb +85 -24
- data/lib/rdoc/comment.rb +0 -3
- data/lib/rdoc/constant.rb +9 -1
- data/lib/rdoc/context.rb +20 -2
- data/lib/rdoc/cross_reference.rb +1 -1
- data/lib/rdoc/extend.rb +4 -112
- data/lib/rdoc/generator/darkfish.rb +46 -7
- data/lib/rdoc/generator/template/darkfish/_footer.rhtml +4 -4
- data/lib/rdoc/generator/template/darkfish/_head.rhtml +14 -8
- data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +4 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +3 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +3 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +4 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +3 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +3 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +4 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +9 -5
- data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +5 -5
- data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +4 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +12 -7
- data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +5 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +6 -7
- data/lib/rdoc/generator/template/darkfish/class.rhtml +36 -41
- data/lib/rdoc/generator/template/darkfish/fonts.css +167 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/lib/rdoc/generator/template/darkfish/index.rhtml +11 -7
- data/lib/rdoc/generator/template/darkfish/js/darkfish.js +0 -15
- data/lib/rdoc/generator/template/darkfish/js/search.js +12 -4
- data/lib/rdoc/generator/template/darkfish/page.rhtml +9 -9
- data/lib/rdoc/generator/template/darkfish/rdoc.css +226 -241
- data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +5 -5
- data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +13 -6
- data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +17 -14
- data/lib/rdoc/include.rb +4 -114
- data/lib/rdoc/known_classes.rb +1 -0
- data/lib/rdoc/markdown.kpeg +126 -117
- data/lib/rdoc/markdown.rb +404 -389
- data/lib/rdoc/markdown/literals_1_8.kpeg +1 -1
- data/lib/rdoc/markdown/literals_1_8.rb +15 -12
- data/lib/rdoc/markdown/literals_1_9.kpeg +1 -1
- data/lib/rdoc/markdown/literals_1_9.rb +15 -12
- data/lib/rdoc/markup.rb +10 -13
- data/lib/rdoc/markup/attribute_manager.rb +3 -2
- data/lib/rdoc/markup/formatter.rb +3 -3
- data/lib/rdoc/markup/heading.rb +13 -0
- data/lib/rdoc/markup/parser.rb +10 -3
- data/lib/rdoc/markup/pre_process.rb +1 -1
- data/lib/rdoc/markup/to_html.rb +46 -31
- data/lib/rdoc/markup/to_html_crossref.rb +3 -0
- data/lib/rdoc/markup/to_joined_paragraph.rb +1 -1
- data/lib/rdoc/markup/to_markdown.rb +7 -5
- data/lib/rdoc/markup/verbatim.rb +1 -1
- data/lib/rdoc/method_attr.rb +13 -1
- data/lib/rdoc/mixin.rb +120 -0
- data/lib/rdoc/normal_class.rb +4 -0
- data/lib/rdoc/normal_module.rb +4 -0
- data/lib/rdoc/options.rb +42 -8
- data/lib/rdoc/parser.rb +4 -2
- data/lib/rdoc/parser/c.rb +13 -7
- data/lib/rdoc/parser/ruby.rb +683 -480
- data/lib/rdoc/rdoc.rb +4 -3
- data/lib/rdoc/ri/driver.rb +174 -103
- data/lib/rdoc/ri/paths.rb +6 -6
- data/lib/rdoc/ruby_lex.rb +125 -102
- data/lib/rdoc/ruby_token.rb +41 -40
- data/lib/rdoc/servlet.rb +16 -6
- data/lib/rdoc/stats.rb +61 -48
- data/lib/rdoc/store.rb +5 -3
- data/lib/rdoc/test_case.rb +39 -0
- data/lib/rdoc/tom_doc.rb +28 -4
- data/lib/rdoc/top_level.rb +2 -2
- data/test/test_rdoc_any_method.rb +104 -1
- data/test/test_rdoc_class_module.rb +9 -15
- data/test/test_rdoc_code_object.rb +133 -8
- data/test/test_rdoc_context.rb +17 -0
- data/test/test_rdoc_context_section.rb +0 -7
- data/test/test_rdoc_cross_reference.rb +4 -3
- data/test/test_rdoc_generator_darkfish.rb +61 -19
- data/test/test_rdoc_generator_json_index.rb +0 -11
- data/test/test_rdoc_generator_ri.rb +0 -8
- data/test/test_rdoc_markdown.rb +15 -12
- data/test/test_rdoc_markdown_test.rb +0 -7
- data/test/test_rdoc_markup_attribute_manager.rb +121 -0
- data/test/test_rdoc_markup_document.rb +0 -7
- data/test/test_rdoc_markup_formatter.rb +29 -3
- data/test/test_rdoc_markup_heading.rb +9 -0
- data/test/test_rdoc_markup_parser.rb +0 -7
- data/test/test_rdoc_markup_pre_process.rb +15 -3
- data/test/test_rdoc_markup_raw.rb +0 -7
- data/test/test_rdoc_markup_to_html.rb +50 -8
- data/test/test_rdoc_markup_to_html_crossref.rb +7 -0
- data/test/test_rdoc_markup_to_html_snippet.rb +4 -4
- data/test/test_rdoc_markup_to_markdown.rb +6 -0
- data/test/test_rdoc_method_attr.rb +8 -0
- data/test/test_rdoc_normal_class.rb +5 -0
- data/test/test_rdoc_normal_module.rb +5 -0
- data/test/test_rdoc_options.rb +61 -22
- data/test/test_rdoc_parser.rb +10 -0
- data/test/test_rdoc_parser_c.rb +17 -5
- data/test/test_rdoc_parser_changelog.rb +0 -7
- data/test/test_rdoc_parser_rd.rb +0 -7
- data/test/test_rdoc_parser_ruby.rb +305 -28
- data/test/test_rdoc_rd_block_parser.rb +0 -8
- data/test/test_rdoc_rd_inline_parser.rb +0 -1
- data/test/test_rdoc_rdoc.rb +27 -1
- data/test/test_rdoc_ri_driver.rb +19 -7
- data/test/test_rdoc_ruby_lex.rb +116 -9
- data/test/test_rdoc_rubygems_hook.rb +1 -1
- data/test/test_rdoc_servlet.rb +44 -6
- data/test/test_rdoc_stats.rb +161 -141
- data/test/test_rdoc_store.rb +11 -19
- data/test/test_rdoc_text.rb +0 -7
- data/test/test_rdoc_tom_doc.rb +44 -16
- data/test/xref_test_case.rb +2 -0
- metadata +28 -27
- metadata.gz.sig +0 -0
- data/test/test_attribute_manager.rb +0 -120
data/lib/rdoc/markdown.rb
CHANGED
@@ -8,6 +8,16 @@
|
|
8
8
|
# RDoc::Options@Saved+Options for instructions on setting up a `.doc_options`
|
9
9
|
# file to store your project default.
|
10
10
|
#
|
11
|
+
# ## Usage
|
12
|
+
#
|
13
|
+
# Here is a brief example of using this parse to read a markdown file by hand.
|
14
|
+
#
|
15
|
+
# data = File.read("README.md")
|
16
|
+
# formatter = RDoc::Markup::ToHtml.new(RDoc::Options.new, nil)
|
17
|
+
# html = RDoc::Markdown.parse(data).accept(@formatter)
|
18
|
+
#
|
19
|
+
# # do something with html
|
20
|
+
#
|
11
21
|
# ## Extensions
|
12
22
|
#
|
13
23
|
# The following markdown extensions are supported by the parser, but not all
|
@@ -120,7 +130,6 @@
|
|
120
130
|
# ## Limitations
|
121
131
|
#
|
122
132
|
# * Link titles are not used
|
123
|
-
# * Image links are not generated correctly
|
124
133
|
# * Footnotes are collapsed into a single paragraph
|
125
134
|
#
|
126
135
|
# ## Author
|
@@ -185,7 +194,6 @@ class RDoc::Markdown
|
|
185
194
|
attr_reader :failing_rule_offset
|
186
195
|
attr_accessor :result, :pos
|
187
196
|
|
188
|
-
|
189
197
|
def current_column(target=pos)
|
190
198
|
if c = string.rindex("\n", target-1)
|
191
199
|
return target - c - 1
|
@@ -868,13 +876,13 @@ class RDoc::Markdown
|
|
868
876
|
return _tmp
|
869
877
|
end
|
870
878
|
|
871
|
-
# Block = BlankLine* (BlockQuote | Verbatim | CodeFence | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)
|
879
|
+
# Block = @BlankLine* (BlockQuote | Verbatim | CodeFence | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)
|
872
880
|
def _Block
|
873
881
|
|
874
882
|
_save = self.pos
|
875
883
|
while true # sequence
|
876
884
|
while true
|
877
|
-
_tmp =
|
885
|
+
_tmp = _BlankLine()
|
878
886
|
break unless _tmp
|
879
887
|
end
|
880
888
|
_tmp = true
|
@@ -940,12 +948,12 @@ class RDoc::Markdown
|
|
940
948
|
return _tmp
|
941
949
|
end
|
942
950
|
|
943
|
-
# Para = NonindentSpace Inlines:a BlankLine+ { paragraph a }
|
951
|
+
# Para = @NonindentSpace Inlines:a @BlankLine+ { paragraph a }
|
944
952
|
def _Para
|
945
953
|
|
946
954
|
_save = self.pos
|
947
955
|
while true # sequence
|
948
|
-
_tmp =
|
956
|
+
_tmp = _NonindentSpace()
|
949
957
|
unless _tmp
|
950
958
|
self.pos = _save
|
951
959
|
break
|
@@ -957,10 +965,10 @@ class RDoc::Markdown
|
|
957
965
|
break
|
958
966
|
end
|
959
967
|
_save1 = self.pos
|
960
|
-
_tmp =
|
968
|
+
_tmp = _BlankLine()
|
961
969
|
if _tmp
|
962
970
|
while true
|
963
|
-
_tmp =
|
971
|
+
_tmp = _BlankLine()
|
964
972
|
break unless _tmp
|
965
973
|
end
|
966
974
|
_tmp = true
|
@@ -1006,13 +1014,13 @@ class RDoc::Markdown
|
|
1006
1014
|
return _tmp
|
1007
1015
|
end
|
1008
1016
|
|
1009
|
-
# AtxInline =
|
1017
|
+
# AtxInline = !@Newline !(@Sp? /#*/ @Sp @Newline) Inline
|
1010
1018
|
def _AtxInline
|
1011
1019
|
|
1012
1020
|
_save = self.pos
|
1013
1021
|
while true # sequence
|
1014
1022
|
_save1 = self.pos
|
1015
|
-
_tmp =
|
1023
|
+
_tmp = _Newline()
|
1016
1024
|
_tmp = _tmp ? nil : true
|
1017
1025
|
self.pos = _save1
|
1018
1026
|
unless _tmp
|
@@ -1024,7 +1032,7 @@ class RDoc::Markdown
|
|
1024
1032
|
_save3 = self.pos
|
1025
1033
|
while true # sequence
|
1026
1034
|
_save4 = self.pos
|
1027
|
-
_tmp =
|
1035
|
+
_tmp = _Sp()
|
1028
1036
|
unless _tmp
|
1029
1037
|
_tmp = true
|
1030
1038
|
self.pos = _save4
|
@@ -1038,12 +1046,12 @@ class RDoc::Markdown
|
|
1038
1046
|
self.pos = _save3
|
1039
1047
|
break
|
1040
1048
|
end
|
1041
|
-
_tmp =
|
1049
|
+
_tmp = _Sp()
|
1042
1050
|
unless _tmp
|
1043
1051
|
self.pos = _save3
|
1044
1052
|
break
|
1045
1053
|
end
|
1046
|
-
_tmp =
|
1054
|
+
_tmp = _Newline()
|
1047
1055
|
unless _tmp
|
1048
1056
|
self.pos = _save3
|
1049
1057
|
end
|
@@ -1093,7 +1101,7 @@ class RDoc::Markdown
|
|
1093
1101
|
return _tmp
|
1094
1102
|
end
|
1095
1103
|
|
1096
|
-
# AtxHeading = AtxStart:s Sp? AtxInline+:a (Sp? /#*/ Sp)? Newline { RDoc::Markup::Heading.new(s, a.join) }
|
1104
|
+
# AtxHeading = AtxStart:s @Sp? AtxInline+:a (@Sp? /#*/ @Sp)? @Newline { RDoc::Markup::Heading.new(s, a.join) }
|
1097
1105
|
def _AtxHeading
|
1098
1106
|
|
1099
1107
|
_save = self.pos
|
@@ -1105,7 +1113,7 @@ class RDoc::Markdown
|
|
1105
1113
|
break
|
1106
1114
|
end
|
1107
1115
|
_save1 = self.pos
|
1108
|
-
_tmp =
|
1116
|
+
_tmp = _Sp()
|
1109
1117
|
unless _tmp
|
1110
1118
|
_tmp = true
|
1111
1119
|
self.pos = _save1
|
@@ -1139,7 +1147,7 @@ class RDoc::Markdown
|
|
1139
1147
|
_save4 = self.pos
|
1140
1148
|
while true # sequence
|
1141
1149
|
_save5 = self.pos
|
1142
|
-
_tmp =
|
1150
|
+
_tmp = _Sp()
|
1143
1151
|
unless _tmp
|
1144
1152
|
_tmp = true
|
1145
1153
|
self.pos = _save5
|
@@ -1153,7 +1161,7 @@ class RDoc::Markdown
|
|
1153
1161
|
self.pos = _save4
|
1154
1162
|
break
|
1155
1163
|
end
|
1156
|
-
_tmp =
|
1164
|
+
_tmp = _Sp()
|
1157
1165
|
unless _tmp
|
1158
1166
|
self.pos = _save4
|
1159
1167
|
end
|
@@ -1168,7 +1176,7 @@ class RDoc::Markdown
|
|
1168
1176
|
self.pos = _save
|
1169
1177
|
break
|
1170
1178
|
end
|
1171
|
-
_tmp =
|
1179
|
+
_tmp = _Newline()
|
1172
1180
|
unless _tmp
|
1173
1181
|
self.pos = _save
|
1174
1182
|
break
|
@@ -1203,7 +1211,7 @@ class RDoc::Markdown
|
|
1203
1211
|
return _tmp
|
1204
1212
|
end
|
1205
1213
|
|
1206
|
-
# SetextBottom1 = /={3,}/ Newline
|
1214
|
+
# SetextBottom1 = /={3,}/ @Newline
|
1207
1215
|
def _SetextBottom1
|
1208
1216
|
|
1209
1217
|
_save = self.pos
|
@@ -1213,7 +1221,7 @@ class RDoc::Markdown
|
|
1213
1221
|
self.pos = _save
|
1214
1222
|
break
|
1215
1223
|
end
|
1216
|
-
_tmp =
|
1224
|
+
_tmp = _Newline()
|
1217
1225
|
unless _tmp
|
1218
1226
|
self.pos = _save
|
1219
1227
|
end
|
@@ -1224,7 +1232,7 @@ class RDoc::Markdown
|
|
1224
1232
|
return _tmp
|
1225
1233
|
end
|
1226
1234
|
|
1227
|
-
# SetextBottom2 = /-{3,}/ Newline
|
1235
|
+
# SetextBottom2 = /-{3,}/ @Newline
|
1228
1236
|
def _SetextBottom2
|
1229
1237
|
|
1230
1238
|
_save = self.pos
|
@@ -1234,7 +1242,7 @@ class RDoc::Markdown
|
|
1234
1242
|
self.pos = _save
|
1235
1243
|
break
|
1236
1244
|
end
|
1237
|
-
_tmp =
|
1245
|
+
_tmp = _Newline()
|
1238
1246
|
unless _tmp
|
1239
1247
|
self.pos = _save
|
1240
1248
|
end
|
@@ -1245,7 +1253,7 @@ class RDoc::Markdown
|
|
1245
1253
|
return _tmp
|
1246
1254
|
end
|
1247
1255
|
|
1248
|
-
# SetextHeading1 = &(RawLine SetextBottom1) StartList:a (
|
1256
|
+
# SetextHeading1 = &(@RawLine SetextBottom1) @StartList:a (!@Endline Inline:b { a << b })+ @Sp? @Newline SetextBottom1 { RDoc::Markup::Heading.new(1, a.join) }
|
1249
1257
|
def _SetextHeading1
|
1250
1258
|
|
1251
1259
|
_save = self.pos
|
@@ -1254,7 +1262,7 @@ class RDoc::Markdown
|
|
1254
1262
|
|
1255
1263
|
_save2 = self.pos
|
1256
1264
|
while true # sequence
|
1257
|
-
_tmp =
|
1265
|
+
_tmp = _RawLine()
|
1258
1266
|
unless _tmp
|
1259
1267
|
self.pos = _save2
|
1260
1268
|
break
|
@@ -1271,7 +1279,7 @@ class RDoc::Markdown
|
|
1271
1279
|
self.pos = _save
|
1272
1280
|
break
|
1273
1281
|
end
|
1274
|
-
_tmp =
|
1282
|
+
_tmp = _StartList()
|
1275
1283
|
a = @result
|
1276
1284
|
unless _tmp
|
1277
1285
|
self.pos = _save
|
@@ -1282,7 +1290,7 @@ class RDoc::Markdown
|
|
1282
1290
|
_save4 = self.pos
|
1283
1291
|
while true # sequence
|
1284
1292
|
_save5 = self.pos
|
1285
|
-
_tmp =
|
1293
|
+
_tmp = _Endline()
|
1286
1294
|
_tmp = _tmp ? nil : true
|
1287
1295
|
self.pos = _save5
|
1288
1296
|
unless _tmp
|
@@ -1309,7 +1317,7 @@ class RDoc::Markdown
|
|
1309
1317
|
_save6 = self.pos
|
1310
1318
|
while true # sequence
|
1311
1319
|
_save7 = self.pos
|
1312
|
-
_tmp =
|
1320
|
+
_tmp = _Endline()
|
1313
1321
|
_tmp = _tmp ? nil : true
|
1314
1322
|
self.pos = _save7
|
1315
1323
|
unless _tmp
|
@@ -1341,7 +1349,7 @@ class RDoc::Markdown
|
|
1341
1349
|
break
|
1342
1350
|
end
|
1343
1351
|
_save8 = self.pos
|
1344
|
-
_tmp =
|
1352
|
+
_tmp = _Sp()
|
1345
1353
|
unless _tmp
|
1346
1354
|
_tmp = true
|
1347
1355
|
self.pos = _save8
|
@@ -1350,7 +1358,7 @@ class RDoc::Markdown
|
|
1350
1358
|
self.pos = _save
|
1351
1359
|
break
|
1352
1360
|
end
|
1353
|
-
_tmp =
|
1361
|
+
_tmp = _Newline()
|
1354
1362
|
unless _tmp
|
1355
1363
|
self.pos = _save
|
1356
1364
|
break
|
@@ -1372,7 +1380,7 @@ class RDoc::Markdown
|
|
1372
1380
|
return _tmp
|
1373
1381
|
end
|
1374
1382
|
|
1375
|
-
# SetextHeading2 = &(RawLine SetextBottom2) StartList:a (
|
1383
|
+
# SetextHeading2 = &(@RawLine SetextBottom2) @StartList:a (!@Endline Inline:b { a << b })+ @Sp? @Newline SetextBottom2 { RDoc::Markup::Heading.new(2, a.join) }
|
1376
1384
|
def _SetextHeading2
|
1377
1385
|
|
1378
1386
|
_save = self.pos
|
@@ -1381,7 +1389,7 @@ class RDoc::Markdown
|
|
1381
1389
|
|
1382
1390
|
_save2 = self.pos
|
1383
1391
|
while true # sequence
|
1384
|
-
_tmp =
|
1392
|
+
_tmp = _RawLine()
|
1385
1393
|
unless _tmp
|
1386
1394
|
self.pos = _save2
|
1387
1395
|
break
|
@@ -1398,7 +1406,7 @@ class RDoc::Markdown
|
|
1398
1406
|
self.pos = _save
|
1399
1407
|
break
|
1400
1408
|
end
|
1401
|
-
_tmp =
|
1409
|
+
_tmp = _StartList()
|
1402
1410
|
a = @result
|
1403
1411
|
unless _tmp
|
1404
1412
|
self.pos = _save
|
@@ -1409,7 +1417,7 @@ class RDoc::Markdown
|
|
1409
1417
|
_save4 = self.pos
|
1410
1418
|
while true # sequence
|
1411
1419
|
_save5 = self.pos
|
1412
|
-
_tmp =
|
1420
|
+
_tmp = _Endline()
|
1413
1421
|
_tmp = _tmp ? nil : true
|
1414
1422
|
self.pos = _save5
|
1415
1423
|
unless _tmp
|
@@ -1436,7 +1444,7 @@ class RDoc::Markdown
|
|
1436
1444
|
_save6 = self.pos
|
1437
1445
|
while true # sequence
|
1438
1446
|
_save7 = self.pos
|
1439
|
-
_tmp =
|
1447
|
+
_tmp = _Endline()
|
1440
1448
|
_tmp = _tmp ? nil : true
|
1441
1449
|
self.pos = _save7
|
1442
1450
|
unless _tmp
|
@@ -1468,7 +1476,7 @@ class RDoc::Markdown
|
|
1468
1476
|
break
|
1469
1477
|
end
|
1470
1478
|
_save8 = self.pos
|
1471
|
-
_tmp =
|
1479
|
+
_tmp = _Sp()
|
1472
1480
|
unless _tmp
|
1473
1481
|
_tmp = true
|
1474
1482
|
self.pos = _save8
|
@@ -1477,7 +1485,7 @@ class RDoc::Markdown
|
|
1477
1485
|
self.pos = _save
|
1478
1486
|
break
|
1479
1487
|
end
|
1480
|
-
_tmp =
|
1488
|
+
_tmp = _Newline()
|
1481
1489
|
unless _tmp
|
1482
1490
|
self.pos = _save
|
1483
1491
|
break
|
@@ -1540,12 +1548,12 @@ class RDoc::Markdown
|
|
1540
1548
|
return _tmp
|
1541
1549
|
end
|
1542
1550
|
|
1543
|
-
# BlockQuoteRaw = StartList:a (">" " "? Line:l { a << l } (!">"
|
1551
|
+
# BlockQuoteRaw = @StartList:a (">" " "? Line:l { a << l } (!">" !@BlankLine Line:c { a << c })* (@BlankLine:n { a << n })*)+ { inner_parse a.join }
|
1544
1552
|
def _BlockQuoteRaw
|
1545
1553
|
|
1546
1554
|
_save = self.pos
|
1547
1555
|
while true # sequence
|
1548
|
-
_tmp =
|
1556
|
+
_tmp = _StartList()
|
1549
1557
|
a = @result
|
1550
1558
|
unless _tmp
|
1551
1559
|
self.pos = _save
|
@@ -1595,7 +1603,7 @@ class RDoc::Markdown
|
|
1595
1603
|
break
|
1596
1604
|
end
|
1597
1605
|
_save7 = self.pos
|
1598
|
-
_tmp =
|
1606
|
+
_tmp = _BlankLine()
|
1599
1607
|
_tmp = _tmp ? nil : true
|
1600
1608
|
self.pos = _save7
|
1601
1609
|
unless _tmp
|
@@ -1627,7 +1635,7 @@ class RDoc::Markdown
|
|
1627
1635
|
|
1628
1636
|
_save9 = self.pos
|
1629
1637
|
while true # sequence
|
1630
|
-
_tmp =
|
1638
|
+
_tmp = _BlankLine()
|
1631
1639
|
n = @result
|
1632
1640
|
unless _tmp
|
1633
1641
|
self.pos = _save9
|
@@ -1695,7 +1703,7 @@ class RDoc::Markdown
|
|
1695
1703
|
break
|
1696
1704
|
end
|
1697
1705
|
_save15 = self.pos
|
1698
|
-
_tmp =
|
1706
|
+
_tmp = _BlankLine()
|
1699
1707
|
_tmp = _tmp ? nil : true
|
1700
1708
|
self.pos = _save15
|
1701
1709
|
unless _tmp
|
@@ -1727,7 +1735,7 @@ class RDoc::Markdown
|
|
1727
1735
|
|
1728
1736
|
_save17 = self.pos
|
1729
1737
|
while true # sequence
|
1730
|
-
_tmp =
|
1738
|
+
_tmp = _BlankLine()
|
1731
1739
|
n = @result
|
1732
1740
|
unless _tmp
|
1733
1741
|
self.pos = _save17
|
@@ -1772,13 +1780,13 @@ class RDoc::Markdown
|
|
1772
1780
|
return _tmp
|
1773
1781
|
end
|
1774
1782
|
|
1775
|
-
# NonblankIndentedLine =
|
1783
|
+
# NonblankIndentedLine = !@BlankLine IndentedLine
|
1776
1784
|
def _NonblankIndentedLine
|
1777
1785
|
|
1778
1786
|
_save = self.pos
|
1779
1787
|
while true # sequence
|
1780
1788
|
_save1 = self.pos
|
1781
|
-
_tmp =
|
1789
|
+
_tmp = _BlankLine()
|
1782
1790
|
_tmp = _tmp ? nil : true
|
1783
1791
|
self.pos = _save1
|
1784
1792
|
unless _tmp
|
@@ -1796,14 +1804,14 @@ class RDoc::Markdown
|
|
1796
1804
|
return _tmp
|
1797
1805
|
end
|
1798
1806
|
|
1799
|
-
# VerbatimChunk = BlankLine*:a NonblankIndentedLine+:b { a.concat b }
|
1807
|
+
# VerbatimChunk = @BlankLine*:a NonblankIndentedLine+:b { a.concat b }
|
1800
1808
|
def _VerbatimChunk
|
1801
1809
|
|
1802
1810
|
_save = self.pos
|
1803
1811
|
while true # sequence
|
1804
1812
|
_ary = []
|
1805
1813
|
while true
|
1806
|
-
_tmp =
|
1814
|
+
_tmp = _BlankLine()
|
1807
1815
|
_ary << @result if _tmp
|
1808
1816
|
break unless _tmp
|
1809
1817
|
end
|
@@ -1883,12 +1891,12 @@ class RDoc::Markdown
|
|
1883
1891
|
return _tmp
|
1884
1892
|
end
|
1885
1893
|
|
1886
|
-
# HorizontalRule = NonindentSpace ("*" Sp "*" Sp "*" (Sp "*")* | "-" Sp "-" Sp "-" (Sp "-")* | "_" Sp "_" Sp "_" (Sp "_")*) Sp Newline BlankLine+ { RDoc::Markup::Rule.new 1 }
|
1894
|
+
# HorizontalRule = @NonindentSpace ("*" @Sp "*" @Sp "*" (@Sp "*")* | "-" @Sp "-" @Sp "-" (@Sp "-")* | "_" @Sp "_" @Sp "_" (@Sp "_")*) @Sp @Newline @BlankLine+ { RDoc::Markup::Rule.new 1 }
|
1887
1895
|
def _HorizontalRule
|
1888
1896
|
|
1889
1897
|
_save = self.pos
|
1890
1898
|
while true # sequence
|
1891
|
-
_tmp =
|
1899
|
+
_tmp = _NonindentSpace()
|
1892
1900
|
unless _tmp
|
1893
1901
|
self.pos = _save
|
1894
1902
|
break
|
@@ -1904,7 +1912,7 @@ class RDoc::Markdown
|
|
1904
1912
|
self.pos = _save2
|
1905
1913
|
break
|
1906
1914
|
end
|
1907
|
-
_tmp =
|
1915
|
+
_tmp = _Sp()
|
1908
1916
|
unless _tmp
|
1909
1917
|
self.pos = _save2
|
1910
1918
|
break
|
@@ -1914,7 +1922,7 @@ class RDoc::Markdown
|
|
1914
1922
|
self.pos = _save2
|
1915
1923
|
break
|
1916
1924
|
end
|
1917
|
-
_tmp =
|
1925
|
+
_tmp = _Sp()
|
1918
1926
|
unless _tmp
|
1919
1927
|
self.pos = _save2
|
1920
1928
|
break
|
@@ -1928,7 +1936,7 @@ class RDoc::Markdown
|
|
1928
1936
|
|
1929
1937
|
_save4 = self.pos
|
1930
1938
|
while true # sequence
|
1931
|
-
_tmp =
|
1939
|
+
_tmp = _Sp()
|
1932
1940
|
unless _tmp
|
1933
1941
|
self.pos = _save4
|
1934
1942
|
break
|
@@ -1959,7 +1967,7 @@ class RDoc::Markdown
|
|
1959
1967
|
self.pos = _save5
|
1960
1968
|
break
|
1961
1969
|
end
|
1962
|
-
_tmp =
|
1970
|
+
_tmp = _Sp()
|
1963
1971
|
unless _tmp
|
1964
1972
|
self.pos = _save5
|
1965
1973
|
break
|
@@ -1969,7 +1977,7 @@ class RDoc::Markdown
|
|
1969
1977
|
self.pos = _save5
|
1970
1978
|
break
|
1971
1979
|
end
|
1972
|
-
_tmp =
|
1980
|
+
_tmp = _Sp()
|
1973
1981
|
unless _tmp
|
1974
1982
|
self.pos = _save5
|
1975
1983
|
break
|
@@ -1983,7 +1991,7 @@ class RDoc::Markdown
|
|
1983
1991
|
|
1984
1992
|
_save7 = self.pos
|
1985
1993
|
while true # sequence
|
1986
|
-
_tmp =
|
1994
|
+
_tmp = _Sp()
|
1987
1995
|
unless _tmp
|
1988
1996
|
self.pos = _save7
|
1989
1997
|
break
|
@@ -2014,7 +2022,7 @@ class RDoc::Markdown
|
|
2014
2022
|
self.pos = _save8
|
2015
2023
|
break
|
2016
2024
|
end
|
2017
|
-
_tmp =
|
2025
|
+
_tmp = _Sp()
|
2018
2026
|
unless _tmp
|
2019
2027
|
self.pos = _save8
|
2020
2028
|
break
|
@@ -2024,7 +2032,7 @@ class RDoc::Markdown
|
|
2024
2032
|
self.pos = _save8
|
2025
2033
|
break
|
2026
2034
|
end
|
2027
|
-
_tmp =
|
2035
|
+
_tmp = _Sp()
|
2028
2036
|
unless _tmp
|
2029
2037
|
self.pos = _save8
|
2030
2038
|
break
|
@@ -2038,7 +2046,7 @@ class RDoc::Markdown
|
|
2038
2046
|
|
2039
2047
|
_save10 = self.pos
|
2040
2048
|
while true # sequence
|
2041
|
-
_tmp =
|
2049
|
+
_tmp = _Sp()
|
2042
2050
|
unless _tmp
|
2043
2051
|
self.pos = _save10
|
2044
2052
|
break
|
@@ -2068,21 +2076,21 @@ class RDoc::Markdown
|
|
2068
2076
|
self.pos = _save
|
2069
2077
|
break
|
2070
2078
|
end
|
2071
|
-
_tmp =
|
2079
|
+
_tmp = _Sp()
|
2072
2080
|
unless _tmp
|
2073
2081
|
self.pos = _save
|
2074
2082
|
break
|
2075
2083
|
end
|
2076
|
-
_tmp =
|
2084
|
+
_tmp = _Newline()
|
2077
2085
|
unless _tmp
|
2078
2086
|
self.pos = _save
|
2079
2087
|
break
|
2080
2088
|
end
|
2081
2089
|
_save11 = self.pos
|
2082
|
-
_tmp =
|
2090
|
+
_tmp = _BlankLine()
|
2083
2091
|
if _tmp
|
2084
2092
|
while true
|
2085
|
-
_tmp =
|
2093
|
+
_tmp = _BlankLine()
|
2086
2094
|
break unless _tmp
|
2087
2095
|
end
|
2088
2096
|
_tmp = true
|
@@ -2105,7 +2113,7 @@ class RDoc::Markdown
|
|
2105
2113
|
return _tmp
|
2106
2114
|
end
|
2107
2115
|
|
2108
|
-
# Bullet = !HorizontalRule NonindentSpace /[+*-]/ Spacechar+
|
2116
|
+
# Bullet = !HorizontalRule @NonindentSpace /[+*-]/ @Spacechar+
|
2109
2117
|
def _Bullet
|
2110
2118
|
|
2111
2119
|
_save = self.pos
|
@@ -2118,7 +2126,7 @@ class RDoc::Markdown
|
|
2118
2126
|
self.pos = _save
|
2119
2127
|
break
|
2120
2128
|
end
|
2121
|
-
_tmp =
|
2129
|
+
_tmp = _NonindentSpace()
|
2122
2130
|
unless _tmp
|
2123
2131
|
self.pos = _save
|
2124
2132
|
break
|
@@ -2129,10 +2137,10 @@ class RDoc::Markdown
|
|
2129
2137
|
break
|
2130
2138
|
end
|
2131
2139
|
_save2 = self.pos
|
2132
|
-
_tmp =
|
2140
|
+
_tmp = _Spacechar()
|
2133
2141
|
if _tmp
|
2134
2142
|
while true
|
2135
|
-
_tmp =
|
2143
|
+
_tmp = _Spacechar()
|
2136
2144
|
break unless _tmp
|
2137
2145
|
end
|
2138
2146
|
_tmp = true
|
@@ -2190,7 +2198,7 @@ class RDoc::Markdown
|
|
2190
2198
|
return _tmp
|
2191
2199
|
end
|
2192
2200
|
|
2193
|
-
# ListTight = ListItemTight+:a BlankLine* !(Bullet | Enumerator) { a }
|
2201
|
+
# ListTight = ListItemTight+:a @BlankLine* !(Bullet | Enumerator) { a }
|
2194
2202
|
def _ListTight
|
2195
2203
|
|
2196
2204
|
_save = self.pos
|
@@ -2216,7 +2224,7 @@ class RDoc::Markdown
|
|
2216
2224
|
break
|
2217
2225
|
end
|
2218
2226
|
while true
|
2219
|
-
_tmp =
|
2227
|
+
_tmp = _BlankLine()
|
2220
2228
|
break unless _tmp
|
2221
2229
|
end
|
2222
2230
|
_tmp = true
|
@@ -2255,12 +2263,12 @@ class RDoc::Markdown
|
|
2255
2263
|
return _tmp
|
2256
2264
|
end
|
2257
2265
|
|
2258
|
-
# ListLoose = StartList:a (ListItem:b BlankLine* { a << b })+ { a }
|
2266
|
+
# ListLoose = @StartList:a (ListItem:b @BlankLine* { a << b })+ { a }
|
2259
2267
|
def _ListLoose
|
2260
2268
|
|
2261
2269
|
_save = self.pos
|
2262
2270
|
while true # sequence
|
2263
|
-
_tmp =
|
2271
|
+
_tmp = _StartList()
|
2264
2272
|
a = @result
|
2265
2273
|
unless _tmp
|
2266
2274
|
self.pos = _save
|
@@ -2277,7 +2285,7 @@ class RDoc::Markdown
|
|
2277
2285
|
break
|
2278
2286
|
end
|
2279
2287
|
while true
|
2280
|
-
_tmp =
|
2288
|
+
_tmp = _BlankLine()
|
2281
2289
|
break unless _tmp
|
2282
2290
|
end
|
2283
2291
|
_tmp = true
|
@@ -2305,7 +2313,7 @@ class RDoc::Markdown
|
|
2305
2313
|
break
|
2306
2314
|
end
|
2307
2315
|
while true
|
2308
|
-
_tmp =
|
2316
|
+
_tmp = _BlankLine()
|
2309
2317
|
break unless _tmp
|
2310
2318
|
end
|
2311
2319
|
_tmp = true
|
@@ -2343,7 +2351,7 @@ class RDoc::Markdown
|
|
2343
2351
|
return _tmp
|
2344
2352
|
end
|
2345
2353
|
|
2346
|
-
# ListItem = (Bullet | Enumerator) StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a }
|
2354
|
+
# ListItem = (Bullet | Enumerator) @StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a }
|
2347
2355
|
def _ListItem
|
2348
2356
|
|
2349
2357
|
_save = self.pos
|
@@ -2364,7 +2372,7 @@ class RDoc::Markdown
|
|
2364
2372
|
self.pos = _save
|
2365
2373
|
break
|
2366
2374
|
end
|
2367
|
-
_tmp =
|
2375
|
+
_tmp = _StartList()
|
2368
2376
|
a = @result
|
2369
2377
|
unless _tmp
|
2370
2378
|
self.pos = _save
|
@@ -2419,7 +2427,7 @@ class RDoc::Markdown
|
|
2419
2427
|
return _tmp
|
2420
2428
|
end
|
2421
2429
|
|
2422
|
-
# ListItemTight = (Bullet | Enumerator) ListBlock:a (
|
2430
|
+
# ListItemTight = (Bullet | Enumerator) ListBlock:a (!@BlankLine ListContinuationBlock:b { a.push(*b) })* !ListContinuationBlock { list_item_from a }
|
2423
2431
|
def _ListItemTight
|
2424
2432
|
|
2425
2433
|
_save = self.pos
|
@@ -2451,7 +2459,7 @@ class RDoc::Markdown
|
|
2451
2459
|
_save3 = self.pos
|
2452
2460
|
while true # sequence
|
2453
2461
|
_save4 = self.pos
|
2454
|
-
_tmp =
|
2462
|
+
_tmp = _BlankLine()
|
2455
2463
|
_tmp = _tmp ? nil : true
|
2456
2464
|
self.pos = _save4
|
2457
2465
|
unless _tmp
|
@@ -2499,13 +2507,13 @@ class RDoc::Markdown
|
|
2499
2507
|
return _tmp
|
2500
2508
|
end
|
2501
2509
|
|
2502
|
-
# ListBlock =
|
2510
|
+
# ListBlock = !@BlankLine Line:a ListBlockLine*:c { [a, *c] }
|
2503
2511
|
def _ListBlock
|
2504
2512
|
|
2505
2513
|
_save = self.pos
|
2506
2514
|
while true # sequence
|
2507
2515
|
_save1 = self.pos
|
2508
|
-
_tmp =
|
2516
|
+
_tmp = _BlankLine()
|
2509
2517
|
_tmp = _tmp ? nil : true
|
2510
2518
|
self.pos = _save1
|
2511
2519
|
unless _tmp
|
@@ -2543,19 +2551,19 @@ class RDoc::Markdown
|
|
2543
2551
|
return _tmp
|
2544
2552
|
end
|
2545
2553
|
|
2546
|
-
# ListContinuationBlock = StartList:a BlankLine* { a << "\n" } (Indent ListBlock:b { a.concat b })+ { a }
|
2554
|
+
# ListContinuationBlock = @StartList:a @BlankLine* { a << "\n" } (Indent ListBlock:b { a.concat b })+ { a }
|
2547
2555
|
def _ListContinuationBlock
|
2548
2556
|
|
2549
2557
|
_save = self.pos
|
2550
2558
|
while true # sequence
|
2551
|
-
_tmp =
|
2559
|
+
_tmp = _StartList()
|
2552
2560
|
a = @result
|
2553
2561
|
unless _tmp
|
2554
2562
|
self.pos = _save
|
2555
2563
|
break
|
2556
2564
|
end
|
2557
2565
|
while true
|
2558
|
-
_tmp =
|
2566
|
+
_tmp = _BlankLine()
|
2559
2567
|
break unless _tmp
|
2560
2568
|
end
|
2561
2569
|
_tmp = true
|
@@ -2638,12 +2646,12 @@ class RDoc::Markdown
|
|
2638
2646
|
return _tmp
|
2639
2647
|
end
|
2640
2648
|
|
2641
|
-
# Enumerator = NonindentSpace [0-9]+ "." Spacechar+
|
2649
|
+
# Enumerator = @NonindentSpace [0-9]+ "." @Spacechar+
|
2642
2650
|
def _Enumerator
|
2643
2651
|
|
2644
2652
|
_save = self.pos
|
2645
2653
|
while true # sequence
|
2646
|
-
_tmp =
|
2654
|
+
_tmp = _NonindentSpace()
|
2647
2655
|
unless _tmp
|
2648
2656
|
self.pos = _save
|
2649
2657
|
break
|
@@ -2683,10 +2691,10 @@ class RDoc::Markdown
|
|
2683
2691
|
break
|
2684
2692
|
end
|
2685
2693
|
_save4 = self.pos
|
2686
|
-
_tmp =
|
2694
|
+
_tmp = _Spacechar()
|
2687
2695
|
if _tmp
|
2688
2696
|
while true
|
2689
|
-
_tmp =
|
2697
|
+
_tmp = _Spacechar()
|
2690
2698
|
break unless _tmp
|
2691
2699
|
end
|
2692
2700
|
_tmp = true
|
@@ -2744,13 +2752,13 @@ class RDoc::Markdown
|
|
2744
2752
|
return _tmp
|
2745
2753
|
end
|
2746
2754
|
|
2747
|
-
# ListBlockLine =
|
2755
|
+
# ListBlockLine = !@BlankLine !(Indent? (Bullet | Enumerator)) !HorizontalRule OptionallyIndentedLine
|
2748
2756
|
def _ListBlockLine
|
2749
2757
|
|
2750
2758
|
_save = self.pos
|
2751
2759
|
while true # sequence
|
2752
2760
|
_save1 = self.pos
|
2753
|
-
_tmp =
|
2761
|
+
_tmp = _BlankLine()
|
2754
2762
|
_tmp = _tmp ? nil : true
|
2755
2763
|
self.pos = _save1
|
2756
2764
|
unless _tmp
|
@@ -8392,7 +8400,7 @@ class RDoc::Markdown
|
|
8392
8400
|
return _tmp
|
8393
8401
|
end
|
8394
8402
|
|
8395
|
-
# HtmlBlock = < (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > BlankLine+ { if html? then RDoc::Markup::Raw.new text end }
|
8403
|
+
# HtmlBlock = < (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > @BlankLine+ { if html? then RDoc::Markup::Raw.new text end }
|
8396
8404
|
def _HtmlBlock
|
8397
8405
|
|
8398
8406
|
_save = self.pos
|
@@ -8424,10 +8432,10 @@ class RDoc::Markdown
|
|
8424
8432
|
break
|
8425
8433
|
end
|
8426
8434
|
_save2 = self.pos
|
8427
|
-
_tmp =
|
8435
|
+
_tmp = _BlankLine()
|
8428
8436
|
if _tmp
|
8429
8437
|
while true
|
8430
|
-
_tmp =
|
8438
|
+
_tmp = _BlankLine()
|
8431
8439
|
break unless _tmp
|
8432
8440
|
end
|
8433
8441
|
_tmp = true
|
@@ -8952,7 +8960,7 @@ class RDoc::Markdown
|
|
8952
8960
|
return _tmp
|
8953
8961
|
end
|
8954
8962
|
|
8955
|
-
# StyleBlock = < InStyleTags > BlankLine* { if css? then RDoc::Markup::Raw.new text end }
|
8963
|
+
# StyleBlock = < InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end }
|
8956
8964
|
def _StyleBlock
|
8957
8965
|
|
8958
8966
|
_save = self.pos
|
@@ -8967,7 +8975,7 @@ class RDoc::Markdown
|
|
8967
8975
|
break
|
8968
8976
|
end
|
8969
8977
|
while true
|
8970
|
-
_tmp =
|
8978
|
+
_tmp = _BlankLine()
|
8971
8979
|
break unless _tmp
|
8972
8980
|
end
|
8973
8981
|
_tmp = true
|
@@ -8989,7 +8997,7 @@ class RDoc::Markdown
|
|
8989
8997
|
return _tmp
|
8990
8998
|
end
|
8991
8999
|
|
8992
|
-
# Inlines = (
|
9000
|
+
# Inlines = (!@Endline Inline:i { i } | @Endline:c &Inline { c })+:chunks @Endline? { chunks }
|
8993
9001
|
def _Inlines
|
8994
9002
|
|
8995
9003
|
_save = self.pos
|
@@ -9003,7 +9011,7 @@ class RDoc::Markdown
|
|
9003
9011
|
_save3 = self.pos
|
9004
9012
|
while true # sequence
|
9005
9013
|
_save4 = self.pos
|
9006
|
-
_tmp =
|
9014
|
+
_tmp = _Endline()
|
9007
9015
|
_tmp = _tmp ? nil : true
|
9008
9016
|
self.pos = _save4
|
9009
9017
|
unless _tmp
|
@@ -9029,7 +9037,7 @@ class RDoc::Markdown
|
|
9029
9037
|
|
9030
9038
|
_save5 = self.pos
|
9031
9039
|
while true # sequence
|
9032
|
-
_tmp =
|
9040
|
+
_tmp = _Endline()
|
9033
9041
|
c = @result
|
9034
9042
|
unless _tmp
|
9035
9043
|
self.pos = _save5
|
@@ -9065,7 +9073,7 @@ class RDoc::Markdown
|
|
9065
9073
|
_save8 = self.pos
|
9066
9074
|
while true # sequence
|
9067
9075
|
_save9 = self.pos
|
9068
|
-
_tmp =
|
9076
|
+
_tmp = _Endline()
|
9069
9077
|
_tmp = _tmp ? nil : true
|
9070
9078
|
self.pos = _save9
|
9071
9079
|
unless _tmp
|
@@ -9091,7 +9099,7 @@ class RDoc::Markdown
|
|
9091
9099
|
|
9092
9100
|
_save10 = self.pos
|
9093
9101
|
while true # sequence
|
9094
|
-
_tmp =
|
9102
|
+
_tmp = _Endline()
|
9095
9103
|
c = @result
|
9096
9104
|
unless _tmp
|
9097
9105
|
self.pos = _save10
|
@@ -9131,7 +9139,7 @@ class RDoc::Markdown
|
|
9131
9139
|
break
|
9132
9140
|
end
|
9133
9141
|
_save12 = self.pos
|
9134
|
-
_tmp =
|
9142
|
+
_tmp = _Endline()
|
9135
9143
|
unless _tmp
|
9136
9144
|
_tmp = true
|
9137
9145
|
self.pos = _save12
|
@@ -9152,7 +9160,7 @@ class RDoc::Markdown
|
|
9152
9160
|
return _tmp
|
9153
9161
|
end
|
9154
9162
|
|
9155
|
-
# Inline = (Str | Endline | UlOrStarLine | Space | Strong | Emph | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol)
|
9163
|
+
# Inline = (Str | @Endline | UlOrStarLine | @Space | Strong | Emph | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol)
|
9156
9164
|
def _Inline
|
9157
9165
|
|
9158
9166
|
_save = self.pos
|
@@ -9160,13 +9168,13 @@ class RDoc::Markdown
|
|
9160
9168
|
_tmp = apply(:_Str)
|
9161
9169
|
break if _tmp
|
9162
9170
|
self.pos = _save
|
9163
|
-
_tmp =
|
9171
|
+
_tmp = _Endline()
|
9164
9172
|
break if _tmp
|
9165
9173
|
self.pos = _save
|
9166
9174
|
_tmp = apply(:_UlOrStarLine)
|
9167
9175
|
break if _tmp
|
9168
9176
|
self.pos = _save
|
9169
|
-
_tmp =
|
9177
|
+
_tmp = _Space()
|
9170
9178
|
break if _tmp
|
9171
9179
|
self.pos = _save
|
9172
9180
|
_tmp = apply(:_Strong)
|
@@ -9209,16 +9217,16 @@ class RDoc::Markdown
|
|
9209
9217
|
return _tmp
|
9210
9218
|
end
|
9211
9219
|
|
9212
|
-
# Space = Spacechar+ { " " }
|
9220
|
+
# Space = @Spacechar+ { " " }
|
9213
9221
|
def _Space
|
9214
9222
|
|
9215
9223
|
_save = self.pos
|
9216
9224
|
while true # sequence
|
9217
9225
|
_save1 = self.pos
|
9218
|
-
_tmp =
|
9226
|
+
_tmp = _Spacechar()
|
9219
9227
|
if _tmp
|
9220
9228
|
while true
|
9221
|
-
_tmp =
|
9229
|
+
_tmp = _Spacechar()
|
9222
9230
|
break unless _tmp
|
9223
9231
|
end
|
9224
9232
|
_tmp = true
|
@@ -9241,12 +9249,12 @@ class RDoc::Markdown
|
|
9241
9249
|
return _tmp
|
9242
9250
|
end
|
9243
9251
|
|
9244
|
-
# Str = StartList:a < NormalChar+ > { a = text } (StrChunk:c { a << c })* { a }
|
9252
|
+
# Str = @StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a }
|
9245
9253
|
def _Str
|
9246
9254
|
|
9247
9255
|
_save = self.pos
|
9248
9256
|
while true # sequence
|
9249
|
-
_tmp =
|
9257
|
+
_tmp = _StartList()
|
9250
9258
|
a = @result
|
9251
9259
|
unless _tmp
|
9252
9260
|
self.pos = _save
|
@@ -9254,10 +9262,10 @@ class RDoc::Markdown
|
|
9254
9262
|
end
|
9255
9263
|
_text_start = self.pos
|
9256
9264
|
_save1 = self.pos
|
9257
|
-
_tmp =
|
9265
|
+
_tmp = _NormalChar()
|
9258
9266
|
if _tmp
|
9259
9267
|
while true
|
9260
|
-
_tmp =
|
9268
|
+
_tmp = _NormalChar()
|
9261
9269
|
break unless _tmp
|
9262
9270
|
end
|
9263
9271
|
_tmp = true
|
@@ -9314,7 +9322,7 @@ class RDoc::Markdown
|
|
9314
9322
|
return _tmp
|
9315
9323
|
end
|
9316
9324
|
|
9317
|
-
# StrChunk = < (NormalChar | /_+/ &Alphanumeric)+ > { text }
|
9325
|
+
# StrChunk = < (@NormalChar | /_+/ &Alphanumeric)+ > { text }
|
9318
9326
|
def _StrChunk
|
9319
9327
|
|
9320
9328
|
_save = self.pos
|
@@ -9324,7 +9332,7 @@ class RDoc::Markdown
|
|
9324
9332
|
|
9325
9333
|
_save2 = self.pos
|
9326
9334
|
while true # choice
|
9327
|
-
_tmp =
|
9335
|
+
_tmp = _NormalChar()
|
9328
9336
|
break if _tmp
|
9329
9337
|
self.pos = _save2
|
9330
9338
|
|
@@ -9354,7 +9362,7 @@ class RDoc::Markdown
|
|
9354
9362
|
|
9355
9363
|
_save5 = self.pos
|
9356
9364
|
while true # choice
|
9357
|
-
_tmp =
|
9365
|
+
_tmp = _NormalChar()
|
9358
9366
|
break if _tmp
|
9359
9367
|
self.pos = _save5
|
9360
9368
|
|
@@ -9404,7 +9412,7 @@ class RDoc::Markdown
|
|
9404
9412
|
return _tmp
|
9405
9413
|
end
|
9406
9414
|
|
9407
|
-
# EscapedChar = "\\"
|
9415
|
+
# EscapedChar = "\\" !@Newline < /[:\\`|*_{}\[\]()#+.!><-]/ > { text }
|
9408
9416
|
def _EscapedChar
|
9409
9417
|
|
9410
9418
|
_save = self.pos
|
@@ -9415,7 +9423,7 @@ class RDoc::Markdown
|
|
9415
9423
|
break
|
9416
9424
|
end
|
9417
9425
|
_save1 = self.pos
|
9418
|
-
_tmp =
|
9426
|
+
_tmp = _Newline()
|
9419
9427
|
_tmp = _tmp ? nil : true
|
9420
9428
|
self.pos = _save1
|
9421
9429
|
unless _tmp
|
@@ -9480,18 +9488,18 @@ class RDoc::Markdown
|
|
9480
9488
|
return _tmp
|
9481
9489
|
end
|
9482
9490
|
|
9483
|
-
# Endline = (LineBreak | TerminalEndline | NormalEndline)
|
9491
|
+
# Endline = (@LineBreak | @TerminalEndline | @NormalEndline)
|
9484
9492
|
def _Endline
|
9485
9493
|
|
9486
9494
|
_save = self.pos
|
9487
9495
|
while true # choice
|
9488
|
-
_tmp =
|
9496
|
+
_tmp = _LineBreak()
|
9489
9497
|
break if _tmp
|
9490
9498
|
self.pos = _save
|
9491
|
-
_tmp =
|
9499
|
+
_tmp = _TerminalEndline()
|
9492
9500
|
break if _tmp
|
9493
9501
|
self.pos = _save
|
9494
|
-
_tmp =
|
9502
|
+
_tmp = _NormalEndline()
|
9495
9503
|
break if _tmp
|
9496
9504
|
self.pos = _save
|
9497
9505
|
break
|
@@ -9501,23 +9509,23 @@ class RDoc::Markdown
|
|
9501
9509
|
return _tmp
|
9502
9510
|
end
|
9503
9511
|
|
9504
|
-
# NormalEndline = Sp Newline
|
9512
|
+
# NormalEndline = @Sp @Newline !@BlankLine !">" !AtxStart !(Line /={3,}|-{3,}=/ @Newline) { "\n" }
|
9505
9513
|
def _NormalEndline
|
9506
9514
|
|
9507
9515
|
_save = self.pos
|
9508
9516
|
while true # sequence
|
9509
|
-
_tmp =
|
9517
|
+
_tmp = _Sp()
|
9510
9518
|
unless _tmp
|
9511
9519
|
self.pos = _save
|
9512
9520
|
break
|
9513
9521
|
end
|
9514
|
-
_tmp =
|
9522
|
+
_tmp = _Newline()
|
9515
9523
|
unless _tmp
|
9516
9524
|
self.pos = _save
|
9517
9525
|
break
|
9518
9526
|
end
|
9519
9527
|
_save1 = self.pos
|
9520
|
-
_tmp =
|
9528
|
+
_tmp = _BlankLine()
|
9521
9529
|
_tmp = _tmp ? nil : true
|
9522
9530
|
self.pos = _save1
|
9523
9531
|
unless _tmp
|
@@ -9554,7 +9562,7 @@ class RDoc::Markdown
|
|
9554
9562
|
self.pos = _save5
|
9555
9563
|
break
|
9556
9564
|
end
|
9557
|
-
_tmp =
|
9565
|
+
_tmp = _Newline()
|
9558
9566
|
unless _tmp
|
9559
9567
|
self.pos = _save5
|
9560
9568
|
end
|
@@ -9579,22 +9587,22 @@ class RDoc::Markdown
|
|
9579
9587
|
return _tmp
|
9580
9588
|
end
|
9581
9589
|
|
9582
|
-
# TerminalEndline = Sp Newline Eof
|
9590
|
+
# TerminalEndline = @Sp @Newline @Eof
|
9583
9591
|
def _TerminalEndline
|
9584
9592
|
|
9585
9593
|
_save = self.pos
|
9586
9594
|
while true # sequence
|
9587
|
-
_tmp =
|
9595
|
+
_tmp = _Sp()
|
9588
9596
|
unless _tmp
|
9589
9597
|
self.pos = _save
|
9590
9598
|
break
|
9591
9599
|
end
|
9592
|
-
_tmp =
|
9600
|
+
_tmp = _Newline()
|
9593
9601
|
unless _tmp
|
9594
9602
|
self.pos = _save
|
9595
9603
|
break
|
9596
9604
|
end
|
9597
|
-
_tmp =
|
9605
|
+
_tmp = _Eof()
|
9598
9606
|
unless _tmp
|
9599
9607
|
self.pos = _save
|
9600
9608
|
end
|
@@ -9605,7 +9613,7 @@ class RDoc::Markdown
|
|
9605
9613
|
return _tmp
|
9606
9614
|
end
|
9607
9615
|
|
9608
|
-
# LineBreak = " " NormalEndline { RDoc::Markup::HardBreak.new }
|
9616
|
+
# LineBreak = " " @NormalEndline { RDoc::Markup::HardBreak.new }
|
9609
9617
|
def _LineBreak
|
9610
9618
|
|
9611
9619
|
_save = self.pos
|
@@ -9615,7 +9623,7 @@ class RDoc::Markdown
|
|
9615
9623
|
self.pos = _save
|
9616
9624
|
break
|
9617
9625
|
end
|
9618
|
-
_tmp =
|
9626
|
+
_tmp = _NormalEndline()
|
9619
9627
|
unless _tmp
|
9620
9628
|
self.pos = _save
|
9621
9629
|
break
|
@@ -9632,13 +9640,13 @@ class RDoc::Markdown
|
|
9632
9640
|
return _tmp
|
9633
9641
|
end
|
9634
9642
|
|
9635
|
-
# Symbol = < SpecialChar > { text }
|
9643
|
+
# Symbol = < @SpecialChar > { text }
|
9636
9644
|
def _Symbol
|
9637
9645
|
|
9638
9646
|
_save = self.pos
|
9639
9647
|
while true # sequence
|
9640
9648
|
_text_start = self.pos
|
9641
|
-
_tmp =
|
9649
|
+
_tmp = _SpecialChar()
|
9642
9650
|
if _tmp
|
9643
9651
|
text = get_text(_text_start)
|
9644
9652
|
end
|
@@ -9692,7 +9700,7 @@ class RDoc::Markdown
|
|
9692
9700
|
return _tmp
|
9693
9701
|
end
|
9694
9702
|
|
9695
|
-
# StarLine = (< /\*{4,}/ > { text } | < Spacechar /\*+/
|
9703
|
+
# StarLine = (< /\*{4,}/ > { text } | < @Spacechar /\*+/ &@Spacechar > { text })
|
9696
9704
|
def _StarLine
|
9697
9705
|
|
9698
9706
|
_save = self.pos
|
@@ -9726,7 +9734,7 @@ class RDoc::Markdown
|
|
9726
9734
|
|
9727
9735
|
_save3 = self.pos
|
9728
9736
|
while true # sequence
|
9729
|
-
_tmp =
|
9737
|
+
_tmp = _Spacechar()
|
9730
9738
|
unless _tmp
|
9731
9739
|
self.pos = _save3
|
9732
9740
|
break
|
@@ -9737,7 +9745,7 @@ class RDoc::Markdown
|
|
9737
9745
|
break
|
9738
9746
|
end
|
9739
9747
|
_save4 = self.pos
|
9740
|
-
_tmp =
|
9748
|
+
_tmp = _Spacechar()
|
9741
9749
|
self.pos = _save4
|
9742
9750
|
unless _tmp
|
9743
9751
|
self.pos = _save3
|
@@ -9769,7 +9777,7 @@ class RDoc::Markdown
|
|
9769
9777
|
return _tmp
|
9770
9778
|
end
|
9771
9779
|
|
9772
|
-
# UlLine = (< /_{4,}/ > { text } | < Spacechar /_+/
|
9780
|
+
# UlLine = (< /_{4,}/ > { text } | < @Spacechar /_+/ &@Spacechar > { text })
|
9773
9781
|
def _UlLine
|
9774
9782
|
|
9775
9783
|
_save = self.pos
|
@@ -9803,7 +9811,7 @@ class RDoc::Markdown
|
|
9803
9811
|
|
9804
9812
|
_save3 = self.pos
|
9805
9813
|
while true # sequence
|
9806
|
-
_tmp =
|
9814
|
+
_tmp = _Spacechar()
|
9807
9815
|
unless _tmp
|
9808
9816
|
self.pos = _save3
|
9809
9817
|
break
|
@@ -9814,7 +9822,7 @@ class RDoc::Markdown
|
|
9814
9822
|
break
|
9815
9823
|
end
|
9816
9824
|
_save4 = self.pos
|
9817
|
-
_tmp =
|
9825
|
+
_tmp = _Spacechar()
|
9818
9826
|
self.pos = _save4
|
9819
9827
|
unless _tmp
|
9820
9828
|
self.pos = _save3
|
@@ -9864,7 +9872,7 @@ class RDoc::Markdown
|
|
9864
9872
|
return _tmp
|
9865
9873
|
end
|
9866
9874
|
|
9867
|
-
# OneStarOpen = !StarLine "*"
|
9875
|
+
# OneStarOpen = !StarLine "*" !@Spacechar !@Newline
|
9868
9876
|
def _OneStarOpen
|
9869
9877
|
|
9870
9878
|
_save = self.pos
|
@@ -9883,7 +9891,7 @@ class RDoc::Markdown
|
|
9883
9891
|
break
|
9884
9892
|
end
|
9885
9893
|
_save2 = self.pos
|
9886
|
-
_tmp =
|
9894
|
+
_tmp = _Spacechar()
|
9887
9895
|
_tmp = _tmp ? nil : true
|
9888
9896
|
self.pos = _save2
|
9889
9897
|
unless _tmp
|
@@ -9891,7 +9899,7 @@ class RDoc::Markdown
|
|
9891
9899
|
break
|
9892
9900
|
end
|
9893
9901
|
_save3 = self.pos
|
9894
|
-
_tmp =
|
9902
|
+
_tmp = _Newline()
|
9895
9903
|
_tmp = _tmp ? nil : true
|
9896
9904
|
self.pos = _save3
|
9897
9905
|
unless _tmp
|
@@ -9904,13 +9912,13 @@ class RDoc::Markdown
|
|
9904
9912
|
return _tmp
|
9905
9913
|
end
|
9906
9914
|
|
9907
|
-
# OneStarClose =
|
9915
|
+
# OneStarClose = !@Spacechar !@Newline Inline:a "*" { a }
|
9908
9916
|
def _OneStarClose
|
9909
9917
|
|
9910
9918
|
_save = self.pos
|
9911
9919
|
while true # sequence
|
9912
9920
|
_save1 = self.pos
|
9913
|
-
_tmp =
|
9921
|
+
_tmp = _Spacechar()
|
9914
9922
|
_tmp = _tmp ? nil : true
|
9915
9923
|
self.pos = _save1
|
9916
9924
|
unless _tmp
|
@@ -9918,7 +9926,7 @@ class RDoc::Markdown
|
|
9918
9926
|
break
|
9919
9927
|
end
|
9920
9928
|
_save2 = self.pos
|
9921
|
-
_tmp =
|
9929
|
+
_tmp = _Newline()
|
9922
9930
|
_tmp = _tmp ? nil : true
|
9923
9931
|
self.pos = _save2
|
9924
9932
|
unless _tmp
|
@@ -9948,7 +9956,7 @@ class RDoc::Markdown
|
|
9948
9956
|
return _tmp
|
9949
9957
|
end
|
9950
9958
|
|
9951
|
-
# EmphStar = OneStarOpen StartList:a (!OneStarClose Inline:l { a << l })* OneStarClose:l { a << l } { emphasis a.join }
|
9959
|
+
# EmphStar = OneStarOpen @StartList:a (!OneStarClose Inline:l { a << l })* OneStarClose:l { a << l } { emphasis a.join }
|
9952
9960
|
def _EmphStar
|
9953
9961
|
|
9954
9962
|
_save = self.pos
|
@@ -9958,7 +9966,7 @@ class RDoc::Markdown
|
|
9958
9966
|
self.pos = _save
|
9959
9967
|
break
|
9960
9968
|
end
|
9961
|
-
_tmp =
|
9969
|
+
_tmp = _StartList()
|
9962
9970
|
a = @result
|
9963
9971
|
unless _tmp
|
9964
9972
|
self.pos = _save
|
@@ -10021,7 +10029,7 @@ class RDoc::Markdown
|
|
10021
10029
|
return _tmp
|
10022
10030
|
end
|
10023
10031
|
|
10024
|
-
# OneUlOpen = !UlLine "_"
|
10032
|
+
# OneUlOpen = !UlLine "_" !@Spacechar !@Newline
|
10025
10033
|
def _OneUlOpen
|
10026
10034
|
|
10027
10035
|
_save = self.pos
|
@@ -10040,7 +10048,7 @@ class RDoc::Markdown
|
|
10040
10048
|
break
|
10041
10049
|
end
|
10042
10050
|
_save2 = self.pos
|
10043
|
-
_tmp =
|
10051
|
+
_tmp = _Spacechar()
|
10044
10052
|
_tmp = _tmp ? nil : true
|
10045
10053
|
self.pos = _save2
|
10046
10054
|
unless _tmp
|
@@ -10048,7 +10056,7 @@ class RDoc::Markdown
|
|
10048
10056
|
break
|
10049
10057
|
end
|
10050
10058
|
_save3 = self.pos
|
10051
|
-
_tmp =
|
10059
|
+
_tmp = _Newline()
|
10052
10060
|
_tmp = _tmp ? nil : true
|
10053
10061
|
self.pos = _save3
|
10054
10062
|
unless _tmp
|
@@ -10061,13 +10069,13 @@ class RDoc::Markdown
|
|
10061
10069
|
return _tmp
|
10062
10070
|
end
|
10063
10071
|
|
10064
|
-
# OneUlClose =
|
10072
|
+
# OneUlClose = !@Spacechar !@Newline Inline:a "_" { a }
|
10065
10073
|
def _OneUlClose
|
10066
10074
|
|
10067
10075
|
_save = self.pos
|
10068
10076
|
while true # sequence
|
10069
10077
|
_save1 = self.pos
|
10070
|
-
_tmp =
|
10078
|
+
_tmp = _Spacechar()
|
10071
10079
|
_tmp = _tmp ? nil : true
|
10072
10080
|
self.pos = _save1
|
10073
10081
|
unless _tmp
|
@@ -10075,7 +10083,7 @@ class RDoc::Markdown
|
|
10075
10083
|
break
|
10076
10084
|
end
|
10077
10085
|
_save2 = self.pos
|
10078
|
-
_tmp =
|
10086
|
+
_tmp = _Newline()
|
10079
10087
|
_tmp = _tmp ? nil : true
|
10080
10088
|
self.pos = _save2
|
10081
10089
|
unless _tmp
|
@@ -10105,7 +10113,7 @@ class RDoc::Markdown
|
|
10105
10113
|
return _tmp
|
10106
10114
|
end
|
10107
10115
|
|
10108
|
-
# EmphUl = OneUlOpen StartList:a (!OneUlClose Inline:l { a << l })* OneUlClose:l { a << l } { emphasis a.join }
|
10116
|
+
# EmphUl = OneUlOpen @StartList:a (!OneUlClose Inline:l { a << l })* OneUlClose:l { a << l } { emphasis a.join }
|
10109
10117
|
def _EmphUl
|
10110
10118
|
|
10111
10119
|
_save = self.pos
|
@@ -10115,7 +10123,7 @@ class RDoc::Markdown
|
|
10115
10123
|
self.pos = _save
|
10116
10124
|
break
|
10117
10125
|
end
|
10118
|
-
_tmp =
|
10126
|
+
_tmp = _StartList()
|
10119
10127
|
a = @result
|
10120
10128
|
unless _tmp
|
10121
10129
|
self.pos = _save
|
@@ -10196,7 +10204,7 @@ class RDoc::Markdown
|
|
10196
10204
|
return _tmp
|
10197
10205
|
end
|
10198
10206
|
|
10199
|
-
# TwoStarOpen = !StarLine "**"
|
10207
|
+
# TwoStarOpen = !StarLine "**" !@Spacechar !@Newline
|
10200
10208
|
def _TwoStarOpen
|
10201
10209
|
|
10202
10210
|
_save = self.pos
|
@@ -10215,7 +10223,7 @@ class RDoc::Markdown
|
|
10215
10223
|
break
|
10216
10224
|
end
|
10217
10225
|
_save2 = self.pos
|
10218
|
-
_tmp =
|
10226
|
+
_tmp = _Spacechar()
|
10219
10227
|
_tmp = _tmp ? nil : true
|
10220
10228
|
self.pos = _save2
|
10221
10229
|
unless _tmp
|
@@ -10223,7 +10231,7 @@ class RDoc::Markdown
|
|
10223
10231
|
break
|
10224
10232
|
end
|
10225
10233
|
_save3 = self.pos
|
10226
|
-
_tmp =
|
10234
|
+
_tmp = _Newline()
|
10227
10235
|
_tmp = _tmp ? nil : true
|
10228
10236
|
self.pos = _save3
|
10229
10237
|
unless _tmp
|
@@ -10236,13 +10244,13 @@ class RDoc::Markdown
|
|
10236
10244
|
return _tmp
|
10237
10245
|
end
|
10238
10246
|
|
10239
|
-
# TwoStarClose =
|
10247
|
+
# TwoStarClose = !@Spacechar !@Newline Inline:a "**" { a }
|
10240
10248
|
def _TwoStarClose
|
10241
10249
|
|
10242
10250
|
_save = self.pos
|
10243
10251
|
while true # sequence
|
10244
10252
|
_save1 = self.pos
|
10245
|
-
_tmp =
|
10253
|
+
_tmp = _Spacechar()
|
10246
10254
|
_tmp = _tmp ? nil : true
|
10247
10255
|
self.pos = _save1
|
10248
10256
|
unless _tmp
|
@@ -10250,7 +10258,7 @@ class RDoc::Markdown
|
|
10250
10258
|
break
|
10251
10259
|
end
|
10252
10260
|
_save2 = self.pos
|
10253
|
-
_tmp =
|
10261
|
+
_tmp = _Newline()
|
10254
10262
|
_tmp = _tmp ? nil : true
|
10255
10263
|
self.pos = _save2
|
10256
10264
|
unless _tmp
|
@@ -10280,7 +10288,7 @@ class RDoc::Markdown
|
|
10280
10288
|
return _tmp
|
10281
10289
|
end
|
10282
10290
|
|
10283
|
-
# StrongStar = TwoStarOpen StartList:a (!TwoStarClose Inline:l { a << l })* TwoStarClose:l { a << l } { strong a.join }
|
10291
|
+
# StrongStar = TwoStarOpen @StartList:a (!TwoStarClose Inline:l { a << l })* TwoStarClose:l { a << l } { strong a.join }
|
10284
10292
|
def _StrongStar
|
10285
10293
|
|
10286
10294
|
_save = self.pos
|
@@ -10290,7 +10298,7 @@ class RDoc::Markdown
|
|
10290
10298
|
self.pos = _save
|
10291
10299
|
break
|
10292
10300
|
end
|
10293
|
-
_tmp =
|
10301
|
+
_tmp = _StartList()
|
10294
10302
|
a = @result
|
10295
10303
|
unless _tmp
|
10296
10304
|
self.pos = _save
|
@@ -10353,7 +10361,7 @@ class RDoc::Markdown
|
|
10353
10361
|
return _tmp
|
10354
10362
|
end
|
10355
10363
|
|
10356
|
-
# TwoUlOpen = !UlLine "__"
|
10364
|
+
# TwoUlOpen = !UlLine "__" !@Spacechar !@Newline
|
10357
10365
|
def _TwoUlOpen
|
10358
10366
|
|
10359
10367
|
_save = self.pos
|
@@ -10372,7 +10380,7 @@ class RDoc::Markdown
|
|
10372
10380
|
break
|
10373
10381
|
end
|
10374
10382
|
_save2 = self.pos
|
10375
|
-
_tmp =
|
10383
|
+
_tmp = _Spacechar()
|
10376
10384
|
_tmp = _tmp ? nil : true
|
10377
10385
|
self.pos = _save2
|
10378
10386
|
unless _tmp
|
@@ -10380,7 +10388,7 @@ class RDoc::Markdown
|
|
10380
10388
|
break
|
10381
10389
|
end
|
10382
10390
|
_save3 = self.pos
|
10383
|
-
_tmp =
|
10391
|
+
_tmp = _Newline()
|
10384
10392
|
_tmp = _tmp ? nil : true
|
10385
10393
|
self.pos = _save3
|
10386
10394
|
unless _tmp
|
@@ -10393,13 +10401,13 @@ class RDoc::Markdown
|
|
10393
10401
|
return _tmp
|
10394
10402
|
end
|
10395
10403
|
|
10396
|
-
# TwoUlClose =
|
10404
|
+
# TwoUlClose = !@Spacechar !@Newline Inline:a "__" { a }
|
10397
10405
|
def _TwoUlClose
|
10398
10406
|
|
10399
10407
|
_save = self.pos
|
10400
10408
|
while true # sequence
|
10401
10409
|
_save1 = self.pos
|
10402
|
-
_tmp =
|
10410
|
+
_tmp = _Spacechar()
|
10403
10411
|
_tmp = _tmp ? nil : true
|
10404
10412
|
self.pos = _save1
|
10405
10413
|
unless _tmp
|
@@ -10407,7 +10415,7 @@ class RDoc::Markdown
|
|
10407
10415
|
break
|
10408
10416
|
end
|
10409
10417
|
_save2 = self.pos
|
10410
|
-
_tmp =
|
10418
|
+
_tmp = _Newline()
|
10411
10419
|
_tmp = _tmp ? nil : true
|
10412
10420
|
self.pos = _save2
|
10413
10421
|
unless _tmp
|
@@ -10437,7 +10445,7 @@ class RDoc::Markdown
|
|
10437
10445
|
return _tmp
|
10438
10446
|
end
|
10439
10447
|
|
10440
|
-
# StrongUl = TwoUlOpen StartList:a (!TwoUlClose Inline:i { a << i })* TwoUlClose:l { a << l } { strong a.join }
|
10448
|
+
# StrongUl = TwoUlOpen @StartList:a (!TwoUlClose Inline:i { a << i })* TwoUlClose:l { a << l } { strong a.join }
|
10441
10449
|
def _StrongUl
|
10442
10450
|
|
10443
10451
|
_save = self.pos
|
@@ -10447,7 +10455,7 @@ class RDoc::Markdown
|
|
10447
10455
|
self.pos = _save
|
10448
10456
|
break
|
10449
10457
|
end
|
10450
|
-
_tmp =
|
10458
|
+
_tmp = _StartList()
|
10451
10459
|
a = @result
|
10452
10460
|
unless _tmp
|
10453
10461
|
self.pos = _save
|
@@ -10510,7 +10518,7 @@ class RDoc::Markdown
|
|
10510
10518
|
return _tmp
|
10511
10519
|
end
|
10512
10520
|
|
10513
|
-
# Image = "!" (ExplicitLink | ReferenceLink):a { a }
|
10521
|
+
# Image = "!" (ExplicitLink | ReferenceLink):a { "rdoc-image:#{a[/\[(.*)\]/, 1]}" }
|
10514
10522
|
def _Image
|
10515
10523
|
|
10516
10524
|
_save = self.pos
|
@@ -10537,7 +10545,7 @@ class RDoc::Markdown
|
|
10537
10545
|
self.pos = _save
|
10538
10546
|
break
|
10539
10547
|
end
|
10540
|
-
@result = begin; a ; end
|
10548
|
+
@result = begin; "rdoc-image:#{a[/\[(.*)\]/, 1]}" ; end
|
10541
10549
|
_tmp = true
|
10542
10550
|
unless _tmp
|
10543
10551
|
self.pos = _save
|
@@ -10685,7 +10693,7 @@ class RDoc::Markdown
|
|
10685
10693
|
return _tmp
|
10686
10694
|
end
|
10687
10695
|
|
10688
|
-
# ExplicitLink = Label:l Spnl "(" Sp Source:s Spnl Title Sp ")" { "{#{l}}[#{s}]" }
|
10696
|
+
# ExplicitLink = Label:l Spnl "(" @Sp Source:s Spnl Title @Sp ")" { "{#{l}}[#{s}]" }
|
10689
10697
|
def _ExplicitLink
|
10690
10698
|
|
10691
10699
|
_save = self.pos
|
@@ -10706,7 +10714,7 @@ class RDoc::Markdown
|
|
10706
10714
|
self.pos = _save
|
10707
10715
|
break
|
10708
10716
|
end
|
10709
|
-
_tmp =
|
10717
|
+
_tmp = _Sp()
|
10710
10718
|
unless _tmp
|
10711
10719
|
self.pos = _save
|
10712
10720
|
break
|
@@ -10727,7 +10735,7 @@ class RDoc::Markdown
|
|
10727
10735
|
self.pos = _save
|
10728
10736
|
break
|
10729
10737
|
end
|
10730
|
-
_tmp =
|
10738
|
+
_tmp = _Sp()
|
10731
10739
|
unless _tmp
|
10732
10740
|
self.pos = _save
|
10733
10741
|
break
|
@@ -10974,7 +10982,7 @@ class RDoc::Markdown
|
|
10974
10982
|
return _tmp
|
10975
10983
|
end
|
10976
10984
|
|
10977
|
-
# TitleSingle = "'" (!("'" Sp (")" | Newline)) .)* "'"
|
10985
|
+
# TitleSingle = "'" (!("'" @Sp (")" | @Newline)) .)* "'"
|
10978
10986
|
def _TitleSingle
|
10979
10987
|
|
10980
10988
|
_save = self.pos
|
@@ -10997,7 +11005,7 @@ class RDoc::Markdown
|
|
10997
11005
|
self.pos = _save4
|
10998
11006
|
break
|
10999
11007
|
end
|
11000
|
-
_tmp =
|
11008
|
+
_tmp = _Sp()
|
11001
11009
|
unless _tmp
|
11002
11010
|
self.pos = _save4
|
11003
11011
|
break
|
@@ -11008,7 +11016,7 @@ class RDoc::Markdown
|
|
11008
11016
|
_tmp = match_string(")")
|
11009
11017
|
break if _tmp
|
11010
11018
|
self.pos = _save5
|
11011
|
-
_tmp =
|
11019
|
+
_tmp = _Newline()
|
11012
11020
|
break if _tmp
|
11013
11021
|
self.pos = _save5
|
11014
11022
|
break
|
@@ -11051,7 +11059,7 @@ class RDoc::Markdown
|
|
11051
11059
|
return _tmp
|
11052
11060
|
end
|
11053
11061
|
|
11054
|
-
# TitleDouble = "\"" (!("\"" Sp (")" | Newline)) .)* "\""
|
11062
|
+
# TitleDouble = "\"" (!("\"" @Sp (")" | @Newline)) .)* "\""
|
11055
11063
|
def _TitleDouble
|
11056
11064
|
|
11057
11065
|
_save = self.pos
|
@@ -11074,7 +11082,7 @@ class RDoc::Markdown
|
|
11074
11082
|
self.pos = _save4
|
11075
11083
|
break
|
11076
11084
|
end
|
11077
|
-
_tmp =
|
11085
|
+
_tmp = _Sp()
|
11078
11086
|
unless _tmp
|
11079
11087
|
self.pos = _save4
|
11080
11088
|
break
|
@@ -11085,7 +11093,7 @@ class RDoc::Markdown
|
|
11085
11093
|
_tmp = match_string(")")
|
11086
11094
|
break if _tmp
|
11087
11095
|
self.pos = _save5
|
11088
|
-
_tmp =
|
11096
|
+
_tmp = _Newline()
|
11089
11097
|
break if _tmp
|
11090
11098
|
self.pos = _save5
|
11091
11099
|
break
|
@@ -11146,7 +11154,7 @@ class RDoc::Markdown
|
|
11146
11154
|
return _tmp
|
11147
11155
|
end
|
11148
11156
|
|
11149
|
-
# AutoLinkUrl = "<" < /[A-Za-z]+/ "://" (
|
11157
|
+
# AutoLinkUrl = "<" < /[A-Za-z]+/ "://" (!@Newline !">" .)+ > ">" { text }
|
11150
11158
|
def _AutoLinkUrl
|
11151
11159
|
|
11152
11160
|
_save = self.pos
|
@@ -11175,7 +11183,7 @@ class RDoc::Markdown
|
|
11175
11183
|
_save3 = self.pos
|
11176
11184
|
while true # sequence
|
11177
11185
|
_save4 = self.pos
|
11178
|
-
_tmp =
|
11186
|
+
_tmp = _Newline()
|
11179
11187
|
_tmp = _tmp ? nil : true
|
11180
11188
|
self.pos = _save4
|
11181
11189
|
unless _tmp
|
@@ -11203,7 +11211,7 @@ class RDoc::Markdown
|
|
11203
11211
|
_save6 = self.pos
|
11204
11212
|
while true # sequence
|
11205
11213
|
_save7 = self.pos
|
11206
|
-
_tmp =
|
11214
|
+
_tmp = _Newline()
|
11207
11215
|
_tmp = _tmp ? nil : true
|
11208
11216
|
self.pos = _save7
|
11209
11217
|
unless _tmp
|
@@ -11261,7 +11269,7 @@ class RDoc::Markdown
|
|
11261
11269
|
return _tmp
|
11262
11270
|
end
|
11263
11271
|
|
11264
|
-
# AutoLinkEmail = "<" "mailto:"? < /[\w+.\/!%~$-]+/i "@" (
|
11272
|
+
# AutoLinkEmail = "<" "mailto:"? < /[\w+.\/!%~$-]+/i "@" (!@Newline !">" .)+ > ">" { "mailto:#{text}" }
|
11265
11273
|
def _AutoLinkEmail
|
11266
11274
|
|
11267
11275
|
_save = self.pos
|
@@ -11300,7 +11308,7 @@ class RDoc::Markdown
|
|
11300
11308
|
_save4 = self.pos
|
11301
11309
|
while true # sequence
|
11302
11310
|
_save5 = self.pos
|
11303
|
-
_tmp =
|
11311
|
+
_tmp = _Newline()
|
11304
11312
|
_tmp = _tmp ? nil : true
|
11305
11313
|
self.pos = _save5
|
11306
11314
|
unless _tmp
|
@@ -11328,7 +11336,7 @@ class RDoc::Markdown
|
|
11328
11336
|
_save7 = self.pos
|
11329
11337
|
while true # sequence
|
11330
11338
|
_save8 = self.pos
|
11331
|
-
_tmp =
|
11339
|
+
_tmp = _Newline()
|
11332
11340
|
_tmp = _tmp ? nil : true
|
11333
11341
|
self.pos = _save8
|
11334
11342
|
unless _tmp
|
@@ -11386,12 +11394,12 @@ class RDoc::Markdown
|
|
11386
11394
|
return _tmp
|
11387
11395
|
end
|
11388
11396
|
|
11389
|
-
# Reference = NonindentSpace !"[]" Label:label ":" Spnl RefSrc:link RefTitle BlankLine+ { # TODO use title reference label, link nil }
|
11397
|
+
# Reference = @NonindentSpace !"[]" Label:label ":" Spnl RefSrc:link RefTitle @BlankLine+ { # TODO use title reference label, link nil }
|
11390
11398
|
def _Reference
|
11391
11399
|
|
11392
11400
|
_save = self.pos
|
11393
11401
|
while true # sequence
|
11394
|
-
_tmp =
|
11402
|
+
_tmp = _NonindentSpace()
|
11395
11403
|
unless _tmp
|
11396
11404
|
self.pos = _save
|
11397
11405
|
break
|
@@ -11432,10 +11440,10 @@ class RDoc::Markdown
|
|
11432
11440
|
break
|
11433
11441
|
end
|
11434
11442
|
_save2 = self.pos
|
11435
|
-
_tmp =
|
11443
|
+
_tmp = _BlankLine()
|
11436
11444
|
if _tmp
|
11437
11445
|
while true
|
11438
|
-
_tmp =
|
11446
|
+
_tmp = _BlankLine()
|
11439
11447
|
break unless _tmp
|
11440
11448
|
end
|
11441
11449
|
_tmp = true
|
@@ -11461,7 +11469,7 @@ class RDoc::Markdown
|
|
11461
11469
|
return _tmp
|
11462
11470
|
end
|
11463
11471
|
|
11464
|
-
# Label = "[" (!"^" &{ notes? } | &. &{ !notes? }) StartList:a (!"]" Inline:l { a << l })* "]" { a.join.gsub(/\s+/, ' ') }
|
11472
|
+
# Label = "[" (!"^" &{ notes? } | &. &{ !notes? }) @StartList:a (!"]" Inline:l { a << l })* "]" { a.join.gsub(/\s+/, ' ') }
|
11465
11473
|
def _Label
|
11466
11474
|
|
11467
11475
|
_save = self.pos
|
@@ -11524,7 +11532,7 @@ class RDoc::Markdown
|
|
11524
11532
|
self.pos = _save
|
11525
11533
|
break
|
11526
11534
|
end
|
11527
|
-
_tmp =
|
11535
|
+
_tmp = _StartList()
|
11528
11536
|
a = @result
|
11529
11537
|
unless _tmp
|
11530
11538
|
self.pos = _save
|
@@ -11647,7 +11655,7 @@ class RDoc::Markdown
|
|
11647
11655
|
return _tmp
|
11648
11656
|
end
|
11649
11657
|
|
11650
|
-
# RefTitleSingle = Spnl "'" < (!("'" Sp Newline | Newline) .)* > "'" { text }
|
11658
|
+
# RefTitleSingle = Spnl "'" < (!("'" @Sp @Newline | @Newline) .)* > "'" { text }
|
11651
11659
|
def _RefTitleSingle
|
11652
11660
|
|
11653
11661
|
_save = self.pos
|
@@ -11679,12 +11687,12 @@ class RDoc::Markdown
|
|
11679
11687
|
self.pos = _save5
|
11680
11688
|
break
|
11681
11689
|
end
|
11682
|
-
_tmp =
|
11690
|
+
_tmp = _Sp()
|
11683
11691
|
unless _tmp
|
11684
11692
|
self.pos = _save5
|
11685
11693
|
break
|
11686
11694
|
end
|
11687
|
-
_tmp =
|
11695
|
+
_tmp = _Newline()
|
11688
11696
|
unless _tmp
|
11689
11697
|
self.pos = _save5
|
11690
11698
|
end
|
@@ -11693,7 +11701,7 @@ class RDoc::Markdown
|
|
11693
11701
|
|
11694
11702
|
break if _tmp
|
11695
11703
|
self.pos = _save4
|
11696
|
-
_tmp =
|
11704
|
+
_tmp = _Newline()
|
11697
11705
|
break if _tmp
|
11698
11706
|
self.pos = _save4
|
11699
11707
|
break
|
@@ -11739,7 +11747,7 @@ class RDoc::Markdown
|
|
11739
11747
|
return _tmp
|
11740
11748
|
end
|
11741
11749
|
|
11742
|
-
# RefTitleDouble = Spnl "\"" < (!("\"" Sp Newline | Newline) .)* > "\"" { text }
|
11750
|
+
# RefTitleDouble = Spnl "\"" < (!("\"" @Sp @Newline | @Newline) .)* > "\"" { text }
|
11743
11751
|
def _RefTitleDouble
|
11744
11752
|
|
11745
11753
|
_save = self.pos
|
@@ -11771,12 +11779,12 @@ class RDoc::Markdown
|
|
11771
11779
|
self.pos = _save5
|
11772
11780
|
break
|
11773
11781
|
end
|
11774
|
-
_tmp =
|
11782
|
+
_tmp = _Sp()
|
11775
11783
|
unless _tmp
|
11776
11784
|
self.pos = _save5
|
11777
11785
|
break
|
11778
11786
|
end
|
11779
|
-
_tmp =
|
11787
|
+
_tmp = _Newline()
|
11780
11788
|
unless _tmp
|
11781
11789
|
self.pos = _save5
|
11782
11790
|
end
|
@@ -11785,7 +11793,7 @@ class RDoc::Markdown
|
|
11785
11793
|
|
11786
11794
|
break if _tmp
|
11787
11795
|
self.pos = _save4
|
11788
|
-
_tmp =
|
11796
|
+
_tmp = _Newline()
|
11789
11797
|
break if _tmp
|
11790
11798
|
self.pos = _save4
|
11791
11799
|
break
|
@@ -11831,7 +11839,7 @@ class RDoc::Markdown
|
|
11831
11839
|
return _tmp
|
11832
11840
|
end
|
11833
11841
|
|
11834
|
-
# RefTitleParens = Spnl "(" < (!(")" Sp Newline | Newline) .)* > ")" { text }
|
11842
|
+
# RefTitleParens = Spnl "(" < (!(")" @Sp @Newline | @Newline) .)* > ")" { text }
|
11835
11843
|
def _RefTitleParens
|
11836
11844
|
|
11837
11845
|
_save = self.pos
|
@@ -11863,12 +11871,12 @@ class RDoc::Markdown
|
|
11863
11871
|
self.pos = _save5
|
11864
11872
|
break
|
11865
11873
|
end
|
11866
|
-
_tmp =
|
11874
|
+
_tmp = _Sp()
|
11867
11875
|
unless _tmp
|
11868
11876
|
self.pos = _save5
|
11869
11877
|
break
|
11870
11878
|
end
|
11871
|
-
_tmp =
|
11879
|
+
_tmp = _Newline()
|
11872
11880
|
unless _tmp
|
11873
11881
|
self.pos = _save5
|
11874
11882
|
end
|
@@ -11877,7 +11885,7 @@ class RDoc::Markdown
|
|
11877
11885
|
|
11878
11886
|
break if _tmp
|
11879
11887
|
self.pos = _save4
|
11880
|
-
_tmp =
|
11888
|
+
_tmp = _Newline()
|
11881
11889
|
break if _tmp
|
11882
11890
|
self.pos = _save4
|
11883
11891
|
break
|
@@ -12065,7 +12073,7 @@ class RDoc::Markdown
|
|
12065
12073
|
return _tmp
|
12066
12074
|
end
|
12067
12075
|
|
12068
|
-
# Code = (Ticks1 Sp < ((!"`" Nonspacechar)+ | !Ticks1 /`+/ | !(Sp Ticks1) (Spacechar | Newline
|
12076
|
+
# Code = (Ticks1 @Sp < ((!"`" Nonspacechar)+ | !Ticks1 /`+/ | !(@Sp Ticks1) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks1 | Ticks2 @Sp < ((!"`" Nonspacechar)+ | !Ticks2 /`+/ | !(@Sp Ticks2) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks2 | Ticks3 @Sp < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | !(@Sp Ticks3) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks3 | Ticks4 @Sp < ((!"`" Nonspacechar)+ | !Ticks4 /`+/ | !(@Sp Ticks4) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks4 | Ticks5 @Sp < ((!"`" Nonspacechar)+ | !Ticks5 /`+/ | !(@Sp Ticks5) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks5) { "<code>#{text}</code>" }
|
12069
12077
|
def _Code
|
12070
12078
|
|
12071
12079
|
_save = self.pos
|
@@ -12081,7 +12089,7 @@ class RDoc::Markdown
|
|
12081
12089
|
self.pos = _save2
|
12082
12090
|
break
|
12083
12091
|
end
|
12084
|
-
_tmp =
|
12092
|
+
_tmp = _Sp()
|
12085
12093
|
unless _tmp
|
12086
12094
|
self.pos = _save2
|
12087
12095
|
break
|
@@ -12165,7 +12173,7 @@ class RDoc::Markdown
|
|
12165
12173
|
|
12166
12174
|
_save14 = self.pos
|
12167
12175
|
while true # sequence
|
12168
|
-
_tmp =
|
12176
|
+
_tmp = _Sp()
|
12169
12177
|
unless _tmp
|
12170
12178
|
self.pos = _save14
|
12171
12179
|
break
|
@@ -12186,19 +12194,19 @@ class RDoc::Markdown
|
|
12186
12194
|
|
12187
12195
|
_save15 = self.pos
|
12188
12196
|
while true # choice
|
12189
|
-
_tmp =
|
12197
|
+
_tmp = _Spacechar()
|
12190
12198
|
break if _tmp
|
12191
12199
|
self.pos = _save15
|
12192
12200
|
|
12193
12201
|
_save16 = self.pos
|
12194
12202
|
while true # sequence
|
12195
|
-
_tmp =
|
12203
|
+
_tmp = _Newline()
|
12196
12204
|
unless _tmp
|
12197
12205
|
self.pos = _save16
|
12198
12206
|
break
|
12199
12207
|
end
|
12200
12208
|
_save17 = self.pos
|
12201
|
-
_tmp =
|
12209
|
+
_tmp = _BlankLine()
|
12202
12210
|
_tmp = _tmp ? nil : true
|
12203
12211
|
self.pos = _save17
|
12204
12212
|
unless _tmp
|
@@ -12302,7 +12310,7 @@ class RDoc::Markdown
|
|
12302
12310
|
|
12303
12311
|
_save28 = self.pos
|
12304
12312
|
while true # sequence
|
12305
|
-
_tmp =
|
12313
|
+
_tmp = _Sp()
|
12306
12314
|
unless _tmp
|
12307
12315
|
self.pos = _save28
|
12308
12316
|
break
|
@@ -12323,19 +12331,19 @@ class RDoc::Markdown
|
|
12323
12331
|
|
12324
12332
|
_save29 = self.pos
|
12325
12333
|
while true # choice
|
12326
|
-
_tmp =
|
12334
|
+
_tmp = _Spacechar()
|
12327
12335
|
break if _tmp
|
12328
12336
|
self.pos = _save29
|
12329
12337
|
|
12330
12338
|
_save30 = self.pos
|
12331
12339
|
while true # sequence
|
12332
|
-
_tmp =
|
12340
|
+
_tmp = _Newline()
|
12333
12341
|
unless _tmp
|
12334
12342
|
self.pos = _save30
|
12335
12343
|
break
|
12336
12344
|
end
|
12337
12345
|
_save31 = self.pos
|
12338
|
-
_tmp =
|
12346
|
+
_tmp = _BlankLine()
|
12339
12347
|
_tmp = _tmp ? nil : true
|
12340
12348
|
self.pos = _save31
|
12341
12349
|
unless _tmp
|
@@ -12373,7 +12381,7 @@ class RDoc::Markdown
|
|
12373
12381
|
self.pos = _save2
|
12374
12382
|
break
|
12375
12383
|
end
|
12376
|
-
_tmp =
|
12384
|
+
_tmp = _Sp()
|
12377
12385
|
unless _tmp
|
12378
12386
|
self.pos = _save2
|
12379
12387
|
break
|
@@ -12395,7 +12403,7 @@ class RDoc::Markdown
|
|
12395
12403
|
self.pos = _save32
|
12396
12404
|
break
|
12397
12405
|
end
|
12398
|
-
_tmp =
|
12406
|
+
_tmp = _Sp()
|
12399
12407
|
unless _tmp
|
12400
12408
|
self.pos = _save32
|
12401
12409
|
break
|
@@ -12479,7 +12487,7 @@ class RDoc::Markdown
|
|
12479
12487
|
|
12480
12488
|
_save44 = self.pos
|
12481
12489
|
while true # sequence
|
12482
|
-
_tmp =
|
12490
|
+
_tmp = _Sp()
|
12483
12491
|
unless _tmp
|
12484
12492
|
self.pos = _save44
|
12485
12493
|
break
|
@@ -12500,19 +12508,19 @@ class RDoc::Markdown
|
|
12500
12508
|
|
12501
12509
|
_save45 = self.pos
|
12502
12510
|
while true # choice
|
12503
|
-
_tmp =
|
12511
|
+
_tmp = _Spacechar()
|
12504
12512
|
break if _tmp
|
12505
12513
|
self.pos = _save45
|
12506
12514
|
|
12507
12515
|
_save46 = self.pos
|
12508
12516
|
while true # sequence
|
12509
|
-
_tmp =
|
12517
|
+
_tmp = _Newline()
|
12510
12518
|
unless _tmp
|
12511
12519
|
self.pos = _save46
|
12512
12520
|
break
|
12513
12521
|
end
|
12514
12522
|
_save47 = self.pos
|
12515
|
-
_tmp =
|
12523
|
+
_tmp = _BlankLine()
|
12516
12524
|
_tmp = _tmp ? nil : true
|
12517
12525
|
self.pos = _save47
|
12518
12526
|
unless _tmp
|
@@ -12616,7 +12624,7 @@ class RDoc::Markdown
|
|
12616
12624
|
|
12617
12625
|
_save58 = self.pos
|
12618
12626
|
while true # sequence
|
12619
|
-
_tmp =
|
12627
|
+
_tmp = _Sp()
|
12620
12628
|
unless _tmp
|
12621
12629
|
self.pos = _save58
|
12622
12630
|
break
|
@@ -12637,19 +12645,19 @@ class RDoc::Markdown
|
|
12637
12645
|
|
12638
12646
|
_save59 = self.pos
|
12639
12647
|
while true # choice
|
12640
|
-
_tmp =
|
12648
|
+
_tmp = _Spacechar()
|
12641
12649
|
break if _tmp
|
12642
12650
|
self.pos = _save59
|
12643
12651
|
|
12644
12652
|
_save60 = self.pos
|
12645
12653
|
while true # sequence
|
12646
|
-
_tmp =
|
12654
|
+
_tmp = _Newline()
|
12647
12655
|
unless _tmp
|
12648
12656
|
self.pos = _save60
|
12649
12657
|
break
|
12650
12658
|
end
|
12651
12659
|
_save61 = self.pos
|
12652
|
-
_tmp =
|
12660
|
+
_tmp = _BlankLine()
|
12653
12661
|
_tmp = _tmp ? nil : true
|
12654
12662
|
self.pos = _save61
|
12655
12663
|
unless _tmp
|
@@ -12687,7 +12695,7 @@ class RDoc::Markdown
|
|
12687
12695
|
self.pos = _save32
|
12688
12696
|
break
|
12689
12697
|
end
|
12690
|
-
_tmp =
|
12698
|
+
_tmp = _Sp()
|
12691
12699
|
unless _tmp
|
12692
12700
|
self.pos = _save32
|
12693
12701
|
break
|
@@ -12709,7 +12717,7 @@ class RDoc::Markdown
|
|
12709
12717
|
self.pos = _save62
|
12710
12718
|
break
|
12711
12719
|
end
|
12712
|
-
_tmp =
|
12720
|
+
_tmp = _Sp()
|
12713
12721
|
unless _tmp
|
12714
12722
|
self.pos = _save62
|
12715
12723
|
break
|
@@ -12793,7 +12801,7 @@ class RDoc::Markdown
|
|
12793
12801
|
|
12794
12802
|
_save74 = self.pos
|
12795
12803
|
while true # sequence
|
12796
|
-
_tmp =
|
12804
|
+
_tmp = _Sp()
|
12797
12805
|
unless _tmp
|
12798
12806
|
self.pos = _save74
|
12799
12807
|
break
|
@@ -12814,19 +12822,19 @@ class RDoc::Markdown
|
|
12814
12822
|
|
12815
12823
|
_save75 = self.pos
|
12816
12824
|
while true # choice
|
12817
|
-
_tmp =
|
12825
|
+
_tmp = _Spacechar()
|
12818
12826
|
break if _tmp
|
12819
12827
|
self.pos = _save75
|
12820
12828
|
|
12821
12829
|
_save76 = self.pos
|
12822
12830
|
while true # sequence
|
12823
|
-
_tmp =
|
12831
|
+
_tmp = _Newline()
|
12824
12832
|
unless _tmp
|
12825
12833
|
self.pos = _save76
|
12826
12834
|
break
|
12827
12835
|
end
|
12828
12836
|
_save77 = self.pos
|
12829
|
-
_tmp =
|
12837
|
+
_tmp = _BlankLine()
|
12830
12838
|
_tmp = _tmp ? nil : true
|
12831
12839
|
self.pos = _save77
|
12832
12840
|
unless _tmp
|
@@ -12930,7 +12938,7 @@ class RDoc::Markdown
|
|
12930
12938
|
|
12931
12939
|
_save88 = self.pos
|
12932
12940
|
while true # sequence
|
12933
|
-
_tmp =
|
12941
|
+
_tmp = _Sp()
|
12934
12942
|
unless _tmp
|
12935
12943
|
self.pos = _save88
|
12936
12944
|
break
|
@@ -12951,19 +12959,19 @@ class RDoc::Markdown
|
|
12951
12959
|
|
12952
12960
|
_save89 = self.pos
|
12953
12961
|
while true # choice
|
12954
|
-
_tmp =
|
12962
|
+
_tmp = _Spacechar()
|
12955
12963
|
break if _tmp
|
12956
12964
|
self.pos = _save89
|
12957
12965
|
|
12958
12966
|
_save90 = self.pos
|
12959
12967
|
while true # sequence
|
12960
|
-
_tmp =
|
12968
|
+
_tmp = _Newline()
|
12961
12969
|
unless _tmp
|
12962
12970
|
self.pos = _save90
|
12963
12971
|
break
|
12964
12972
|
end
|
12965
12973
|
_save91 = self.pos
|
12966
|
-
_tmp =
|
12974
|
+
_tmp = _BlankLine()
|
12967
12975
|
_tmp = _tmp ? nil : true
|
12968
12976
|
self.pos = _save91
|
12969
12977
|
unless _tmp
|
@@ -13001,7 +13009,7 @@ class RDoc::Markdown
|
|
13001
13009
|
self.pos = _save62
|
13002
13010
|
break
|
13003
13011
|
end
|
13004
|
-
_tmp =
|
13012
|
+
_tmp = _Sp()
|
13005
13013
|
unless _tmp
|
13006
13014
|
self.pos = _save62
|
13007
13015
|
break
|
@@ -13023,7 +13031,7 @@ class RDoc::Markdown
|
|
13023
13031
|
self.pos = _save92
|
13024
13032
|
break
|
13025
13033
|
end
|
13026
|
-
_tmp =
|
13034
|
+
_tmp = _Sp()
|
13027
13035
|
unless _tmp
|
13028
13036
|
self.pos = _save92
|
13029
13037
|
break
|
@@ -13107,7 +13115,7 @@ class RDoc::Markdown
|
|
13107
13115
|
|
13108
13116
|
_save104 = self.pos
|
13109
13117
|
while true # sequence
|
13110
|
-
_tmp =
|
13118
|
+
_tmp = _Sp()
|
13111
13119
|
unless _tmp
|
13112
13120
|
self.pos = _save104
|
13113
13121
|
break
|
@@ -13128,19 +13136,19 @@ class RDoc::Markdown
|
|
13128
13136
|
|
13129
13137
|
_save105 = self.pos
|
13130
13138
|
while true # choice
|
13131
|
-
_tmp =
|
13139
|
+
_tmp = _Spacechar()
|
13132
13140
|
break if _tmp
|
13133
13141
|
self.pos = _save105
|
13134
13142
|
|
13135
13143
|
_save106 = self.pos
|
13136
13144
|
while true # sequence
|
13137
|
-
_tmp =
|
13145
|
+
_tmp = _Newline()
|
13138
13146
|
unless _tmp
|
13139
13147
|
self.pos = _save106
|
13140
13148
|
break
|
13141
13149
|
end
|
13142
13150
|
_save107 = self.pos
|
13143
|
-
_tmp =
|
13151
|
+
_tmp = _BlankLine()
|
13144
13152
|
_tmp = _tmp ? nil : true
|
13145
13153
|
self.pos = _save107
|
13146
13154
|
unless _tmp
|
@@ -13244,7 +13252,7 @@ class RDoc::Markdown
|
|
13244
13252
|
|
13245
13253
|
_save118 = self.pos
|
13246
13254
|
while true # sequence
|
13247
|
-
_tmp =
|
13255
|
+
_tmp = _Sp()
|
13248
13256
|
unless _tmp
|
13249
13257
|
self.pos = _save118
|
13250
13258
|
break
|
@@ -13265,19 +13273,19 @@ class RDoc::Markdown
|
|
13265
13273
|
|
13266
13274
|
_save119 = self.pos
|
13267
13275
|
while true # choice
|
13268
|
-
_tmp =
|
13276
|
+
_tmp = _Spacechar()
|
13269
13277
|
break if _tmp
|
13270
13278
|
self.pos = _save119
|
13271
13279
|
|
13272
13280
|
_save120 = self.pos
|
13273
13281
|
while true # sequence
|
13274
|
-
_tmp =
|
13282
|
+
_tmp = _Newline()
|
13275
13283
|
unless _tmp
|
13276
13284
|
self.pos = _save120
|
13277
13285
|
break
|
13278
13286
|
end
|
13279
13287
|
_save121 = self.pos
|
13280
|
-
_tmp =
|
13288
|
+
_tmp = _BlankLine()
|
13281
13289
|
_tmp = _tmp ? nil : true
|
13282
13290
|
self.pos = _save121
|
13283
13291
|
unless _tmp
|
@@ -13315,7 +13323,7 @@ class RDoc::Markdown
|
|
13315
13323
|
self.pos = _save92
|
13316
13324
|
break
|
13317
13325
|
end
|
13318
|
-
_tmp =
|
13326
|
+
_tmp = _Sp()
|
13319
13327
|
unless _tmp
|
13320
13328
|
self.pos = _save92
|
13321
13329
|
break
|
@@ -13337,7 +13345,7 @@ class RDoc::Markdown
|
|
13337
13345
|
self.pos = _save122
|
13338
13346
|
break
|
13339
13347
|
end
|
13340
|
-
_tmp =
|
13348
|
+
_tmp = _Sp()
|
13341
13349
|
unless _tmp
|
13342
13350
|
self.pos = _save122
|
13343
13351
|
break
|
@@ -13421,7 +13429,7 @@ class RDoc::Markdown
|
|
13421
13429
|
|
13422
13430
|
_save134 = self.pos
|
13423
13431
|
while true # sequence
|
13424
|
-
_tmp =
|
13432
|
+
_tmp = _Sp()
|
13425
13433
|
unless _tmp
|
13426
13434
|
self.pos = _save134
|
13427
13435
|
break
|
@@ -13442,19 +13450,19 @@ class RDoc::Markdown
|
|
13442
13450
|
|
13443
13451
|
_save135 = self.pos
|
13444
13452
|
while true # choice
|
13445
|
-
_tmp =
|
13453
|
+
_tmp = _Spacechar()
|
13446
13454
|
break if _tmp
|
13447
13455
|
self.pos = _save135
|
13448
13456
|
|
13449
13457
|
_save136 = self.pos
|
13450
13458
|
while true # sequence
|
13451
|
-
_tmp =
|
13459
|
+
_tmp = _Newline()
|
13452
13460
|
unless _tmp
|
13453
13461
|
self.pos = _save136
|
13454
13462
|
break
|
13455
13463
|
end
|
13456
13464
|
_save137 = self.pos
|
13457
|
-
_tmp =
|
13465
|
+
_tmp = _BlankLine()
|
13458
13466
|
_tmp = _tmp ? nil : true
|
13459
13467
|
self.pos = _save137
|
13460
13468
|
unless _tmp
|
@@ -13558,7 +13566,7 @@ class RDoc::Markdown
|
|
13558
13566
|
|
13559
13567
|
_save148 = self.pos
|
13560
13568
|
while true # sequence
|
13561
|
-
_tmp =
|
13569
|
+
_tmp = _Sp()
|
13562
13570
|
unless _tmp
|
13563
13571
|
self.pos = _save148
|
13564
13572
|
break
|
@@ -13579,19 +13587,19 @@ class RDoc::Markdown
|
|
13579
13587
|
|
13580
13588
|
_save149 = self.pos
|
13581
13589
|
while true # choice
|
13582
|
-
_tmp =
|
13590
|
+
_tmp = _Spacechar()
|
13583
13591
|
break if _tmp
|
13584
13592
|
self.pos = _save149
|
13585
13593
|
|
13586
13594
|
_save150 = self.pos
|
13587
13595
|
while true # sequence
|
13588
|
-
_tmp =
|
13596
|
+
_tmp = _Newline()
|
13589
13597
|
unless _tmp
|
13590
13598
|
self.pos = _save150
|
13591
13599
|
break
|
13592
13600
|
end
|
13593
13601
|
_save151 = self.pos
|
13594
|
-
_tmp =
|
13602
|
+
_tmp = _BlankLine()
|
13595
13603
|
_tmp = _tmp ? nil : true
|
13596
13604
|
self.pos = _save151
|
13597
13605
|
unless _tmp
|
@@ -13629,7 +13637,7 @@ class RDoc::Markdown
|
|
13629
13637
|
self.pos = _save122
|
13630
13638
|
break
|
13631
13639
|
end
|
13632
|
-
_tmp =
|
13640
|
+
_tmp = _Sp()
|
13633
13641
|
unless _tmp
|
13634
13642
|
self.pos = _save122
|
13635
13643
|
break
|
@@ -13702,17 +13710,17 @@ class RDoc::Markdown
|
|
13702
13710
|
return _tmp
|
13703
13711
|
end
|
13704
13712
|
|
13705
|
-
# BlankLine = Sp Newline { "\n" }
|
13713
|
+
# BlankLine = @Sp @Newline { "\n" }
|
13706
13714
|
def _BlankLine
|
13707
13715
|
|
13708
13716
|
_save = self.pos
|
13709
13717
|
while true # sequence
|
13710
|
-
_tmp =
|
13718
|
+
_tmp = _Sp()
|
13711
13719
|
unless _tmp
|
13712
13720
|
self.pos = _save
|
13713
13721
|
break
|
13714
13722
|
end
|
13715
|
-
_tmp =
|
13723
|
+
_tmp = _Newline()
|
13716
13724
|
unless _tmp
|
13717
13725
|
self.pos = _save
|
13718
13726
|
break
|
@@ -14106,13 +14114,13 @@ class RDoc::Markdown
|
|
14106
14114
|
return _tmp
|
14107
14115
|
end
|
14108
14116
|
|
14109
|
-
# Nonspacechar =
|
14117
|
+
# Nonspacechar = !@Spacechar !@Newline .
|
14110
14118
|
def _Nonspacechar
|
14111
14119
|
|
14112
14120
|
_save = self.pos
|
14113
14121
|
while true # sequence
|
14114
14122
|
_save1 = self.pos
|
14115
|
-
_tmp =
|
14123
|
+
_tmp = _Spacechar()
|
14116
14124
|
_tmp = _tmp ? nil : true
|
14117
14125
|
self.pos = _save1
|
14118
14126
|
unless _tmp
|
@@ -14120,7 +14128,7 @@ class RDoc::Markdown
|
|
14120
14128
|
break
|
14121
14129
|
end
|
14122
14130
|
_save2 = self.pos
|
14123
|
-
_tmp =
|
14131
|
+
_tmp = _Newline()
|
14124
14132
|
_tmp = _tmp ? nil : true
|
14125
14133
|
self.pos = _save2
|
14126
14134
|
unless _tmp
|
@@ -14138,10 +14146,10 @@ class RDoc::Markdown
|
|
14138
14146
|
return _tmp
|
14139
14147
|
end
|
14140
14148
|
|
14141
|
-
# Sp = Spacechar*
|
14149
|
+
# Sp = @Spacechar*
|
14142
14150
|
def _Sp
|
14143
14151
|
while true
|
14144
|
-
_tmp =
|
14152
|
+
_tmp = _Spacechar()
|
14145
14153
|
break unless _tmp
|
14146
14154
|
end
|
14147
14155
|
_tmp = true
|
@@ -14149,12 +14157,12 @@ class RDoc::Markdown
|
|
14149
14157
|
return _tmp
|
14150
14158
|
end
|
14151
14159
|
|
14152
|
-
# Spnl = Sp (Newline Sp)?
|
14160
|
+
# Spnl = @Sp (@Newline @Sp)?
|
14153
14161
|
def _Spnl
|
14154
14162
|
|
14155
14163
|
_save = self.pos
|
14156
14164
|
while true # sequence
|
14157
|
-
_tmp =
|
14165
|
+
_tmp = _Sp()
|
14158
14166
|
unless _tmp
|
14159
14167
|
self.pos = _save
|
14160
14168
|
break
|
@@ -14163,12 +14171,12 @@ class RDoc::Markdown
|
|
14163
14171
|
|
14164
14172
|
_save2 = self.pos
|
14165
14173
|
while true # sequence
|
14166
|
-
_tmp =
|
14174
|
+
_tmp = _Newline()
|
14167
14175
|
unless _tmp
|
14168
14176
|
self.pos = _save2
|
14169
14177
|
break
|
14170
14178
|
end
|
14171
|
-
_tmp =
|
14179
|
+
_tmp = _Sp()
|
14172
14180
|
unless _tmp
|
14173
14181
|
self.pos = _save2
|
14174
14182
|
end
|
@@ -14189,7 +14197,7 @@ class RDoc::Markdown
|
|
14189
14197
|
return _tmp
|
14190
14198
|
end
|
14191
14199
|
|
14192
|
-
# SpecialChar = (/[*_`&\[\]()<!#\\'"]/ | ExtendedSpecialChar)
|
14200
|
+
# SpecialChar = (/[*_`&\[\]()<!#\\'"]/ | @ExtendedSpecialChar)
|
14193
14201
|
def _SpecialChar
|
14194
14202
|
|
14195
14203
|
_save = self.pos
|
@@ -14197,7 +14205,7 @@ class RDoc::Markdown
|
|
14197
14205
|
_tmp = scan(/\A(?-mix:[*_`&\[\]()<!#\\'"])/)
|
14198
14206
|
break if _tmp
|
14199
14207
|
self.pos = _save
|
14200
|
-
_tmp =
|
14208
|
+
_tmp = _ExtendedSpecialChar()
|
14201
14209
|
break if _tmp
|
14202
14210
|
self.pos = _save
|
14203
14211
|
break
|
@@ -14207,7 +14215,7 @@ class RDoc::Markdown
|
|
14207
14215
|
return _tmp
|
14208
14216
|
end
|
14209
14217
|
|
14210
|
-
# NormalChar = !(SpecialChar | Spacechar | Newline) .
|
14218
|
+
# NormalChar = !(@SpecialChar | @Spacechar | @Newline) .
|
14211
14219
|
def _NormalChar
|
14212
14220
|
|
14213
14221
|
_save = self.pos
|
@@ -14216,13 +14224,13 @@ class RDoc::Markdown
|
|
14216
14224
|
|
14217
14225
|
_save2 = self.pos
|
14218
14226
|
while true # choice
|
14219
|
-
_tmp =
|
14227
|
+
_tmp = _SpecialChar()
|
14220
14228
|
break if _tmp
|
14221
14229
|
self.pos = _save2
|
14222
|
-
_tmp =
|
14230
|
+
_tmp = _Spacechar()
|
14223
14231
|
break if _tmp
|
14224
14232
|
self.pos = _save2
|
14225
|
-
_tmp =
|
14233
|
+
_tmp = _Newline()
|
14226
14234
|
break if _tmp
|
14227
14235
|
self.pos = _save2
|
14228
14236
|
break
|
@@ -14499,12 +14507,12 @@ class RDoc::Markdown
|
|
14499
14507
|
return _tmp
|
14500
14508
|
end
|
14501
14509
|
|
14502
|
-
# Line = RawLine:a { a }
|
14510
|
+
# Line = @RawLine:a { a }
|
14503
14511
|
def _Line
|
14504
14512
|
|
14505
14513
|
_save = self.pos
|
14506
14514
|
while true # sequence
|
14507
|
-
_tmp =
|
14515
|
+
_tmp = _RawLine()
|
14508
14516
|
a = @result
|
14509
14517
|
unless _tmp
|
14510
14518
|
self.pos = _save
|
@@ -14522,7 +14530,7 @@ class RDoc::Markdown
|
|
14522
14530
|
return _tmp
|
14523
14531
|
end
|
14524
14532
|
|
14525
|
-
# RawLine = (< (!"
|
14533
|
+
# RawLine = (< (!"\r" !"\n" .)* @Newline > | < .+ > @Eof) { text }
|
14526
14534
|
def _RawLine
|
14527
14535
|
|
14528
14536
|
_save = self.pos
|
@@ -14568,7 +14576,7 @@ class RDoc::Markdown
|
|
14568
14576
|
self.pos = _save2
|
14569
14577
|
break
|
14570
14578
|
end
|
14571
|
-
_tmp =
|
14579
|
+
_tmp = _Newline()
|
14572
14580
|
unless _tmp
|
14573
14581
|
self.pos = _save2
|
14574
14582
|
end
|
@@ -14602,7 +14610,7 @@ class RDoc::Markdown
|
|
14602
14610
|
self.pos = _save7
|
14603
14611
|
break
|
14604
14612
|
end
|
14605
|
-
_tmp =
|
14613
|
+
_tmp = _Eof()
|
14606
14614
|
unless _tmp
|
14607
14615
|
self.pos = _save7
|
14608
14616
|
end
|
@@ -14630,7 +14638,7 @@ class RDoc::Markdown
|
|
14630
14638
|
return _tmp
|
14631
14639
|
end
|
14632
14640
|
|
14633
|
-
# SkipBlock = (HtmlBlock | (!"#" !SetextBottom1 !SetextBottom2
|
14641
|
+
# SkipBlock = (HtmlBlock | (!"#" !SetextBottom1 !SetextBottom2 !@BlankLine @RawLine)+ @BlankLine* | @BlankLine+ | @RawLine)
|
14634
14642
|
def _SkipBlock
|
14635
14643
|
|
14636
14644
|
_save = self.pos
|
@@ -14670,14 +14678,14 @@ class RDoc::Markdown
|
|
14670
14678
|
break
|
14671
14679
|
end
|
14672
14680
|
_save7 = self.pos
|
14673
|
-
_tmp =
|
14681
|
+
_tmp = _BlankLine()
|
14674
14682
|
_tmp = _tmp ? nil : true
|
14675
14683
|
self.pos = _save7
|
14676
14684
|
unless _tmp
|
14677
14685
|
self.pos = _save3
|
14678
14686
|
break
|
14679
14687
|
end
|
14680
|
-
_tmp =
|
14688
|
+
_tmp = _RawLine()
|
14681
14689
|
unless _tmp
|
14682
14690
|
self.pos = _save3
|
14683
14691
|
end
|
@@ -14714,14 +14722,14 @@ class RDoc::Markdown
|
|
14714
14722
|
break
|
14715
14723
|
end
|
14716
14724
|
_save12 = self.pos
|
14717
|
-
_tmp =
|
14725
|
+
_tmp = _BlankLine()
|
14718
14726
|
_tmp = _tmp ? nil : true
|
14719
14727
|
self.pos = _save12
|
14720
14728
|
unless _tmp
|
14721
14729
|
self.pos = _save8
|
14722
14730
|
break
|
14723
14731
|
end
|
14724
|
-
_tmp =
|
14732
|
+
_tmp = _RawLine()
|
14725
14733
|
unless _tmp
|
14726
14734
|
self.pos = _save8
|
14727
14735
|
end
|
@@ -14739,7 +14747,7 @@ class RDoc::Markdown
|
|
14739
14747
|
break
|
14740
14748
|
end
|
14741
14749
|
while true
|
14742
|
-
_tmp =
|
14750
|
+
_tmp = _BlankLine()
|
14743
14751
|
break unless _tmp
|
14744
14752
|
end
|
14745
14753
|
_tmp = true
|
@@ -14752,10 +14760,10 @@ class RDoc::Markdown
|
|
14752
14760
|
break if _tmp
|
14753
14761
|
self.pos = _save
|
14754
14762
|
_save14 = self.pos
|
14755
|
-
_tmp =
|
14763
|
+
_tmp = _BlankLine()
|
14756
14764
|
if _tmp
|
14757
14765
|
while true
|
14758
|
-
_tmp =
|
14766
|
+
_tmp = _BlankLine()
|
14759
14767
|
break unless _tmp
|
14760
14768
|
end
|
14761
14769
|
_tmp = true
|
@@ -14764,7 +14772,7 @@ class RDoc::Markdown
|
|
14764
14772
|
end
|
14765
14773
|
break if _tmp
|
14766
14774
|
self.pos = _save
|
14767
|
-
_tmp =
|
14775
|
+
_tmp = _RawLine()
|
14768
14776
|
break if _tmp
|
14769
14777
|
self.pos = _save
|
14770
14778
|
break
|
@@ -14827,7 +14835,7 @@ class RDoc::Markdown
|
|
14827
14835
|
return _tmp
|
14828
14836
|
end
|
14829
14837
|
|
14830
|
-
# RawNoteReference = "[^" < (
|
14838
|
+
# RawNoteReference = "[^" < (!@Newline !"]" .)+ > "]" { text }
|
14831
14839
|
def _RawNoteReference
|
14832
14840
|
|
14833
14841
|
_save = self.pos
|
@@ -14843,7 +14851,7 @@ class RDoc::Markdown
|
|
14843
14851
|
_save2 = self.pos
|
14844
14852
|
while true # sequence
|
14845
14853
|
_save3 = self.pos
|
14846
|
-
_tmp =
|
14854
|
+
_tmp = _Newline()
|
14847
14855
|
_tmp = _tmp ? nil : true
|
14848
14856
|
self.pos = _save3
|
14849
14857
|
unless _tmp
|
@@ -14871,7 +14879,7 @@ class RDoc::Markdown
|
|
14871
14879
|
_save5 = self.pos
|
14872
14880
|
while true # sequence
|
14873
14881
|
_save6 = self.pos
|
14874
|
-
_tmp =
|
14882
|
+
_tmp = _Newline()
|
14875
14883
|
_tmp = _tmp ? nil : true
|
14876
14884
|
self.pos = _save6
|
14877
14885
|
unless _tmp
|
@@ -14923,7 +14931,7 @@ class RDoc::Markdown
|
|
14923
14931
|
return _tmp
|
14924
14932
|
end
|
14925
14933
|
|
14926
|
-
# Note = &{ notes? } NonindentSpace RawNoteReference:ref ":" Sp StartList:a RawNoteBlock (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil }
|
14934
|
+
# Note = &{ notes? } @NonindentSpace RawNoteReference:ref ":" @Sp @StartList:a RawNoteBlock:i { a.concat i } (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil }
|
14927
14935
|
def _Note
|
14928
14936
|
|
14929
14937
|
_save = self.pos
|
@@ -14935,7 +14943,7 @@ class RDoc::Markdown
|
|
14935
14943
|
self.pos = _save
|
14936
14944
|
break
|
14937
14945
|
end
|
14938
|
-
_tmp =
|
14946
|
+
_tmp = _NonindentSpace()
|
14939
14947
|
unless _tmp
|
14940
14948
|
self.pos = _save
|
14941
14949
|
break
|
@@ -14951,18 +14959,25 @@ class RDoc::Markdown
|
|
14951
14959
|
self.pos = _save
|
14952
14960
|
break
|
14953
14961
|
end
|
14954
|
-
_tmp =
|
14962
|
+
_tmp = _Sp()
|
14955
14963
|
unless _tmp
|
14956
14964
|
self.pos = _save
|
14957
14965
|
break
|
14958
14966
|
end
|
14959
|
-
_tmp =
|
14967
|
+
_tmp = _StartList()
|
14960
14968
|
a = @result
|
14961
14969
|
unless _tmp
|
14962
14970
|
self.pos = _save
|
14963
14971
|
break
|
14964
14972
|
end
|
14965
14973
|
_tmp = apply(:_RawNoteBlock)
|
14974
|
+
i = @result
|
14975
|
+
unless _tmp
|
14976
|
+
self.pos = _save
|
14977
|
+
break
|
14978
|
+
end
|
14979
|
+
@result = begin; a.concat i ; end
|
14980
|
+
_tmp = true
|
14966
14981
|
unless _tmp
|
14967
14982
|
self.pos = _save
|
14968
14983
|
break
|
@@ -15014,7 +15029,7 @@ class RDoc::Markdown
|
|
15014
15029
|
return _tmp
|
15015
15030
|
end
|
15016
15031
|
|
15017
|
-
# InlineNote = &{ notes? } "^[" StartList:a (!"]" Inline:l { a << l })+ "]" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref }
|
15032
|
+
# InlineNote = &{ notes? } "^[" @StartList:a (!"]" Inline:l { a << l })+ "]" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref }
|
15018
15033
|
def _InlineNote
|
15019
15034
|
|
15020
15035
|
_save = self.pos
|
@@ -15031,7 +15046,7 @@ class RDoc::Markdown
|
|
15031
15046
|
self.pos = _save
|
15032
15047
|
break
|
15033
15048
|
end
|
15034
|
-
_tmp =
|
15049
|
+
_tmp = _StartList()
|
15035
15050
|
a = @result
|
15036
15051
|
unless _tmp
|
15037
15052
|
self.pos = _save
|
@@ -15144,12 +15159,12 @@ class RDoc::Markdown
|
|
15144
15159
|
return _tmp
|
15145
15160
|
end
|
15146
15161
|
|
15147
|
-
# RawNoteBlock = StartList:a (
|
15162
|
+
# RawNoteBlock = @StartList:a (!@BlankLine OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a }
|
15148
15163
|
def _RawNoteBlock
|
15149
15164
|
|
15150
15165
|
_save = self.pos
|
15151
15166
|
while true # sequence
|
15152
|
-
_tmp =
|
15167
|
+
_tmp = _StartList()
|
15153
15168
|
a = @result
|
15154
15169
|
unless _tmp
|
15155
15170
|
self.pos = _save
|
@@ -15160,7 +15175,7 @@ class RDoc::Markdown
|
|
15160
15175
|
_save2 = self.pos
|
15161
15176
|
while true # sequence
|
15162
15177
|
_save3 = self.pos
|
15163
|
-
_tmp =
|
15178
|
+
_tmp = _BlankLine()
|
15164
15179
|
_tmp = _tmp ? nil : true
|
15165
15180
|
self.pos = _save3
|
15166
15181
|
unless _tmp
|
@@ -15187,7 +15202,7 @@ class RDoc::Markdown
|
|
15187
15202
|
_save4 = self.pos
|
15188
15203
|
while true # sequence
|
15189
15204
|
_save5 = self.pos
|
15190
|
-
_tmp =
|
15205
|
+
_tmp = _BlankLine()
|
15191
15206
|
_tmp = _tmp ? nil : true
|
15192
15207
|
self.pos = _save5
|
15193
15208
|
unless _tmp
|
@@ -15220,7 +15235,7 @@ class RDoc::Markdown
|
|
15220
15235
|
end
|
15221
15236
|
_text_start = self.pos
|
15222
15237
|
while true
|
15223
|
-
_tmp =
|
15238
|
+
_tmp = _BlankLine()
|
15224
15239
|
break unless _tmp
|
15225
15240
|
end
|
15226
15241
|
_tmp = true
|
@@ -15249,7 +15264,7 @@ class RDoc::Markdown
|
|
15249
15264
|
return _tmp
|
15250
15265
|
end
|
15251
15266
|
|
15252
|
-
# CodeFence = &{ github? } Ticks3 (Sp StrChunk:format)? Spnl < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | Newline)+ > Ticks3 Sp Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format verbatim }
|
15267
|
+
# CodeFence = &{ github? } Ticks3 (@Sp StrChunk:format)? Spnl < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | @Newline)+ > Ticks3 @Sp @Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format verbatim }
|
15253
15268
|
def _CodeFence
|
15254
15269
|
|
15255
15270
|
_save = self.pos
|
@@ -15270,7 +15285,7 @@ class RDoc::Markdown
|
|
15270
15285
|
|
15271
15286
|
_save3 = self.pos
|
15272
15287
|
while true # sequence
|
15273
|
-
_tmp =
|
15288
|
+
_tmp = _Sp()
|
15274
15289
|
unless _tmp
|
15275
15290
|
self.pos = _save3
|
15276
15291
|
break
|
@@ -15371,7 +15386,7 @@ class RDoc::Markdown
|
|
15371
15386
|
_tmp = apply(:_Spacechar)
|
15372
15387
|
break if _tmp
|
15373
15388
|
self.pos = _save5
|
15374
|
-
_tmp =
|
15389
|
+
_tmp = _Newline()
|
15375
15390
|
break if _tmp
|
15376
15391
|
self.pos = _save5
|
15377
15392
|
break
|
@@ -15452,7 +15467,7 @@ class RDoc::Markdown
|
|
15452
15467
|
_tmp = apply(:_Spacechar)
|
15453
15468
|
break if _tmp
|
15454
15469
|
self.pos = _save13
|
15455
|
-
_tmp =
|
15470
|
+
_tmp = _Newline()
|
15456
15471
|
break if _tmp
|
15457
15472
|
self.pos = _save13
|
15458
15473
|
break
|
@@ -15476,13 +15491,13 @@ class RDoc::Markdown
|
|
15476
15491
|
self.pos = _save
|
15477
15492
|
break
|
15478
15493
|
end
|
15479
|
-
_tmp =
|
15494
|
+
_tmp = _Sp()
|
15480
15495
|
unless _tmp
|
15481
15496
|
self.pos = _save
|
15482
15497
|
break
|
15483
15498
|
end
|
15484
15499
|
while true
|
15485
|
-
_tmp =
|
15500
|
+
_tmp = _Newline()
|
15486
15501
|
break unless _tmp
|
15487
15502
|
end
|
15488
15503
|
_tmp = true
|
@@ -15615,7 +15630,7 @@ class RDoc::Markdown
|
|
15615
15630
|
return _tmp
|
15616
15631
|
end
|
15617
15632
|
|
15618
|
-
# DefinitionListLabel = StrChunk:label Sp Newline { label }
|
15633
|
+
# DefinitionListLabel = StrChunk:label @Sp @Newline { label }
|
15619
15634
|
def _DefinitionListLabel
|
15620
15635
|
|
15621
15636
|
_save = self.pos
|
@@ -15626,12 +15641,12 @@ class RDoc::Markdown
|
|
15626
15641
|
self.pos = _save
|
15627
15642
|
break
|
15628
15643
|
end
|
15629
|
-
_tmp =
|
15644
|
+
_tmp = _Sp()
|
15630
15645
|
unless _tmp
|
15631
15646
|
self.pos = _save
|
15632
15647
|
break
|
15633
15648
|
end
|
15634
|
-
_tmp =
|
15649
|
+
_tmp = _Newline()
|
15635
15650
|
unless _tmp
|
15636
15651
|
self.pos = _save
|
15637
15652
|
break
|
@@ -15648,12 +15663,12 @@ class RDoc::Markdown
|
|
15648
15663
|
return _tmp
|
15649
15664
|
end
|
15650
15665
|
|
15651
|
-
# DefinitionListDefinition = NonindentSpace ":" Space Inlines:a BlankLine+ { paragraph a }
|
15666
|
+
# DefinitionListDefinition = @NonindentSpace ":" @Space Inlines:a @BlankLine+ { paragraph a }
|
15652
15667
|
def _DefinitionListDefinition
|
15653
15668
|
|
15654
15669
|
_save = self.pos
|
15655
15670
|
while true # sequence
|
15656
|
-
_tmp =
|
15671
|
+
_tmp = _NonindentSpace()
|
15657
15672
|
unless _tmp
|
15658
15673
|
self.pos = _save
|
15659
15674
|
break
|
@@ -15663,7 +15678,7 @@ class RDoc::Markdown
|
|
15663
15678
|
self.pos = _save
|
15664
15679
|
break
|
15665
15680
|
end
|
15666
|
-
_tmp =
|
15681
|
+
_tmp = _Space()
|
15667
15682
|
unless _tmp
|
15668
15683
|
self.pos = _save
|
15669
15684
|
break
|
@@ -15675,10 +15690,10 @@ class RDoc::Markdown
|
|
15675
15690
|
break
|
15676
15691
|
end
|
15677
15692
|
_save1 = self.pos
|
15678
|
-
_tmp =
|
15693
|
+
_tmp = _BlankLine()
|
15679
15694
|
if _tmp
|
15680
15695
|
while true
|
15681
|
-
_tmp =
|
15696
|
+
_tmp = _BlankLine()
|
15682
15697
|
break unless _tmp
|
15683
15698
|
end
|
15684
15699
|
_tmp = true
|
@@ -15704,35 +15719,35 @@ class RDoc::Markdown
|
|
15704
15719
|
Rules = {}
|
15705
15720
|
Rules[:_root] = rule_info("root", "Doc")
|
15706
15721
|
Rules[:_Doc] = rule_info("Doc", "BOM? Block*:a { RDoc::Markup::Document.new(*a.compact) }")
|
15707
|
-
Rules[:_Block] = rule_info("Block", "BlankLine* (BlockQuote | Verbatim | CodeFence | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)")
|
15708
|
-
Rules[:_Para] = rule_info("Para", "NonindentSpace Inlines:a BlankLine+ { paragraph a }")
|
15722
|
+
Rules[:_Block] = rule_info("Block", "@BlankLine* (BlockQuote | Verbatim | CodeFence | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)")
|
15723
|
+
Rules[:_Para] = rule_info("Para", "@NonindentSpace Inlines:a @BlankLine+ { paragraph a }")
|
15709
15724
|
Rules[:_Plain] = rule_info("Plain", "Inlines:a { paragraph a }")
|
15710
|
-
Rules[:_AtxInline] = rule_info("AtxInline", "
|
15725
|
+
Rules[:_AtxInline] = rule_info("AtxInline", "!@Newline !(@Sp? /\#*/ @Sp @Newline) Inline")
|
15711
15726
|
Rules[:_AtxStart] = rule_info("AtxStart", "< /\\\#{1,6}/ > { text.length }")
|
15712
|
-
Rules[:_AtxHeading] = rule_info("AtxHeading", "AtxStart:s Sp? AtxInline+:a (Sp? /\#*/ Sp)? Newline { RDoc::Markup::Heading.new(s, a.join) }")
|
15727
|
+
Rules[:_AtxHeading] = rule_info("AtxHeading", "AtxStart:s @Sp? AtxInline+:a (@Sp? /\#*/ @Sp)? @Newline { RDoc::Markup::Heading.new(s, a.join) }")
|
15713
15728
|
Rules[:_SetextHeading] = rule_info("SetextHeading", "(SetextHeading1 | SetextHeading2)")
|
15714
|
-
Rules[:_SetextBottom1] = rule_info("SetextBottom1", "/={3,}/ Newline")
|
15715
|
-
Rules[:_SetextBottom2] = rule_info("SetextBottom2", "/-{3,}/ Newline")
|
15716
|
-
Rules[:_SetextHeading1] = rule_info("SetextHeading1", "&(RawLine SetextBottom1) StartList:a (
|
15717
|
-
Rules[:_SetextHeading2] = rule_info("SetextHeading2", "&(RawLine SetextBottom2) StartList:a (
|
15729
|
+
Rules[:_SetextBottom1] = rule_info("SetextBottom1", "/={3,}/ @Newline")
|
15730
|
+
Rules[:_SetextBottom2] = rule_info("SetextBottom2", "/-{3,}/ @Newline")
|
15731
|
+
Rules[:_SetextHeading1] = rule_info("SetextHeading1", "&(@RawLine SetextBottom1) @StartList:a (!@Endline Inline:b { a << b })+ @Sp? @Newline SetextBottom1 { RDoc::Markup::Heading.new(1, a.join) }")
|
15732
|
+
Rules[:_SetextHeading2] = rule_info("SetextHeading2", "&(@RawLine SetextBottom2) @StartList:a (!@Endline Inline:b { a << b })+ @Sp? @Newline SetextBottom2 { RDoc::Markup::Heading.new(2, a.join) }")
|
15718
15733
|
Rules[:_Heading] = rule_info("Heading", "(SetextHeading | AtxHeading)")
|
15719
15734
|
Rules[:_BlockQuote] = rule_info("BlockQuote", "BlockQuoteRaw:a { RDoc::Markup::BlockQuote.new(*a) }")
|
15720
|
-
Rules[:_BlockQuoteRaw] = rule_info("BlockQuoteRaw", "StartList:a (\">\" \" \"? Line:l { a << l } (!\">\"
|
15721
|
-
Rules[:_NonblankIndentedLine] = rule_info("NonblankIndentedLine", "
|
15722
|
-
Rules[:_VerbatimChunk] = rule_info("VerbatimChunk", "BlankLine*:a NonblankIndentedLine+:b { a.concat b }")
|
15735
|
+
Rules[:_BlockQuoteRaw] = rule_info("BlockQuoteRaw", "@StartList:a (\">\" \" \"? Line:l { a << l } (!\">\" !@BlankLine Line:c { a << c })* (@BlankLine:n { a << n })*)+ { inner_parse a.join }")
|
15736
|
+
Rules[:_NonblankIndentedLine] = rule_info("NonblankIndentedLine", "!@BlankLine IndentedLine")
|
15737
|
+
Rules[:_VerbatimChunk] = rule_info("VerbatimChunk", "@BlankLine*:a NonblankIndentedLine+:b { a.concat b }")
|
15723
15738
|
Rules[:_Verbatim] = rule_info("Verbatim", "VerbatimChunk+:a { RDoc::Markup::Verbatim.new(*a.flatten) }")
|
15724
|
-
Rules[:_HorizontalRule] = rule_info("HorizontalRule", "NonindentSpace (\"*\" Sp \"*\" Sp \"*\" (Sp \"*\")* | \"-\" Sp \"-\" Sp \"-\" (Sp \"-\")* | \"_\" Sp \"_\" Sp \"_\" (Sp \"_\")*) Sp Newline BlankLine+ { RDoc::Markup::Rule.new 1 }")
|
15725
|
-
Rules[:_Bullet] = rule_info("Bullet", "!HorizontalRule NonindentSpace /[+*-]/ Spacechar+")
|
15739
|
+
Rules[:_HorizontalRule] = rule_info("HorizontalRule", "@NonindentSpace (\"*\" @Sp \"*\" @Sp \"*\" (@Sp \"*\")* | \"-\" @Sp \"-\" @Sp \"-\" (@Sp \"-\")* | \"_\" @Sp \"_\" @Sp \"_\" (@Sp \"_\")*) @Sp @Newline @BlankLine+ { RDoc::Markup::Rule.new 1 }")
|
15740
|
+
Rules[:_Bullet] = rule_info("Bullet", "!HorizontalRule @NonindentSpace /[+*-]/ @Spacechar+")
|
15726
15741
|
Rules[:_BulletList] = rule_info("BulletList", "&Bullet (ListTight | ListLoose):a { RDoc::Markup::List.new(:BULLET, *a) }")
|
15727
|
-
Rules[:_ListTight] = rule_info("ListTight", "ListItemTight+:a BlankLine* !(Bullet | Enumerator) { a }")
|
15728
|
-
Rules[:_ListLoose] = rule_info("ListLoose", "StartList:a (ListItem:b BlankLine* { a << b })+ { a }")
|
15729
|
-
Rules[:_ListItem] = rule_info("ListItem", "(Bullet | Enumerator) StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a }")
|
15730
|
-
Rules[:_ListItemTight] = rule_info("ListItemTight", "(Bullet | Enumerator) ListBlock:a (
|
15731
|
-
Rules[:_ListBlock] = rule_info("ListBlock", "
|
15732
|
-
Rules[:_ListContinuationBlock] = rule_info("ListContinuationBlock", "StartList:a BlankLine* { a << \"\\n\" } (Indent ListBlock:b { a.concat b })+ { a }")
|
15733
|
-
Rules[:_Enumerator] = rule_info("Enumerator", "NonindentSpace [0-9]+ \".\" Spacechar+")
|
15742
|
+
Rules[:_ListTight] = rule_info("ListTight", "ListItemTight+:a @BlankLine* !(Bullet | Enumerator) { a }")
|
15743
|
+
Rules[:_ListLoose] = rule_info("ListLoose", "@StartList:a (ListItem:b @BlankLine* { a << b })+ { a }")
|
15744
|
+
Rules[:_ListItem] = rule_info("ListItem", "(Bullet | Enumerator) @StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a }")
|
15745
|
+
Rules[:_ListItemTight] = rule_info("ListItemTight", "(Bullet | Enumerator) ListBlock:a (!@BlankLine ListContinuationBlock:b { a.push(*b) })* !ListContinuationBlock { list_item_from a }")
|
15746
|
+
Rules[:_ListBlock] = rule_info("ListBlock", "!@BlankLine Line:a ListBlockLine*:c { [a, *c] }")
|
15747
|
+
Rules[:_ListContinuationBlock] = rule_info("ListContinuationBlock", "@StartList:a @BlankLine* { a << \"\\n\" } (Indent ListBlock:b { a.concat b })+ { a }")
|
15748
|
+
Rules[:_Enumerator] = rule_info("Enumerator", "@NonindentSpace [0-9]+ \".\" @Spacechar+")
|
15734
15749
|
Rules[:_OrderedList] = rule_info("OrderedList", "&Enumerator (ListTight | ListLoose):a { RDoc::Markup::List.new(:NUMBER, *a) }")
|
15735
|
-
Rules[:_ListBlockLine] = rule_info("ListBlockLine", "
|
15750
|
+
Rules[:_ListBlockLine] = rule_info("ListBlockLine", "!@BlankLine !(Indent? (Bullet | Enumerator)) !HorizontalRule OptionallyIndentedLine")
|
15736
15751
|
Rules[:_HtmlBlockOpenAddress] = rule_info("HtmlBlockOpenAddress", "\"<\" Spnl (\"address\" | \"ADDRESS\") Spnl HtmlAttribute* \">\"")
|
15737
15752
|
Rules[:_HtmlBlockCloseAddress] = rule_info("HtmlBlockCloseAddress", "\"<\" Spnl \"/\" (\"address\" | \"ADDRESS\") Spnl \">\"")
|
15738
15753
|
Rules[:_HtmlBlockAddress] = rule_info("HtmlBlockAddress", "HtmlBlockOpenAddress (HtmlBlockAddress | !HtmlBlockCloseAddress .)* HtmlBlockCloseAddress")
|
@@ -15833,7 +15848,7 @@ class RDoc::Markdown
|
|
15833
15848
|
Rules[:_HtmlBlockCloseScript] = rule_info("HtmlBlockCloseScript", "\"<\" Spnl \"/\" (\"script\" | \"SCRIPT\") Spnl \">\"")
|
15834
15849
|
Rules[:_HtmlBlockScript] = rule_info("HtmlBlockScript", "HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript")
|
15835
15850
|
Rules[:_HtmlBlockInTags] = rule_info("HtmlBlockInTags", "(HtmlBlockAddress | HtmlBlockBlockquote | HtmlBlockCenter | HtmlBlockDir | HtmlBlockDiv | HtmlBlockDl | HtmlBlockFieldset | HtmlBlockForm | HtmlBlockH1 | HtmlBlockH2 | HtmlBlockH3 | HtmlBlockH4 | HtmlBlockH5 | HtmlBlockH6 | HtmlBlockMenu | HtmlBlockNoframes | HtmlBlockNoscript | HtmlBlockOl | HtmlBlockP | HtmlBlockPre | HtmlBlockTable | HtmlBlockUl | HtmlBlockDd | HtmlBlockDt | HtmlBlockFrameset | HtmlBlockLi | HtmlBlockTbody | HtmlBlockTd | HtmlBlockTfoot | HtmlBlockTh | HtmlBlockThead | HtmlBlockTr | HtmlBlockScript)")
|
15836
|
-
Rules[:_HtmlBlock] = rule_info("HtmlBlock", "< (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > BlankLine+ { if html? then RDoc::Markup::Raw.new text end }")
|
15851
|
+
Rules[:_HtmlBlock] = rule_info("HtmlBlock", "< (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > @BlankLine+ { if html? then RDoc::Markup::Raw.new text end }")
|
15837
15852
|
Rules[:_HtmlUnclosed] = rule_info("HtmlUnclosed", "\"<\" Spnl HtmlUnclosedType Spnl HtmlAttribute* Spnl \">\"")
|
15838
15853
|
Rules[:_HtmlUnclosedType] = rule_info("HtmlUnclosedType", "(\"HR\" | \"hr\")")
|
15839
15854
|
Rules[:_HtmlBlockSelfClosing] = rule_info("HtmlBlockSelfClosing", "\"<\" Spnl HtmlBlockType Spnl HtmlAttribute* \"/\" Spnl \">\"")
|
@@ -15841,77 +15856,77 @@ class RDoc::Markdown
|
|
15841
15856
|
Rules[:_StyleOpen] = rule_info("StyleOpen", "\"<\" Spnl (\"style\" | \"STYLE\") Spnl HtmlAttribute* \">\"")
|
15842
15857
|
Rules[:_StyleClose] = rule_info("StyleClose", "\"<\" Spnl \"/\" (\"style\" | \"STYLE\") Spnl \">\"")
|
15843
15858
|
Rules[:_InStyleTags] = rule_info("InStyleTags", "StyleOpen (!StyleClose .)* StyleClose")
|
15844
|
-
Rules[:_StyleBlock] = rule_info("StyleBlock", "< InStyleTags > BlankLine* { if css? then RDoc::Markup::Raw.new text end }")
|
15845
|
-
Rules[:_Inlines] = rule_info("Inlines", "(
|
15846
|
-
Rules[:_Inline] = rule_info("Inline", "(Str | Endline | UlOrStarLine | Space | Strong | Emph | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol)")
|
15847
|
-
Rules[:_Space] = rule_info("Space", "Spacechar+ { \" \" }")
|
15848
|
-
Rules[:_Str] = rule_info("Str", "StartList:a < NormalChar+ > { a = text } (StrChunk:c { a << c })* { a }")
|
15849
|
-
Rules[:_StrChunk] = rule_info("StrChunk", "< (NormalChar | /_+/ &Alphanumeric)+ > { text }")
|
15850
|
-
Rules[:_EscapedChar] = rule_info("EscapedChar", "\"\\\\\"
|
15859
|
+
Rules[:_StyleBlock] = rule_info("StyleBlock", "< InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end }")
|
15860
|
+
Rules[:_Inlines] = rule_info("Inlines", "(!@Endline Inline:i { i } | @Endline:c &Inline { c })+:chunks @Endline? { chunks }")
|
15861
|
+
Rules[:_Inline] = rule_info("Inline", "(Str | @Endline | UlOrStarLine | @Space | Strong | Emph | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol)")
|
15862
|
+
Rules[:_Space] = rule_info("Space", "@Spacechar+ { \" \" }")
|
15863
|
+
Rules[:_Str] = rule_info("Str", "@StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a }")
|
15864
|
+
Rules[:_StrChunk] = rule_info("StrChunk", "< (@NormalChar | /_+/ &Alphanumeric)+ > { text }")
|
15865
|
+
Rules[:_EscapedChar] = rule_info("EscapedChar", "\"\\\\\" !@Newline < /[:\\\\`|*_{}\\[\\]()\#+.!><-]/ > { text }")
|
15851
15866
|
Rules[:_Entity] = rule_info("Entity", "(HexEntity | DecEntity | CharEntity):a { a }")
|
15852
|
-
Rules[:_Endline] = rule_info("Endline", "(LineBreak | TerminalEndline | NormalEndline)")
|
15853
|
-
Rules[:_NormalEndline] = rule_info("NormalEndline", "Sp Newline
|
15854
|
-
Rules[:_TerminalEndline] = rule_info("TerminalEndline", "Sp Newline Eof")
|
15855
|
-
Rules[:_LineBreak] = rule_info("LineBreak", "\" \" NormalEndline { RDoc::Markup::HardBreak.new }")
|
15856
|
-
Rules[:_Symbol] = rule_info("Symbol", "< SpecialChar > { text }")
|
15867
|
+
Rules[:_Endline] = rule_info("Endline", "(@LineBreak | @TerminalEndline | @NormalEndline)")
|
15868
|
+
Rules[:_NormalEndline] = rule_info("NormalEndline", "@Sp @Newline !@BlankLine !\">\" !AtxStart !(Line /={3,}|-{3,}=/ @Newline) { \"\\n\" }")
|
15869
|
+
Rules[:_TerminalEndline] = rule_info("TerminalEndline", "@Sp @Newline @Eof")
|
15870
|
+
Rules[:_LineBreak] = rule_info("LineBreak", "\" \" @NormalEndline { RDoc::Markup::HardBreak.new }")
|
15871
|
+
Rules[:_Symbol] = rule_info("Symbol", "< @SpecialChar > { text }")
|
15857
15872
|
Rules[:_UlOrStarLine] = rule_info("UlOrStarLine", "(UlLine | StarLine):a { a }")
|
15858
|
-
Rules[:_StarLine] = rule_info("StarLine", "(< /\\*{4,}/ > { text } | < Spacechar /\\*+/
|
15859
|
-
Rules[:_UlLine] = rule_info("UlLine", "(< /_{4,}/ > { text } | < Spacechar /_+/
|
15873
|
+
Rules[:_StarLine] = rule_info("StarLine", "(< /\\*{4,}/ > { text } | < @Spacechar /\\*+/ &@Spacechar > { text })")
|
15874
|
+
Rules[:_UlLine] = rule_info("UlLine", "(< /_{4,}/ > { text } | < @Spacechar /_+/ &@Spacechar > { text })")
|
15860
15875
|
Rules[:_Emph] = rule_info("Emph", "(EmphStar | EmphUl)")
|
15861
|
-
Rules[:_OneStarOpen] = rule_info("OneStarOpen", "!StarLine \"*\"
|
15862
|
-
Rules[:_OneStarClose] = rule_info("OneStarClose", "
|
15863
|
-
Rules[:_EmphStar] = rule_info("EmphStar", "OneStarOpen StartList:a (!OneStarClose Inline:l { a << l })* OneStarClose:l { a << l } { emphasis a.join }")
|
15864
|
-
Rules[:_OneUlOpen] = rule_info("OneUlOpen", "!UlLine \"_\"
|
15865
|
-
Rules[:_OneUlClose] = rule_info("OneUlClose", "
|
15866
|
-
Rules[:_EmphUl] = rule_info("EmphUl", "OneUlOpen StartList:a (!OneUlClose Inline:l { a << l })* OneUlClose:l { a << l } { emphasis a.join }")
|
15876
|
+
Rules[:_OneStarOpen] = rule_info("OneStarOpen", "!StarLine \"*\" !@Spacechar !@Newline")
|
15877
|
+
Rules[:_OneStarClose] = rule_info("OneStarClose", "!@Spacechar !@Newline Inline:a \"*\" { a }")
|
15878
|
+
Rules[:_EmphStar] = rule_info("EmphStar", "OneStarOpen @StartList:a (!OneStarClose Inline:l { a << l })* OneStarClose:l { a << l } { emphasis a.join }")
|
15879
|
+
Rules[:_OneUlOpen] = rule_info("OneUlOpen", "!UlLine \"_\" !@Spacechar !@Newline")
|
15880
|
+
Rules[:_OneUlClose] = rule_info("OneUlClose", "!@Spacechar !@Newline Inline:a \"_\" { a }")
|
15881
|
+
Rules[:_EmphUl] = rule_info("EmphUl", "OneUlOpen @StartList:a (!OneUlClose Inline:l { a << l })* OneUlClose:l { a << l } { emphasis a.join }")
|
15867
15882
|
Rules[:_Strong] = rule_info("Strong", "(StrongStar | StrongUl)")
|
15868
|
-
Rules[:_TwoStarOpen] = rule_info("TwoStarOpen", "!StarLine \"**\"
|
15869
|
-
Rules[:_TwoStarClose] = rule_info("TwoStarClose", "
|
15870
|
-
Rules[:_StrongStar] = rule_info("StrongStar", "TwoStarOpen StartList:a (!TwoStarClose Inline:l { a << l })* TwoStarClose:l { a << l } { strong a.join }")
|
15871
|
-
Rules[:_TwoUlOpen] = rule_info("TwoUlOpen", "!UlLine \"__\"
|
15872
|
-
Rules[:_TwoUlClose] = rule_info("TwoUlClose", "
|
15873
|
-
Rules[:_StrongUl] = rule_info("StrongUl", "TwoUlOpen StartList:a (!TwoUlClose Inline:i { a << i })* TwoUlClose:l { a << l } { strong a.join }")
|
15874
|
-
Rules[:_Image] = rule_info("Image", "\"!\" (ExplicitLink | ReferenceLink):a { a }")
|
15883
|
+
Rules[:_TwoStarOpen] = rule_info("TwoStarOpen", "!StarLine \"**\" !@Spacechar !@Newline")
|
15884
|
+
Rules[:_TwoStarClose] = rule_info("TwoStarClose", "!@Spacechar !@Newline Inline:a \"**\" { a }")
|
15885
|
+
Rules[:_StrongStar] = rule_info("StrongStar", "TwoStarOpen @StartList:a (!TwoStarClose Inline:l { a << l })* TwoStarClose:l { a << l } { strong a.join }")
|
15886
|
+
Rules[:_TwoUlOpen] = rule_info("TwoUlOpen", "!UlLine \"__\" !@Spacechar !@Newline")
|
15887
|
+
Rules[:_TwoUlClose] = rule_info("TwoUlClose", "!@Spacechar !@Newline Inline:a \"__\" { a }")
|
15888
|
+
Rules[:_StrongUl] = rule_info("StrongUl", "TwoUlOpen @StartList:a (!TwoUlClose Inline:i { a << i })* TwoUlClose:l { a << l } { strong a.join }")
|
15889
|
+
Rules[:_Image] = rule_info("Image", "\"!\" (ExplicitLink | ReferenceLink):a { \"rdoc-image:\#{a[/\\[(.*)\\]/, 1]}\" }")
|
15875
15890
|
Rules[:_Link] = rule_info("Link", "(ExplicitLink | ReferenceLink | AutoLink)")
|
15876
15891
|
Rules[:_ReferenceLink] = rule_info("ReferenceLink", "(ReferenceLinkDouble | ReferenceLinkSingle)")
|
15877
15892
|
Rules[:_ReferenceLinkDouble] = rule_info("ReferenceLinkDouble", "Label:content < Spnl > !\"[]\" Label:label { link_to content, label, text }")
|
15878
15893
|
Rules[:_ReferenceLinkSingle] = rule_info("ReferenceLinkSingle", "Label:content < (Spnl \"[]\")? > { link_to content, content, text }")
|
15879
|
-
Rules[:_ExplicitLink] = rule_info("ExplicitLink", "Label:l Spnl \"(\" Sp Source:s Spnl Title Sp \")\" { \"{\#{l}}[\#{s}]\" }")
|
15894
|
+
Rules[:_ExplicitLink] = rule_info("ExplicitLink", "Label:l Spnl \"(\" @Sp Source:s Spnl Title @Sp \")\" { \"{\#{l}}[\#{s}]\" }")
|
15880
15895
|
Rules[:_Source] = rule_info("Source", "(\"<\" < SourceContents > \">\" | < SourceContents >) { text }")
|
15881
15896
|
Rules[:_SourceContents] = rule_info("SourceContents", "(((!\"(\" !\")\" !\">\" Nonspacechar)+ | \"(\" SourceContents \")\")* | \"\")")
|
15882
15897
|
Rules[:_Title] = rule_info("Title", "(TitleSingle | TitleDouble | \"\"):a { a }")
|
15883
|
-
Rules[:_TitleSingle] = rule_info("TitleSingle", "\"'\" (!(\"'\" Sp (\")\" | Newline)) .)* \"'\"")
|
15884
|
-
Rules[:_TitleDouble] = rule_info("TitleDouble", "\"\\\"\" (!(\"\\\"\" Sp (\")\" | Newline)) .)* \"\\\"\"")
|
15898
|
+
Rules[:_TitleSingle] = rule_info("TitleSingle", "\"'\" (!(\"'\" @Sp (\")\" | @Newline)) .)* \"'\"")
|
15899
|
+
Rules[:_TitleDouble] = rule_info("TitleDouble", "\"\\\"\" (!(\"\\\"\" @Sp (\")\" | @Newline)) .)* \"\\\"\"")
|
15885
15900
|
Rules[:_AutoLink] = rule_info("AutoLink", "(AutoLinkUrl | AutoLinkEmail)")
|
15886
|
-
Rules[:_AutoLinkUrl] = rule_info("AutoLinkUrl", "\"<\" < /[A-Za-z]+/ \"://\" (
|
15887
|
-
Rules[:_AutoLinkEmail] = rule_info("AutoLinkEmail", "\"<\" \"mailto:\"? < /[\\w+.\\/!%~$-]+/i \"@\" (
|
15888
|
-
Rules[:_Reference] = rule_info("Reference", "NonindentSpace !\"[]\" Label:label \":\" Spnl RefSrc:link RefTitle BlankLine+ { \# TODO use title reference label, link nil }")
|
15889
|
-
Rules[:_Label] = rule_info("Label", "\"[\" (!\"^\" &{ notes? } | &. &{ !notes? }) StartList:a (!\"]\" Inline:l { a << l })* \"]\" { a.join.gsub(/\\s+/, ' ') }")
|
15901
|
+
Rules[:_AutoLinkUrl] = rule_info("AutoLinkUrl", "\"<\" < /[A-Za-z]+/ \"://\" (!@Newline !\">\" .)+ > \">\" { text }")
|
15902
|
+
Rules[:_AutoLinkEmail] = rule_info("AutoLinkEmail", "\"<\" \"mailto:\"? < /[\\w+.\\/!%~$-]+/i \"@\" (!@Newline !\">\" .)+ > \">\" { \"mailto:\#{text}\" }")
|
15903
|
+
Rules[:_Reference] = rule_info("Reference", "@NonindentSpace !\"[]\" Label:label \":\" Spnl RefSrc:link RefTitle @BlankLine+ { \# TODO use title reference label, link nil }")
|
15904
|
+
Rules[:_Label] = rule_info("Label", "\"[\" (!\"^\" &{ notes? } | &. &{ !notes? }) @StartList:a (!\"]\" Inline:l { a << l })* \"]\" { a.join.gsub(/\\s+/, ' ') }")
|
15890
15905
|
Rules[:_RefSrc] = rule_info("RefSrc", "< Nonspacechar+ > { text }")
|
15891
15906
|
Rules[:_RefTitle] = rule_info("RefTitle", "(RefTitleSingle | RefTitleDouble | RefTitleParens | EmptyTitle)")
|
15892
15907
|
Rules[:_EmptyTitle] = rule_info("EmptyTitle", "\"\"")
|
15893
|
-
Rules[:_RefTitleSingle] = rule_info("RefTitleSingle", "Spnl \"'\" < (!(\"'\" Sp Newline | Newline) .)* > \"'\" { text }")
|
15894
|
-
Rules[:_RefTitleDouble] = rule_info("RefTitleDouble", "Spnl \"\\\"\" < (!(\"\\\"\" Sp Newline | Newline) .)* > \"\\\"\" { text }")
|
15895
|
-
Rules[:_RefTitleParens] = rule_info("RefTitleParens", "Spnl \"(\" < (!(\")\" Sp Newline | Newline) .)* > \")\" { text }")
|
15908
|
+
Rules[:_RefTitleSingle] = rule_info("RefTitleSingle", "Spnl \"'\" < (!(\"'\" @Sp @Newline | @Newline) .)* > \"'\" { text }")
|
15909
|
+
Rules[:_RefTitleDouble] = rule_info("RefTitleDouble", "Spnl \"\\\"\" < (!(\"\\\"\" @Sp @Newline | @Newline) .)* > \"\\\"\" { text }")
|
15910
|
+
Rules[:_RefTitleParens] = rule_info("RefTitleParens", "Spnl \"(\" < (!(\")\" @Sp @Newline | @Newline) .)* > \")\" { text }")
|
15896
15911
|
Rules[:_References] = rule_info("References", "(Reference | SkipBlock)*")
|
15897
15912
|
Rules[:_Ticks1] = rule_info("Ticks1", "\"`\" !\"`\"")
|
15898
15913
|
Rules[:_Ticks2] = rule_info("Ticks2", "\"``\" !\"`\"")
|
15899
15914
|
Rules[:_Ticks3] = rule_info("Ticks3", "\"```\" !\"`\"")
|
15900
15915
|
Rules[:_Ticks4] = rule_info("Ticks4", "\"````\" !\"`\"")
|
15901
15916
|
Rules[:_Ticks5] = rule_info("Ticks5", "\"`````\" !\"`\"")
|
15902
|
-
Rules[:_Code] = rule_info("Code", "(Ticks1 Sp < ((!\"`\" Nonspacechar)+ | !Ticks1 /`+/ | !(Sp Ticks1) (Spacechar | Newline
|
15917
|
+
Rules[:_Code] = rule_info("Code", "(Ticks1 @Sp < ((!\"`\" Nonspacechar)+ | !Ticks1 /`+/ | !(@Sp Ticks1) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks1 | Ticks2 @Sp < ((!\"`\" Nonspacechar)+ | !Ticks2 /`+/ | !(@Sp Ticks2) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks2 | Ticks3 @Sp < ((!\"`\" Nonspacechar)+ | !Ticks3 /`+/ | !(@Sp Ticks3) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks3 | Ticks4 @Sp < ((!\"`\" Nonspacechar)+ | !Ticks4 /`+/ | !(@Sp Ticks4) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks4 | Ticks5 @Sp < ((!\"`\" Nonspacechar)+ | !Ticks5 /`+/ | !(@Sp Ticks5) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks5) { \"<code>\#{text}</code>\" }")
|
15903
15918
|
Rules[:_RawHtml] = rule_info("RawHtml", "< (HtmlComment | HtmlBlockScript | HtmlTag) > { if html? then text else '' end }")
|
15904
|
-
Rules[:_BlankLine] = rule_info("BlankLine", "Sp Newline { \"\\n\" }")
|
15919
|
+
Rules[:_BlankLine] = rule_info("BlankLine", "@Sp @Newline { \"\\n\" }")
|
15905
15920
|
Rules[:_Quoted] = rule_info("Quoted", "(\"\\\"\" (!\"\\\"\" .)* \"\\\"\" | \"'\" (!\"'\" .)* \"'\")")
|
15906
15921
|
Rules[:_HtmlAttribute] = rule_info("HtmlAttribute", "(AlphanumericAscii | \"-\")+ Spnl (\"=\" Spnl (Quoted | (!\">\" Nonspacechar)+))? Spnl")
|
15907
15922
|
Rules[:_HtmlComment] = rule_info("HtmlComment", "\"<!--\" (!\"-->\" .)* \"-->\"")
|
15908
15923
|
Rules[:_HtmlTag] = rule_info("HtmlTag", "\"<\" Spnl \"/\"? AlphanumericAscii+ Spnl HtmlAttribute* \"/\"? Spnl \">\"")
|
15909
15924
|
Rules[:_Eof] = rule_info("Eof", "!.")
|
15910
|
-
Rules[:_Nonspacechar] = rule_info("Nonspacechar", "
|
15911
|
-
Rules[:_Sp] = rule_info("Sp", "Spacechar*")
|
15912
|
-
Rules[:_Spnl] = rule_info("Spnl", "Sp (Newline Sp)?")
|
15913
|
-
Rules[:_SpecialChar] = rule_info("SpecialChar", "(/[*_`&\\[\\]()<!\#\\\\'\"]/ | ExtendedSpecialChar)")
|
15914
|
-
Rules[:_NormalChar] = rule_info("NormalChar", "!(SpecialChar | Spacechar | Newline) .")
|
15925
|
+
Rules[:_Nonspacechar] = rule_info("Nonspacechar", "!@Spacechar !@Newline .")
|
15926
|
+
Rules[:_Sp] = rule_info("Sp", "@Spacechar*")
|
15927
|
+
Rules[:_Spnl] = rule_info("Spnl", "@Sp (@Newline @Sp)?")
|
15928
|
+
Rules[:_SpecialChar] = rule_info("SpecialChar", "(/[*_`&\\[\\]()<!\#\\\\'\"]/ | @ExtendedSpecialChar)")
|
15929
|
+
Rules[:_NormalChar] = rule_info("NormalChar", "!(@SpecialChar | @Spacechar | @Newline) .")
|
15915
15930
|
Rules[:_Digit] = rule_info("Digit", "[0-9]")
|
15916
15931
|
Rules[:_Alphanumeric] = rule_info("Alphanumeric", "%literals.Alphanumeric")
|
15917
15932
|
Rules[:_AlphanumericAscii] = rule_info("AlphanumericAscii", "%literals.AlphanumericAscii")
|
@@ -15927,20 +15942,20 @@ class RDoc::Markdown
|
|
15927
15942
|
Rules[:_IndentedLine] = rule_info("IndentedLine", "Indent Line")
|
15928
15943
|
Rules[:_OptionallyIndentedLine] = rule_info("OptionallyIndentedLine", "Indent? Line")
|
15929
15944
|
Rules[:_StartList] = rule_info("StartList", "&. { [] }")
|
15930
|
-
Rules[:_Line] = rule_info("Line", "RawLine:a { a }")
|
15931
|
-
Rules[:_RawLine] = rule_info("RawLine", "(< (!\"
|
15932
|
-
Rules[:_SkipBlock] = rule_info("SkipBlock", "(HtmlBlock | (!\"\#\" !SetextBottom1 !SetextBottom2
|
15945
|
+
Rules[:_Line] = rule_info("Line", "@RawLine:a { a }")
|
15946
|
+
Rules[:_RawLine] = rule_info("RawLine", "(< (!\"\\r\" !\"\\n\" .)* @Newline > | < .+ > @Eof) { text }")
|
15947
|
+
Rules[:_SkipBlock] = rule_info("SkipBlock", "(HtmlBlock | (!\"\#\" !SetextBottom1 !SetextBottom2 !@BlankLine @RawLine)+ @BlankLine* | @BlankLine+ | @RawLine)")
|
15933
15948
|
Rules[:_ExtendedSpecialChar] = rule_info("ExtendedSpecialChar", "&{ notes? } \"^\"")
|
15934
15949
|
Rules[:_NoteReference] = rule_info("NoteReference", "&{ notes? } RawNoteReference:ref { note_for ref }")
|
15935
|
-
Rules[:_RawNoteReference] = rule_info("RawNoteReference", "\"[^\" < (
|
15936
|
-
Rules[:_Note] = rule_info("Note", "&{ notes? } NonindentSpace RawNoteReference:ref \":\" Sp StartList:a RawNoteBlock (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil }")
|
15937
|
-
Rules[:_InlineNote] = rule_info("InlineNote", "&{ notes? } \"^[\" StartList:a (!\"]\" Inline:l { a << l })+ \"]\" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref }")
|
15950
|
+
Rules[:_RawNoteReference] = rule_info("RawNoteReference", "\"[^\" < (!@Newline !\"]\" .)+ > \"]\" { text }")
|
15951
|
+
Rules[:_Note] = rule_info("Note", "&{ notes? } @NonindentSpace RawNoteReference:ref \":\" @Sp @StartList:a RawNoteBlock:i { a.concat i } (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil }")
|
15952
|
+
Rules[:_InlineNote] = rule_info("InlineNote", "&{ notes? } \"^[\" @StartList:a (!\"]\" Inline:l { a << l })+ \"]\" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref }")
|
15938
15953
|
Rules[:_Notes] = rule_info("Notes", "(Note | SkipBlock)*")
|
15939
|
-
Rules[:_RawNoteBlock] = rule_info("RawNoteBlock", "StartList:a (
|
15940
|
-
Rules[:_CodeFence] = rule_info("CodeFence", "&{ github? } Ticks3 (Sp StrChunk:format)? Spnl < ((!\"`\" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | Newline)+ > Ticks3 Sp Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format verbatim }")
|
15954
|
+
Rules[:_RawNoteBlock] = rule_info("RawNoteBlock", "@StartList:a (!@BlankLine OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a }")
|
15955
|
+
Rules[:_CodeFence] = rule_info("CodeFence", "&{ github? } Ticks3 (@Sp StrChunk:format)? Spnl < ((!\"`\" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | @Newline)+ > Ticks3 @Sp @Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format verbatim }")
|
15941
15956
|
Rules[:_DefinitionList] = rule_info("DefinitionList", "&{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten }")
|
15942
15957
|
Rules[:_DefinitionListItem] = rule_info("DefinitionListItem", "DefinitionListLabel+:label DefinitionListDefinition+:defns { list_items = [] list_items << RDoc::Markup::ListItem.new(label, defns.shift) list_items.concat defns.map { |defn| RDoc::Markup::ListItem.new nil, defn } unless list_items.empty? list_items }")
|
15943
|
-
Rules[:_DefinitionListLabel] = rule_info("DefinitionListLabel", "StrChunk:label Sp Newline { label }")
|
15944
|
-
Rules[:_DefinitionListDefinition] = rule_info("DefinitionListDefinition", "NonindentSpace \":\" Space Inlines:a BlankLine+ { paragraph a }")
|
15958
|
+
Rules[:_DefinitionListLabel] = rule_info("DefinitionListLabel", "StrChunk:label @Sp @Newline { label }")
|
15959
|
+
Rules[:_DefinitionListDefinition] = rule_info("DefinitionListDefinition", "@NonindentSpace \":\" @Space Inlines:a @BlankLine+ { paragraph a }")
|
15945
15960
|
# :startdoc:
|
15946
15961
|
end
|