diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-10-02 20:38:36 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-10-02 20:38:36 -0700 |
commit | d1a8b58b39e131df4a9fdc748cda449c0447bd19 (patch) | |
tree | 8dfb4ba6b1ca6eedc3ea533dcc7b08bdf0f668ec | |
parent | 9adcae67bcac0f5d2d109e8921444517a1fb15b3 (diff) | |
download | txr-d1a8b58b39e131df4a9fdc748cda449c0447bd19.tar.gz txr-d1a8b58b39e131df4a9fdc748cda449c0447bd19.tar.bz2 txr-d1a8b58b39e131df4a9fdc748cda449c0447bd19.zip |
* parser.y (rep_elem): Bugfix: forgotten o_elems_transform ontxr-038
syntax tree of o_elems constituent, leading to problems with
consecutive variables in a @(rep).
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | parser.y | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2011-10-02 Kaz Kylheku <kaz@kylheku.com> + * parser.y (rep_elem): Bugfix: forgotten o_elems_transform on + syntax tree of o_elems constituent, leading to problems with + consecutive variables in a @(rep). + +2011-10-02 Kaz Kylheku <kaz@kylheku.com> + * match.c (match_line): Handle trailer_s directive. (match_files): Remove check against trailer_s not having trailing material. If it doesn't, it's a vertical directive processed here, @@ -420,7 +420,9 @@ o_elem : TEXT { $$ = string_own($1); } ; rep_elem : REP o_elems - rep_parts_opt END { $$ = repeat_rep_helper(rep_s, $2, $3); } + rep_parts_opt END { $$ = repeat_rep_helper(rep_s, + o_elems_transform($2), + $3); } | REP error { $$ = nil; yybadtoken(yychar, lit("rep clause")); } ; |