rdoc 6.0.0.beta3 → 6.0.0.beta4
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
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/Rakefile +5 -2
- data/lib/rdoc.rb +2 -3
- data/lib/rdoc/alias.rb +1 -1
- data/lib/rdoc/anon_class.rb +1 -1
- data/lib/rdoc/any_method.rb +7 -7
- data/lib/rdoc/attr.rb +1 -1
- data/lib/rdoc/class_module.rb +4 -2
- data/lib/rdoc/code_object.rb +2 -2
- data/lib/rdoc/code_objects.rb +1 -1
- data/lib/rdoc/comment.rb +20 -10
- data/lib/rdoc/constant.rb +1 -1
- data/lib/rdoc/context.rb +3 -3
- data/lib/rdoc/context/section.rb +2 -2
- data/lib/rdoc/cross_reference.rb +1 -1
- data/lib/rdoc/encoding.rb +40 -18
- data/lib/rdoc/erb_partial.rb +1 -1
- data/lib/rdoc/erbio.rb +1 -1
- data/lib/rdoc/extend.rb +1 -1
- data/lib/rdoc/generator.rb +1 -1
- data/lib/rdoc/generator/darkfish.rb +48 -21
- data/lib/rdoc/generator/json_index.rb +2 -2
- data/lib/rdoc/generator/markup.rb +1 -1
- data/lib/rdoc/generator/pot.rb +1 -1
- data/lib/rdoc/generator/pot/message_extractor.rb +1 -1
- data/lib/rdoc/generator/pot/po.rb +3 -3
- data/lib/rdoc/generator/pot/po_entry.rb +11 -11
- data/lib/rdoc/generator/ri.rb +1 -1
- data/lib/rdoc/ghost_method.rb +1 -1
- data/lib/rdoc/i18n.rb +1 -1
- data/lib/rdoc/i18n/locale.rb +1 -1
- data/lib/rdoc/i18n/text.rb +5 -5
- data/lib/rdoc/include.rb +1 -1
- data/lib/rdoc/known_classes.rb +1 -1
- data/lib/rdoc/markdown.kpeg +71 -41
- data/lib/rdoc/markdown/entities.rb +1 -1
- data/lib/rdoc/markdown/literals.kpeg +1 -0
- data/lib/rdoc/markdown/literals.rb +18 -7
- data/lib/rdoc/markup.rb +1 -1
- data/lib/rdoc/markup/attr_changer.rb +1 -1
- data/lib/rdoc/markup/attr_span.rb +1 -1
- data/lib/rdoc/markup/attribute_manager.rb +2 -2
- data/lib/rdoc/markup/attributes.rb +1 -1
- data/lib/rdoc/markup/blank_line.rb +1 -1
- data/lib/rdoc/markup/block_quote.rb +1 -1
- data/lib/rdoc/markup/document.rb +1 -1
- data/lib/rdoc/markup/formatter.rb +1 -1
- data/lib/rdoc/markup/formatter_test_case.rb +1 -1
- data/lib/rdoc/markup/hard_break.rb +1 -1
- data/lib/rdoc/markup/heading.rb +1 -1
- data/lib/rdoc/markup/include.rb +1 -1
- data/lib/rdoc/markup/indented_paragraph.rb +1 -1
- data/lib/rdoc/markup/inline.rb +1 -1
- data/lib/rdoc/markup/list.rb +1 -1
- data/lib/rdoc/markup/list_item.rb +1 -1
- data/lib/rdoc/markup/paragraph.rb +1 -1
- data/lib/rdoc/markup/parser.rb +3 -3
- data/lib/rdoc/markup/pre_process.rb +9 -5
- data/lib/rdoc/markup/raw.rb +1 -1
- data/lib/rdoc/markup/rule.rb +1 -1
- data/lib/rdoc/markup/special.rb +1 -1
- data/lib/rdoc/markup/text_formatter_test_case.rb +1 -1
- data/lib/rdoc/markup/to_ansi.rb +1 -1
- data/lib/rdoc/markup/to_bs.rb +1 -1
- data/lib/rdoc/markup/to_html.rb +1 -1
- data/lib/rdoc/markup/to_html_crossref.rb +1 -1
- data/lib/rdoc/markup/to_html_snippet.rb +1 -1
- data/lib/rdoc/markup/to_joined_paragraph.rb +6 -32
- data/lib/rdoc/markup/to_label.rb +1 -1
- data/lib/rdoc/markup/to_markdown.rb +1 -1
- data/lib/rdoc/markup/to_rdoc.rb +1 -1
- data/lib/rdoc/markup/to_table_of_contents.rb +1 -1
- data/lib/rdoc/markup/to_test.rb +1 -1
- data/lib/rdoc/markup/to_tt_only.rb +1 -1
- data/lib/rdoc/markup/verbatim.rb +1 -1
- data/lib/rdoc/meta_method.rb +1 -1
- data/lib/rdoc/method_attr.rb +2 -2
- data/lib/rdoc/mixin.rb +1 -1
- data/lib/rdoc/normal_class.rb +3 -3
- data/lib/rdoc/normal_module.rb +1 -1
- data/lib/rdoc/options.rb +6 -6
- data/lib/rdoc/parser.rb +1 -1
- data/lib/rdoc/parser/c.rb +6 -6
- data/lib/rdoc/parser/changelog.rb +5 -5
- data/lib/rdoc/parser/markdown.rb +1 -1
- data/lib/rdoc/parser/rd.rb +1 -1
- data/lib/rdoc/parser/ripper_state_lex.rb +26 -8
- data/lib/rdoc/parser/ruby.rb +36 -42
- data/lib/rdoc/parser/ruby_tools.rb +2 -3
- data/lib/rdoc/parser/simple.rb +3 -3
- data/lib/rdoc/parser/text.rb +1 -1
- data/lib/rdoc/rd.rb +1 -1
- data/lib/rdoc/rd/block_parser.ry +2 -2
- data/lib/rdoc/rd/inline.rb +5 -5
- data/lib/rdoc/rd/inline_parser.ry +1 -1
- data/lib/rdoc/rdoc.rb +12 -7
- data/lib/rdoc/require.rb +1 -1
- data/lib/rdoc/ri.rb +1 -1
- data/lib/rdoc/ri/driver.rb +1 -1
- data/lib/rdoc/ri/formatter.rb +1 -1
- data/lib/rdoc/ri/paths.rb +1 -1
- data/lib/rdoc/ri/store.rb +1 -1
- data/lib/rdoc/ri/task.rb +1 -1
- data/lib/rdoc/rubygems_hook.rb +1 -1
- data/lib/rdoc/servlet.rb +2 -2
- data/lib/rdoc/single_class.rb +1 -1
- data/lib/rdoc/stats.rb +1 -1
- data/lib/rdoc/stats/normal.rb +2 -2
- data/lib/rdoc/stats/quiet.rb +1 -1
- data/lib/rdoc/stats/verbose.rb +1 -1
- data/lib/rdoc/store.rb +1 -1
- data/lib/rdoc/task.rb +1 -1
- data/lib/rdoc/test_case.rb +3 -4
- data/lib/rdoc/text.rb +7 -7
- data/lib/rdoc/token_stream.rb +15 -7
- data/lib/rdoc/tom_doc.rb +2 -2
- data/lib/rdoc/top_level.rb +1 -1
- data/rdoc.gemspec +3 -3
- metadata +3 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
# frozen_string_literal:
|
1
|
+
# frozen_string_literal: true
|
2
2
|
require 'json'
|
3
3
|
begin
|
4
4
|
require 'zlib'
|
@@ -161,7 +161,7 @@ class RDoc::Generator::JsonIndex
|
|
161
161
|
# Compress the search_index.js file using gzip
|
162
162
|
|
163
163
|
def generate_gzipped
|
164
|
-
return
|
164
|
+
return if @options.dry_run or not defined?(Zlib)
|
165
165
|
|
166
166
|
debug_msg "Compressing generated JSON index"
|
167
167
|
out_dir = @base_dir + @options.op_dir
|
data/lib/rdoc/generator/pot.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# frozen_string_literal:
|
1
|
+
# frozen_string_literal: true
|
2
2
|
##
|
3
3
|
# Generates a PO format text
|
4
4
|
|
@@ -29,8 +29,8 @@ class RDoc::Generator::POT::PO
|
|
29
29
|
def to_s
|
30
30
|
po = ''
|
31
31
|
sort_entries.each do |entry|
|
32
|
-
po
|
33
|
-
po
|
32
|
+
po += "\n" unless po.empty?
|
33
|
+
po += entry.to_s
|
34
34
|
end
|
35
35
|
po
|
36
36
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# frozen_string_literal:
|
1
|
+
# frozen_string_literal: true
|
2
2
|
##
|
3
3
|
# A PO entry in PO
|
4
4
|
|
@@ -40,11 +40,11 @@ class RDoc::Generator::POT::POEntry
|
|
40
40
|
|
41
41
|
def to_s
|
42
42
|
entry = ''
|
43
|
-
entry
|
44
|
-
entry
|
45
|
-
entry
|
46
|
-
entry
|
47
|
-
entry
|
43
|
+
entry += format_translator_comment
|
44
|
+
entry += format_extracted_comment
|
45
|
+
entry += format_references
|
46
|
+
entry += format_flags
|
47
|
+
entry += <<-ENTRY
|
48
48
|
msgid #{format_message(@msgid)}
|
49
49
|
msgstr #{format_message(@msgstr)}
|
50
50
|
ENTRY
|
@@ -75,9 +75,9 @@ msgstr #{format_message(@msgstr)}
|
|
75
75
|
|
76
76
|
formatted_comment = ''
|
77
77
|
comment.each_line do |line|
|
78
|
-
formatted_comment
|
78
|
+
formatted_comment += "#{mark} #{line}"
|
79
79
|
end
|
80
|
-
formatted_comment
|
80
|
+
formatted_comment += "\n" unless formatted_comment.end_with?("\n")
|
81
81
|
formatted_comment
|
82
82
|
end
|
83
83
|
|
@@ -94,7 +94,7 @@ msgstr #{format_message(@msgstr)}
|
|
94
94
|
|
95
95
|
formatted_references = ''
|
96
96
|
@references.sort.each do |file, line|
|
97
|
-
formatted_references
|
97
|
+
formatted_references += "\#: #{file}:#{line}\n"
|
98
98
|
end
|
99
99
|
formatted_references
|
100
100
|
end
|
@@ -111,8 +111,8 @@ msgstr #{format_message(@msgstr)}
|
|
111
111
|
|
112
112
|
formatted_message = '""'
|
113
113
|
message.each_line do |line|
|
114
|
-
formatted_message
|
115
|
-
formatted_message
|
114
|
+
formatted_message += "\n"
|
115
|
+
formatted_message += "\"#{escape(line)}\""
|
116
116
|
end
|
117
117
|
formatted_message
|
118
118
|
end
|
data/lib/rdoc/generator/ri.rb
CHANGED
data/lib/rdoc/ghost_method.rb
CHANGED
data/lib/rdoc/i18n.rb
CHANGED
data/lib/rdoc/i18n/locale.rb
CHANGED
data/lib/rdoc/i18n/text.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# frozen_string_literal:
|
1
|
+
# frozen_string_literal: true
|
2
2
|
##
|
3
3
|
# An i18n supported text.
|
4
4
|
#
|
@@ -46,9 +46,9 @@ class RDoc::I18n::Text
|
|
46
46
|
parse do |part|
|
47
47
|
case part[:type]
|
48
48
|
when :paragraph
|
49
|
-
translated_text
|
49
|
+
translated_text += locale.translate(part[:paragraph])
|
50
50
|
when :empty_line
|
51
|
-
translated_text
|
51
|
+
translated_text += part[:line]
|
52
52
|
else
|
53
53
|
raise "should not reach here: unexpected type: #{type}"
|
54
54
|
end
|
@@ -69,14 +69,14 @@ class RDoc::I18n::Text
|
|
69
69
|
if paragraph.empty?
|
70
70
|
emit_empty_line_event(line, line_no, &block)
|
71
71
|
else
|
72
|
-
paragraph
|
72
|
+
paragraph += line
|
73
73
|
emit_paragraph_event(paragraph, paragraph_start_line, line_no,
|
74
74
|
&block)
|
75
75
|
paragraph = ''
|
76
76
|
end
|
77
77
|
else
|
78
78
|
paragraph_start_line = line_no if paragraph.empty?
|
79
|
-
paragraph
|
79
|
+
paragraph += line
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
data/lib/rdoc/include.rb
CHANGED
data/lib/rdoc/known_classes.rb
CHANGED
data/lib/rdoc/markdown.kpeg
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
%% header {
|
4
4
|
# coding: UTF-8
|
5
|
+
# frozen_string_literal: true
|
5
6
|
# :markup: markdown
|
6
7
|
|
7
8
|
##
|
@@ -84,6 +85,18 @@
|
|
84
85
|
# : A little insect that is known
|
85
86
|
# to enjoy picnics
|
86
87
|
#
|
88
|
+
# ### Strike
|
89
|
+
#
|
90
|
+
# Example:
|
91
|
+
#
|
92
|
+
# ```
|
93
|
+
# This is ~~striked~~.
|
94
|
+
# ```
|
95
|
+
#
|
96
|
+
# Produces:
|
97
|
+
#
|
98
|
+
# This is ~~striked~~.
|
99
|
+
#
|
87
100
|
# ### Github
|
88
101
|
#
|
89
102
|
# The #github extension enables a partial set of [Github Flavored Markdown]
|
@@ -193,6 +206,7 @@
|
|
193
206
|
:github,
|
194
207
|
:html,
|
195
208
|
:notes,
|
209
|
+
:strike,
|
196
210
|
]
|
197
211
|
|
198
212
|
# :section: Extensions
|
@@ -243,6 +257,11 @@
|
|
243
257
|
|
244
258
|
extension :notes
|
245
259
|
|
260
|
+
##
|
261
|
+
# Enables the strike extension
|
262
|
+
|
263
|
+
extension :strike
|
264
|
+
|
246
265
|
# :section:
|
247
266
|
|
248
267
|
##
|
@@ -331,7 +350,7 @@
|
|
331
350
|
# with the linking `text` (usually whitespace).
|
332
351
|
|
333
352
|
def link_to content, label = content, text = nil
|
334
|
-
raise 'enable notes extension' if
|
353
|
+
raise ParseError, 'enable notes extension' if
|
335
354
|
content.start_with? '^' and label.equal? content
|
336
355
|
|
337
356
|
if ref = @references[label] then
|
@@ -466,6 +485,17 @@
|
|
466
485
|
"<b>#{text}</b>"
|
467
486
|
end
|
468
487
|
end
|
488
|
+
|
489
|
+
##
|
490
|
+
# Wraps `text` in strike markup for rdoc inline formatting
|
491
|
+
|
492
|
+
def strike text
|
493
|
+
if text =~ /\A[a-z\d.\/-]+\z/i then
|
494
|
+
"~#{text}~"
|
495
|
+
else
|
496
|
+
"<s>#{text}</s>"
|
497
|
+
end
|
498
|
+
end
|
469
499
|
}
|
470
500
|
|
471
501
|
root = Doc
|
@@ -494,27 +524,27 @@ Para = @NonindentSpace Inlines:a @BlankLine+
|
|
494
524
|
Plain = Inlines:a
|
495
525
|
{ paragraph a }
|
496
526
|
|
497
|
-
AtxInline = !@Newline !(@Sp
|
527
|
+
AtxInline = !@Newline !(@Sp /#*/ @Sp @Newline) Inline
|
498
528
|
|
499
529
|
AtxStart = < /\#{1,6}/ >
|
500
530
|
{ text.length }
|
501
531
|
|
502
|
-
AtxHeading = AtxStart:s @Sp
|
532
|
+
AtxHeading = AtxStart:s @Sp AtxInline+:a (@Sp /#*/ @Sp)? @Newline
|
503
533
|
{ RDoc::Markup::Heading.new(s, a.join) }
|
504
534
|
|
505
535
|
SetextHeading = SetextHeading1 | SetextHeading2
|
506
536
|
|
507
|
-
SetextBottom1 = /={
|
537
|
+
SetextBottom1 = /={1,}/ @Newline
|
508
538
|
|
509
|
-
SetextBottom2 = /-{
|
539
|
+
SetextBottom2 = /-{1,}/ @Newline
|
510
540
|
|
511
541
|
SetextHeading1 = &(@RawLine SetextBottom1)
|
512
|
-
@StartList:a ( !@Endline Inline:b { a << b } )+ @Sp
|
542
|
+
@StartList:a ( !@Endline Inline:b { a << b } )+ @Sp @Newline
|
513
543
|
SetextBottom1
|
514
544
|
{ RDoc::Markup::Heading.new(1, a.join) }
|
515
545
|
|
516
546
|
SetextHeading2 = &(@RawLine SetextBottom2)
|
517
|
-
@StartList:a ( !@Endline Inline:b { a << b })+ @Sp
|
547
|
+
@StartList:a ( !@Endline Inline:b { a << b })+ @Sp @Newline
|
518
548
|
SetextBottom2
|
519
549
|
{ RDoc::Markup::Heading.new(2, a.join) }
|
520
550
|
|
@@ -733,6 +763,9 @@ HtmlBlockOpenScript = "<" Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* ">"
|
|
733
763
|
HtmlBlockCloseScript = "<" Spnl "/" ("script" | "SCRIPT") Spnl ">"
|
734
764
|
HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript
|
735
765
|
|
766
|
+
HtmlBlockOpenHead = "<" Spnl ("head" | "HEAD") Spnl HtmlAttribute* ">"
|
767
|
+
HtmlBlockCloseHead = "<" Spnl "/" ("head" | "HEAD") Spnl ">"
|
768
|
+
HtmlBlockHead = HtmlBlockOpenHead (!HtmlBlockCloseHead .)* HtmlBlockCloseHead
|
736
769
|
|
737
770
|
HtmlBlockInTags = HtmlAnchor
|
738
771
|
| HtmlBlockAddress
|
@@ -768,6 +801,7 @@ HtmlBlockInTags = HtmlAnchor
|
|
768
801
|
| HtmlBlockThead
|
769
802
|
| HtmlBlockTr
|
770
803
|
| HtmlBlockScript
|
804
|
+
| HtmlBlockHead
|
771
805
|
|
772
806
|
HtmlBlock = < ( HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) >
|
773
807
|
@BlankLine+
|
@@ -871,6 +905,7 @@ Inline = Str
|
|
871
905
|
| @Space
|
872
906
|
| Strong
|
873
907
|
| Emph
|
908
|
+
| Strike
|
874
909
|
| Image
|
875
910
|
| Link
|
876
911
|
| NoteReference
|
@@ -896,7 +931,7 @@ Entity = ( HexEntity | DecEntity | CharEntity ):a { a }
|
|
896
931
|
Endline = @LineBreak | @TerminalEndline | @NormalEndline
|
897
932
|
|
898
933
|
NormalEndline = @Sp @Newline !@BlankLine !">" !AtxStart
|
899
|
-
!(Line /={
|
934
|
+
!(Line /={1,}|-{1,}/ @Newline)
|
900
935
|
{ "\n" }
|
901
936
|
|
902
937
|
TerminalEndline = @Sp @Newline @Eof
|
@@ -916,46 +951,44 @@ UlLine = < /_{4,}/ > { text } |
|
|
916
951
|
|
917
952
|
Emph = EmphStar | EmphUl
|
918
953
|
|
919
|
-
|
920
|
-
OneStarClose = !@Spacechar !@Newline Inline:a "*"
|
921
|
-
{ a }
|
954
|
+
Whitespace = @Spacechar | @Newline
|
922
955
|
|
923
|
-
EmphStar =
|
956
|
+
EmphStar = "*" !@Whitespace
|
924
957
|
@StartList:a
|
925
|
-
( !
|
926
|
-
|
958
|
+
( !"*" Inline:b { a << b }
|
959
|
+
| StrongStar:b { a << b }
|
960
|
+
)+
|
961
|
+
"*"
|
927
962
|
{ emphasis a.join }
|
928
963
|
|
929
|
-
|
930
|
-
OneUlClose = !@Spacechar !@Newline Inline:a "_" # !Alphanumeric # TODO check
|
931
|
-
{ a }
|
932
|
-
|
933
|
-
EmphUl = OneUlOpen
|
964
|
+
EmphUl = "_" !@Whitespace
|
934
965
|
@StartList:a
|
935
|
-
( !
|
936
|
-
|
966
|
+
( !"_" Inline:b { a << b }
|
967
|
+
| StrongUl:b { a << b }
|
968
|
+
)+
|
969
|
+
"_"
|
937
970
|
{ emphasis a.join }
|
938
971
|
|
939
972
|
Strong = StrongStar | StrongUl
|
940
973
|
|
941
|
-
|
942
|
-
TwoStarClose = !@Spacechar !@Newline Inline:a "**" { a }
|
943
|
-
|
944
|
-
StrongStar = TwoStarOpen
|
974
|
+
StrongStar = "**" !@Whitespace
|
945
975
|
@StartList:a
|
946
|
-
( !
|
947
|
-
|
976
|
+
( !"**" Inline:b { a << b } )+
|
977
|
+
"**"
|
948
978
|
{ strong a.join }
|
949
979
|
|
950
|
-
|
951
|
-
|
952
|
-
{ a }
|
980
|
+
StrongUl = "__" !@Whitespace
|
981
|
+
@StartList:a
|
982
|
+
( !"__" Inline:b { a << b } )+
|
983
|
+
"__"
|
984
|
+
{ strong a.join }
|
953
985
|
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
986
|
+
Strike = &{ strike? }
|
987
|
+
"~~" !@Whitespace
|
988
|
+
@StartList:a
|
989
|
+
( !"~~" Inline:b { a << b } )+
|
990
|
+
"~~"
|
991
|
+
{ strike a.join }
|
959
992
|
|
960
993
|
# TODO alt text support
|
961
994
|
Image = "!" ( ExplicitLink | ReferenceLink ):a
|
@@ -971,14 +1004,13 @@ ReferenceLinkDouble = Label:content < Spnl > !"[]" Label:label
|
|
971
1004
|
ReferenceLinkSingle = Label:content < (Spnl "[]")? >
|
972
1005
|
{ link_to content, content, text }
|
973
1006
|
|
974
|
-
ExplicitLink = Label:l
|
1007
|
+
ExplicitLink = Label:l "(" @Sp Source:s Spnl Title @Sp ")"
|
975
1008
|
{ "{#{l}}[#{s}]" }
|
976
1009
|
|
977
1010
|
Source = ( "<" < SourceContents > ">" | < SourceContents > )
|
978
1011
|
{ text }
|
979
1012
|
|
980
1013
|
SourceContents = ( ( !"(" !")" !">" Nonspacechar )+ | "(" SourceContents ")")*
|
981
|
-
| ""
|
982
1014
|
|
983
1015
|
Title = ( TitleSingle | TitleDouble | "" ):a
|
984
1016
|
{ a }
|
@@ -1068,7 +1100,7 @@ Eof = !.
|
|
1068
1100
|
Nonspacechar = !@Spacechar !@Newline .
|
1069
1101
|
Sp = @Spacechar*
|
1070
1102
|
Spnl = @Sp (@Newline @Sp)?
|
1071
|
-
SpecialChar = /[
|
1103
|
+
SpecialChar = /[~*_`&\[\]()<!#\\'"]/ | @ExtendedSpecialChar
|
1072
1104
|
NormalChar = !( @SpecialChar | @Spacechar | @Newline ) .
|
1073
1105
|
Digit = [0-9]
|
1074
1106
|
|
@@ -1077,7 +1109,6 @@ Alphanumeric = %literals.Alphanumeric
|
|
1077
1109
|
AlphanumericAscii = %literals.AlphanumericAscii
|
1078
1110
|
BOM = %literals.BOM
|
1079
1111
|
Newline = %literals.Newline
|
1080
|
-
NonAlphanumeric = %literals.NonAlphanumeric
|
1081
1112
|
Spacechar = %literals.Spacechar
|
1082
1113
|
|
1083
1114
|
HexEntity = /&#x/i < /[0-9a-fA-F]+/ > ";"
|
@@ -1137,8 +1168,7 @@ InlineNote = &{ notes? }
|
|
1137
1168
|
@StartList:a
|
1138
1169
|
( !"]" Inline:l { a << l } )+
|
1139
1170
|
"]"
|
1140
|
-
{
|
1141
|
-
ref = [:inline, @note_order.length]
|
1171
|
+
{ ref = [:inline, @note_order.length]
|
1142
1172
|
@footnotes[ref] = paragraph a
|
1143
1173
|
|
1144
1174
|
note_for ref
|