mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:01:07 +01:00
Fix handling of repeated tuple indexing. (#4733)
Per [the design](https://docs.carbon-lang.dev/docs/design/lexical_conventions/), `x.1.2` should lex as `(x.1).2`, not as `x.(1.2)`.
This commit is contained in:
@@ -337,7 +337,9 @@ TEST_F(LexerTest, SplitsNumericLiteralsProperly) {
|
||||
// newline
|
||||
{.kind = TokenKind::RealLiteral, .text = "9.0"},
|
||||
{.kind = TokenKind::Period},
|
||||
{.kind = TokenKind::RealLiteral, .text = "9.5"},
|
||||
{.kind = TokenKind::IntLiteral, .text = "9"},
|
||||
{.kind = TokenKind::Period},
|
||||
{.kind = TokenKind::IntLiteral, .text = "5"},
|
||||
// newline
|
||||
{.kind = TokenKind::Error, .text = "10.foo"},
|
||||
// newline
|
||||
|
||||
Reference in New Issue
Block a user