Skip Menu |

This queue is for tickets about the DB-Color CPAN distribution.

Report information
The Basics
Id: 74816
Status: resolved
Priority: 0/
Queue: DB-Color

People
Owner: Nobody in particular
Requestors: spudsoup [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.05
Fixed in: (no value)



Subject: POD docs at the top of perl source break Syntax parsing.
I have found that if there is any POD documentation at the top of a script to be debugged then all subsequent code is rendered in dark blue without syntax coloring. If the POD is at the end of the script, after the code then this problem is not an issue. Other than this bug, I realy like this module, especialy the continously updated window of active code. Keep up the good work Ovid!
Subject: hello.pl
#!/usr/bin/perl # Setup Pragmas. use strict; use warnings; use diagnostics; # Import common libaries. use Getopt::Long; use Pod::Usage; sub main () { my $raw_opts; $raw_opts->{'help'} = sub{ pod2usage(-verbose=>0) }; # Use the store in hash form op GetOptions, with references to exceptions setup above. GetOptions( $raw_opts, 'help|h','man') or pod2usage(-verbose=>0, -message => "incorect options"); # If we get this far the user did not pass in -help # Emit the greeting. print "Hello World\n"; } exit main(); =pod =head1 NAME hello.pl - Hello World =head1 SYNOPSIS hello.pl [-h] Simple hello world program. Takes no arguments. =cut
On Thu Feb 09 06:17:17 2012, SPUDSOUP wrote: Show quoted text
> I have found that if there is any POD documentation at the top of a > script to be debugged then all subsequent code is rendered in dark
blue Show quoted text
> without syntax coloring. > > If the POD is at the end of the script, after the code then this
problem Show quoted text
> is not an issue. > > Other than this bug, I realy like this module, especialy the
continously Show quoted text
> updated window of active code. Keep up the good work Ovid!
Thanks for the kind words and the bug report. I am hoping to give this module some serious love at the upcoming Perl QA Hackathon here in Paris and reports like this are exactly what I need to be as productive as possible. Cheers, Ovid
On Thu Feb 09 06:17:17 2012, SPUDSOUP wrote: Show quoted text
> I have found that if there is any POD documentation at the top of a > script to be debugged then all subsequent code is rendered in dark blue > without syntax coloring. > > If the POD is at the end of the script, after the code then this problem > is not an issue. > > Other than this bug, I realy like this module, especialy the continously > updated window of active code. Keep up the good work Ovid!
Hi Spudsoup, This has been fixed (hacked!) in 0.06 and that should hit the CPAN soon. Cheers, Ovid