javalover520 / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Python single quoted strings are not recognized (Diff patch included) #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the JEditorPane.setContentType("text/python");
2. Enter some Python Code with single quoted strings, e.g.:

print 'Lorem ipsum dolor sit amet'
print '''Lorem ipsum dolor sit amet'''

What is the expected output? What do you see instead?

String will be highlighted, currently they are not.

What version of the product are you using? On what operating system?

Using 0.95-b27, JDK5 on a Mac OS X 10.6

Please provide any additional information below:

I have build a Diff file containing the necessary changes in the flex code to 
support this. The 
single quoted string will be parsed as TokenType.STRING2.

Original issue reported on code.google.com by stefan.b...@googlemail.com on 24 Sep 2009 at 9:31

GoogleCodeExporter commented 8 years ago
Here is the correct patching diff file:

Original comment by stefan.b...@googlemail.com on 24 Sep 2009 at 9:43

Attachments:

GoogleCodeExporter commented 8 years ago
Found corrected lexer in branch r095 and copied it over to branch r095-jdk5.
No further changes had been made, this fixes the bug.

Original comment by stefan.b...@googlemail.com on 27 Sep 2009 at 10:15