diff --git a/.pre-process-annotate-attributes.pl b/.pre-process-annotate-attributes.pl index d314faa..7d416ad 100644 --- a/.pre-process-annotate-attributes.pl +++ b/.pre-process-annotate-attributes.pl @@ -50,7 +50,7 @@ # ignore... } } elsif ($mode eq 'index-in') { - if ($_ =~ m!^ [^<]*;?\n$!os) { + if ($_ =~ m!^ <(?:code|span) data-x="([^"]+)">[^<]*;?\n$!os) { $attributes{$1} = 1; } elsif ($_ =~ m@^ (.+?)(?:)?\n$@os) { local $" = ', ';