Skip to content

Commit

Permalink
Allow parentheses in the attribute index, for <source>'s attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan authored and sideshowbarker committed Mar 2, 2021
1 parent ec75dde commit c3f8abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-process-annotate-attributes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
# ignore...
}
} elsif ($mode eq 'tr') {
if ($_ =~ m!^ <td> <(?:code|span) data-x="([^"]+)">[^<]*</(?:code|span)>;?\n$!os) {
if ($_ =~ m!^ <td> <(?:code|span) data-x="([^"]+)">[^<]*</(?:code|span)>(?: \(in [^\)]+\))?;?\n$!os) {
$attributes{$1} = 1;
$mode = 'index-in';
} else {
# ignore...
}
} elsif ($mode eq 'index-in') {
if ($_ =~ m!^ <(?:code|span) data-x="([^"]+)">[^<]*</(?:code|span)>;?\n$!os) {
if ($_ =~ m!^ <(?:code|span) data-x="([^"]+)">[^<]*</(?:code|span)>(?: \(in [^\)]+\))?;?\n$!os) {
$attributes{$1} = 1;
} elsif ($_ =~ m@^ <td> (.+?)(?:<!--or: (.+)-->)?\n$@os) {
local $" = ', ';
Expand Down

0 comments on commit c3f8abc

Please sign in to comment.