I am making an in-game script editor, and its almost complete. Aside from needing to script in key-binds and such, I need to fix some problems with the Syntax Highlighter.
Here is how the editor looks so far:
(UI has had no work done to it, ignore it.)
As you can clearly see, there are some bugs to work out, such as some parenthesis refusing to highlight. The bigger problem resides in my pattern for findings strings though:
(([^\\]*["\']).*%2)
This pattern causes this:
I took a break from working on this a few weeks ago, and I don't really remember as well on how patterns work. I have tried modifying my existing pattern to prevent text between strings from being included with match, but it either selects EVERYTHING, or doesn't find any strings.
I need to make sure it doesn't find \' or \" to be an indicator for a string either.
