Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Java tree-sitter grammar does not consistently highlight constants #240

@sadikovi

Description

@sadikovi

Prerequisites

Description

For some reason, constants are highlighted differently in java tree-sitter grammar. Here is an example:

conf.set(S3_CLIENT_FACTORY_IMPL, "Test");
conf.set(ENDPOINT, "test-endpoint");

S3_CLIENT_FACTORY_IMPL is not highlighted but ENDPOINT is.

This is due to numbers not being in the pattern. If you remove 3 from S3_CLIENT_FACTORY_IMPL, everything works correctly.

Expected behavior:

S3_CLIENT_FACTORY_IMPL is being highlighted as ENDPOINT.

Actual behavior:

The opposite.

Reproduces how often:

100%

Versions

Additional Information

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions