Lines Matching +full:mod +full:- +full:12 +full:b
1 # $NetBSD: varmod-subst-regex.mk,v 1.12 2024/07/20 11:05:12 rillig Exp $
6 .MAKEFLAGS: -dL
8 all: mod-regex-compile-error
9 all: mod-regex-limits-{1,2,3,4,5,6}
10 all: mod-regex-errors-{1,2}
11 all: unmatched-subexpression
14 # the regular expression "a b" since these words don't contain any
16 .if ${:Ua b b c:C,a b,,} != "a b b c"
22 .if ${:Ua b b c:C,a b,,1} != "a b b c"
29 .if ${:Ua b b c:C,a b,,W} != " b c"
34 # contains the character 'b' a single time.
35 .if ${:Ua b b c:C,b,,g} != "a c"
64 # Up to 2020-08-28, the manual page said that the modifiers '1' and 'g'
75 .if ${:U1a2b3c:C,a*,*,g} != "*1**2*b*3*c"
133 # error message and (as of 2020-08-28) stops parsing in the middle of the
137 mod-regex-compile-error:
140 # These tests generate error messages but as of 2020-08-28 just continue
142 mod-regex-limits-1:
143 @echo $@:11-missing:${:U1 23 456:C,..,\1\1,:Q}
144 mod-regex-limits-2:
145 @echo $@:11-ok:${:U1 23 456:C,(.).,\1\1,:Q}
146 mod-regex-limits-3:
147 @echo $@:22-missing:${:U1 23 456:C,..,\2\2,:Q}
148 mod-regex-limits-4:
149 @echo $@:22-missing:${:U1 23 456:C,(.).,\2\2,:Q}
150 mod-regex-limits-5:
151 @echo $@:22-ok:${:U1 23 456:C,(.)(.),\2\2,:Q}
152 mod-regex-limits-6:
153 # The :C modifier only handles single-digit capturing groups,
155 …rest:C,(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.),\9\8\7\6\5\4\3\2\1\0\10\11\12,}
157 mod-regex-errors-1:
160 mod-regex-errors-2:
170 # Between var.c 1.16 from 1996-12-24 until before var.c 1.933 from 2021-06-21,
174 # Before 2021-06-21 there was no way to turn off this warning, thus the
178 # Since var.c 1.933 from 2021-06-21, the error message is only printed in lint
179 # mode (-dL), but not in default mode.
181 # As an alternative to the change from var.c 1.933 from 2021-06-21, a possible
184 # the modifier ':C,(a.)|(b.),\1\2,U' to treat unmatched subexpressions as
186 # modifiers ':S' and ':C' are open-ended (see mod-subst-chain), that is, they
190 unmatched-subexpression: