Parsing numbers with non digit characters directly after consumes the first letter of the next string
Submitted by Charlie Brej
Link to original bug (#403179)
Description
Please describe the problem: Parsing numbers with non digit elements directly after consumes the first letter of the appended component. E.g. "10ns" parses as Number:"10" Identifier:"s" reather than Number:"10" Identifier:"ns". Although not inserting whitespace between the two causes a G_ERR_NON_DIGIT_IN_CONST there is no need to corrupt the string.
Steps to reproduce:
- Use gscanner to parse "10ns"
Actual results: The scanner returns Number:"10" Identifier:"s"
Expected results: The scanner should return Number:"10" Identifier:"ns"
Does this happen every time? Yes
Other information: