MOV A, #0FFH will work.. For some reason MCU8051IDE use a "kind" of assembler based on ASEM-51.
The first character in a hexadecimal MUST be numeric.. I never have an issue as I always use 0xFF and not 0FFh anyway. ( That is if your copy is > version 1.4.1