mirror of
https://github.com/lua/lua
synced 2024-12-28 05:09:42 +03:00
escapes \' e \" em strings; correcao do escape \\
This commit is contained in:
parent
0c6b906c8c
commit
3693f3f062
9
lex.c
9
lex.c
@ -1,5 +1,8 @@
|
||||
char *rcs_lex = "$Id: lex.c,v 2.2 1994/08/05 19:27:41 celes Exp celes $";
|
||||
char *rcs_lex = "$Id: lex.c,v 2.3 1994/08/17 17:41:50 celes Exp celes $";
|
||||
/*$Log: lex.c,v $
|
||||
* Revision 2.3 1994/08/17 17:41:50 celes
|
||||
* Implementacao da macro 'lua_strcmp'
|
||||
*
|
||||
* Revision 2.2 1994/08/05 19:27:41 celes
|
||||
* implementacao de dois buffer de 'yytext' para evitar bug
|
||||
* no look ahead do yacc
|
||||
@ -172,7 +175,9 @@ int yylex ()
|
||||
case 'n': save('\n'); next(); break;
|
||||
case 't': save('\t'); next(); break;
|
||||
case 'r': save('\r'); next(); break;
|
||||
default : save('\\'); break;
|
||||
case '\'': save('\''); next(); break;
|
||||
case '"': save('"'); next(); break;
|
||||
default : save(current); next(); break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user