Closed EtiTheSpirit closed 4 months ago
Windows
Bit of a strange one here.
If more than one static branch is used in a file, they must be broken apart by at least one line, lest #endif be unrecognized as a directive.
#endif
Create a new file (can be blank), and open the pattern editor. Enter the following code to the pattern:
#ifdef GARBAGE #endif #ifndef GARBAGE #endif
Attempt to compile this code. Line 4 will raise the following error:
E: error: Unknown directive 'endif' E: --> in <Source Code>:4:7 E: 4 | #endif E: ^
Add a line break separating lines [1,2] and [3,4] as such:
Attempt to compile this code. This will succeed.
1.33.2
MSI, Non-portable
No response
This bug was fixed already on master (1.33.0) and the code without any spaces should compile and run without errors on a recent nightly master build. I just tried it on a May 14 nightly without any problems.
Operating System
Windows
What's the issue you encountered?
Bit of a strange one here.
If more than one static branch is used in a file, they must be broken apart by at least one line, lest
#endif
be unrecognized as a directive.How can the issue be reproduced?
Create a new file (can be blank), and open the pattern editor. Enter the following code to the pattern:
Attempt to compile this code. Line 4 will raise the following error:
Add a line break separating lines [1,2] and [3,4] as such:
Attempt to compile this code. This will succeed.
ImHex Version
1.33.2
ImHex Build Type
Installation type
MSI, Non-portable
Additional context?
No response