If it is not the inflammation of eyes by virus and bacterial when you eat sugar, it may caused by sweet food. Take care of the nutrient balance with Calcium, protein taking, control the sweet food quantity. These nutrient elements will protect your eyes and less sweet food will help the vitamin B1 remain. From some recently studies, sweet food will develop the myopia, because the metabolism process will need a lot of vitamin B1 which is the necessary nutrient of eyes. The garlic and stimulated food such as pepper, onion, ginger etc. are also bad to your eyes when you have sore eyes. And the other hand, the green vegetables and fruit such fresh plants product will be good for your eyes. More water and more relax will also help with your eyes to get better. These foods will benefits your eyes in a long run, but if you still feel serious, please go to doctor first!
Well, first, eating sugar may lead to burning eyes in some degree. And generally speaking, that can be the reason which causes it. At this moment, you need to try some ways to treat it. For example, you can have some cold compresses, and put some cool ice or cool cucumbers on your eyes. In that way, it can relieve your symptom and make you feel well. Also, you should eat a diet rich in fresh fruits and vegetables which provide lots of antioxidants, especially vitamins A and C. in my opinion, it will just be beneficial for your situation. So just have a try. Also, you need to pay more attention to eye infection, for eye infection can just make your symptom more serious.