Skip to content

Commit

Permalink
Fix displaying boolean expression multiplier syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Nov 3, 2024
1 parent cf3b1b1 commit 980db90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/syntax/ui/view/syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ function markupSyntax(syntax, match) {
const error = !entityDescriptor || !entityDescriptor.object.match;

str = `<a href="#${node.type}:${node.name}"${error ? ' class="error"' : ''}>${utils.escapeHtml(str)}</a>`;
} else if (node.type === 'Boolean') {
str = str
.replace('<', '&lt;')
.replace('[', '[ ')
.replace(/\]>$/, ' ]>');
}

if (match && match.type === node.type && match.name === node.name) {
Expand Down

0 comments on commit 980db90

Please sign in to comment.