[pull] master from GaijinEntertainment:master#779
Merged
Conversation
Grammar changes:
- Add bare block { ... } at statement level with push_nesteds/pop_nesteds
- Split make_table_decl into brace-form and keyword-form (make_table_call)
- Rename _no_table -> _no_bracket throughout grammar
- Add LARROW + make_table_decl/array_comprehension rules for assignment-move
- Zero conflicts (%expect 0)
Tests:
- tests/bare_block/test_bare_block.das: 26 tests for scoping, nesting, finally,
control flow interaction, and variable name reuse
- tests/bare_block/test_nested_data.das: 39 tests for {} table literals as
sub-data in structs, arrays, functions, tuples, variants, comprehensions,
move semantics including assignment-move (tab <- {})
- tests/bare_block/_test_table_compat.das: 5 basic table compatibility tests
Documentation:
- Expand Visibility Block section in statements.rst with nesting, name reuse,
finally, and disambiguation note
- Add bare block example to finally section in statements.rst
- Add move-assign table literal and comprehension examples to tables.rst
- Sphinx build passes with zero errors/warnings
…move-assign - Add bare block syntax rule to gen2 syntax section - Add table literal move-assign and comprehension move-assign to table operations - Update tests/README.md with bare_block/ test directory - Changes applied to .github/copilot-instructions.md, CLAUDE.md, and install/CLAUDE.md
Bare lexical blocks in gen2 syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )