tliron / jygments

Syntax highlighter (Pygments ported to Java)
BSD 2-Clause "Simplified" License
9 stars 6 forks source link

Java Lexer does not tokenize correctly #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 
I think there is a bug in the java lexer ( 
modules/com.threecrickets.jygments/src/com/ 
threecrickets/jygments/contrib/JavaLexer.json )

To reproduce:
1. Ssee the attached sample java file
2. "public static IEditorPart" is recognized as a single token

I've used the .jar libraries of the jygments 0.9 zip (in download folder)

Thanks

Original issue reported on code.google.com by mallama...@gmail.com on 20 Apr 2013 at 2:55

Attachments:

GoogleCodeExporter commented 9 years ago
I should also note that this happens when parsing the "+=" token (i.e. i += 1) 
becomes 4 tokens i,+,=,1 but it should have been i,+=,1

Original comment by mallama...@gmail.com on 20 Apr 2013 at 3:29