From a5c3372c43e6e6f22bf7b763e0ef11f72193e635 Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Fri, 20 Jan 2017 12:42:00 +0300 Subject: [PATCH] update to latest changes in API --- docs/syntax.html | 2 +- docs/validator.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);