changeset 410:22c96b70ee41

finally --flags
author catherine@DellZilla
date Thu, 15 Oct 2009 18:52:33 -0400
parents 5b88ce5f31ff
children 83185d382d10
files sqlpython/sqlpyPlus.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/sqlpyPlus.py	Thu Oct 15 17:39:54 2009 -0400
+++ b/sqlpython/sqlpyPlus.py	Thu Oct 15 18:52:33 2009 -0400
@@ -348,8 +348,7 @@
     multilineCommands = '''select insert update delete tselect
                       create drop alter _multiline_comment'''.split()
     sqlpython.sqlpython.noSpecialParse.append('spool')
-    commentGrammars = pyparsing.cStyleComment
-    multilineOnlyCommentGrammars = pyparsing.Literal('--') + pyparsing.restOfLine  
+    commentGrammars = pyparsing.Or([pyparsing.cStyleComment, pyparsing.Literal('--') + pyparsing.restOfLine])
     prefixParser = pyparsing.Optional(pyparsing.Word(pyparsing.nums)('connection_number') 
                                       + ':')
     reserved_words = [