From b0c0d8e97cfae0a14bbb659f55f9e3082ad2c75c Mon Sep 17 00:00:00 2001 From: twanvl Date: Fri, 16 May 2008 20:35:34 +0000 Subject: [PATCH] "rgba" is now a keyword git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@851 0fc631ac-6414-0410-93d0-97cfa31319b6 --- tools/website/drupal/mse-drupal-modules/highlight.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/website/drupal/mse-drupal-modules/highlight.inc b/tools/website/drupal/mse-drupal-modules/highlight.inc index effacf46..495d43da 100644 --- a/tools/website/drupal/mse-drupal-modules/highlight.inc +++ b/tools/website/drupal/mse-drupal-modules/highlight.inc @@ -130,7 +130,7 @@ function highlight_script($code) { while(strlen($code)) { if (preg_match("@^<[^>]+>@",$code, $matches)) { $ret .= $matches[0]; // plain tag - } else if (preg_match("@^(if|then|else|for( each)?|in(?= )|do|mod|and|or|xor|not|rgb|from|to)\b(?!:)@",$code, $matches)) { + } else if (preg_match("@^(if|then|else|for( each)?|in(?= )|do|mod|and|or|xor|not|rgb|rgba|from|to)\b(?!:)@",$code, $matches)) { $ret .= "" . $matches[0] . ""; } else if (preg_match("@^(include file:)(.*)@",$code, $matches)) { $ret .= "" . $matches[1] . "" . $matches[2];