MPLABX syntax cheker errors in ASM mixed with C
MPLAB X has always had problems with the parser. If the code complies just ignore them. You didn't mention what version you are using but I've found that since version 3 the parser got much better.