I have used the .groovy format despite never programmed in it. For the nested IFs, ISNUMBER, ISBLAND, OR and AND, the highlighting worked.
.groovy
IF
ISNUMBER
ISBLAND
OR
AND