From: Finn B. <bc...@us...> - 2001-04-25 18:47:22
|
Update of /cvsroot/jython/jython/org/python/parser In directory usw-pr-cvs1:/tmp/cvs-serv28124 Modified Files: python.jjt Log Message: Fix bug #410794: cannot escape trailing " in a """ string Index: python.jjt =================================================================== RCS file: /cvsroot/jython/jython/org/python/parser/python.jjt,v retrieving revision 2.12 retrieving revision 2.13 diff -C2 -r2.12 -r2.13 *** python.jjt 2000/12/12 21:19:10 2.12 --- python.jjt 2001/04/25 18:47:19 2.13 *************** *** 358,363 **** <IN_STRING11> MORE: { <("\\" ("\\"|"'")) | ~["\n","\r"]> } <IN_STRING21> MORE: { <("\\" ("\\"|"\"")) | ~["\n","\r"]> } - <IN_STRING13> MORE: { "\\'''" } - <IN_STRING23> MORE: { "\\\"\"\"" } <IN_STRING13, IN_STRING23> MORE: --- 358,361 ---- *************** *** 371,374 **** --- 369,373 ---- | <"\r"> { image.setCharAt(image.length()-1, '\n'); } | <~["\n","\r"]> + | <"\\" ~["\n","\r"]> } |