Skip to content

Add UnsignedLiteral to syntax.md #72

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

Merged
merged 2 commits into from
Apr 3, 2021
Merged

Add UnsignedLiteral to syntax.md #72

merged 2 commits into from
Apr 3, 2021

Conversation

SmelJey
Copy link
Contributor

@SmelJey SmelJey commented Apr 2, 2021

Reference to UnsignedLiteral on grammar.generated.md page goes to nowhere since it doesn't exist on syntax.md page

@@ -622,6 +622,10 @@
~ `'0'` (`'b'` | `'B'`) [_BinDigit_](#grammar-rule-BinDigit) {[_BinDigitOrSeparator_](#grammar-rule-BinDigitOrSeparator)} [_BinDigit_](#grammar-rule-BinDigit)
| `'0'` (`'b'` | `'B'`) [_BinDigit_](#grammar-rule-BinDigit)
:::
:::{ .grammar-rule #grammar-rule-UnsignedLiteral }
**_UnsignedLiteral_**
~ ([_IntegerLiteral_](#grammar-rule-IntegerLiteral) | [_HexLiteral_](#grammar-rule-HexLiteral) | [_BinLiteral_](#grammar-rule-BinLiteral)) [`'L'`] (`'u'` | `'U'`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for your PR!
As one can see in the lexer code https://github.com/Kotlin/kotlin-spec/blob/develop/grammar/src/main/antlr/KotlinLexer.g4#L228, L is optional and always going after U

@SmelJey SmelJey requested a review from belyaev-mikhail April 3, 2021 02:15
@belyaev-mikhail belyaev-mikhail merged commit 254bdfc into Kotlin:develop Apr 3, 2021
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