From the magic file format manual the format for the rule should be
offset type value message
0 string MZ >0x18 leshort <0x40 MS-DOS executable >0x18 leshort >0x3f extended PC executable (e.g., MS Windows)
Using this context, I am trying to understand magic file such as this one which has rules like
# DIY-Thermocam raw data 0 name diy-thermocam-parser >0 beshort x scale %d-
What does the first rule mean? name is not a valid type from the man page at least. And there is no test component.