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:
parent
bf984ecb9b
commit
ffff664918
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user