17 lines · plain
1# Escape sequences that can appear in python re.sub replacement strings have no2# special meaning in the value.3 4# DEFINE: %{escape} = \g<0>\n5# RUN: echo '%{escape}'6# CHECK:# | \g<0>\n7 8# REDEFINE: %{escape} = \n \9# REDEFINE: \g<param>10# RUN: echo '%{escape}'11# CHECK:# | \n \g<param>12 13# RUN: echo '%{global:subst-with-escapes}'14# CHECK:# | value-with-\g15 16# CHECK: Passed: 1 {{\([0-9]*.[0-9]*%\)}}17