The comment string defined in PythonLexer is currently '## ', which is at less intrusive than the '##~', certainly, but still winds up producing files in the heat of editing where there's a space preceding the indentation or where an indentation level specified in spaces is 1 less than expected.

Patch is attached that just changes the string to bare '##', just posting here mostly so that other Windows/PythonWin refugees can apply it and move on with their lives :) , to actually solve the problem (by making it a preference) would require altering the .ui file that doesn't seem to be installed in my copy (may be over in the source tree, I suppose).

Have fun all,
Mike

________________________________________________
 Mike C. Fletcher
 Designer, VR Plumber, Coder
 http://www.vrplumber.com
 http://blog.vrplumber.com

*** /home/mcfletch/zipsources/eric-snapshot-20040925/eric/QScintilla/LexerPython.py	Sat Sep 18 06:47:02 2004
--- eric3/QScintilla/LexerPython.py	Mon Sep 27 15:47:36 2004
***************
*** 26,29 ****
          QextScintillaLexerPython.__init__(self, parent, name)
          Lexer.__init__(self)
          
!         self.commentString = QString("## ")
--- 26,29 ----
          QextScintillaLexerPython.__init__(self, parent, name)
          Lexer.__init__(self)
          
!         self.commentString = QString("##")
_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to