Zinggi / UnrealScriptIDE

Auto-completion, Syntax Highlighting, Go to Declaration, Build and Run and more..
Other
90 stars 19 forks source link

'Tooltip' word causes syntax error #25

Open benit2 opened 8 years ago

benit2 commented 8 years ago

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
Zinggi commented 8 years ago

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?