Re: [PATCH Bug breakpoints/14381] Fix linespec to parse file name that begin with decimal numbers

Tom Tromey
2012-07-23T14:28:35Z

>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:

>> The string begin with a number is not a error, why handle it as a
>> error? I think that will really make this part obfuscates.
>> What I thought is change the function name to
>> linespec_lexer_lex_number_string to make it clear.

How about changing linespec_lexer_lex_number to return a boolean
indicating whether it succeeded? This is basically the same idea, but
without introducing a new token.

Tom