? tests
Index: coder_format.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/coder/scripts/coder_format/coder_format.inc,v
retrieving revision 1.2.4.4
diff -u -r1.2.4.4 coder_format.inc
--- coder_format.inc	16 Jan 2008 14:02:49 -0000	1.2.4.4
+++ coder_format.inc	16 Jan 2008 22:34:40 -0000
@@ -864,11 +864,12 @@
     '#weight' => 2,
     // [\040\t] matches only a space or tab.
     // (?!case) prevents matching of case statements.
+    // (?!*) prevents matching of docblock statements.
     // \S prevents matching of lines containing only a comment.
     // [^:] prevents matching of URL protocols.
-    // [^;\$] prevents matching of CVS keyword Id comment and double slashes.
+    // [^;,\$] prevents matching of CVS keyword Id comment and double slashes
     //   in quotes (f.e. "W3C//DTD").
-    '#search' => '@^([\040\t]*)(?!case)(\S.+?)[\040\t]*[^:]//\s*([^;\$]+?)$@m',
+    '#search' => '@^([\040\t]*)(?!case)(?!\*)(\S.+?)[\040\t]*[^:]//\s*([^;,\$]+?)$@m',
     '#replace' => "$1// $3\n$1$2",
   );
 }
@@ -958,7 +959,7 @@
     // ((.+ => .+, ){3,}) matches all array items, except the last one.
     // (.+ => ([^\(\)]+)) matches the last array item, excluding.
     //   arrays or functions (starting with a left parenthesis) (not supported yet).
-    #'#search' => '/^([\040\t]*)(.*?array\()((.+ => .+, ){3,})(.+ => ([^\(\)]+))\)/m',
+    //'#search' => '/^([\040\t]*)(.*?array\()((.+ => .+, ){3,})(.+ => ([^\(\)]+))\)/m',
     '#replace_callback' => 'coder_replace_array_rearrange',
   );
 }
@@ -1037,6 +1038,11 @@
     return htmlspecialchars($text, ENT_QUOTES);
   }
 }
+if (!function_exists('conf_path')) {
+  function conf_path() {
+    return "sites/default";
+  }
+}
 
 /**
  * @} End of "defgroup coder_format_stub_functions".
