KaptainMicila / ZScript-VSCode

GZDoom's ZScript language support for VSCode
MIT License
19 stars 7 forks source link

Syntax highlighting breaks after using function with string containing colon #16

Open MeliusCZ opened 2 months ago

MeliusCZ commented 2 months ago

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:

  1. Use the function with a string containing a colon, like so: EventHandler.SendNetworkEvent("giveitem:BFG9000");
  2. Observe the syntax highlighting behavior in the subsequent code.
KaptainMicila commented 2 months ago

Thanks for the issue notice. I'll fix it once I can. I've probably missed something in the strings handling.

KaptainMicila commented 3 weeks ago

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.

MeliusCZ commented 2 weeks ago

Thanks for checking, but it happens to me every time, here is what it looks like: Issue

KaptainMicila commented 2 weeks ago

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: