summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-03-22 21:18:53 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-03-22 21:18:53 -0700
commitb629707890bf3f527f1d33a17815ef214ee6dc39 (patch)
tree79d9a5f5c52fff06cb3241a4c8ccf7c518eb063b /gc.c
parent7635fc2cf9c07850a8a0ffc94818bf869794435b (diff)
downloadtxr-b629707890bf3f527f1d33a17815ef214ee6dc39.tar.gz
txr-b629707890bf3f527f1d33a17815ef214ee6dc39.tar.bz2
txr-b629707890bf3f527f1d33a17815ef214ee6dc39.zip
Bind variable during directive delimited match.
The existing behavior is: when a situation like @a@(foo) performs a search for the match for @(foo) in order to determine the extent of the text matched by variable a, the variable a is not bound. That is to say, @(foo) is tried in an environment in which a doesn't exist. The variable is only bound when the search succeeds, and then @(foo) is processed again, with the variable now available. The new behavior is that @(foo) is tested in an environment in which a is bound. The variable's value is bound to the range of text between the original position and the tested position where @(foo) is tried. This is subject to the copatibility option. * match.c (ml_bindings_specline_pos): New static function. (search_match_binding_var): New static function, variant of search_match. (h_var): In the var-delimited-by-directive case, perform the search using search_match_binding_var, unless <= 172 compatibility is requested. * txr.1: Compatibility note added.
Diffstat (limited to 'gc.c')
0 files changed, 0 insertions, 0 deletions