tweaks: shrink the set of characters recognized as line-column separator

This slightly reduces the chance that a filename is accidentally parsed
as containing both a line and a column number at its end.
This commit is contained in:
Benno Schulenberg 2023-03-10 15:07:24 +01:00
parent bf984ecb9b
commit ffff664918

View File

@ -137,7 +137,7 @@ bool parse_line_column(const char *str, ssize_t *line, ssize_t *column)
while (*str == ' ')
str++;
comma = strpbrk(str, "m,. /;:");
comma = strpbrk(str, ",.:");
if (comma == NULL)
return parse_num(str, line);