Skip to content

Commit 980db90

Browse files
committed
Fix displaying boolean expression multiplier syntax
1 parent cf3b1b1 commit 980db90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/syntax/ui/view/syntax.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ function markupSyntax(syntax, match) {
99
const error = !entityDescriptor || !entityDescriptor.object.match;
1010

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

1419
if (match && match.type === node.type && match.name === node.name) {

0 commit comments

Comments
 (0)