diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2022-05-02 18:01:45 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2022-05-02 18:01:45 -0400 |
| commit | 3944a36f14662dacdd3689224f031e48ae60ea0a (patch) | |
| tree | b24eee0c0dcfbaabce084a5ed5e430258e9a9808 /bp.1 | |
| parent | af668004e85e99858df4a025af82c4602e0ab399 (diff) | |
Updated docs
Diffstat (limited to 'bp.1')
| -rw-r--r-- | bp.1 | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -203,9 +203,16 @@ Any one of the given escape sequences or ranges \f[I]esc1\f[R] or \f[I]esc2\f[R] (e.g.\ \f[B]\[rs]r,n,x01-x04\f[R]) .TP \f[B]\[rs]N\f[R] -A special case escape that matches a \[lq]nodent\[rq]: one or more -newlines followed by the same indentation that occurs on the current -line. +A special escape that matches a \[lq]nodent\[rq]: one or more newlines +followed by the same indentation that occurs on the current line. +.TP +\f[B]\[rs]C\f[R] +A special escape that always matches the empty string and replaces it +with the indentation of the line on which it matched. +For example, this pattern would match Bash-style heredocs that start +with \[lq]<<-FOO\[rq] and end with a line containing only the starting +indentation and the string \[lq]FOO\[rq]: \f[B]\[dq]<<-\[dq] +\[at]end=(\[rs]C id) ..%\[rs]n (\[ha]end$)\f[R] .TP \f[B]\[rs]i\f[R] An identifier character (e.g.\ alphanumeric characters or underscores). |
