Fix syntax highlighting lost after composite step in Lifecycle: Before#1002
Draft
Copilot wants to merge 4 commits into
Draft
Fix syntax highlighting lost after composite step in Lifecycle: Before#1002Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Agent-Logs-Url: https://github.com/vividus-framework/vividus-studio/sessions/28ddb7e9-9086-419c-a335-94b212afb376 Co-authored-by: valfirst <5081226+valfirst@users.noreply.github.com>
…n Lifecycle: Before The lifecycle rule's whileCaptures[4] previously used `include: #step` which is a begin/while rule. When its begin matched a step line inside lifecycle, the step rule's while clause evaluated subsequent lines, interfering with lifecycle's own while evaluation and causing the lifecycle block to terminate prematurely. The fix replaces the step rule inclusion with an inline match pattern that provides identical highlighting without multiline while behavior. Also adds missing `And` step keyword support and `Given(?!Stories)` negative lookahead to lifecycle's while group 4 pattern. Agent-Logs-Url: https://github.com/vividus-framework/vividus-studio/sessions/28ddb7e9-9086-419c-a335-94b212afb376 Co-authored-by: valfirst <5081226+valfirst@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix structure highlighting disappearance issue in composite step
Fix syntax highlighting lost after composite step in Lifecycle: Before
Apr 21, 2026
valfirst
requested changes
Apr 21, 2026
Agent-Logs-Url: https://github.com/vividus-framework/vividus-studio/sessions/ec3bda27-9b46-41ab-818e-b6e1635fbeef Co-authored-by: valfirst <5081226+valfirst@users.noreply.github.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
whilegroup 4 pattern to includeAndstep keyword and useGiven(?!Stories)negative lookaheadinclude: #stepin lifecyclewhileCaptures[4]with an inlinematchpattern to prevent the step rule's multilinewhileclause from interfering with the lifecycle rule's while evaluation