[Checkins] SVN: Sandbox/malthe/chameleon.core/ Fixed issue where an infinite loop would occur while parsing an expression with a right curly brace.

Malthe Borch mborch at gmail.com
Mon Oct 13 14:18:31 EDT 2008


Log message for revision 92139:
  Fixed issue where an infinite loop would occur while parsing an expression with a right curly brace.

Changed:
  U   Sandbox/malthe/chameleon.core/CHANGES.txt
  U   Sandbox/malthe/chameleon.core/src/chameleon/core/parsing.py

-=-
Modified: Sandbox/malthe/chameleon.core/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.core/CHANGES.txt	2008-10-13 18:18:09 UTC (rev 92138)
+++ Sandbox/malthe/chameleon.core/CHANGES.txt	2008-10-13 18:18:31 UTC (rev 92139)
@@ -4,6 +4,9 @@
 head
 ~~~~
 
+- Fixed issue with parsing expression containing curly
+  braces. [malthe]
+
 - Added support for unscoped variable assignment. [malthe]
 
 1.0b2 (released 11/10/2008)

Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/parsing.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/parsing.py	2008-10-13 18:18:09 UTC (rev 92138)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/parsing.py	2008-10-13 18:18:31 UTC (rev 92139)
@@ -109,7 +109,7 @@
                 exp = translator(match)
                 break
             except SyntaxError:
-                right = string.find('}', right)
+                right = string.find('}', right+1)
         else:
             raise
 



More information about the Checkins mailing list