Consider the negation operator (!) to be a word even if it is not followed
by whitespace. This allows "optional !foo" which is what most programmers are naturally going to tend to do as opposed to "optional ! foo".
This commit is contained in:
parent
d932810143
commit
c72731180a
@ -314,6 +314,11 @@ begin:
|
|||||||
}
|
}
|
||||||
cp = line;
|
cp = line;
|
||||||
*cp++ = ch;
|
*cp++ = ch;
|
||||||
|
/* Negation operator is a word by itself. */
|
||||||
|
if (ch == '!') {
|
||||||
|
*cp = 0;
|
||||||
|
return (line);
|
||||||
|
}
|
||||||
while ((ch = getc(fp)) != EOF) {
|
while ((ch = getc(fp)) != EOF) {
|
||||||
if (isspace(ch))
|
if (isspace(ch))
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user