+2012-07-26 Keith Seitz <keiths@redhat.com>
+
+ * linespec.c (linespec_lexer_lex_number): The input
+ is also a valid number if the next character is a comma
+ or colon.
+
2012-07-26 Joel Brobecker <brobecker@adacore.com>
* NEWS: Document new --enable-libmcheck/--disable-libmcheck
/* Lexer functions. */
/* Lex a number from the input in PARSER. This only supports
- decimal numbers.\
+ decimal numbers.
+
Return true if input is decimal numbers. Return false if not. */
static int
++(PARSER_STREAM (parser));
}
- if (*PARSER_STREAM (parser) != '\0' && !isspace(*PARSER_STREAM (parser)))
+ /* If the next character in the input buffer is not a space, comma,
+ or colon, this input does not represent a number. */
+ if (*PARSER_STREAM (parser) != '\0'
+ && !isspace (*PARSER_STREAM (parser)) && *PARSER_STREAM (parser) != ','
+ && *PARSER_STREAM (parser) != ':')
{
PARSER_STREAM (parser) = LS_TOKEN_STOKEN (*tokenp).ptr;
return 0;