summaryrefslogtreecommitdiffstats
path: root/application/libraries/geshi/ruby.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-02-14 01:17:10 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-02-14 01:17:10 +0100
commita635c931ff8aa79728d93a4835e06a75e8f90be8 (patch)
treeec99bc646bca4cd8d37e58378d07c1ebd1f0499f /application/libraries/geshi/ruby.php
parent798a4824a2aa099de9eb05454ebb62b1522bee65 (diff)
bump geshi to 1.0.8.10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/geshi/ruby.php')
-rw-r--r--application/libraries/geshi/ruby.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/application/libraries/geshi/ruby.php b/application/libraries/geshi/ruby.php
index 57d379d66..c38d5a218 100644
--- a/application/libraries/geshi/ruby.php
+++ b/application/libraries/geshi/ruby.php
@@ -4,7 +4,7 @@
* --------
* Author: Moises Deniz
* Copyright: (c) 2007 Moises Deniz
- * Release Version: 1.0.8.6
+ * Release Version: 1.0.8.10
* Date Started: 2007/03/21
*
* Ruby language file for GeSHi.
@@ -40,6 +40,10 @@ $language_data = array (
'LANG_NAME' => 'Ruby',
'COMMENT_SINGLE' => array(1 => "#"),
'COMMENT_MULTI' => array("=begin" => "=end"),
+ 'COMMENT_REGEXP' => array(
+ //Heredoc
+ 4 => '/<<\s*?(\w+)\\n.*?\\n\\1(?![a-zA-Z0-9])/si',
+ ),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', '`','\''),
'ESCAPE_CHAR' => '\\',
@@ -145,6 +149,7 @@ $language_data = array (
),
'COMMENTS' => array(
1 => 'color:#008000; font-style:italic;',
+ 4 => 'color: #cc0000; font-style: italic;',
'MULTI' => 'color:#000080; font-style:italic;'
),
'ESCAPE_CHAR' => array(