diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/texinfo/texinfo/tp/t/results/macro/protect_in_body_one_arg.pl |
Initial commit
Diffstat (limited to 'macros/texinfo/texinfo/tp/t/results/macro/protect_in_body_one_arg.pl')
-rw-r--r-- | macros/texinfo/texinfo/tp/t/results/macro/protect_in_body_one_arg.pl | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/macros/texinfo/texinfo/tp/t/results/macro/protect_in_body_one_arg.pl b/macros/texinfo/texinfo/tp/t/results/macro/protect_in_body_one_arg.pl new file mode 100644 index 0000000000..d4097373ac --- /dev/null +++ b/macros/texinfo/texinfo/tp/t/results/macro/protect_in_body_one_arg.pl @@ -0,0 +1,173 @@ +use vars qw(%result_texis %result_texts %result_trees %result_errors + %result_indices %result_sectioning %result_nodes %result_menus + %result_floats %result_converted %result_converted_errors + %result_elements %result_directions_text); + +use utf8; + +$result_trees{'protect_in_body_one_arg'} = { + 'contents' => [ + { + 'args' => [ + { + 'parent' => {}, + 'text' => 'macroone', + 'type' => 'macro_name' + }, + { + 'parent' => {}, + 'text' => 'arg1', + 'type' => 'macro_arg' + }, + { + 'parent' => {}, + 'text' => 'arg2', + 'type' => 'macro_arg' + } + ], + 'cmdname' => 'macro', + 'contents' => [ + { + 'parent' => {}, + 'text' => 'result: @emph{\\arg1\\} protected \\\\ -> \\\\arg1\\\\ @emph{\\arg2\\}', + 'type' => 'raw' + }, + { + 'parent' => {}, + 'text' => ' +', + 'type' => 'last_raw_newline' + } + ], + 'extra' => { + 'arg_line' => ' macroone { arg1 , arg2 } +' + }, + 'line_nr' => { + 'file_name' => '', + 'line_nr' => 1, + 'macro' => '' + }, + 'parent' => {} + }, + { + 'parent' => {}, + 'text' => ' +', + 'type' => 'empty_line_after_command' + }, + { + 'parent' => {}, + 'text' => ' +', + 'type' => 'empty_line' + }, + { + 'contents' => [ + { + 'parent' => {}, + 'text' => 'result: ' + }, + { + 'args' => [ + { + 'contents' => [ + { + 'args' => [ + { + 'contents' => [ + { + 'parent' => {}, + 'text' => 'f\\irst arg' + } + ], + 'parent' => {}, + 'type' => 'brace_command_arg' + } + ], + 'cmdname' => 'samp', + 'contents' => [], + 'line_nr' => { + 'file_name' => '', + 'line_nr' => 5, + 'macro' => 'macroone' + }, + 'parent' => {} + } + ], + 'parent' => {}, + 'type' => 'brace_command_arg' + } + ], + 'cmdname' => 'emph', + 'contents' => [], + 'line_nr' => {}, + 'parent' => {} + }, + { + 'parent' => {}, + 'text' => ' protected \\ -> \\arg1\\ ' + }, + { + 'args' => [ + { + 'contents' => [], + 'parent' => {}, + 'type' => 'brace_command_arg' + } + ], + 'cmdname' => 'emph', + 'contents' => [], + 'line_nr' => {}, + 'parent' => {} + }, + { + 'parent' => {}, + 'text' => ' +' + } + ], + 'parent' => {}, + 'type' => 'paragraph' + } + ], + 'type' => 'text_root' +}; +$result_trees{'protect_in_body_one_arg'}{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[0]{'args'}[1]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[0]{'args'}[2]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[0]{'contents'}[1]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}; +$result_trees{'protect_in_body_one_arg'}{'contents'}[1]{'parent'} = $result_trees{'protect_in_body_one_arg'}; +$result_trees{'protect_in_body_one_arg'}{'contents'}[2]{'parent'} = $result_trees{'protect_in_body_one_arg'}; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]{'args'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'line_nr'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]{'line_nr'}; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[2]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[3]{'args'}[0]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[3]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[3]{'line_nr'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]{'line_nr'}; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[3]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'contents'}[4]{'parent'} = $result_trees{'protect_in_body_one_arg'}{'contents'}[3]; +$result_trees{'protect_in_body_one_arg'}{'contents'}[3]{'parent'} = $result_trees{'protect_in_body_one_arg'}; + +$result_texis{'protect_in_body_one_arg'} = '@macro macroone { arg1 , arg2 } +result: @emph{\\arg1\\} protected \\\\ -> \\\\arg1\\\\ @emph{\\arg2\\} +@end macro + +result: @emph{@samp{f\\irst arg}} protected \\ -> \\arg1\\ @emph{} +'; + + +$result_texts{'protect_in_body_one_arg'} = ' +result: f\\irst arg protected \\ -> \\arg1\\ +'; + +$result_errors{'protect_in_body_one_arg'} = []; + + +1; |