Skip to content

Commit

Permalink
Merge pull request #225 from Automattic/fix/xml-brush
Browse files Browse the repository at this point in the history
Fix XML brush: use the last occurrence of the tag
  • Loading branch information
merkushin authored Nov 24, 2021
2 parents ae01588 + 7de217f commit 5069797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntaxhighlighter3/scripts/shBrushXml.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

if (tag != null)
result.push(
new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
new constructor(tag.name, match.index + tag[0].lastIndexOf(tag.name), 'keyword')
);

return result;
Expand Down

0 comments on commit 5069797

Please sign in to comment.