Further patch to :: space handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4991 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
56327f88ac
commit
95ebf5724d
1 changed files with 3 additions and 0 deletions
|
|
@ -764,6 +764,8 @@ int yylook(void) {
|
||||||
return DSTAR;
|
return DSTAR;
|
||||||
} else if (c == '~') {
|
} else if (c == '~') {
|
||||||
return DCNOT;
|
return DCNOT;
|
||||||
|
} else if (isspace(c)) {
|
||||||
|
/* Keep scanning ahead. Might be :: * or :: ~ */
|
||||||
} else {
|
} else {
|
||||||
retract(1);
|
retract(1);
|
||||||
if (!last_id) {
|
if (!last_id) {
|
||||||
|
|
@ -773,6 +775,7 @@ int yylook(void) {
|
||||||
return DCOLON;
|
return DCOLON;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 60: /* shift operators */
|
case 60: /* shift operators */
|
||||||
if ((c = nextchar()) == 0) return (0);
|
if ((c = nextchar()) == 0) return (0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue