Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
58af92dd
Commit
58af92dd
authored
13 years ago
by
Kieron Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Bug fixes for deprecate detection, truncated code sections
parent
6094a8a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/doxygen_filter/PerlFilter.pm
+5
-4
5 additions, 4 deletions
misc-scripts/doxygen_filter/PerlFilter.pm
with
5 additions
and
4 deletions
misc-scripts/doxygen_filter/PerlFilter.pm
+
5
−
4
View file @
58af92dd
...
...
@@ -207,7 +207,7 @@ sub normal_action {
#push @big_buffer,"\@par Code:\n\@code\n";
push
@big_buffer
,
$html_lump
;
push
@big_buffer
,
$line
;
if
(
$line
=~
/sub.*{.*}/
||
$line
=~
/1;/
)
{
$brackets
=
0
;}
#one-line subroutines must be catered for, but only after the magic <Div> is created.
if
(
$line
=~
/sub.*{.*}/
||
$line
=~
/
^\s*
1;/
)
{
$brackets
=
0
;}
#one-line subroutines must be catered for, but only after the magic <Div> is created.
}
}
...
...
@@ -232,7 +232,8 @@ sub inheritance_action {
my
@parents
=
$line
=~
/Bio::EnsEMBL::[\w:]+/g
;
push
@inheritance
,
@parents
;
}
elsif
(
$line
=~
/use base\s+(qw\()?(\(\s*')?\s*([\w:]+)'?\s*(\))?/
)
{
#elsif ($line =~ /use base\s+(qw[\(\/])?(\(\s*')?\s*([\w:]+)'?\s*(\))?/) { Old way is overly fussy.
elsif
(
$line
=~
/use base/
)
{
#$inherit = $2;
#push @inheritance,$inherit;
my
@parents
=
$line
=~
/Bio::EnsEMBL::[\w:]+/g
;
...
...
@@ -363,7 +364,7 @@ sub pod_method_action {
else
{
$line
=~
s/[BICLFS]<(.+?)>/$1/g
;
# remove POD formatting commands
$line
=~
s/(\@|&|<|>|\\|\%|#)/\\$1/g
;
#sanitising the oddities that will bewilder Doxygen
$line
=~
s/(
description\s*:\s*)?
DEPRECATED/\@deprecated/i
;
#make use of Doxygen's deprecated list features
$line
=~
s/(
?<!isn't\s)
DEPRECATED/\@deprecated/i
;
#make use of Doxygen's deprecated list features
push
@buffer
,
$line
;
}
}
...
...
@@ -407,7 +408,7 @@ sub code_action {
push
@big_buffer
,
$line
;
# When we run out of open brackets, or we hit weird unpaired brackets in strings or comments
if
(
$brackets
<=
0
||
$line
=~
/^=/
||
$line
=~
/^\s*sub/
||
$line
=~
/1;/
)
{
if
(
$brackets
<=
0
||
$line
=~
/^=/
||
$line
=~
/^\s*sub/
||
$line
=~
/
^\s*
1;/
)
{
$state
=
NORMAL
;
push
@big_buffer
,"
\@
endcode
\n
</div>*/
\n
";
#Add fake function for doxygen to find after the comment.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment