-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small fixes to schema docs #2214
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,7 @@ sub filterNames { | |
&& ((($name =~ /^!(.*)$/) && !(defined $$hash{$1})) # Negated name, but name not present? | ||
|| (!defined $$hash{ '!' . $name }))) { # Or negation of name not present | ||
$filtered{$name} = 1; } } | ||
return sort keys %filtered; } | ||
return (sort keys %filtered); } | ||
|
||
# Return two hashrefs for content & attributes | ||
sub extractContent { | ||
|
@@ -476,7 +476,10 @@ sub simplify { | |
elsif (($combination eq 'group') && ($prevc ne 'group')) { # Use old combination!?!?!?!? | ||
$combination = $prevc; } } | ||
$$self{defs}{$qname} = simplifyCombination(['combination', $combination, | ||
($prev ? @$prev : ()), @xargs]); | ||
# careful, if $prev is a triple [$op,$name,@stuff] and we flatten it, | ||
# we should not treat $op and $name as @stuff. | ||
# We should either drop them, or not flatten at all. Drop for now. | ||
($prev ? @$prev[2 .. $#{$prev}] : ()), @xargs]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the idea is that |
||
$$self{def_combiner}{$qname} = $combination; | ||
return ([$op, $qname, @args]); } } | ||
else { | ||
|
@@ -708,7 +711,6 @@ sub getSymbolUses { | |
my @uses = sort keys %$uses; | ||
@uses = grep { !/\bSVG./ } @uses if $SKIP_SVG; # !!! | ||
return join(', ', | ||
(map { /^pattern:[^:]*:(.*)$/ ? ('\patternref{' . cleanTeX($1) . '}') : () } @uses), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whoops! |
||
(map { /^pattern:[^:]*:(.*)$/ ? ('\patternref{' . cleanTeX($1) . '}') : () } @uses), | ||
(map { /^element:(.*)$/ ? ('\elementref{' . cleanTeXName($1) . '}') : () } @uses)); } | ||
else { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new parens around
sort
were motivated by Perl Critic complaining loudly thatsort
should not follow a return (severity 5, docs)