Command bar syntax highlighter ignores new line after short comment

When entering code into the command bar that contains a comment followed by a new line, any code immediately after that new line is highlighted as if it is part of the comment.

For example, entering this into the command bar (copy & paste):

-- foo
print("bar")

Will appear entirely highlighted as a comment:

image

The expected behavior is that only -- foo is highlighted as a comment.

This does not affect how the code runs. I first noticed this today but it may have been happening ever since the highlighting was introduced.

7 Likes

Hi there, thanks for filing this bug report. Unfortunately, fixing it isn’t currently on the roadmap. Multiline usage of command bars is not currently intended so we can’t prioritize a fix at this time.

2 Likes