mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Permint '^' block syntax in declarator
This commit is contained in:
parent
112c60b48b
commit
1ab459bffa
1 changed files with 15 additions and 0 deletions
|
@ -1380,6 +1380,21 @@ recheck:
|
|||
[p appendString: @"*"];
|
||||
pos++;
|
||||
}
|
||||
if (pos < length && buffer[pos] == '^')
|
||||
{
|
||||
if (p == nil && (p = [d objectForKey: @"Prefix"]) == nil)
|
||||
{
|
||||
p = [NSMutableString new];
|
||||
[d setObject: p forKey: @"Prefix"];
|
||||
RELEASE(p);
|
||||
}
|
||||
else if ([p hasSuffix: @"("] == NO && [p hasSuffix: @"*"] == NO)
|
||||
{
|
||||
[p appendString: @" "];
|
||||
}
|
||||
[p appendString: @"^"];
|
||||
pos++;
|
||||
}
|
||||
if (buffer[pos] == '(')
|
||||
{
|
||||
if (p == nil && (p = [d objectForKey: @"Prefix"]) == nil)
|
||||
|
|
Loading…
Reference in a new issue