Allow digits in variable names

pull/5/head
Michael Spang 14 years ago
parent 5ce11709ff
commit 1c8e247732
  1. 2
      src/parser.c

@ -53,7 +53,7 @@ static void parse_name(struct config_file *file, char *name, size_t maxlen) {
break;
}
if (!isalpha(c) && c != '_' && c != '-') {
if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-') {
unparse_char(file, c);
break;
}

Loading…
Cancel
Save