Skip to content

[C++] Disallow trailing commas in function call argument lists in Pratt parser - #2234

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_972265157
Aug 28, 2026
Merged

[C++] Disallow trailing commas in function call argument lists in Pratt parser#2234
copybara-service[bot] merged 1 commit into
masterfrom
test_972265157

Conversation

@copybara-service

Copy link
Copy Markdown

[C++] Disallow trailing commas in function call argument lists in Pratt parser

According to the CEL grammar specification, trailing commas are only permitted in collection literals (lists, maps, structs), not in function call argument lists (exprList).

Disallows trailing commas in PrattParserWorker::ParseArguments and adds test cases to verify syntax error reporting.

…tt parser

According to the CEL grammar specification, trailing commas are only permitted in collection literals (lists, maps, structs), not in function call argument lists (`exprList`).

Disallows trailing commas in `PrattParserWorker::ParseArguments` and adds test cases to verify syntax error reporting.

PiperOrigin-RevId: 972728668
@copybara-service
copybara-service Bot merged commit c0ebb06 into master Aug 28, 2026
4 of 5 checks passed
@copybara-service
copybara-service Bot deleted the test_972265157 branch August 28, 2026 19:27
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant