浏览代码

* fix for webbug 2940

pierre 21 年之前
父节点
当前提交
06d493775e
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      ide/weditor.pas

+ 7 - 3
ide/weditor.pas

@@ -2371,9 +2371,10 @@ var
                   Dec(ClassStart,length(MatchingSymbol)-1);
                   Dec(ClassStart,length(MatchingSymbol)-1);
                 end
                 end
               else if (InComment=false) and
               else if (InComment=false) and
-                (InDirective=true) and IsDirectiveSuffix then
+                 (InDirective=true) and IsDirectiveSuffix then
                  InDirective:=false
                  InDirective:=false
-              else if (InComment=false) and (InString=false) and IsCommentPrefix then
+              else if (InComment=false) and
+                 (InString=false) and (InDirective=false) and IsCommentPrefix then
                 begin
                 begin
                   InComment:=true;
                   InComment:=true;
                   CurrentCommentType:=SymbolIndex;
                   CurrentCommentType:=SymbolIndex;
@@ -7273,7 +7274,10 @@ end;
 END.
 END.
 {
 {
   $Log$
   $Log$
-  Revision 1.43  2004-02-10 07:16:28  pierre
+  Revision 1.44  2004-02-13 06:53:57  pierre
+   * fix for webbug 2940
+
+  Revision 1.43  2004/02/10 07:16:28  pierre
   * fix webbug 2932
   * fix webbug 2932
 
 
   Revision 1.42  2003/01/31 12:04:50  pierre
   Revision 1.42  2003/01/31 12:04:50  pierre