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

Fixed highlighting for xint literals with separators #474

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

En3Tho
Copy link
Contributor

@En3Tho En3Tho commented Jan 12, 2023

Changes lexer a little bit to properly highlight numbers with prefix and separators like

0b1_1 0o1_1 0x1_1

Before: highlighted as text
After: highlighted as number

Copy link
Member

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@En3Tho This is a very nice fix, thank you!

Could you also cover multiple underscores in a row in the lexer tests and add the new lexer tests to FSharpLexerTest in the frontend plugin?

@En3Tho
Copy link
Contributor Author

En3Tho commented Jan 13, 2023

@auduchinok Sure. For FSharpLexerTest - do you mean that instead of adding those to testDigit I should create another test specifically for underscores or should I just add multiple underscore cases in addition to single ones that I've already added?

@auduchinok
Copy link
Member

Sorry, I have somehow missed it was already there! Thanks for adding it!

Copy link
Member

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@En3Tho Thanks, this is a very good PR!

@auduchinok auduchinok merged commit 01ba405 into JetBrains:net231 Jan 14, 2023
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

Successfully merging this pull request may close these issues.

2 participants