diff --git a/tools/website/drupal/mse-drupal-modules/highlight.inc b/tools/website/drupal/mse-drupal-modules/highlight.inc index 6676380b..3d226d2b 100644 --- a/tools/website/drupal/mse-drupal-modules/highlight.inc +++ b/tools/website/drupal/mse-drupal-modules/highlight.inc @@ -168,8 +168,10 @@ function highlight_script($code) { $ret .= "" . $matches[0] . ""; } else if (preg_match("@^([-+*/=!.\@^]|<|>)+|^:=@",$code, $matches)) { $ret .= "" . $matches[0] . ""; - } else if (preg_match("@^([}]|[\\(\\)\\[\\]{,]+)@",$code, $matches)) { + } else if (preg_match("@^([\\(\\)\\[\\],]+)@",$code, $matches)) { $ret .= "" . $matches[0] . ""; + } else if (preg_match("@^[{}]@",$code, $matches)) { + $ret .= "" . $matches[0] . ""; if ($matches[0] == '{') $string .= 'b'; elseif ($matches[0] == '}') $string = substr($string,0,-1); } else if (preg_match("@^[a-zA-Z_][a-zA-Z0-9_]*:@",$code, $matches)) {