From dbf443c02552726e113199fe95535eb7d474872e Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sat, 28 Mar 2015 13:25:23 +0100 Subject: [PATCH] Add missing and new languages Out geshi language list had not been updated after the last update and we were missing a few language names containing - and _ like php-brief Bug: T94292 Change-Id: I83bf1aeb95e1ed7c2cd2eba865987a772e3f08eb --- SyntaxHighlight_GeSHi.langs.php | 27 ++++++++++++++++++++++++++- maintenance/updateLanguageList.php | 8 ++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/SyntaxHighlight_GeSHi.langs.php b/SyntaxHighlight_GeSHi.langs.php index ff634ae3..3793675c 100644 --- a/SyntaxHighlight_GeSHi.langs.php +++ b/SyntaxHighlight_GeSHi.langs.php @@ -1,5 +1,5 @@ get_supported_languages( false ), 'ctype_alnum' ) ); + $langs = array_values( array_filter( $geshi->get_supported_languages( false ), 'lang_filter' ) ); sort( $langs ); $replace = array( '[' => "array(\n\t", ']' => "\n);\n", '",' => "\",\n\t" ); $code = "