From f96ca283fc3c67a5cca850d6fce362d3b1ff83de Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Tue, 27 Nov 2007 01:19:19 +0100 Subject: Since reference_file adds all symbols anyway, don't bother looking them up. Just strip the reserved identifiers. --- lib/LXRng/Markup/File.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/LXRng/Markup/File.pm') diff --git a/lib/LXRng/Markup/File.pm b/lib/LXRng/Markup/File.pm index 3983a3c..084d4a6 100644 --- a/lib/LXRng/Markup/File.pm +++ b/lib/LXRng/Markup/File.pm @@ -74,14 +74,14 @@ sub format_include { } sub format_code { - my ($self, $idre, $syms, $frag) = @_; + my ($self, $idre, $res, $frag) = @_; my $tree = $self->context->vtree(); my $path = $self->context->path(); Subst::Complex::s($frag, $idre => sub { my $sym = $_[1]; - if (exists($$syms{$sym})) { + unless (exists($$res{$sym})) { $sym = safe_html($sym); return qq{$sym} } -- cgit v1.2.3