Skip to content

Commit 1ebc2d6

Browse files
committed
Rename pygmentize-code-blocks -> highlight-code-blocks
We don't need to know how the code blocks are being highlighted, especially not in the name of the sub which does the highlighting.
1 parent 39e1c0f commit 1ebc2d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

htmlify.p6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use v6;
33

44
# This script isn't in bin/ because it's not meant to be installed.
5-
# for syntax hilighting, needs pygmentize version 2.0 or newer installed
5+
# For syntax highlighting, needs pygmentize version 2.0 or newer installed
66

77
BEGIN say 'Initializing ...';
88

@@ -126,7 +126,7 @@ sub MAIN(
126126
process-pod-dir 'Language', :$sparse;
127127
process-pod-dir 'Type', :sorted-by{ %h{.key} // -1 }, :$sparse;
128128

129-
pygmentize-code-blocks unless $no-highlight;
129+
highlight-code-blocks unless $no-highlight;
130130

131131
say 'Composing doc registry ...';
132132
$*DR.compose;
@@ -683,7 +683,7 @@ sub write-qualified-method-call(:$name!, :$pod!, :$type!) {
683683
spurt "html/routine/{$type}.{$name}.html", p2h($p, 'routine');
684684
}
685685

686-
sub pygmentize-code-blocks {
686+
sub highlight-code-blocks {
687687
my $pyg-version = try qx/pygmentize -V/;
688688
if $pyg-version && $pyg-version ~~ /^'Pygments version ' (\d\S+)/ {
689689
if Version.new(~$0) ~~ v2.0+ {

0 commit comments

Comments
 (0)