mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
wikiheaders: look for "c++" before "c" in regular expression.
This commit is contained in:
parent
269d0773c7
commit
1f17bc549e
@ -123,7 +123,7 @@ sub wikify {
|
|||||||
$str =~ s/\b(SDL_[a-zA-Z0-9_]+)/[[$1]]/gms;
|
$str =~ s/\b(SDL_[a-zA-Z0-9_]+)/[[$1]]/gms;
|
||||||
|
|
||||||
# Make some Markdown things into MediaWiki...
|
# 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. :/
|
# <code></code> is also popular. :/
|
||||||
$str =~ s/\`(.*?)\`/<code>$1<\/code>/gms;
|
$str =~ s/\`(.*?)\`/<code>$1<\/code>/gms;
|
||||||
|
Loading…
Reference in New Issue
Block a user