[Jython-checkins] jython: Allow br'foo' string expressions.
frank.wierzbicki
jython-checkins at python.org
Fri May 20 08:09:30 CEST 2011
http://hg.python.org/jython/rev/b75d6d8f75ed
changeset: 6232:b75d6d8f75ed
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Thu May 19 23:09:22 2011 -0700
summary:
Allow br'foo' string expressions.
files:
grammar/Python.g | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/grammar/Python.g b/grammar/Python.g
--- a/grammar/Python.g
+++ b/grammar/Python.g
@@ -2295,7 +2295,7 @@
* should make us exit loop not continue.
*/
STRING
- : ('r'|'u'|'b'|'ur'|'R'|'U'|'B'|'UR'|'uR'|'Ur')?
+ : ('r'|'u'|'b'|'ur'|'br'|'R'|'U'|'B'|'UR'|'BR'|'uR'|'Ur'|'Br'|'bR')?
( '\'\'\'' (options {greedy=false;}:TRIAPOS)* '\'\'\''
| '"""' (options {greedy=false;}:TRIQUOTE)* '"""'
| '"' (ESC|~('\\'|'\n'|'"'))* '"'
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list