From 1f17bc549eef48696b8be7d2f35ff1408e5a5000 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 13 Jul 2021 12:25:23 -0400 Subject: [PATCH] wikiheaders: look for "c++" before "c" in regular expression. --- build-scripts/wikiheaders.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl index 0d1de8344..c7b84f35d 100755 --- a/build-scripts/wikiheaders.pl +++ b/build-scripts/wikiheaders.pl @@ -123,7 +123,7 @@ sub wikify { $str =~ s/\b(SDL_[a-zA-Z0-9_]+)/[[$1]]/gms; # Make some Markdown things into MediaWiki... - $str =~ s/\`\`\`(c|c++)(.*?)\`\`\`/$2<\/syntaxhighlight>/gms; + $str =~ s/\`\`\`(c\+\+|c)(.*?)\`\`\`/$2<\/syntaxhighlight>/gms; # is also popular. :/ $str =~ s/\`(.*?)\`/$1<\/code>/gms;