Skip to content

Commit

Permalink
update to latest changes in API
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Jan 20, 2017
1 parent a99f399 commit a5c3372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h1>Name</h1>

if (!error && !isEmpty) {
if (currentProperty) {
if (!defaultSyntax.match(currentProperty, ast)) {
if (!defaultSyntax.matchProperty(currentProperty, ast)) {
error = defaultSyntax.lastMatchError.message;
}
} else if (currentType) {
Expand Down
4 changes: 2 additions & 2 deletions docs/validator.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ <h2 id="result-header"></h2>
var count = uniqueDecls[warn.decl.id];
warnBlock.innerHTML = escapeHtml(warn.message)
.replace(/^[^\r\n]+/, '<span class="warn-type">$&</span>' + (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);
Expand Down

0 comments on commit a5c3372

Please sign in to comment.