changeset 130:40bbe808e98a

seems to have fixed editing of hanging files
author catherine@Elli.myhome.westell.com
date Tue, 26 Aug 2008 14:52:48 -0400
parents d8661065fb77
children 2b7ce838120d
files sqlpyPlus.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpyPlus.py	Fri Aug 15 09:45:48 2008 -0400
+++ b/sqlpyPlus.py	Tue Aug 26 14:52:48 2008 -0400
@@ -508,7 +508,9 @@
 
     rowlimitPattern = pyparsing.Word(pyparsing.nums)('rowlimit')
     terminatorPattern = (pyparsing.oneOf('; \\s \\S \\c \\C \\t \\x \\h')    
-                        ^ pyparsing.Literal('\n/\n')) ('terminator') + \
+                        ^ pyparsing.Literal('\n/') ^ \
+                        (pyparsing.Literal('\nEOF') + pyparsing.stringEnd)) \
+                        ('terminator') + \
                         pyparsing.Optional(rowlimitPattern)
     def do_select(self, arg, bindVarsIn=None, override_terminator=None):
         """Fetch rows from a table.