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++ = ch;
|
||||
/* Negation operator is a word by itself. */
|
||||
if (ch == '!') {
|
||||
*cp = 0;
|
||||
return (line);
|
||||
}
|
||||
while ((ch = getc(fp)) != EOF) {
|
||||
if (isspace(ch))
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user