language-mcfunction icon indicating copy to clipboard operation
language-mcfunction copied to clipboard

Target selector arguments featuring an array display as all red

Open Sprunkles137 opened this issue 2 years ago • 0 comments

The bug

When writing a target selector with an argument that has an array for a value, it displays as all red. This makes it hard to distinguish key-value pairs within the selector. One possible case this shows up in is with Bedrock edition's new "hasitem" selector argument, which can take an array as a value.

Steps to reproduce:

Write the following in a file with the highlighter enabled:

say @a[hasitem=[{item=stone}]]

image

Sprunkles137 avatar Apr 22 '22 19:04 Sprunkles137