Diet soda/coke will not break your fast. It contains no calories or carbs, which means it likely won’t knock you out of fasting.
But some diet drinks may contain few calories and will break a fast. You need to check the label to see if it’s calorie-free before drinking.