diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-21 21:14:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-21 21:14:13 -0700 |
commit | cbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b (patch) | |
tree | c23e5679559579ffd2f6dbd30983a45e17e9c80a /parser.l | |
parent | 9f039218345989a770322611704c3d7ff9a76a12 (diff) | |
download | txr-cbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b.tar.gz txr-cbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b.tar.bz2 txr-cbe8ab16302c0224c2e90dc0dd28e64e80b3fe2b.zip |
Support negative positions in regex matching funs.
* regex.c (match_regex, match_regex_right): Detect
a negative start or end position, respectively,
and add the string length to it. If it is still
negative, bail with nil.
* txr.1: Documented.
Diffstat (limited to 'parser.l')
0 files changed, 0 insertions, 0 deletions