Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bracket highlighting of macro lines bugs when containing typed array #1756

Open
muotian opened this issue Feb 15, 2025 · 2 comments
Open

Bracket highlighting of macro lines bugs when containing typed array #1756

muotian opened this issue Feb 15, 2025 · 2 comments

Comments

@muotian
Copy link

muotian commented Feb 15, 2025

Image

I was writing an inline macro item modifier and discovered this.
As the image shows, the [ before I; of the int array is not recognized.
The command was $item modify entity @s $(slot) [{function:"minecraft:set_components",components:{"minecraft:lodestone_tracker":{tracked:false,target:{dimension:"minecraft:overworld",pos:[I;$(x),$(y),$(z)]}}}}]

@NeunEinser
Copy link
Contributor

Looks like the string handling in commands is different than macros:

Image

@NeunEinser
Copy link
Contributor

I think this might be related to syntax-mcfunction?

I can reproduce the same thing when having a comment that is multi-line using backslash continuations.

Interestingly, it does not happen inside single ticks within that comment.

So maybe the initial non-semantic parsing screws us here, as that wouldn't be aware of macros or backslash continuations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants