From bb62d5fbe1aa438a9e655573ea9d8c8d3183006b Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 20 Jun 2008 18:06:28 +0200 Subject: GeSHi update to 1.0.7.22 darcs-hash:20080620160628-7ad00-1bfd8f407b5b38c29c7879d67da2ea3dbd0d1816.gz --- inc/geshi/ini.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'inc/geshi/ini.php') diff --git a/inc/geshi/ini.php b/inc/geshi/ini.php index b7de9afa4..711254475 100644 --- a/inc/geshi/ini.php +++ b/inc/geshi/ini.php @@ -4,13 +4,15 @@ * -------- * Author: deguix (cevo_deguix@yahoo.com.br) * Copyright: (c) 2005 deguix - * Release Version: 1.0.7.21 + * Release Version: 1.0.7.22 * Date Started: 2005/03/27 * * INI language file for GeSHi. * * CHANGES * ------- + * 2008/05/23 (1.0.7.22) + * - Added description of extra language features (SF#1970248) * 2005/12/28 (1.0.1) * - Removed unnecessary keyword style index * - Added support for " strings @@ -94,19 +96,22 @@ $language_data = array ( 'OBJECT_SPLITTERS' => array( ), 'REGEXPS' => array( + //Section names 0 => '\[.+\]', + //Entry names 1 => array( - GESHI_SEARCH => '([a-zA-Z0-9_]+\s*)=(.+)', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => '', - GESHI_BEFORE => '', - GESHI_AFTER => '=\\2' + GESHI_SEARCH => '^(\s*)([a-zA-Z0-9_]+)(\s*=)', + GESHI_REPLACE => '\\2', + GESHI_MODIFIERS => 'm', + GESHI_BEFORE => '\\1', + GESHI_AFTER => '\\3' ), + //Entry values 2 => array( // Evil hackery to get around GeSHi bug: <>" and ; are added so s can be matched // Explicit match on variable names because if a comment is before the first < of the span // gets chewed up... - GESHI_SEARCH => '([<>";a-zA-Z0-9_]+\s*)=(.+)', + GESHI_SEARCH => '([<>";a-zA-Z0-9_]+\s*)=(.*)', GESHI_REPLACE => '\\2', GESHI_MODIFIERS => '', GESHI_BEFORE => '\\1=', -- cgit v1.2.3