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

Dot character (.) recognized as ERROR_IDENTIFIER in C# #540

Closed
SchiavoAnto opened this issue Mar 28, 2024 · 2 comments
Closed

Dot character (.) recognized as ERROR_IDENTIFIER in C# #540

SchiavoAnto opened this issue Mar 28, 2024 · 2 comments
Assignees
Labels
bug syntax-highlighting Syntax highlighting requests for new languaages or bug fixes
Milestone

Comments

@SchiavoAnto
Copy link

SchiavoAnto commented Mar 28, 2024

Description
The dot character gets recognized as ERROR_IDENTIFIER and not as separator.

Steps to Reproduce

  1. Clone this repo
  2. Modify the demo application to include a C# example file, syntax option in the menubar and setting the style for the ERROR_IDENTIFIER token type (SchiavoAnto@8964759)
  3. Run the application and select C# from the menubar
  4. The dot in Console.WriteLine is red instead of black like other separators (for example a comma)

Alternatively, clone my fork demonstrating the issue, which is just this repo with the above mentioned changes applied.

Expected behavior
The dot should be recognized as a separator

Actual behavior
The dot is recognized as ERROR_IDENTIFIER

Screenshots
Before setting ERROR_IDENTIFIER to red (the dot uses the default ERROR_IDENTIFIER color):
image
After setting ERROR_IDENTIFIER to red:
image

Java version
Demo application tested with Java 18 and 21. Actual project where I discovered the issue uses Java 21 and RSTA 3.4.0 from Maven.

@bobbylight bobbylight self-assigned this Apr 14, 2024
@bobbylight
Copy link
Owner

Thanks for the bug report! It'll be fixed in the next release, which I hope to do soon

@SchiavoAnto
Copy link
Author

Thank you!

@bobbylight bobbylight added the syntax-highlighting Syntax highlighting requests for new languaages or bug fixes label Jun 9, 2024
@bobbylight bobbylight added this to the 3.4.1 milestone Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug syntax-highlighting Syntax highlighting requests for new languaages or bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants