Skip to content

Help: PRE Actions on a wildcard (engine 4.2.20, #449) - #236

Merged
ddehilster merged 1 commit into
VisualText:mainfrom
ddehilster:docs/pre-wildcard-449
Oct 14, 2026
Merged

ddehilster merged 1 commit into
VisualText:mainfrom
ddehilster:docs/pre-wildcard-449

Conversation

@ddehilster

Copy link
Copy Markdown
Member

This documents how a PRE Action on a plain _xWILD behaves, as fixed in VisualText/nlp-engine#773.

The new "PRE Actions on a Wildcard" section on PRE.md explains three points:

  • The condition must hold on every node the wildcard covers, including whitespace.
  • The wildcard is greedy and stops at the first node that fails the condition. This is how LinesDictTokZ gathers a line up to its newline.
  • From 4.2.20 it also stops before the first node that matches the next rule element.

Both examples on the page are taken from the engine fixture, and they give the stated results on the 4.2.20 build.

Merge this after nlp-engine#773.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ddehilster
ddehilster merged commit fc72f9b into VisualText:main Oct 14, 2026
1 check passed
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.

1 participant