-
Notifications
You must be signed in to change notification settings - Fork 1
UnrealScript Syntax Bugs
This page aims to enumerate all of the buggy syntax allowed by the UnrealScript compiler (ucc) where it deviates from contemporary languages or just general sanity.
The ucc compiler allows nested block comments.
/* Foo /* Terminated nested block comment
Nested block comments are problematic for trying to formalize into context-free grammars because, to parse handle them correctly, it requires stateful behavior in the parser (e.g., keeping a running tally of un-closed block comments), something that, to my knowledge, is impossible to do with pest.rs. Even running a dumb pre-processor on each file to do this manually wouldn't work because the terminal specifiers (/* and */) can be found inside of other rules like string literals, name literals, as well as in cpptext blocks.
It's interesting to note that WOTgreal itself does not correctly syntax-highlight nested block comments.