footnote_in_command_not_closed.pl 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. use vars qw(%result_texis %result_texts %result_trees %result_errors
  2. %result_indices %result_sectioning %result_nodes %result_menus
  3. %result_floats %result_converted %result_converted_errors
  4. %result_elements %result_directions_text);
  5. use utf8;
  6. $result_trees{'footnote_in_command_not_closed'} = {
  7. 'contents' => [
  8. {
  9. 'contents' => [
  10. {
  11. 'parent' => {},
  12. 'text' => 'aaa'
  13. },
  14. {
  15. 'args' => [
  16. {
  17. 'contents' => [
  18. {
  19. 'parent' => {},
  20. 'text' => 'in code'
  21. },
  22. {
  23. 'args' => [
  24. {
  25. 'contents' => [
  26. {
  27. 'contents' => [
  28. {
  29. 'parent' => {},
  30. 'text' => 'in footnote'
  31. }
  32. ],
  33. 'parent' => {},
  34. 'type' => 'paragraph'
  35. }
  36. ],
  37. 'parent' => {},
  38. 'type' => 'brace_command_context'
  39. }
  40. ],
  41. 'cmdname' => 'footnote',
  42. 'contents' => [],
  43. 'line_nr' => {
  44. 'file_name' => '',
  45. 'line_nr' => 1,
  46. 'macro' => ''
  47. },
  48. 'parent' => {}
  49. }
  50. ],
  51. 'parent' => {},
  52. 'type' => 'brace_command_arg'
  53. }
  54. ],
  55. 'cmdname' => 'code',
  56. 'contents' => [],
  57. 'line_nr' => {},
  58. 'parent' => {}
  59. }
  60. ],
  61. 'parent' => {},
  62. 'type' => 'paragraph'
  63. }
  64. ],
  65. 'type' => 'text_root'
  66. };
  67. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0];
  68. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0];
  69. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0];
  70. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0];
  71. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1];
  72. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0];
  73. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1];
  74. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'line_nr'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'line_nr'};
  75. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'contents'}[1]{'parent'} = $result_trees{'footnote_in_command_not_closed'}{'contents'}[0];
  76. $result_trees{'footnote_in_command_not_closed'}{'contents'}[0]{'parent'} = $result_trees{'footnote_in_command_not_closed'};
  77. $result_texis{'footnote_in_command_not_closed'} = 'aaa@code{in code@footnote{in footnote}}';
  78. $result_texts{'footnote_in_command_not_closed'} = 'aaain code';
  79. $result_errors{'footnote_in_command_not_closed'} = [
  80. {
  81. 'error_line' => ':1: @footnote missing closing brace
  82. ',
  83. 'file_name' => '',
  84. 'line_nr' => 1,
  85. 'macro' => '',
  86. 'text' => '@footnote missing closing brace',
  87. 'type' => 'error'
  88. },
  89. {
  90. 'error_line' => ':1: @code missing closing brace
  91. ',
  92. 'file_name' => '',
  93. 'line_nr' => 1,
  94. 'macro' => '',
  95. 'text' => '@code missing closing brace',
  96. 'type' => 'error'
  97. }
  98. ];
  99. 1;