mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Allow slashes in unquoted strings.
From Pierre Riteau Makes sense to oga@
This commit is contained in:
parent
e3971fc758
commit
79569a4d59
5
parse.y
5
parse.y
@ -402,10 +402,9 @@ nodigits:
|
|||||||
#define allowed_in_string(x) \
|
#define allowed_in_string(x) \
|
||||||
(isalnum(x) || (ispunct(x) && x != '(' && x != ')' && \
|
(isalnum(x) || (ispunct(x) && x != '(' && x != ')' && \
|
||||||
x != '{' && 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 {
|
do {
|
||||||
*p++ = c;
|
*p++ = c;
|
||||||
if ((unsigned)(p-buf) >= sizeof(buf)) {
|
if ((unsigned)(p-buf) >= sizeof(buf)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user