Author Topic: Bug: Python block strings (""") don't terminate (color coding)  (Read 2504 times)

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Hello,

   It appears as though color coding for Python strings created with the three double-quotes in a row (a special type of block string used for creating documentation information about a class or file) don't terminate correctly.  See screenshot (.png attachment).

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2337
  • Hero Points: 308
Re: Bug: Python block strings (""") don't terminate (color coding)
« Reply #1 on: July 08, 2009, 07:10:39 pm »
Could you attach the actual Python source file?

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: Bug: Python block strings (""") don't terminate (color coding)
« Reply #2 on: July 08, 2009, 08:04:34 pm »
Sure thing.  BTW it is in the standard Python distribution (in my case 2.6) at the following location:

C:\Python26\Lib\logging\__init__.py

Also I am using WinXP and SE 14.0.1.2.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2337
  • Hero Points: 308
Re: Bug: Python block strings (""") don't terminate (color coding)
« Reply #3 on: July 08, 2009, 08:34:18 pm »
In your configuration directory, there is a file named "user.vlx".  Open this file and check if you have a modified version of the Python lexer.  I tested this with a default configuration and there is no problem color coding this file.  Therefore the only way you could be having problems is if you have a modified version of the lexer that turned off the Python string coloring options, or if you switched modes on this file (check Document > Select Mode (Python)..., if it doesn't say Python, you have a problem.

If this does not resolve the issue, try viewing this file with a default configuration: 

   vs +new -sc c:\Temp\testPythonConfig

PouncingPanda

  • Community Member
  • Posts: 74
  • Hero Points: 2
Re: Bug: Python block strings (""") don't terminate (color coding)
« Reply #4 on: July 09, 2009, 12:31:38 am »
Looks like it may be an issue on my end.  I'll report back if it turns out to not be the case.  Thanks.

sigmund

  • Community Member
  • Posts: 31
  • Hero Points: 2
Re: Bug: Python block strings (""") don't terminate (color coding)
« Reply #5 on: December 05, 2014, 10:31:29 pm »
I get the same broken color coding behavior in SlickEdit 2014 (v19.0.0.14 32-bit), but with single quote multi-line strings.  It also happens when viewing the file with a default configuration (any python file with multi-line triple single quoted strings will do).

Cheers,
Siggy

PS. Is there a better way to report bugs than posting in this forum?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4140
  • Hero Points: 289
Re: Bug: Python block strings (""") don't terminate (color coding)
« Reply #6 on: December 05, 2014, 10:50:12 pm »
There is definitel a bug with color coding ''' strings in python in v19.0.0. This will be fixed in v19.0.1 which should be out soon.