rdoc 6.3.0 → 6.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18741ef6dd2db34af2ea15a9e8a154a760c1f01bb0d69d15dc3af3f70cc00d7c
4
- data.tar.gz: e61ab91ee4b0e776dd36e934da0534e6d52aa259ddff18be057955e109db08b4
3
+ metadata.gz: 327e6414793206350f148388b0df495ff2c748c1d4bb129ef320a442e4084619
4
+ data.tar.gz: 44c884a1eb18506c90af82fefa6f7686973ab32e1ceb42c6616b0ffbf88ac868
5
5
  SHA512:
6
- metadata.gz: 9ea75c4b0339de23f73f84c890b23cb0b7bacb87ea191258f54160a28a4519c0e8edfbf6bc17ef67e631d923b17cb2030f79048d269b032eefe8b92f62fdb9df
7
- data.tar.gz: bdbf42dea5706d0b13ce653a8591ff9fc0ece11b4d49c18e7d32bd725e901a3dd2e5feb3479b4185a874d12e024e7f77b6324592405a9b826efd00bb68589373
6
+ metadata.gz: 8691cde93b42f6c4ff77f6212e40c5c15c408b1953e58cf14f17cef142970ff79564bf7fe12b7f072067267fd67ad62920241e54e7a6d592487545bd19a82311
7
+ data.tar.gz: 3adbda517d389982d0d67ccd92478d0b0912c156c2988a26089715ff77e998025d6f2d8eafd44cdbd66daa2c647bd2201d1c0f57c5731bac19c45aea3014ae4c
data/Rakefile CHANGED
@@ -2,7 +2,6 @@ $:.unshift File.expand_path 'lib'
2
2
  require 'rdoc/task'
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rake/testtask'
5
- require 'rubocop/rake_task'
6
5
 
7
6
  task :docs => :generate
8
7
  task :test => [:normal_test, :rubygems_test]
@@ -62,13 +61,13 @@ package_parser_files = PARSER_FILES.map do |parser_file|
62
61
  end
63
62
 
64
63
  parsed_files = PARSER_FILES.map do |parser_file|
65
- name = File.basename(parser_file, File.extname(parser_file))
66
- _path = File.dirname(parser_file)
67
- parsed_file = "#{_path}/#{name}.rb"
64
+ ext = File.extname(parser_file)
65
+ parsed_file = "#{parser_file.chomp(ext)}.rb"
68
66
 
69
- file parsed_file do |t|
67
+ file parsed_file => parser_file do |t|
70
68
  puts "Generating #{parsed_file}..."
71
- if parser_file =~ /\.ry\z/ # need racc
69
+ case ext
70
+ when '.ry' # need racc
72
71
  racc = Gem.bin_path 'racc', 'racc'
73
72
  rb_file = parser_file.gsub(/\.ry\z/, ".rb")
74
73
  ruby "#{racc} -l -o #{rb_file} #{parser_file}"
@@ -77,7 +76,7 @@ parsed_files = PARSER_FILES.map do |parser_file|
77
76
  f.rewind
78
77
  f.write newtext
79
78
  end
80
- elsif parser_file =~ /\.kpeg\z/ # need kpeg
79
+ when '.kpeg' # need kpeg
81
80
  kpeg = Gem.bin_path 'kpeg', 'kpeg'
82
81
  rb_file = parser_file.gsub(/\.kpeg\z/, ".rb")
83
82
  ruby "#{kpeg} -fsv -o #{rb_file} #{parser_file}"
@@ -88,12 +87,15 @@ parsed_files = PARSER_FILES.map do |parser_file|
88
87
  end
89
88
 
90
89
  task "#{path}.gem" => package_parser_files
91
-
92
- RuboCop::RakeTask.new(:rubocop) do |t|
93
- t.options = [*parsed_files]
94
- end
95
-
96
- desc "Genrate all files used racc and kpeg"
90
+ desc "Generate all files used racc and kpeg"
97
91
  task :generate => parsed_files
98
92
 
99
- task :build => [:generate, "rubocop:auto_correct"]
93
+ begin
94
+ require 'rubocop/rake_task'
95
+ rescue LoadError
96
+ else
97
+ RuboCop::RakeTask.new(:rubocop) do |t|
98
+ t.options = [*parsed_files]
99
+ end
100
+ task :build => [:generate, "rubocop:auto_correct"]
101
+ end
@@ -79,6 +79,25 @@ pre {
79
79
  border-radius: 0.2em;
80
80
  }
81
81
 
82
+ table {
83
+ margin: 0;
84
+ border-spacing: 0;
85
+ border-collapse: collapse;
86
+ }
87
+
88
+ table tr th, table tr td {
89
+ padding: 0.2em 0.4em;
90
+ border: 1px solid #ccc;
91
+ }
92
+
93
+ table tr th {
94
+ background-color: #eceaed;
95
+ }
96
+
97
+ table tr:nth-child(even) td {
98
+ background-color: #f5f4f6;
99
+ }
100
+
82
101
  /* @group Generic Classes */
83
102
 
84
103
  .initially-hidden {
@@ -166,6 +185,7 @@ nav {
166
185
  width: 260px;
167
186
  font-family: Helvetica, sans-serif;
168
187
  font-size: 14px;
188
+ border-right: 1px solid #ccc;
169
189
  }
170
190
 
171
191
  main {
@@ -506,6 +506,7 @@ Block = @BlankLine*
506
506
  ( BlockQuote
507
507
  | Verbatim
508
508
  | CodeFence
509
+ | Table
509
510
  | Note
510
511
  | Reference
511
512
  | HorizontalRule
@@ -896,7 +897,8 @@ StyleBlock = < InStyleTags >
896
897
  end }
897
898
 
898
899
  Inlines = ( !@Endline Inline:i { i }
899
- | @Endline:c &Inline { c } )+:chunks @Endline?
900
+ | @Endline:c !( &{ github? } Ticks3 /[^`\n]*$/ )
901
+ &Inline { c } )+:chunks @Endline?
900
902
  { chunks }
901
903
 
902
904
  Inline = Str
@@ -1195,6 +1197,22 @@ CodeFence = &{ github? }
1195
1197
  verbatim
1196
1198
  }
1197
1199
 
1200
+ Table = &{ github? }
1201
+ TableRow:header TableLine:line TableRow+:body
1202
+ { table = RDoc::Markup::Table.new(header, line, body) }
1203
+
1204
+ TableRow = TableItem+:row "|" @Newline
1205
+ { row }
1206
+ TableItem = "|" < (!"|" !@Newline .)+ >
1207
+ { text.strip }
1208
+
1209
+ TableLine = TableColumn+:line "|" @Newline
1210
+ { line }
1211
+ TableColumn = "|" < ( "-"+ ":"? | ":" "-"* ) >
1212
+ { text.start_with?(":") ? :left :
1213
+ text.end_with?(":") ? :right : nil
1214
+ }
1215
+
1198
1216
  DefinitionList = &{ definition_lists? }
1199
1217
  ( DefinitionListItem+:list )
1200
1218
  { RDoc::Markup::List.new :NOTE, *list.flatten }
data/lib/rdoc/markdown.rb CHANGED
@@ -897,7 +897,7 @@ class RDoc::Markdown
897
897
  return _tmp
898
898
  end
899
899
 
900
- # Block = @BlankLine* (BlockQuote | Verbatim | CodeFence | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)
900
+ # Block = @BlankLine* (BlockQuote | Verbatim | CodeFence | Table | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)
901
901
  def _Block
902
902
 
903
903
  _save = self.pos
@@ -923,6 +923,9 @@ class RDoc::Markdown
923
923
  _tmp = apply(:_CodeFence)
924
924
  break if _tmp
925
925
  self.pos = _save2
926
+ _tmp = apply(:_Table)
927
+ break if _tmp
928
+ self.pos = _save2
926
929
  _tmp = apply(:_Note)
927
930
  break if _tmp
928
931
  self.pos = _save2
@@ -9320,7 +9323,7 @@ class RDoc::Markdown
9320
9323
  return _tmp
9321
9324
  end
9322
9325
 
9323
- # Inlines = (!@Endline Inline:i { i } | @Endline:c &Inline { c })+:chunks @Endline? { chunks }
9326
+ # Inlines = (!@Endline Inline:i { i } | @Endline:c !(&{ github? } Ticks3 /[^`\n]*$/) &Inline { c })+:chunks @Endline? { chunks }
9324
9327
  def _Inlines
9325
9328
 
9326
9329
  _save = self.pos
@@ -9367,12 +9370,41 @@ class RDoc::Markdown
9367
9370
  break
9368
9371
  end
9369
9372
  _save6 = self.pos
9370
- _tmp = apply(:_Inline)
9373
+
9374
+ _save7 = self.pos
9375
+ while true # sequence
9376
+ _save8 = self.pos
9377
+ _tmp = begin; github? ; end
9378
+ self.pos = _save8
9379
+ unless _tmp
9380
+ self.pos = _save7
9381
+ break
9382
+ end
9383
+ _tmp = apply(:_Ticks3)
9384
+ unless _tmp
9385
+ self.pos = _save7
9386
+ break
9387
+ end
9388
+ _tmp = scan(/\A(?-mix:[^`\n]*$)/)
9389
+ unless _tmp
9390
+ self.pos = _save7
9391
+ end
9392
+ break
9393
+ end # end sequence
9394
+
9395
+ _tmp = _tmp ? nil : true
9371
9396
  self.pos = _save6
9372
9397
  unless _tmp
9373
9398
  self.pos = _save5
9374
9399
  break
9375
9400
  end
9401
+ _save9 = self.pos
9402
+ _tmp = apply(:_Inline)
9403
+ self.pos = _save9
9404
+ unless _tmp
9405
+ self.pos = _save5
9406
+ break
9407
+ end
9376
9408
  @result = begin; c ; end
9377
9409
  _tmp = true
9378
9410
  unless _tmp
@@ -9390,61 +9422,90 @@ class RDoc::Markdown
9390
9422
  _ary << @result
9391
9423
  while true
9392
9424
 
9393
- _save7 = self.pos
9425
+ _save10 = self.pos
9394
9426
  while true # choice
9395
9427
 
9396
- _save8 = self.pos
9428
+ _save11 = self.pos
9397
9429
  while true # sequence
9398
- _save9 = self.pos
9430
+ _save12 = self.pos
9399
9431
  _tmp = _Endline()
9400
9432
  _tmp = _tmp ? nil : true
9401
- self.pos = _save9
9433
+ self.pos = _save12
9402
9434
  unless _tmp
9403
- self.pos = _save8
9435
+ self.pos = _save11
9404
9436
  break
9405
9437
  end
9406
9438
  _tmp = apply(:_Inline)
9407
9439
  i = @result
9408
9440
  unless _tmp
9409
- self.pos = _save8
9441
+ self.pos = _save11
9410
9442
  break
9411
9443
  end
9412
9444
  @result = begin; i ; end
9413
9445
  _tmp = true
9414
9446
  unless _tmp
9415
- self.pos = _save8
9447
+ self.pos = _save11
9416
9448
  end
9417
9449
  break
9418
9450
  end # end sequence
9419
9451
 
9420
9452
  break if _tmp
9421
- self.pos = _save7
9453
+ self.pos = _save10
9422
9454
 
9423
- _save10 = self.pos
9455
+ _save13 = self.pos
9424
9456
  while true # sequence
9425
9457
  _tmp = _Endline()
9426
9458
  c = @result
9427
9459
  unless _tmp
9428
- self.pos = _save10
9460
+ self.pos = _save13
9429
9461
  break
9430
9462
  end
9431
- _save11 = self.pos
9463
+ _save14 = self.pos
9464
+
9465
+ _save15 = self.pos
9466
+ while true # sequence
9467
+ _save16 = self.pos
9468
+ _tmp = begin; github? ; end
9469
+ self.pos = _save16
9470
+ unless _tmp
9471
+ self.pos = _save15
9472
+ break
9473
+ end
9474
+ _tmp = apply(:_Ticks3)
9475
+ unless _tmp
9476
+ self.pos = _save15
9477
+ break
9478
+ end
9479
+ _tmp = scan(/\A(?-mix:[^`\n]*$)/)
9480
+ unless _tmp
9481
+ self.pos = _save15
9482
+ end
9483
+ break
9484
+ end # end sequence
9485
+
9486
+ _tmp = _tmp ? nil : true
9487
+ self.pos = _save14
9488
+ unless _tmp
9489
+ self.pos = _save13
9490
+ break
9491
+ end
9492
+ _save17 = self.pos
9432
9493
  _tmp = apply(:_Inline)
9433
- self.pos = _save11
9494
+ self.pos = _save17
9434
9495
  unless _tmp
9435
- self.pos = _save10
9496
+ self.pos = _save13
9436
9497
  break
9437
9498
  end
9438
9499
  @result = begin; c ; end
9439
9500
  _tmp = true
9440
9501
  unless _tmp
9441
- self.pos = _save10
9502
+ self.pos = _save13
9442
9503
  end
9443
9504
  break
9444
9505
  end # end sequence
9445
9506
 
9446
9507
  break if _tmp
9447
- self.pos = _save7
9508
+ self.pos = _save10
9448
9509
  break
9449
9510
  end # end choice
9450
9511
 
@@ -9461,11 +9522,11 @@ class RDoc::Markdown
9461
9522
  self.pos = _save
9462
9523
  break
9463
9524
  end
9464
- _save12 = self.pos
9525
+ _save18 = self.pos
9465
9526
  _tmp = _Endline()
9466
9527
  unless _tmp
9467
9528
  _tmp = true
9468
- self.pos = _save12
9529
+ self.pos = _save18
9469
9530
  end
9470
9531
  unless _tmp
9471
9532
  self.pos = _save
@@ -15847,6 +15908,338 @@ class RDoc::Markdown
15847
15908
  return _tmp
15848
15909
  end
15849
15910
 
15911
+ # Table = &{ github? } TableRow:header TableLine:line TableRow+:body { table = RDoc::Markup::Table.new(header, line, body) }
15912
+ def _Table
15913
+
15914
+ _save = self.pos
15915
+ while true # sequence
15916
+ _save1 = self.pos
15917
+ _tmp = begin; github? ; end
15918
+ self.pos = _save1
15919
+ unless _tmp
15920
+ self.pos = _save
15921
+ break
15922
+ end
15923
+ _tmp = apply(:_TableRow)
15924
+ header = @result
15925
+ unless _tmp
15926
+ self.pos = _save
15927
+ break
15928
+ end
15929
+ _tmp = apply(:_TableLine)
15930
+ line = @result
15931
+ unless _tmp
15932
+ self.pos = _save
15933
+ break
15934
+ end
15935
+ _save2 = self.pos
15936
+ _ary = []
15937
+ _tmp = apply(:_TableRow)
15938
+ if _tmp
15939
+ _ary << @result
15940
+ while true
15941
+ _tmp = apply(:_TableRow)
15942
+ _ary << @result if _tmp
15943
+ break unless _tmp
15944
+ end
15945
+ _tmp = true
15946
+ @result = _ary
15947
+ else
15948
+ self.pos = _save2
15949
+ end
15950
+ body = @result
15951
+ unless _tmp
15952
+ self.pos = _save
15953
+ break
15954
+ end
15955
+ @result = begin; table = RDoc::Markup::Table.new(header, line, body) ; end
15956
+ _tmp = true
15957
+ unless _tmp
15958
+ self.pos = _save
15959
+ end
15960
+ break
15961
+ end # end sequence
15962
+
15963
+ set_failed_rule :_Table unless _tmp
15964
+ return _tmp
15965
+ end
15966
+
15967
+ # TableRow = TableItem+:row "|" @Newline { row }
15968
+ def _TableRow
15969
+
15970
+ _save = self.pos
15971
+ while true # sequence
15972
+ _save1 = self.pos
15973
+ _ary = []
15974
+ _tmp = apply(:_TableItem)
15975
+ if _tmp
15976
+ _ary << @result
15977
+ while true
15978
+ _tmp = apply(:_TableItem)
15979
+ _ary << @result if _tmp
15980
+ break unless _tmp
15981
+ end
15982
+ _tmp = true
15983
+ @result = _ary
15984
+ else
15985
+ self.pos = _save1
15986
+ end
15987
+ row = @result
15988
+ unless _tmp
15989
+ self.pos = _save
15990
+ break
15991
+ end
15992
+ _tmp = match_string("|")
15993
+ unless _tmp
15994
+ self.pos = _save
15995
+ break
15996
+ end
15997
+ _tmp = _Newline()
15998
+ unless _tmp
15999
+ self.pos = _save
16000
+ break
16001
+ end
16002
+ @result = begin; row ; end
16003
+ _tmp = true
16004
+ unless _tmp
16005
+ self.pos = _save
16006
+ end
16007
+ break
16008
+ end # end sequence
16009
+
16010
+ set_failed_rule :_TableRow unless _tmp
16011
+ return _tmp
16012
+ end
16013
+
16014
+ # TableItem = "|" < (!"|" !@Newline .)+ > { text.strip }
16015
+ def _TableItem
16016
+
16017
+ _save = self.pos
16018
+ while true # sequence
16019
+ _tmp = match_string("|")
16020
+ unless _tmp
16021
+ self.pos = _save
16022
+ break
16023
+ end
16024
+ _text_start = self.pos
16025
+ _save1 = self.pos
16026
+
16027
+ _save2 = self.pos
16028
+ while true # sequence
16029
+ _save3 = self.pos
16030
+ _tmp = match_string("|")
16031
+ _tmp = _tmp ? nil : true
16032
+ self.pos = _save3
16033
+ unless _tmp
16034
+ self.pos = _save2
16035
+ break
16036
+ end
16037
+ _save4 = self.pos
16038
+ _tmp = _Newline()
16039
+ _tmp = _tmp ? nil : true
16040
+ self.pos = _save4
16041
+ unless _tmp
16042
+ self.pos = _save2
16043
+ break
16044
+ end
16045
+ _tmp = get_byte
16046
+ unless _tmp
16047
+ self.pos = _save2
16048
+ end
16049
+ break
16050
+ end # end sequence
16051
+
16052
+ if _tmp
16053
+ while true
16054
+
16055
+ _save5 = self.pos
16056
+ while true # sequence
16057
+ _save6 = self.pos
16058
+ _tmp = match_string("|")
16059
+ _tmp = _tmp ? nil : true
16060
+ self.pos = _save6
16061
+ unless _tmp
16062
+ self.pos = _save5
16063
+ break
16064
+ end
16065
+ _save7 = self.pos
16066
+ _tmp = _Newline()
16067
+ _tmp = _tmp ? nil : true
16068
+ self.pos = _save7
16069
+ unless _tmp
16070
+ self.pos = _save5
16071
+ break
16072
+ end
16073
+ _tmp = get_byte
16074
+ unless _tmp
16075
+ self.pos = _save5
16076
+ end
16077
+ break
16078
+ end # end sequence
16079
+
16080
+ break unless _tmp
16081
+ end
16082
+ _tmp = true
16083
+ else
16084
+ self.pos = _save1
16085
+ end
16086
+ if _tmp
16087
+ text = get_text(_text_start)
16088
+ end
16089
+ unless _tmp
16090
+ self.pos = _save
16091
+ break
16092
+ end
16093
+ @result = begin; text.strip ; end
16094
+ _tmp = true
16095
+ unless _tmp
16096
+ self.pos = _save
16097
+ end
16098
+ break
16099
+ end # end sequence
16100
+
16101
+ set_failed_rule :_TableItem unless _tmp
16102
+ return _tmp
16103
+ end
16104
+
16105
+ # TableLine = TableColumn+:line "|" @Newline { line }
16106
+ def _TableLine
16107
+
16108
+ _save = self.pos
16109
+ while true # sequence
16110
+ _save1 = self.pos
16111
+ _ary = []
16112
+ _tmp = apply(:_TableColumn)
16113
+ if _tmp
16114
+ _ary << @result
16115
+ while true
16116
+ _tmp = apply(:_TableColumn)
16117
+ _ary << @result if _tmp
16118
+ break unless _tmp
16119
+ end
16120
+ _tmp = true
16121
+ @result = _ary
16122
+ else
16123
+ self.pos = _save1
16124
+ end
16125
+ line = @result
16126
+ unless _tmp
16127
+ self.pos = _save
16128
+ break
16129
+ end
16130
+ _tmp = match_string("|")
16131
+ unless _tmp
16132
+ self.pos = _save
16133
+ break
16134
+ end
16135
+ _tmp = _Newline()
16136
+ unless _tmp
16137
+ self.pos = _save
16138
+ break
16139
+ end
16140
+ @result = begin; line ; end
16141
+ _tmp = true
16142
+ unless _tmp
16143
+ self.pos = _save
16144
+ end
16145
+ break
16146
+ end # end sequence
16147
+
16148
+ set_failed_rule :_TableLine unless _tmp
16149
+ return _tmp
16150
+ end
16151
+
16152
+ # TableColumn = "|" < ("-"+ ":"? | ":" "-"*) > { text.start_with?(":") ? :left : text.end_with?(":") ? :right : nil }
16153
+ def _TableColumn
16154
+
16155
+ _save = self.pos
16156
+ while true # sequence
16157
+ _tmp = match_string("|")
16158
+ unless _tmp
16159
+ self.pos = _save
16160
+ break
16161
+ end
16162
+ _text_start = self.pos
16163
+
16164
+ _save1 = self.pos
16165
+ while true # choice
16166
+
16167
+ _save2 = self.pos
16168
+ while true # sequence
16169
+ _save3 = self.pos
16170
+ _tmp = match_string("-")
16171
+ if _tmp
16172
+ while true
16173
+ _tmp = match_string("-")
16174
+ break unless _tmp
16175
+ end
16176
+ _tmp = true
16177
+ else
16178
+ self.pos = _save3
16179
+ end
16180
+ unless _tmp
16181
+ self.pos = _save2
16182
+ break
16183
+ end
16184
+ _save4 = self.pos
16185
+ _tmp = match_string(":")
16186
+ unless _tmp
16187
+ _tmp = true
16188
+ self.pos = _save4
16189
+ end
16190
+ unless _tmp
16191
+ self.pos = _save2
16192
+ end
16193
+ break
16194
+ end # end sequence
16195
+
16196
+ break if _tmp
16197
+ self.pos = _save1
16198
+
16199
+ _save5 = self.pos
16200
+ while true # sequence
16201
+ _tmp = match_string(":")
16202
+ unless _tmp
16203
+ self.pos = _save5
16204
+ break
16205
+ end
16206
+ while true
16207
+ _tmp = match_string("-")
16208
+ break unless _tmp
16209
+ end
16210
+ _tmp = true
16211
+ unless _tmp
16212
+ self.pos = _save5
16213
+ end
16214
+ break
16215
+ end # end sequence
16216
+
16217
+ break if _tmp
16218
+ self.pos = _save1
16219
+ break
16220
+ end # end choice
16221
+
16222
+ if _tmp
16223
+ text = get_text(_text_start)
16224
+ end
16225
+ unless _tmp
16226
+ self.pos = _save
16227
+ break
16228
+ end
16229
+ @result = begin; text.start_with?(":") ? :left :
16230
+ text.end_with?(":") ? :right : nil
16231
+ ; end
16232
+ _tmp = true
16233
+ unless _tmp
16234
+ self.pos = _save
16235
+ end
16236
+ break
16237
+ end # end sequence
16238
+
16239
+ set_failed_rule :_TableColumn unless _tmp
16240
+ return _tmp
16241
+ end
16242
+
15850
16243
  # DefinitionList = &{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten }
15851
16244
  def _DefinitionList
15852
16245
 
@@ -16046,7 +16439,7 @@ class RDoc::Markdown
16046
16439
  Rules = {}
16047
16440
  Rules[:_root] = rule_info("root", "Doc")
16048
16441
  Rules[:_Doc] = rule_info("Doc", "BOM? Block*:a { RDoc::Markup::Document.new(*a.compact) }")
16049
- Rules[:_Block] = rule_info("Block", "@BlankLine* (BlockQuote | Verbatim | CodeFence | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)")
16442
+ Rules[:_Block] = rule_info("Block", "@BlankLine* (BlockQuote | Verbatim | CodeFence | Table | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)")
16050
16443
  Rules[:_Para] = rule_info("Para", "@NonindentSpace Inlines:a @BlankLine+ { paragraph a }")
16051
16444
  Rules[:_Plain] = rule_info("Plain", "Inlines:a { paragraph a }")
16052
16445
  Rules[:_AtxInline] = rule_info("AtxInline", "!@Newline !(@Sp /\#*/ @Sp @Newline) Inline")
@@ -16190,7 +16583,7 @@ class RDoc::Markdown
16190
16583
  Rules[:_StyleClose] = rule_info("StyleClose", "\"<\" Spnl \"/\" (\"style\" | \"STYLE\") Spnl \">\"")
16191
16584
  Rules[:_InStyleTags] = rule_info("InStyleTags", "StyleOpen (!StyleClose .)* StyleClose")
16192
16585
  Rules[:_StyleBlock] = rule_info("StyleBlock", "< InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end }")
16193
- Rules[:_Inlines] = rule_info("Inlines", "(!@Endline Inline:i { i } | @Endline:c &Inline { c })+:chunks @Endline? { chunks }")
16586
+ Rules[:_Inlines] = rule_info("Inlines", "(!@Endline Inline:i { i } | @Endline:c !(&{ github? } Ticks3 /[^`\\n]*$/) &Inline { c })+:chunks @Endline? { chunks }")
16194
16587
  Rules[:_Inline] = rule_info("Inline", "(Str | @Endline | UlOrStarLine | @Space | Strong | Emph | Strike | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol)")
16195
16588
  Rules[:_Space] = rule_info("Space", "@Spacechar+ { \" \" }")
16196
16589
  Rules[:_Str] = rule_info("Str", "@StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a }")
@@ -16279,6 +16672,11 @@ class RDoc::Markdown
16279
16672
  Rules[:_Notes] = rule_info("Notes", "(Note | SkipBlock)*")
16280
16673
  Rules[:_RawNoteBlock] = rule_info("RawNoteBlock", "@StartList:a (!@BlankLine OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a }")
16281
16674
  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.instance_of?(String) verbatim }")
16675
+ Rules[:_Table] = rule_info("Table", "&{ github? } TableRow:header TableLine:line TableRow+:body { table = RDoc::Markup::Table.new(header, line, body) }")
16676
+ Rules[:_TableRow] = rule_info("TableRow", "TableItem+:row \"|\" @Newline { row }")
16677
+ Rules[:_TableItem] = rule_info("TableItem", "\"|\" < (!\"|\" !@Newline .)+ > { text.strip }")
16678
+ Rules[:_TableLine] = rule_info("TableLine", "TableColumn+:line \"|\" @Newline { line }")
16679
+ Rules[:_TableColumn] = rule_info("TableColumn", "\"|\" < (\"-\"+ \":\"? | \":\" \"-\"*) > { text.start_with?(\":\") ? :left : text.end_with?(\":\") ? :right : nil }")
16282
16680
  Rules[:_DefinitionList] = rule_info("DefinitionList", "&{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten }")
16283
16681
  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 }")
16284
16682
  Rules[:_DefinitionListLabel] = rule_info("DefinitionListLabel", "StrChunk:label @Sp @Newline { label }")