Fixed parsing of character constants.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@560 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-07-10 22:52:19 +00:00
commit 3c8a864d06

View file

@ -1042,12 +1042,18 @@ int yylook(void) {
case 9:
if ((c = nextchar()) == 0) return (0);
if (c == '\'') {
if (c == '\\') state = 91;
else if (c == '\'') {
yytext[yylen-1] = 0;
yylval.id = copy_string(yytext+1);
return(CHARCONST);
}
break;
case 91:
if ((c = nextchar()) == 0) return 0;
state = 9;
break;
case 100:
if ((c = nextchar()) == 0) return (0);