Index: /trunk/SlickEdit/kdev.e
===================================================================
--- /trunk/SlickEdit/kdev.e	(revision 3017)
+++ /trunk/SlickEdit/kdev.e	(revision 3018)
@@ -191,9 +191,22 @@
     {
         /* multiline */
-#if __VERSION__ >= 14.0
+#if __VERSION__ >= 21.0
+        COMMENT_TYPE aComments[];
+        GetComments(aComments, "M", sLexer);
+        for (i = 0; i < aComments._length(); i++)
+            if (!aComments[i].isDocumentation)
+            {
+                sLeft   = aComments[i].delim1;
+                sRight  = aComments[i].delim2;
+                iColumn = aComments[i].startcol;
+                if (sLeft != '' && sRight != '')
+                    return true;
+            }
+#else
+# if __VERSION__ >= 14.0
         _str aComments[] = null;
         GetComments(aComments, "mlcomment", sLexer);
         for (i = 0; i < aComments._length(); i++)
-            if (!pos("documentation", aComments[i]) > 0)
+            if (pos("documentation", aComments[i]) <= 0)
             {
                 sLine = aComments[i];
@@ -201,10 +214,10 @@
             }
         if (sLine != '')
-#else
+# else
         rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'mlcomment', sLine);
         if (rc)
             rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'mlcomment', sLine);
         if (!rc)
-#endif
+# endif
         {
             sLeft  = strip(word(sLine, 1));
@@ -213,10 +226,23 @@
                 return true;
         }
+#endif
 
         /* failed, try single line. */
-#if __VERSION__ >= 14.0
+#if __VERSION__ >= 21.0
+        GetComments(aComments, "L", sLexer);
+        for (i = 0; i < aComments._length(); i++)
+            if (!aComments[i].isDocumentation)
+            {
+                sLeft   = aComments[i].delim1;
+                sRight  = '';
+                iColumn = aComments[i].startcol;
+                if (sLeft != '')
+                    return true;
+            }
+#else
+# if __VERSION__ >= 14.0
         GetComments(aComments, "linecomment", sLexer)
         for (i = 0; i < aComments._length(); i++)
-            if (!pos("documentation", aComments[i]) > 0)
+            if (pos("documentation", aComments[i]) <= 0)
             {
                 sLine = aComments[i];
@@ -224,10 +250,10 @@
             }
         if (sLine != '')
-#else
+# else
         rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'linecomment', sLine);
         if (rc)
             rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'linecomment', sLine);
         if (!rc)
-#endif
+# endif
         {
             sLeft = strip(word(sLine, 1));
@@ -240,4 +266,5 @@
                 return true;
         }
+#endif
     }
 
