Skip to content

Commit 5069797

Browse files
authored
Merge pull request #225 from Automattic/fix/xml-brush
Fix XML brush: use the last occurrence of the tag
2 parents ae01588 + 7de217f commit 5069797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntaxhighlighter3/scripts/shBrushXml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

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

5454
return result;

0 commit comments

Comments
 (0)