Document/LaTeX/Outline.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
find
2.0
BEGIN
2.0
CRAP 2.0
1 package Padre::Document::LaTeX::Outline;
2 BEGIN {
3 $Padre::Document::LaTeX::Outline::VERSION = '0.13';
4 }
5  
6 # ABSTRACT: LaTeX document support for Padre
7  
8 use 5.008;
9 use strict;
10 use warnings;
11 use Padre::Task::Outline ();
12  
13 our @ISA = 'Padre::Task::Outline';
14  
15 sub find {
16 my $self = shift;
17 my $text = shift;
18  
19 # remove all comments
20 $text =~ s/[^\\]%.*//g;
21  
22 warn "Text: $text\n";
23  
24 # Build the outline structure from the search results
25 my @outline = ();
26 my $cur_pkg = { name => 'latex file' };
27  
28 push @outline, $cur_pkg;
29  
30 return \@outline;
31 }
32  
33 1;
34  
35 __END__