Syntax highlighting breaks after using function with string containing colon
When utilizing any function and inputting a string containing a colon (":"), the syntax highlighting for the remainder of the code breaks. The syntax highlighting should remain intact for the entirety of the code after utilizing the function, irrespective of the presence of a colon in the string.
Steps to Reproduce:
- Use the function with a string containing a colon, like so:
EventHandler.SendNetworkEvent("giveitem:BFG9000"); - Observe the syntax highlighting behavior in the subsequent code.
Thanks for the issue notice. I'll fix it once I can. I've probably missed something in the strings handling.
This will be a funny response: I can't re-create the issue. I tried copy-pasting your piece of code in a few places to see if there was some kind of edge-case issue, but I can't get the syntax highlighting to break.
Thanks for checking, but it happens to me every time, here is what it looks like:
From the picture you've sent me it seems that the highlighting was broken way before the first double quote. So, I'll ask you:
- May you send me the same screenshot, but with the default vscode theme?
- Are you using any string escaping in the code (there's an issue open about this at time of writing)
- Is it possible to receive a bigger snippet of code?