From 79569a4d5963e27f9e3180b9249ceba32be8ac99 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 29 Apr 2008 20:17:28 +0000 Subject: Allow slashes in unquoted strings. From Pierre Riteau Makes sense to oga@ --- parse.y | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 536d3b8..e6519ff 100644 --- a/parse.y +++ b/parse.y @@ -402,10 +402,9 @@ nodigits: #define allowed_in_string(x) \ (isalnum(x) || (ispunct(x) && x != '(' && x != ')' && \ x != '{' && x != '}' && x != '<' && x != '>' && \ - x != '!' && x != '=' && x != '/' && x != '#' && \ - x != ',')) + x != '!' && x != '=' && x != '#' && x != ',')) - if (isalnum(c) || c == ':' || c == '_' || c == '*') { + if (isalnum(c) || c == ':' || c == '_' || c == '*' || c == '/') { do { *p++ = c; if ((unsigned)(p-buf) >= sizeof(buf)) { -- cgit 1.4.1