Ensure lexer expects XJS child after nested close