wikiheaders: look for "c++" before "c" in regular expression.

This commit is contained in:
Ryan C. Gordon 2021-07-13 12:25:23 -04:00
parent 269d0773c7
commit 1f17bc549e
No known key found for this signature in database
GPG Key ID: FA148B892AB48044

View File

@ -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++)(.*?)\`\`\`/<syntaxhighlight lang='$1'>$2<\/syntaxhighlight>/gms;
$str =~ s/\`\`\`(c\+\+|c)(.*?)\`\`\`/<syntaxhighlight lang='$1'>$2<\/syntaxhighlight>/gms;
# <code></code> is also popular. :/
$str =~ s/\`(.*?)\`/<code>$1<\/code>/gms;