Index: includes/coder_comment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/coder/includes/coder_comment.inc,v
retrieving revision 1.1.4.7
diff -u -p -r1.1.4.7 coder_comment.inc
--- includes/coder_comment.inc 1 Mar 2008 14:54:43 -0000 1.1.4.7
+++ includes/coder_comment.inc 7 May 2008 09:06:45 -0000
@@ -53,29 +53,24 @@ function coder_comment_reviews() {
       '#type' => 'regex',
       '#source' => 'comment',
       '#value' => '\@see\s*.*',
-      '#not' => '^\@see\s*[a-zA-Z_\.\-]+\(\)',
-      '#warning' => '@see should always be followed by a function name with ()',
+      '#not' => '^\@see\s+((\w+\(\)|[\w\.\-]+\.[0-9a-zA-Z]+)[,\s]+)*(\w+\(\)|[\w\.\-]+\.[0-9a-zA-Z]+)\W*$',
+      '#warning' => '@see should always be followed by a filename or a function name with ()',
       '#severity' => 'minor',
     ),
     array(
       '#type' => 'regex',
       '#source' => 'comment',
-      '#value' => '\@see\s*.*?[\.\,;]+\s*$',
-      '#warning' => '@see should have no trailing punctuation',
+      '#value' => '\@see.*$',
+      '#not' => '^\@see\s+([\w\.\-\(\)]+,\s)*[\w\.\-\(\)]+$',
+      '#warning' => '@see references should be separated by "," followed by a single space and with no trailing punctuation',
       '#severity' => 'minor',
     ),
     array(
       '#type' => 'regex',
       '#source' => 'comment',
-      '#value' => '\@see\s*[a-zA-Z_\.]+\(\)(\s+[a-zA-Z_\.\-]+)+',
-      '#warning' => '@see references should be separated from the function name by ", "',
-      '#severity' => 'minor',
-    ),
-    array(
-      '#type' => 'regex',
-      '#source' => 'comment',
-      '#value' => '\@see\s*[a-zA-Z_\.]+\(\),.*?(\s+[a-zA-Z_\.\-]+){2,}',
-      '#warning' => '@see references should be separated by ", "',
+      '#value' => '\@see\s.*$',
+      '#not' => '^\@see [^\s]',
+      '#warning' => '@see should be separated from the references by one space only',
       '#severity' => 'minor',
     ),
   );
Index: tests/coder_comment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/coder/tests/coder_comment.inc,v
retrieving revision 1.1.4.4
diff -u -p -r1.1.4.4 coder_comment.inc
--- tests/coder_comment.inc 28 Feb 2008 11:52:07 -0000 1.1.4.4
+++ tests/coder_comment.inc 7 May 2008 09:06:45 -0000
@@ -18,14 +18,27 @@

 /*
  * @see some_function()
+ * @see some_file.tpl.php
+ * @see some_file.inc
  * @see some_function(), some-template.tpl.php
  * @see some_function(), some-template.tpl.php, ok.tpl.php
  *
  * sdfsf @see not ok
- * @see some_function, some-template.tpl.php, not_ok.tpl.php
+ * @see some_file
+ * @see some_file.php, some_function
+ * @see some_function(), some_file
+ * @see  some_function()
+ * @see some_function, some-template.tpl.php,  not_ok.tpl.php
+ * @see some_file.php some-template.tpl.php, not_ok.tpl.php
  * @see some_function() some-template.tpl.php, not_ok.tpl.php
+ * @see some_file.php, some-template.tpl.php not_ok.tpl.php
  * @see some_function(), some-template.tpl.php not_ok.tpl.php
+ * @see some_file.php,some-template.tpl.php, not_ok.tpl.php
+ * @see some_function(), some-template.tpl.php,not_ok.tpl.php
+ * @see some_file.php, some-template.tpl.php, not_ok.tpl.php foo.php
  * @see some_function(), some-template.tpl.php, not_ok.tpl.php foo.php
  * @see some_function(),
+ * @see some_file.php,
  * @see some_function(), some-template.tpl.php, not_ok.tpl.php.
+ * @see some_file.php, some-template.tpl.php, not_ok.tpl.php.
  */
