diff --git a/docs/syntax.html b/docs/syntax.html index 76259771..607bb38e 100755 --- a/docs/syntax.html +++ b/docs/syntax.html @@ -145,7 +145,7 @@

Name

if (!error && !isEmpty) { if (currentProperty) { - if (!defaultSyntax.match(currentProperty, ast)) { + if (!defaultSyntax.matchProperty(currentProperty, ast)) { error = defaultSyntax.lastMatchError.message; } } else if (currentType) { diff --git a/docs/validator.html b/docs/validator.html index 9712e1e1..4cf2b54e 100644 --- a/docs/validator.html +++ b/docs/validator.html @@ -290,8 +290,8 @@

var count = uniqueDecls[warn.decl.id]; warnBlock.innerHTML = escapeHtml(warn.message) .replace(/^[^\r\n]+/, '$&' + (count > 1 ? ' \u00d7 ' + count : '')) - .replace(/ value(:[^\r\n]*)/, createSourceLink(warn.decl.property, warn.decl.node.info.offset) + '$1') - .replace(/(Unknown property: )\S+/, '$1' + createSourceLink(warn.decl.property, warn.decl.node.info.offset)) + .replace(/ value(:[^\r\n]*)/, createSourceLink(warn.decl.property, warn.decl.node.loc.start.offset) + '$1') + .replace(/(Unknown property: )\S+/, '$1' + createSourceLink(warn.decl.property, warn.decl.node.loc.start.offset)) .replace('------^', repeat('-', warn.decl.property.length) + '^'); warnBlock.className = 'warn'; resultBlock.appendChild(warnBlock);