Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java syntax doesn't work #110

Open
NikitaZ opened this issue Feb 16, 2024 · 2 comments
Open

Java syntax doesn't work #110

NikitaZ opened this issue Feb 16, 2024 · 2 comments

Comments

@NikitaZ
Copy link
Contributor

NikitaZ commented Feb 16, 2024

In the code below field highlighting breaks completely if "class" is reverted back to "enum".

Plus, the last
return level;
level doesn't resolve to a field, it is white and 'goto local' leads to level() method declatation, unless it is changed to
return this.level;

package org.larn;

public class MonsterType {
//NONE(' ', "", 0, 0, 0, SpecialAttack.NONE, 0, 3, 0, 0, 0),
//BAT('B', "bat", 1, 0, 1, SpecialAttack.NONE, 0, 3, 0, 1, 1)
private final char monsterChar;
private final String name;
private final int level;

MonsterType(char monsterChar, String name, int level) {
    this.monsterChar = monsterChar;
    this.name = name;
    this.level = level;
}


public int level() {
    return level;
}

}

@NikitaZ
Copy link
Contributor Author

NikitaZ commented Feb 16, 2024

Screenshot 2024-02-16 at 17 32 04

@NikitaZ
Copy link
Contributor Author

NikitaZ commented Feb 16, 2024

Here is enum example (also public is red)
Screenshot 2024-02-16 at 17 33 06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant