Both are reflux triggers and reflux can cause asthma-like symptoms. I know if I eat those things and lie down in bed I will have trouble breathing due to reflux.
I have not heard of someone being able to eat allergens separately but having *anaphylaxis* when they were eaten together. Also, chocolate is something that contains many common allergens. It can have various nuts (some so uncommon that a person could go many years without eating that particular nut and then have it and have a reaction), peanuts, milk, eggs, etc. An allergy to citrus acid is quite rare.
Have you been to an allergist? Do you have epi pens?
When you say anaphylactic shock do you mean you literally had shock from a reaction (very low blood pressure, could have died shock)?