From 5f469c15ac71c6317e97037bfc14a184dd332fb3 Mon Sep 17 00:00:00 2001 From: Arpad Ryszka Date: Sat, 6 Jun 2026 06:35:38 +0200 Subject: [PATCH] documentation for nofailpass --- doc/syntax.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/syntax.md b/doc/syntax.md index 1f5d7ee..2c8914c 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -33,7 +33,8 @@ error propagation. - `nokw`: no keyword. Prevents the rule from matching text that matches a defined kw rule. Essential for distinguishing identifiers from keywords (e.g., ensuring var is not parsed as a variable name). - `failpass`: pass failure. If this rule fails to parse, the error is reported as a failure of the parent rule, - not this specific rule. + not this specific rule. Alias definitions are failpass by default. +- `nofailpass`: discards automatic failpass, e.g. for alias definitions. ## Expressions