minor documentation generation tweak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40492 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2017-04-24 13:42:35 +00:00
parent 090aa2445d
commit 5a810920e4
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2017-04-24 Richard Frith-Macdonald <rfm@gnu.org>
* 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 <rfm@gnu.org>
* Version: 1.25.0 release

View file

@ -1874,7 +1874,8 @@ static BOOL snuggleStart(NSString *t)
* 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);