Cleaned up syntax-type and char-traits code.
Handle the different types of exponent characters.