| 86 |
<dd>$char_length byte@{[$char_length == 1 ? '' : 's']}</dd> |
<dd>$char_length byte@{[$char_length == 1 ? '' : 's']}</dd> |
| 87 |
</dl> |
</dl> |
| 88 |
</div> |
</div> |
| 89 |
|
|
| 90 |
|
<script src="../cc-script.js"></script> |
| 91 |
]; |
]; |
| 92 |
|
|
| 93 |
$input->{id_prefix} = ''; |
$input->{id_prefix} = ''; |
| 294 |
<div id="$input->{id_prefix}parse-errors" class="section"> |
<div id="$input->{id_prefix}parse-errors" class="section"> |
| 295 |
<h2>Parse Errors</h2> |
<h2>Parse Errors</h2> |
| 296 |
|
|
| 297 |
<dl>]; |
<dl id="$input->{id_prefix}parse-errors-list">]; |
| 298 |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{nested}; |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{nested}; |
| 299 |
|
|
| 300 |
my $onerror = sub { |
my $onerror = sub { |
| 348 |
<div id="$input->{id_prefix}parse-errors" class="section"> |
<div id="$input->{id_prefix}parse-errors" class="section"> |
| 349 |
<h2>Parse Errors</h2> |
<h2>Parse Errors</h2> |
| 350 |
|
|
| 351 |
<dl>]; |
<dl id="$input->{id_prefix}parse-errors-list">]; |
| 352 |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{prefix}; |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{prefix}; |
| 353 |
|
|
| 354 |
my $onerror = sub { |
my $onerror = sub { |
| 559 |
<div id="$input->{id_prefix}parse-errors" class="section"> |
<div id="$input->{id_prefix}parse-errors" class="section"> |
| 560 |
<h2>Parse Errors</h2> |
<h2>Parse Errors</h2> |
| 561 |
|
|
| 562 |
<dl>]; |
<dl id="$input->{id_prefix}parse-errors-list">]; |
| 563 |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{nested}; |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{nested}; |
| 564 |
|
|
| 565 |
my $p = get_css_parser (); |
my $p = get_css_parser (); |
| 625 |
<div id="$input->{id_prefix}parse-errors" class="section"> |
<div id="$input->{id_prefix}parse-errors" class="section"> |
| 626 |
<h2>Parse Errors</h2> |
<h2>Parse Errors</h2> |
| 627 |
|
|
| 628 |
<dl>]; |
<dl id="$input->{id_prefix}parse-errors-list">]; |
| 629 |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{nested}; |
push @nav, ['#parse-errors' => 'Parse Error'] unless $input->{nested}; |
| 630 |
|
|
| 631 |
my $onerror = sub { |
my $onerror = sub { |
| 671 |
<h2>Document Source</h2> |
<h2>Document Source</h2> |
| 672 |
<ol lang="">\n]; |
<ol lang="">\n]; |
| 673 |
if (length $$s) { |
if (length $$s) { |
| 674 |
while ($$s =~ /\G([^\x0A]*?)\x0D?\x0A/gc) { |
while ($$s =~ /\G([^\x0D\x0A]*?)(?>\x0D\x0A?|\x0A)/gc) { |
| 675 |
print STDOUT qq[<li id="$input->{id_prefix}line-$i">], htescape $1, |
print STDOUT qq[<li id="$input->{id_prefix}line-$i">], htescape $1, |
| 676 |
"</li>\n"; |
"</li>\n"; |
| 677 |
$i++; |
$i++; |
| 678 |
} |
} |
| 679 |
if ($$s =~ /\G([^\x0A]+)/gc) { |
if ($$s =~ /\G([^\x0D\x0A]+)/gc) { |
| 680 |
print STDOUT qq[<li id="$input->{id_prefix}line-$i">], htescape $1, |
print STDOUT qq[<li id="$input->{id_prefix}line-$i">], htescape $1, |
| 681 |
"</li>\n"; |
"</li>\n"; |
| 682 |
} |
} |
| 683 |
} else { |
} else { |
| 684 |
print STDOUT q[<li id="$input->{id_prefix}line-1"></li>]; |
print STDOUT q[<li id="$input->{id_prefix}line-1"></li>]; |
| 685 |
} |
} |
| 686 |
print STDOUT "</ol></div>"; |
print STDOUT "</ol></div> |
| 687 |
|
<script> addSourceToParseErrorList ('$input->{id_prefix}'); </script>"; |
| 688 |
} # print_input_string_section |
} # print_input_string_section |
| 689 |
|
|
| 690 |
sub print_document_tree ($$) { |
sub print_document_tree ($$) { |
| 1121 |
|
|
| 1122 |
my $r = ''; |
my $r = ''; |
| 1123 |
|
|
| 1124 |
if (defined $err->{line}) { |
if (defined $err->{token} and defined $err->{token}->{line}) { |
| 1125 |
|
if ($err->{token}->{column} > 0) { |
| 1126 |
|
$r = qq[<a href="#$input->{id_prefix}line-$err->{token}->{line}">Line $err->{token}->{line}</a> column $err->{token}->{column}]; |
| 1127 |
|
} else { |
| 1128 |
|
$err->{token}->{line} = $err->{token}->{line} - 1 || 1; |
| 1129 |
|
$r = qq[<a href="#$input->{id_prefix}line-$err->{token}->{line}">Line $err->{token}->{line}</a>]; |
| 1130 |
|
} |
| 1131 |
|
} elsif (defined $err->{line}) { |
| 1132 |
if ($err->{column} > 0) { |
if ($err->{column} > 0) { |
| 1133 |
$r = qq[<a href="#$input->{id_prefix}line-$err->{line}">Line $err->{line}</a> column $err->{column}]; |
$r = qq[<a href="#$input->{id_prefix}line-$err->{line}">Line $err->{line}</a> column $err->{column}]; |
| 1134 |
} else { |
} else { |