Skip to content

Commit

Permalink
Count only tag titles towards relevance of XML.
Browse files Browse the repository at this point in the history
  • Loading branch information
isagalaev committed Apr 3, 2013
1 parent 65e1d31 commit ee56e0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/languages/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function(hljs) {
var XML_IDENT_RE = '[A-Za-z0-9\\._:-]+';
var TAG_INTERNALS = {
endsWithParent: true,
relevance: 0,
contains: [
{
className: 'attribute',
Expand Down Expand Up @@ -93,9 +94,10 @@ function(hljs) {
{
className: 'tag',
begin: '</?', end: '/?>',
relevance: 0,
contains: [
{
className: 'title', begin: '[^ />]+'
className: 'title', begin: '[^ /><]+'
},
TAG_INTERNALS
]
Expand Down

0 comments on commit ee56e0b

Please sign in to comment.