浏览代码

2004-12-03 Atsushi Enomoto <[email protected]>

	* cs-tokenizer.cs : Only '////' is rejected. Other non-whitespace
	  comments are allowed.



svn path=/trunk/mcs/; revision=36988
Atsushi Eno 21 年之前
父节点
当前提交
debdd45e57
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 5 0
      mcs/mcs/ChangeLog
  2. 1 2
      mcs/mcs/cs-tokenizer.cs

+ 5 - 0
mcs/mcs/ChangeLog

@@ -1,3 +1,8 @@
+2004-12-03  Atsushi Enomoto  <[email protected]>
+
+	* cs-tokenizer.cs : Only '////' is rejected. Other non-whitespace
+	  comments are allowed.
+
 2004-12-03  Carlos Alberto Cortez <[email protected]>
 
 	* delegate.cs: Add checks for subtypes in paramaters and return values

+ 1 - 2
mcs/mcs/cs-tokenizer.cs

@@ -1902,9 +1902,8 @@ namespace Mono.CSharp
 						getChar ();
 						if (RootContext.Documentation != null && peekChar () == '/') {
 							getChar ();
-							// Allow only ///ws.
 							// Don't allow ////.
-							if ((d = peekChar ()) == ' ' || d == '\t') {
+							if ((d = peekChar ()) != '/') {
 								if (doc_state == XmlCommentState.Allowed)
 									handle_one_line_xml_comment ();
 								else if (doc_state == XmlCommentState.NotAllowed)