resinator icon indicating copy to clipboard operation
resinator copied to clipboard

Divergence from Win32 RC: Forward slash on its own line

Open squeek502 opened this issue 1 year ago • 0 comments

For some reason, this is valid, as all the / characters are ignored:

/
1 RCDATA {}
/
/
/
2 RCDATA {
  /
  /
}

In fact, all of the / are removed during preprocessing:

rc /p test.rc
#line 1 "C:\\Users\\Ryan\\Programming\\Zig\\resinator\\tmp\\RCa15696"
#line 1 "test.rc"
#line 1 "test.rc"

1 RCDATA {}



2 RCDATA {


}

This is not the behavior for the Aro, clang, or even cl.exe preprocessors, so this is a rc.exe-specific quirk.


Currently, resinator does not emulate this behavior and instead treats it as any other character.

squeek502 avatar Sep 22 '24 02:09 squeek502