Java Syntax File Cannot Identify this.

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

Java Syntax File Cannot Identify this.

Post by diek »

I have searched the help file and the forum. I cannot figure out why my modified java.syn file is not picking up the word this, e.g. this.lobstertail. It will identify this, but as soon as I add the period game over.

Any guidance or help would be appreciated.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

is the dot in the "other characters in words" (in Configure - Preferences - Document Classes - Java - Syntax)?
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

this dot

Post by diek »

I have tried both this and this. In the case of this, it will add the color but as soon as I add the character ., it reverts. When I add this., again when I type the next character this.l, it reverts.
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

Cancel Last

Post by diek »

I think I misunderstood. I will check what you said. I have a hardware test in a few hours so I have to keep prepping. I will be back.
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

The dot

Post by diek »

Class was cancelled, along with the test...darn.

I tried to add the . but it generated an error, "Character Number 2 is invalid". But that was my dumb mistake, I added a space.

I tried the . and nope, next character reverts it.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

The dot should not be amongst the Other characters in words.

What does "next character reverts it" mean?
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

next character

Post by diek »

As soon as I type any alpha char after the dot, the syntax is no longer recognized and this goes from orange back to white.

this. highlighted
this.l not highlighted.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Which characters are in
Configure | Preferences | Document Classes | Java | Syntax | Other characters in words
and in
View | Document Properties | Syntax | Other characters in words
?
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

Other Characters

Post by diek »

_. for both
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Take out the dot.
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

Done

Post by diek »

Done, dot removed.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

And...?
User avatar
diek
Posts: 20
Joined: Thu Mar 27, 2003 3:35 pm

Dot Removed = No Difference (Not Working)

Post by diek »

Sorry I should have explained that I added the dot after the suggestion above. It was not working before, and it is still not working.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Neither MudGuard nor I made any such suggestion.
ben_josephs wrote:The dot should not be amongst the Other characters in words.
and
ben_josephs wrote:Take out the dot.
If, in View | Document Properties | Syntax,
  Enable syntax highlighting  is selected, and
  Syntax definition file  is java.syn, and
  Other characters in words  does not contain a dot,
then I don't know what the problem is.
Post Reply