weimingtom / jsyntaxpane

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

Incorrect syntax highlighting for variables that are also types #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. be in text/java mode
2. type Object Object = null;
3. both Object strings are recognized as types even though only the first 
is the type

What is the expected output? What do you see instead?
First 'Object' should be highlighted as a type, second 'Object' should be 
an identifier.

What version of the product are you using? On what operating system?
verified on jsyntaxpane-0.9.4 and jsyntaxpane-0.9.5-b29, WinXP 64

Please provide any additional information below.

Original issue reported on code.google.com by javlo...@gmail.com on 4 Dec 2009 at 10:24

GoogleCodeExporter commented 9 years ago
jsyntaxpane is only a lexer.  It recognizes tokens only, without any knowledge 
of
their context.  It does not know anything regarding the language grammar.  

There is no way, with the current design to work around this.

This will has to wait a while.  Could be a long one :-(

Original comment by ayman.al...@gmail.com on 6 Dec 2009 at 5:09