Author: rfm
Date: Mon Apr 24 15:42:35 2017
New Revision: 40492

URL: http://svn.gna.org/viewcvs/gnustep?rev=40492&view=rev
Log:
minor documentation generation tweak

Modified:
    libs/base/trunk/ChangeLog
    libs/base/trunk/Tools/AGSOutput.m

Modified: libs/base/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=40492&r1=40491&r2=40492&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog   (original)
+++ libs/base/trunk/ChangeLog   Mon Apr 24 15:42:35 2017
@@ -1,3 +1,10 @@
+2017-04-24  Richard Frith-Macdonald <[email protected]>
+
+       * Tools/AGSOutput.m: When generating class/method links, treat '['
+       as the start of a class/method only if it's the start of a comment
+       or is preceded by white space ... allows array syntax like foo[x] to
+       be used in a comment without attempting to link to a class named 'x'.
+
 2017-04-14  Richard Frith-Macdonald <[email protected]>
 
        * Version: 1.25.0 release

Modified: libs/base/trunk/Tools/AGSOutput.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tools/AGSOutput.m?rev=40492&r1=40491&r2=40492&view=diff
==============================================================================
--- libs/base/trunk/Tools/AGSOutput.m   (original)
+++ libs/base/trunk/Tools/AGSOutput.m   Mon Apr 24 15:42:35 2017
@@ -1874,7 +1874,8 @@
        * If that's all there is, we make a class reference.
        */
       r = [tmp rangeOfString: @"["];
-      if (r.length > 0)
+      if (r.length > 0
+        && (0 == r.location || isspace([tmp characterAtIndex: r.location - 
1])))
        {
          unsigned      sPos = NSMaxRange(r);
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to