Skip to content

Commit

Permalink
Allow <span> in the element index, not just <code>
Browse files Browse the repository at this point in the history
This helps with whatwg/html#4383.
  • Loading branch information
domenic committed Feb 27, 2019
1 parent fed080e commit 4573bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-process-annotate-attributes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# ignore...
}
} elsif ($mode eq 'index-in') {
if ($_ =~ m!^ <code data-x="([^"]+)">[^<]*</code>;?\n$!os) {
if ($_ =~ m!^ <(?:code|span) data-x="([^"]+)">[^<]*</(?:code|span)>;?\n$!os) {
$attributes{$1} = 1;
} elsif ($_ =~ m@^ <td> (.+?)(?:<!--or: (.+)-->)?\n$@os) {
local $" = ', ';
Expand Down

0 comments on commit 4573bf7

Please sign in to comment.