Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128665 - SciTE doesn't highlight 'true' and 'false' keywords in Java files
Summary: SciTE doesn't highlight 'true' and 'false' keywords in Java files
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-03 10:32 UTC by Kevin R André
Modified: 2006-09-03 10:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin R André 2006-04-03 10:32:11 UTC
SciTE doesn't highlight 'true' and 'false' keywords in Java files.

To reproduce:

1) $ touch test.java
2) $ scite test.java
3) type "true false int test" (without the quotes)

You will see that SciTE highlights the keyword 'int', but doesn't highlight 'true' and 'false'. Looks like those keywords were forgotten in the lexer for Java.

I tested this with version 1.62 and 1.68. Same outcome for both.
Comment 1 Jorge Vargas 2006-06-12 21:31:27 UTC
(In reply to comment #0)
> SciTE doesn't highlight 'true' and 'false' keywords in Java files.
> 
> To reproduce:
> 
> 1) $ touch test.java
> 2) $ scite test.java
> 3) type "true false int test" (without the quotes)
> 
> You will see that SciTE highlights the keyword 'int', but doesn't highlight
> 'true' and 'false'. Looks like those keywords were forgotten in the lexer for
> Java.
> 
> I tested this with version 1.62 and 1.68. Same outcome for both.
> 

if this was a bug it will be of scite not gentoo.
on the other hand neither true or false are java keywords, please learn the language :)

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

they are both reserved constants

so you will have to ask them to include it on the default file.
Comment 2 Kevin R André 2006-06-13 03:37:05 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > SciTE doesn't highlight 'true' and 'false' keywords in Java files.
> > 
> > To reproduce:
> > 
> > 1) $ touch test.java
> > 2) $ scite test.java
> > 3) type "true false int test" (without the quotes)
> > 
> > You will see that SciTE highlights the keyword 'int', but doesn't highlight
> > 'true' and 'false'. Looks like those keywords were forgotten in the lexer for
> > Java.
> > 
> > I tested this with version 1.62 and 1.68. Same outcome for both.
> > 
> 
> if this was a bug it will be of scite not gentoo.

I wasn't sure where to report this.

> on the other hand neither true or false are java keywords, please learn the
> language :)
> 
> http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

That explains why they are missing. However, in the Eclipse IDE they are both highlighted along with the keywords of the language. I originally came from C++ where they are keywords and I learned Java by myself, so nobody told me those were not keywords.

> they are both reserved constants
> 
> so you will have to ask them to include it on the default file.

I already discovered that the keywords to be highlighted are in a config file so I added them myself.
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-09-03 10:19:27 UTC
true/false are not keywords - but you can try to talk with upstream about that.