UnrealScriptIDE icon indicating copy to clipboard operation
UnrealScriptIDE copied to clipboard

'Tooltip' word causes syntax error

Open benit2 opened this issue 8 years ago • 1 comments

In my code I notice that the use of a variable named "ToolTip" would cause an error in the syntax detection and color the rest of the code as a String. Let's say, in this example, the first apostrophe would not be detected and then the semicolon and "//bar" appear to bee in a string.

ToolTip = new class'Foo';
//bar'bar

benit2 avatar Sep 17 '15 02:09 benit2

That is indeed a very strange behaviour. I'm sorry, but I don't know what's causing this, nor how to fix it. It's caused by the syntax definition file, but I don't know how this one works, as it wasn't written by me. However the problem seems to be on this line which gives special highlighting for metadata.

@EliotVU do you know what's going on here?

Zinggi avatar Sep 17 '15 19:09 Zinggi