diff options
author | simon <simon> | 2008-04-29 20:17:28 +0000 |
---|---|---|
committer | simon <simon> | 2008-04-29 20:17:28 +0000 |
commit | 79569a4d5963e27f9e3180b9249ceba32be8ac99 (patch) | |
tree | b5d4bf48dc8de63c731e79e48cc647dd63a47f42 /parse.y | |
parent | e3971fc75814f33b1ed694a11e8669664bc9bd03 (diff) | |
download | cwm-79569a4d5963e27f9e3180b9249ceba32be8ac99.tar.gz cwm-79569a4d5963e27f9e3180b9249ceba32be8ac99.tar.xz cwm-79569a4d5963e27f9e3180b9249ceba32be8ac99.zip |
Allow slashes in unquoted strings.
From Pierre Riteau Makes sense to oga@
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 5 |
1 files changed, 2 insertions, 3 deletions
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)) { |