Skip to content

Commit

Permalink
Merge pull request #3231 from metacpan/haarg/synhi-fix
Browse files Browse the repository at this point in the history
Fix syntax highlighting alignment and =cut handling
  • Loading branch information
haarg authored Nov 19, 2024
2 parents 896fa65 + ed6e2f9 commit b4d25ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion root/static/js/brush-perl.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function Brush() {

// don't capture the newline after =cut so that =cut\n\n=head1 will start a new pod section
{
regex: /(^|\n)=\w[\s\S]*?(\n=cut\s*(?=\n)|$)/g,
regex: /(^|\n)=\w[\s\S]*?(\n=cut(?![a-zA-Z]).*)/g,
css: 'comments'
}, // pod

Expand Down
2 changes: 1 addition & 1 deletion root/static/less/syntaxhighlighter-theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

.line {
white-space: pre;
min-height: 1.2em;
height: 1.2em;
}

// main table and columns
Expand Down

0 comments on commit b4d25ef

Please sign in to comment.