brakeman 4.4.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (732) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +271 -107
  3. data/README.md +19 -12
  4. data/bundle/load.rb +14 -14
  5. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/CHANGES.txt +0 -0
  6. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/MIT-LICENSE +0 -0
  7. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/README.txt +0 -0
  8. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis +0 -0
  9. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis-run.rb +0 -0
  10. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/inline-require +0 -0
  11. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis.rb +0 -0
  12. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/context.rb +0 -0
  13. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/converter.rb +0 -0
  14. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine.rb +0 -0
  15. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +0 -0
  16. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +0 -0
  17. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +0 -0
  18. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +0 -0
  19. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +0 -0
  20. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +0 -0
  21. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +0 -0
  22. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +0 -0
  23. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +0 -0
  24. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +0 -0
  25. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/enhancer.rb +0 -0
  26. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/error.rb +0 -0
  27. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/evaluator.rb +0 -0
  28. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/generator.rb +0 -0
  29. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helper.rb +0 -0
  30. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +0 -0
  31. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +0 -0
  32. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/local-setting.rb +0 -0
  33. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/main.rb +0 -0
  34. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +0 -0
  35. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/tiny.rb +0 -0
  36. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/util.rb +0 -0
  37. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/setup.rb +0 -0
  38. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/CHANGELOG.md +138 -4
  39. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/FAQ.md +4 -14
  40. data/bundle/ruby/2.7.0/gems/haml-5.2.1/Gemfile +16 -0
  41. data/bundle/ruby/{2.5.0/gems/sass-3.4.25/vendor/listen/LICENSE → 2.7.0/gems/haml-5.2.1/MIT-LICENSE} +1 -1
  42. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/README.md +79 -42
  43. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/REFERENCE.md +150 -71
  44. data/bundle/ruby/2.7.0/gems/haml-5.2.1/TODO +24 -0
  45. data/bundle/ruby/2.7.0/gems/haml-5.2.1/haml.gemspec +45 -0
  46. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml.rb +2 -0
  47. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_builder.rb +164 -0
  48. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_compiler.rb +235 -0
  49. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_parser.rb +150 -0
  50. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/buffer.rb +25 -132
  51. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/compiler.rb +330 -0
  52. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/engine.rb +34 -41
  53. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/error.rb +65 -0
  54. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/escapable.rb +77 -0
  55. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/exec.rb +38 -20
  56. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/filters.rb +22 -27
  57. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/generator.rb +42 -0
  58. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers.rb +134 -89
  59. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/action_view_extensions.rb +4 -2
  60. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/action_view_mods.rb +45 -60
  61. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/action_view_xss_mods.rb +2 -0
  62. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/safe_erubi_template.rb +20 -0
  63. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/safe_erubis_template.rb +5 -1
  64. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/xss_mods.rb +23 -13
  65. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/options.rb +63 -69
  66. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/parser.rb +319 -227
  67. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/plugin.rb +37 -0
  68. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/railtie.rb +48 -0
  69. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/sass_rails_filter.rb +18 -4
  70. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/template.rb +13 -6
  71. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/template/options.rb +13 -2
  72. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_engine.rb +123 -0
  73. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_line_counter.rb +30 -0
  74. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/util.rb +258 -0
  75. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/version.rb +5 -0
  76. data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/fulldoc/html/css/common.sass +15 -0
  77. data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/layout/html/footer.erb +12 -0
  78. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/AUTHORS +0 -0
  79. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/COPYING +0 -0
  80. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/Changelog.md +214 -15
  81. data/bundle/ruby/2.7.0/gems/highline-2.0.3/Gemfile +22 -0
  82. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/LICENSE +0 -0
  83. data/bundle/ruby/2.7.0/gems/highline-2.0.3/README.md +202 -0
  84. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/TODO +0 -0
  85. data/bundle/ruby/2.7.0/gems/highline-2.0.3/appveyor.yml +37 -0
  86. data/bundle/ruby/2.7.0/gems/highline-2.0.3/highline.gemspec +35 -0
  87. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline.rb +650 -0
  88. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/builtin_styles.rb +129 -0
  89. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/lib/highline/color_scheme.rb +49 -32
  90. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/compatibility.rb +23 -0
  91. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/custom_errors.rb +57 -0
  92. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/import.rb +48 -0
  93. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/io_console_compatible.rb +37 -0
  94. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list.rb +177 -0
  95. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list_renderer.rb +261 -0
  96. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu.rb +576 -0
  97. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu/item.rb +32 -0
  98. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/paginator.rb +52 -0
  99. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/lib/highline/question.rb +281 -131
  100. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question/answer_converter.rb +103 -0
  101. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question_asker.rb +150 -0
  102. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/simulate.rb +59 -0
  103. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/statement.rb +88 -0
  104. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string.rb +36 -0
  105. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string_extensions.rb +130 -0
  106. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/style.rb +325 -0
  107. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/template_renderer.rb +62 -0
  108. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal.rb +190 -0
  109. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/io_console.rb +36 -0
  110. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/ncurses.rb +38 -0
  111. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/unix_stty.rb +51 -0
  112. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/lib/highline/version.rb +3 -1
  113. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/wrapper.rb +53 -0
  114. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/Gemfile +6 -0
  115. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/LICENSE.txt +22 -0
  116. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/NEWS.md +141 -0
  117. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/README.md +60 -0
  118. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attlistdecl.rb +63 -0
  119. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attribute.rb +205 -0
  120. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/cdata.rb +68 -0
  121. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/child.rb +97 -0
  122. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/comment.rb +80 -0
  123. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/doctype.rb +287 -0
  124. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/document.rb +291 -0
  125. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/attlistdecl.rb +11 -0
  126. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/dtd.rb +47 -0
  127. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/elementdecl.rb +18 -0
  128. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/entitydecl.rb +57 -0
  129. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/notationdecl.rb +40 -0
  130. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/element.rb +1269 -0
  131. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/encoding.rb +51 -0
  132. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/entity.rb +171 -0
  133. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/default.rb +116 -0
  134. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/pretty.rb +142 -0
  135. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/transitive.rb +58 -0
  136. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/functions.rb +447 -0
  137. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/instruction.rb +79 -0
  138. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/light/node.rb +196 -0
  139. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/namespace.rb +59 -0
  140. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/node.rb +76 -0
  141. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/output.rb +30 -0
  142. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parent.rb +166 -0
  143. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parseexception.rb +52 -0
  144. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/baseparser.rb +594 -0
  145. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/lightparser.rb +59 -0
  146. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/pullparser.rb +197 -0
  147. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/sax2parser.rb +273 -0
  148. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/streamparser.rb +61 -0
  149. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/treeparser.rb +101 -0
  150. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/ultralightparser.rb +57 -0
  151. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/xpathparser.rb +675 -0
  152. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/quickpath.rb +266 -0
  153. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/rexml.rb +32 -0
  154. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/sax2listener.rb +98 -0
  155. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/security.rb +28 -0
  156. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/source.rb +298 -0
  157. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/streamlistener.rb +93 -0
  158. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/text.rb +424 -0
  159. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/undefinednamespaceexception.rb +9 -0
  160. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/relaxng.rb +539 -0
  161. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validation.rb +144 -0
  162. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validationexception.rb +10 -0
  163. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmldecl.rb +130 -0
  164. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmltokens.rb +85 -0
  165. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath.rb +81 -0
  166. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath_parser.rb +968 -0
  167. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/rexml.gemspec +84 -0
  168. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/History.rdoc +22 -0
  169. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/Manifest.txt +0 -0
  170. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/README.rdoc +0 -0
  171. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/lib/ruby2ruby.rb +118 -110
  172. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/History.rdoc +176 -0
  173. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/Manifest.txt +7 -4
  174. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/README.rdoc +3 -3
  175. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/compare/normalize.rb +69 -2
  176. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/debugging.md +57 -0
  177. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/rp_extensions.rb +1 -8
  178. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/rp_stringscanner.rb +0 -0
  179. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.rb +7062 -0
  180. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib/ruby_parser.yy → 2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.y} +728 -604
  181. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.rb +7140 -0
  182. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby21_parser.y +734 -472
  183. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.rb +7160 -0
  184. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby22_parser.y +735 -478
  185. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.rb +7175 -0
  186. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby23_parser.y +736 -479
  187. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.rb +7204 -0
  188. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby24_parser.y +742 -477
  189. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.rb +7204 -0
  190. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby25_parser.y +742 -477
  191. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.rb +7224 -0
  192. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.y +2657 -0
  193. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.rb +7224 -0
  194. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.y +2657 -0
  195. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rb +1473 -0
  196. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex +178 -0
  197. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex.rb +363 -0
  198. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby_parser.rb +36 -34
  199. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser.yy +2764 -0
  200. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser_extras.rb +1631 -0
  201. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/munge.rb +222 -0
  202. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/ripper.rb +39 -0
  203. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/History.rdoc +6 -0
  204. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/Manifest.txt +19 -0
  205. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/README.rdoc +54 -0
  206. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy.rb +5 -0
  207. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby18_parser.rb +7 -6
  208. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby18_parser.y +5 -4
  209. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby19_parser.rb +7 -6
  210. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby19_parser.y +5 -4
  211. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_lexer.rb +117 -64
  212. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_lexer.rex +11 -9
  213. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_lexer.rex.rb +10 -10
  214. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb +30 -0
  215. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_parser_extras.rb +43 -33
  216. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/CHANGES.md +5 -0
  217. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/Gemfile +0 -0
  218. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/LICENSE.txt +0 -0
  219. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/README.md +0 -0
  220. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/bundle_install_all_ruby_versions.sh +0 -0
  221. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml.rb +0 -0
  222. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/deep.rb +0 -0
  223. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/libyaml_checker.rb +0 -0
  224. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/load.rb +0 -0
  225. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/date.rb +2 -0
  226. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/hexadecimal.rb +0 -0
  227. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/sexagesimal.rb +0 -0
  228. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_handler.rb +0 -0
  229. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_resolver.rb +0 -0
  230. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/resolver.rb +0 -0
  231. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -0
  232. data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +39 -0
  233. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_hack.rb +0 -0
  234. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_node_monkeypatch.rb +0 -0
  235. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_resolver.rb +0 -0
  236. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform.rb +0 -0
  237. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_boolean.rb +0 -0
  238. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_date.rb +0 -0
  239. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_float.rb +0 -0
  240. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_integer.rb +0 -0
  241. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_nil.rb +0 -0
  242. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_symbol.rb +0 -0
  243. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/transformation_map.rb +0 -0
  244. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/version.rb +1 -1
  245. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/run_specs_all_ruby_versions.sh +0 -0
  246. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/safe_yaml.gemspec +0 -0
  247. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/History.rdoc +67 -0
  248. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/Manifest.txt +1 -0
  249. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/README.rdoc +0 -0
  250. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/composite_sexp_processor.rb +0 -0
  251. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/pt_testcase.rb +15 -17
  252. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp.rb +381 -0
  253. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0/lib/sexp.rb → 2.7.0/gems/sexp_processor-4.15.2/lib/sexp_matcher.rb} +67 -387
  254. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/sexp_processor.rb +2 -2
  255. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/strict_sexp.rb +3 -3
  256. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/unique.rb +0 -0
  257. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/CHANGES +4 -0
  258. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/Gemfile +12 -13
  259. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/LICENSE +0 -0
  260. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/README.jp.md +0 -0
  261. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/README.md +0 -0
  262. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim.rb +0 -0
  263. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/code_attributes.rb +0 -0
  264. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/command.rb +13 -13
  265. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/controls.rb +0 -0
  266. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/do_inserter.rb +0 -0
  267. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/embedded.rb +0 -0
  268. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/end_inserter.rb +0 -0
  269. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/engine.rb +0 -0
  270. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/erb_converter.rb +0 -0
  271. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/filter.rb +0 -0
  272. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/grammar.rb +0 -0
  273. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/include.rb +0 -0
  274. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/interpolation.rb +0 -0
  275. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less.rb +0 -0
  276. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less/context.rb +0 -0
  277. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less/filter.rb +0 -0
  278. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/parser.rb +1 -1
  279. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart.rb +0 -0
  280. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/escaper.rb +0 -0
  281. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/filter.rb +0 -0
  282. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/parser.rb +0 -0
  283. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/splat/builder.rb +0 -0
  284. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/splat/filter.rb +0 -0
  285. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/template.rb +0 -0
  286. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/translator.rb +0 -0
  287. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/version.rb +1 -1
  288. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/slim.gemspec +0 -0
  289. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/CHANGES +11 -0
  290. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/EXPRESSIONS.md +1 -1
  291. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/Gemfile +0 -0
  292. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/LICENSE +0 -0
  293. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/README.md +1 -1
  294. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple.rb +0 -0
  295. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/engine.rb +0 -0
  296. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/engine.rb +0 -0
  297. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/parser.rb +0 -0
  298. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/template.rb +0 -0
  299. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/trimming.rb +0 -0
  300. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/exceptions.rb +0 -0
  301. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filter.rb +0 -0
  302. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/code_merger.rb +0 -0
  303. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/control_flow.rb +0 -0
  304. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/dynamic_inliner.rb +0 -0
  305. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/encoding.rb +0 -0
  306. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/eraser.rb +0 -0
  307. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/escapable.rb +0 -0
  308. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/multi_flattener.rb +0 -0
  309. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/remove_bom.rb +0 -0
  310. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/static_analyzer.rb +0 -0
  311. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/static_merger.rb +0 -0
  312. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/string_splitter.rb +1 -1
  313. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/validator.rb +0 -0
  314. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generator.rb +0 -0
  315. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array.rb +0 -0
  316. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array_buffer.rb +0 -0
  317. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/erb.rb +0 -0
  318. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/rails_output_buffer.rb +0 -0
  319. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/string_buffer.rb +0 -0
  320. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/grammar.rb +0 -0
  321. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_merger.rb +0 -0
  322. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_remover.rb +0 -0
  323. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_sorter.rb +0 -0
  324. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/dispatcher.rb +0 -0
  325. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/fast.rb +0 -0
  326. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/filter.rb +0 -0
  327. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/pretty.rb +0 -0
  328. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/safe.rb +0 -0
  329. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/map.rb +0 -0
  330. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/dispatcher.rb +2 -1
  331. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/engine_dsl.rb +0 -0
  332. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/grammar_dsl.rb +0 -0
  333. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/options.rb +0 -0
  334. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/template.rb +0 -0
  335. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/parser.rb +0 -0
  336. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/static_analyzer.rb +1 -1
  337. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates.rb +0 -0
  338. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates/rails.rb +2 -2
  339. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates/tilt.rb +0 -0
  340. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/utils.rb +0 -0
  341. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/version.rb +3 -0
  342. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/temple.gemspec +0 -0
  343. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Gemfile +0 -0
  344. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/History.rdoc +0 -0
  345. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/LICENSE.txt +0 -0
  346. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Manifest +0 -0
  347. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/README.rdoc +0 -0
  348. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Todo.rdoc +0 -0
  349. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table.rb +0 -0
  350. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/cell.rb +0 -0
  351. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/import.rb +0 -0
  352. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/row.rb +0 -0
  353. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb +0 -0
  354. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/style.rb +0 -0
  355. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table.rb +0 -0
  356. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table_helper.rb +0 -0
  357. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/version.rb +0 -0
  358. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/terminal-table.gemspec +0 -0
  359. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/COPYING +0 -0
  360. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt.rb +1 -1
  361. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/asciidoc.rb +0 -0
  362. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/babel.rb +0 -0
  363. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/bluecloth.rb +0 -0
  364. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/builder.rb +0 -0
  365. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/coffee.rb +0 -0
  366. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/commonmarker.rb +0 -0
  367. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/creole.rb +0 -0
  368. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/csv.rb +0 -0
  369. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/dummy.rb +0 -0
  370. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erb.rb +0 -0
  371. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubi.rb +0 -0
  372. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubis.rb +0 -0
  373. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/etanni.rb +0 -0
  374. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/haml.rb +0 -0
  375. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/kramdown.rb +0 -0
  376. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/less.rb +0 -0
  377. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/liquid.rb +0 -0
  378. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/livescript.rb +0 -0
  379. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/mapping.rb +0 -0
  380. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/markaby.rb +0 -0
  381. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/maruku.rb +0 -0
  382. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/nokogiri.rb +0 -0
  383. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/pandoc.rb +0 -0
  384. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/plain.rb +0 -0
  385. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/prawn.rb +0 -0
  386. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/radius.rb +0 -0
  387. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdiscount.rb +0 -0
  388. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdoc.rb +0 -0
  389. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcarpet.rb +0 -0
  390. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcloth.rb +0 -0
  391. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rst-pandoc.rb +0 -0
  392. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/sass.rb +0 -0
  393. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/sigil.rb +0 -0
  394. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/string.rb +0 -0
  395. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/template.rb +7 -12
  396. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/typescript.rb +0 -0
  397. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/wikicloth.rb +0 -0
  398. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/yajl.rb +0 -0
  399. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/CHANGELOG.md +16 -0
  400. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/MIT-LICENSE.txt +1 -1
  401. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/README.md +10 -10
  402. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/data/display_width.marshal.gz +0 -0
  403. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width.rb +1 -1
  404. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/constants.rb +2 -2
  405. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/index.rb +0 -0
  406. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/no_string_ext.rb +0 -0
  407. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/string_ext.rb +0 -0
  408. data/lib/brakeman.rb +37 -0
  409. data/lib/brakeman/app_tree.rb +67 -22
  410. data/lib/brakeman/call_index.rb +54 -15
  411. data/lib/brakeman/checks.rb +7 -7
  412. data/lib/brakeman/checks/base_check.rb +94 -66
  413. data/lib/brakeman/checks/check_basic_auth.rb +2 -0
  414. data/lib/brakeman/checks/check_content_tag.rb +12 -1
  415. data/lib/brakeman/checks/check_cookie_serialization.rb +22 -0
  416. data/lib/brakeman/checks/check_cross_site_scripting.rb +15 -10
  417. data/lib/brakeman/checks/check_csrf_token_forgery_cve.rb +28 -0
  418. data/lib/brakeman/checks/check_default_routes.rb +5 -0
  419. data/lib/brakeman/checks/check_deserialize.rb +70 -1
  420. data/lib/brakeman/checks/check_dynamic_finders.rb +1 -1
  421. data/lib/brakeman/checks/check_evaluation.rb +0 -1
  422. data/lib/brakeman/checks/check_execute.rb +84 -5
  423. data/lib/brakeman/checks/check_file_access.rb +7 -1
  424. data/lib/brakeman/checks/check_force_ssl.rb +27 -0
  425. data/lib/brakeman/checks/check_header_dos.rb +2 -2
  426. data/lib/brakeman/checks/check_i18n_xss.rb +2 -2
  427. data/lib/brakeman/checks/check_jruby_xml.rb +2 -2
  428. data/lib/brakeman/checks/check_json_entity_escape.rb +38 -0
  429. data/lib/brakeman/checks/check_json_parsing.rb +7 -2
  430. data/lib/brakeman/checks/check_link_to.rb +1 -1
  431. data/lib/brakeman/checks/check_link_to_href.rb +7 -4
  432. data/lib/brakeman/checks/check_mail_to.rb +1 -1
  433. data/lib/brakeman/checks/check_mass_assignment.rb +34 -4
  434. data/lib/brakeman/checks/check_mime_type_dos.rb +2 -2
  435. data/lib/brakeman/checks/check_model_attr_accessible.rb +2 -2
  436. data/lib/brakeman/checks/check_model_attributes.rb +13 -51
  437. data/lib/brakeman/checks/check_model_serialize.rb +1 -1
  438. data/lib/brakeman/checks/check_nested_attributes_bypass.rb +4 -4
  439. data/lib/brakeman/checks/check_page_caching_cve.rb +37 -0
  440. data/lib/brakeman/checks/check_permit_attributes.rb +1 -1
  441. data/lib/brakeman/checks/check_regex_dos.rb +1 -1
  442. data/lib/brakeman/checks/check_reverse_tabnabbing.rb +58 -0
  443. data/lib/brakeman/checks/check_sanitize_methods.rb +2 -2
  444. data/lib/brakeman/checks/check_secrets.rb +1 -1
  445. data/lib/brakeman/checks/check_send.rb +0 -1
  446. data/lib/brakeman/checks/check_session_manipulation.rb +0 -1
  447. data/lib/brakeman/checks/check_session_settings.rb +15 -12
  448. data/lib/brakeman/checks/check_simple_format.rb +5 -0
  449. data/lib/brakeman/checks/check_skip_before_filter.rb +5 -5
  450. data/lib/brakeman/checks/check_sql.rb +46 -48
  451. data/lib/brakeman/checks/check_template_injection.rb +32 -0
  452. data/lib/brakeman/checks/check_unsafe_reflection_methods.rb +68 -0
  453. data/lib/brakeman/checks/check_validation_regex.rb +1 -1
  454. data/lib/brakeman/checks/check_verb_confusion.rb +75 -0
  455. data/lib/brakeman/checks/check_xml_dos.rb +2 -2
  456. data/lib/brakeman/checks/check_yaml_parsing.rb +10 -18
  457. data/lib/brakeman/commandline.rb +25 -1
  458. data/lib/brakeman/differ.rb +16 -33
  459. data/lib/brakeman/file_parser.rb +25 -21
  460. data/lib/brakeman/file_path.rb +85 -0
  461. data/lib/brakeman/options.rb +32 -1
  462. data/lib/brakeman/parsers/haml_embedded.rb +44 -0
  463. data/lib/brakeman/parsers/slim_embedded.rb +44 -0
  464. data/lib/brakeman/parsers/template_parser.rb +9 -10
  465. data/lib/brakeman/processor.rb +5 -6
  466. data/lib/brakeman/processors/alias_processor.rb +71 -14
  467. data/lib/brakeman/processors/base_processor.rb +10 -7
  468. data/lib/brakeman/processors/controller_alias_processor.rb +10 -7
  469. data/lib/brakeman/processors/controller_processor.rb +10 -14
  470. data/lib/brakeman/processors/gem_processor.rb +10 -2
  471. data/lib/brakeman/processors/haml_template_processor.rb +99 -123
  472. data/lib/brakeman/processors/lib/call_conversion_helper.rb +10 -5
  473. data/lib/brakeman/processors/lib/file_type_detector.rb +64 -0
  474. data/lib/brakeman/processors/lib/find_all_calls.rb +57 -18
  475. data/lib/brakeman/processors/lib/find_call.rb +3 -64
  476. data/lib/brakeman/processors/lib/module_helper.rb +8 -8
  477. data/lib/brakeman/processors/lib/processor_helper.rb +3 -3
  478. data/lib/brakeman/processors/lib/rails2_config_processor.rb +4 -4
  479. data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -2
  480. data/lib/brakeman/processors/lib/rails3_config_processor.rb +19 -19
  481. data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -2
  482. data/lib/brakeman/processors/lib/render_helper.rb +5 -3
  483. data/lib/brakeman/processors/lib/render_path.rb +18 -1
  484. data/lib/brakeman/processors/library_processor.rb +5 -5
  485. data/lib/brakeman/processors/model_processor.rb +4 -5
  486. data/lib/brakeman/processors/output_processor.rb +6 -1
  487. data/lib/brakeman/processors/slim_template_processor.rb +16 -0
  488. data/lib/brakeman/processors/template_alias_processor.rb +36 -4
  489. data/lib/brakeman/processors/template_processor.rb +14 -10
  490. data/lib/brakeman/report.rb +22 -4
  491. data/lib/brakeman/report/ignore/config.rb +12 -5
  492. data/lib/brakeman/report/ignore/interactive.rb +2 -2
  493. data/lib/brakeman/report/pager.rb +1 -0
  494. data/lib/brakeman/report/report_base.rb +51 -8
  495. data/lib/brakeman/report/report_codeclimate.rb +3 -3
  496. data/lib/brakeman/report/report_csv.rb +37 -60
  497. data/lib/brakeman/report/report_hash.rb +1 -1
  498. data/lib/brakeman/report/report_html.rb +2 -2
  499. data/lib/brakeman/report/report_json.rb +1 -24
  500. data/lib/brakeman/report/report_junit.rb +104 -0
  501. data/lib/brakeman/report/report_markdown.rb +0 -1
  502. data/lib/brakeman/report/report_sarif.rb +114 -0
  503. data/lib/brakeman/report/report_sonar.rb +38 -0
  504. data/lib/brakeman/report/report_table.rb +20 -4
  505. data/lib/brakeman/report/report_tabs.rb +1 -1
  506. data/lib/brakeman/report/report_text.rb +43 -23
  507. data/lib/brakeman/rescanner.rb +18 -15
  508. data/lib/brakeman/scanner.rb +70 -35
  509. data/lib/brakeman/tracker.rb +44 -8
  510. data/lib/brakeman/tracker/collection.rb +4 -3
  511. data/lib/brakeman/tracker/config.rb +119 -47
  512. data/lib/brakeman/tracker/constants.rb +10 -8
  513. data/lib/brakeman/tracker/controller.rb +1 -1
  514. data/lib/brakeman/util.rb +45 -151
  515. data/lib/brakeman/version.rb +1 -1
  516. data/lib/brakeman/warning.rb +37 -15
  517. data/lib/brakeman/warning_codes.rb +13 -0
  518. data/lib/ruby_parser/bm_sexp.rb +16 -11
  519. data/lib/ruby_parser/bm_sexp_processor.rb +1 -0
  520. metadata +434 -497
  521. data/bundle/ruby/2.5.0/gems/haml-4.0.7/MIT-LICENSE +0 -20
  522. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/compiler.rb +0 -540
  523. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/error.rb +0 -61
  524. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/railtie.rb +0 -22
  525. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +0 -41
  526. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/util.rb +0 -377
  527. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/version.rb +0 -3
  528. data/bundle/ruby/2.5.0/gems/highline-1.7.10/Gemfile +0 -11
  529. data/bundle/ruby/2.5.0/gems/highline-1.7.10/INSTALL +0 -59
  530. data/bundle/ruby/2.5.0/gems/highline-1.7.10/README.rdoc +0 -74
  531. data/bundle/ruby/2.5.0/gems/highline-1.7.10/highline.gemspec +0 -37
  532. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline.rb +0 -1048
  533. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/compatibility.rb +0 -16
  534. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/import.rb +0 -41
  535. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/menu.rb +0 -381
  536. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/simulate.rb +0 -48
  537. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/string_extensions.rb +0 -111
  538. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/style.rb +0 -192
  539. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/system_extensions.rb +0 -254
  540. data/bundle/ruby/2.5.0/gems/highline-1.7.10/setup.rb +0 -1360
  541. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby20_parser.rb +0 -6687
  542. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby20_parser.y +0 -2345
  543. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby21_parser.rb +0 -6767
  544. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby22_parser.rb +0 -6803
  545. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby23_parser.rb +0 -6818
  546. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby24_parser.rb +0 -6818
  547. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby25_parser.rb +0 -6818
  548. data/bundle/ruby/2.5.0/gems/sass-3.4.25/CODE_OF_CONDUCT.md +0 -10
  549. data/bundle/ruby/2.5.0/gems/sass-3.4.25/CONTRIBUTING.md +0 -148
  550. data/bundle/ruby/2.5.0/gems/sass-3.4.25/MIT-LICENSE +0 -20
  551. data/bundle/ruby/2.5.0/gems/sass-3.4.25/README.md +0 -227
  552. data/bundle/ruby/2.5.0/gems/sass-3.4.25/REVISION +0 -1
  553. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION +0 -1
  554. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_DATE +0 -1
  555. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_NAME +0 -1
  556. data/bundle/ruby/2.5.0/gems/sass-3.4.25/extra/sass-spec-ref.sh +0 -32
  557. data/bundle/ruby/2.5.0/gems/sass-3.4.25/extra/update_watch.rb +0 -13
  558. data/bundle/ruby/2.5.0/gems/sass-3.4.25/init.rb +0 -18
  559. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass.rb +0 -109
  560. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores.rb +0 -15
  561. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/base.rb +0 -88
  562. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb +0 -34
  563. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/filesystem.rb +0 -60
  564. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/memory.rb +0 -46
  565. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/null.rb +0 -25
  566. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/callbacks.rb +0 -67
  567. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/css.rb +0 -408
  568. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/deprecation.rb +0 -55
  569. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/engine.rb +0 -1226
  570. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/environment.rb +0 -215
  571. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/error.rb +0 -198
  572. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec.rb +0 -9
  573. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/base.rb +0 -199
  574. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_convert.rb +0 -283
  575. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_scss.rb +0 -440
  576. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/features.rb +0 -47
  577. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers.rb +0 -23
  578. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/base.rb +0 -182
  579. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/deprecated_path.rb +0 -51
  580. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/filesystem.rb +0 -219
  581. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger.rb +0 -17
  582. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/base.rb +0 -36
  583. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/delayed.rb +0 -50
  584. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/log_level.rb +0 -45
  585. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/media.rb +0 -210
  586. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin.rb +0 -134
  587. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb +0 -582
  588. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/configuration.rb +0 -134
  589. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/generic.rb +0 -15
  590. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/merb.rb +0 -48
  591. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rack.rb +0 -60
  592. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rails.rb +0 -47
  593. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/staleness_checker.rb +0 -199
  594. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/railtie.rb +0 -10
  595. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/repl.rb +0 -57
  596. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/root.rb +0 -7
  597. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script.rb +0 -66
  598. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_lexer.rb +0 -33
  599. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_parser.rb +0 -33
  600. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_variable_warning.rb +0 -52
  601. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/functions.rb +0 -2693
  602. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/lexer.rb +0 -464
  603. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/parser.rb +0 -832
  604. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree.rb +0 -16
  605. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/funcall.rb +0 -313
  606. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/interpolation.rb +0 -223
  607. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/list_literal.rb +0 -104
  608. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/literal.rb +0 -49
  609. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/map_literal.rb +0 -64
  610. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/node.rb +0 -127
  611. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/operation.rb +0 -156
  612. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/selector.rb +0 -26
  613. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/string_interpolation.rb +0 -125
  614. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/unary_operation.rb +0 -69
  615. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/variable.rb +0 -57
  616. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value.rb +0 -11
  617. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb +0 -36
  618. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/base.rb +0 -241
  619. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/bool.rb +0 -35
  620. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/color.rb +0 -698
  621. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/helpers.rb +0 -272
  622. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/list.rb +0 -113
  623. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/map.rb +0 -70
  624. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/null.rb +0 -44
  625. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/number.rb +0 -563
  626. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/string.rb +0 -138
  627. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss.rb +0 -14
  628. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/css_parser.rb +0 -56
  629. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/parser.rb +0 -1254
  630. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/rx.rb +0 -140
  631. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/static_parser.rb +0 -373
  632. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector.rb +0 -323
  633. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/abstract_sequence.rb +0 -111
  634. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/comma_sequence.rb +0 -191
  635. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/pseudo.rb +0 -266
  636. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/sequence.rb +0 -636
  637. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple.rb +0 -117
  638. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple_sequence.rb +0 -344
  639. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/shared.rb +0 -76
  640. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/map.rb +0 -213
  641. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/position.rb +0 -39
  642. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/range.rb +0 -41
  643. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb +0 -120
  644. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/supports.rb +0 -225
  645. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/at_root_node.rb +0 -83
  646. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/charset_node.rb +0 -22
  647. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/comment_node.rb +0 -82
  648. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/content_node.rb +0 -9
  649. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/css_import_node.rb +0 -68
  650. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/debug_node.rb +0 -18
  651. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/directive_node.rb +0 -59
  652. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/each_node.rb +0 -24
  653. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/error_node.rb +0 -18
  654. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/extend_node.rb +0 -43
  655. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/for_node.rb +0 -36
  656. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/function_node.rb +0 -44
  657. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/if_node.rb +0 -52
  658. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/import_node.rb +0 -75
  659. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/keyframe_rule_node.rb +0 -15
  660. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/media_node.rb +0 -48
  661. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_def_node.rb +0 -38
  662. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_node.rb +0 -52
  663. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/node.rb +0 -240
  664. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/prop_node.rb +0 -170
  665. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/return_node.rb +0 -19
  666. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/root_node.rb +0 -44
  667. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/rule_node.rb +0 -155
  668. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/supports_node.rb +0 -38
  669. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/trace_node.rb +0 -33
  670. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/variable_node.rb +0 -36
  671. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/base.rb +0 -72
  672. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/check_nesting.rb +0 -173
  673. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/convert.rb +0 -351
  674. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/cssize.rb +0 -373
  675. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/deep_copy.rb +0 -107
  676. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/extend.rb +0 -70
  677. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb +0 -564
  678. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/set_options.rb +0 -139
  679. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/to_css.rb +0 -409
  680. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/warn_node.rb +0 -18
  681. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/while_node.rb +0 -18
  682. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util.rb +0 -1375
  683. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/cross_platform_random.rb +0 -19
  684. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/multibyte_string_scanner.rb +0 -155
  685. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/normalized_map.rb +0 -129
  686. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/ordered_hash.rb +0 -192
  687. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/subset_map.rb +0 -109
  688. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/test.rb +0 -9
  689. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/version.rb +0 -124
  690. data/bundle/ruby/2.5.0/gems/sass-3.4.25/rails/init.rb +0 -1
  691. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/CHANGELOG.md +0 -1
  692. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/CONTRIBUTING.md +0 -38
  693. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Gemfile +0 -20
  694. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Guardfile +0 -8
  695. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/README.md +0 -349
  696. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Rakefile +0 -5
  697. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Vagrantfile +0 -96
  698. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen.rb +0 -54
  699. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapter.rb +0 -327
  700. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/bsd.rb +0 -75
  701. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/darwin.rb +0 -48
  702. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/linux.rb +0 -81
  703. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/polling.rb +0 -58
  704. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/windows.rb +0 -91
  705. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/directory_record.rb +0 -406
  706. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb +0 -323
  707. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/turnstile.rb +0 -32
  708. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/version.rb +0 -3
  709. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/listen.gemspec +0 -28
  710. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapter_spec.rb +0 -149
  711. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -36
  712. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -37
  713. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -47
  714. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/polling_spec.rb +0 -68
  715. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/windows_spec.rb +0 -30
  716. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/directory_record_spec.rb +0 -1250
  717. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/listener_spec.rb +0 -258
  718. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/turnstile_spec.rb +0 -56
  719. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen_spec.rb +0 -67
  720. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/spec_helper.rb +0 -25
  721. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/adapter_helper.rb +0 -666
  722. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/directory_record_helper.rb +0 -57
  723. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/fixtures_helper.rb +0 -29
  724. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/listeners_helper.rb +0 -179
  725. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/platform_helper.rb +0 -15
  726. data/bundle/ruby/2.5.0/gems/temple-0.8.0/lib/temple/version.rb +0 -3
  727. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/CHANGELOG.md +0 -132
  728. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/Gemfile +0 -70
  729. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/HACKING +0 -16
  730. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/README.md +0 -233
  731. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/tilt.gemspec +0 -130
  732. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.1/data/display_width.marshal.gz +0 -0
@@ -22,35 +22,35 @@ token kCLASS kMODULE kDEF kUNDEF kBEGIN kRESCUE kENSURE kEND kIF kUNLESS
22
22
  tRATIONAL tIMAGINARY
23
23
  tLABEL_END
24
24
 
25
- prechigh
26
- right tBANG tTILDE tUPLUS
27
- right tPOW
28
- right tUMINUS_NUM tUMINUS
29
- left tSTAR2 tDIVIDE tPERCENT
30
- left tPLUS tMINUS
31
- left tLSHFT tRSHFT
32
- left tAMPER2
33
- left tPIPE tCARET
34
- left tGT tGEQ tLT tLEQ
35
- nonassoc tCMP tEQ tEQQ tNEQ tMATCH tNMATCH
36
- left tANDOP
37
- left tOROP
38
- nonassoc tDOT2 tDOT3
39
- right tEH tCOLON
40
- left kRESCUE_MOD
41
- right tEQL tOP_ASGN
42
- nonassoc kDEFINED
43
- right kNOT
44
- left kOR kAND
45
- nonassoc kIF_MOD kUNLESS_MOD kWHILE_MOD kUNTIL_MOD
46
- nonassoc tLBRACE_ARG
47
- nonassoc tLOWEST
48
25
  preclow
26
+ nonassoc tLOWEST
27
+ nonassoc tLBRACE_ARG
28
+ nonassoc kIF_MOD kUNLESS_MOD kWHILE_MOD kUNTIL_MOD
29
+ left kOR kAND
30
+ right kNOT
31
+ nonassoc kDEFINED
32
+ right tEQL tOP_ASGN
33
+ left kRESCUE_MOD
34
+ right tEH tCOLON
35
+ nonassoc tDOT2 tDOT3
36
+ left tOROP
37
+ left tANDOP
38
+ nonassoc tCMP tEQ tEQQ tNEQ tMATCH tNMATCH
39
+ left tGT tGEQ tLT tLEQ
40
+ left tPIPE tCARET
41
+ left tAMPER2
42
+ left tLSHFT tRSHFT
43
+ left tPLUS tMINUS
44
+ left tSTAR2 tDIVIDE tPERCENT # TODO: tSTAR2 -> tMULT
45
+ right tUMINUS_NUM tUMINUS
46
+ right tPOW
47
+ right tBANG tTILDE tUPLUS
48
+ prechigh
49
49
 
50
50
  rule
51
51
 
52
52
  program: {
53
- self.lexer.lex_state = :expr_beg
53
+ self.lexer.lex_state = EXPR_BEG
54
54
  }
55
55
  top_compstmt
56
56
  {
@@ -59,7 +59,8 @@ rule
59
59
 
60
60
  top_compstmt: top_stmts opt_terms
61
61
  {
62
- result = val[0]
62
+ stmt, _ = val
63
+ result = stmt
63
64
  }
64
65
 
65
66
  top_stmts: none
@@ -71,14 +72,6 @@ rule
71
72
  | error top_stmt
72
73
 
73
74
  top_stmt: stmt
74
- {
75
- result = val[0]
76
-
77
- # TODO: remove once I have more confidence this is fixed
78
- # result.each_of_type :call_args do |s|
79
- # debug20 666, s, result
80
- # end
81
- }
82
75
  | klBEGIN
83
76
  {
84
77
  if (self.in_def || self.in_single > 0) then
@@ -87,14 +80,40 @@ rule
87
80
  end
88
81
  self.env.extend
89
82
  }
90
- tLCURLY top_compstmt tRCURLY
83
+ begin_block
84
+ {
85
+ (_, lineno), _, iter = val
86
+ iter.line lineno
87
+
88
+ (_, preexe,) = iter
89
+ preexe.line lineno
90
+
91
+ result = iter
92
+ }
93
+
94
+ begin_block: tLCURLY { result = lexer.lineno } top_compstmt tRCURLY
91
95
  {
92
- result = new_iter s(:preexe), nil, val[3]
96
+ _, line, stmt, _ = val
97
+ result = new_iter s(:preexe).line(line), 0, stmt
93
98
  }
94
99
 
95
- bodystmt: compstmt opt_rescue opt_else opt_ensure
100
+ bodystmt: compstmt opt_rescue k_else
96
101
  {
97
- result = new_body val
102
+ res = _values[-2]
103
+ yyerror "else without rescue is useless" unless res
104
+ }
105
+ compstmt
106
+ opt_ensure
107
+ {
108
+ body, resc, _, _, els, ens = val
109
+
110
+ result = new_body [body, resc, els, ens]
111
+ }
112
+ | compstmt opt_rescue opt_ensure
113
+ {
114
+ body, resc, ens = val
115
+
116
+ result = new_body [body, resc, nil, ens]
98
117
  }
99
118
 
100
119
  compstmt: stmts opt_terms
@@ -103,8 +122,8 @@ rule
103
122
  }
104
123
 
105
124
  stmts: none
106
- | stmt
107
- | stmts terms stmt
125
+ | stmt_or_begin # TODO: newline_node ?
126
+ | stmts terms stmt_or_begin
108
127
  {
109
128
  result = self.block_append val[0], val[2]
110
129
  }
@@ -114,22 +133,30 @@ rule
114
133
  debug20 2, val, result
115
134
  }
116
135
 
136
+ stmt_or_begin: stmt
137
+ | klBEGIN
138
+ {
139
+ yyerror "BEGIN is permitted only at toplevel"
140
+ }
141
+
117
142
  stmt: kALIAS fitem
118
143
  {
119
- lexer.lex_state = :expr_fname
120
- result = self.lexer.lineno
144
+ lexer.lex_state = EXPR_FNAME
121
145
  }
122
146
  fitem
123
147
  {
124
- result = s(:alias, val[1], val[3]).line(val[2])
148
+ (_, line), lhs, _, rhs = val
149
+ result = s(:alias, lhs, rhs).line(line).line line
125
150
  }
126
151
  | kALIAS tGVAR tGVAR
127
152
  {
128
- result = s(:valias, val[1].to_sym, val[2].to_sym)
153
+ (_, line), lhs, rhs = val
154
+ result = s(:valias, lhs.to_sym, rhs.to_sym).line line
129
155
  }
130
156
  | kALIAS tGVAR tBACK_REF
131
157
  {
132
- result = s(:valias, val[1].to_sym, :"$#{val[2]}")
158
+ (_, line), lhs, rhs = val
159
+ result = s(:valias, lhs.to_sym, :"$#{rhs}").line line
133
160
  }
134
161
  | kALIAS tGVAR tNTH_REF
135
162
  {
@@ -141,54 +168,84 @@ rule
141
168
  }
142
169
  | stmt kIF_MOD expr_value
143
170
  {
144
- result = new_if val[2], val[0], nil
171
+ t, _, c = val
172
+ result = new_if c, t, nil
145
173
  }
146
174
  | stmt kUNLESS_MOD expr_value
147
175
  {
148
- result = new_if val[2], nil, val[0]
176
+ f, _, c = val
177
+ result = new_if c, nil, f
149
178
  }
150
179
  | stmt kWHILE_MOD expr_value
151
180
  {
152
- result = new_while val[0], val[2], true
181
+ e, _, c = val
182
+ result = new_while e, c, true
153
183
  }
154
184
  | stmt kUNTIL_MOD expr_value
155
185
  {
156
- result = new_until val[0], val[2], true
186
+ e, _, c = val
187
+ result = new_until e, c, true
157
188
  }
158
189
  | stmt kRESCUE_MOD stmt
159
190
  {
160
- result = s(:rescue, val[0], new_resbody(s(:array), val[2]))
191
+ body, _, resbody = val
192
+
193
+ resbody = new_resbody s(:array).line(resbody.line), resbody
194
+ result = new_rescue body, resbody
161
195
  }
162
196
  | klEND tLCURLY compstmt tRCURLY
163
197
  {
198
+ (_, line), _, stmt, _ = val
199
+
164
200
  if (self.in_def || self.in_single > 0) then
165
201
  debug20 3
166
202
  yyerror "END in method; use at_exit"
167
203
  end
168
- result = new_iter s(:postexe), 0, val[2]
204
+
205
+ result = new_iter s(:postexe).line(line), 0, stmt
169
206
  }
170
207
  | command_asgn
171
208
  | mlhs tEQL command_call
172
209
  {
173
210
  result = new_masgn val[0], val[2], :wrap
174
211
  }
175
- | var_lhs tOP_ASGN command_call
212
+ | lhs tEQL mrhs
213
+ {
214
+ lhs, _, rhs = val
215
+ result = new_assign lhs, s(:svalue, rhs).line(rhs.line)
216
+ }
217
+ | mlhs tEQL mrhs_arg
218
+ {
219
+ result = new_masgn val[0], val[2]
220
+ }
221
+ | expr
222
+
223
+ command_asgn: lhs tEQL command_rhs
224
+ {
225
+ result = new_assign val[0], val[2]
226
+ }
227
+ # | lhs tEQL command_asgn
228
+ # {
229
+ # result = new_assign val[0], val[2]
230
+ # }
231
+ | var_lhs tOP_ASGN command_rhs
176
232
  {
177
233
  result = new_op_asgn val
178
234
  }
179
- | primary_value tLBRACK2 opt_call_args rbracket tOP_ASGN command_call
235
+ | primary_value tLBRACK2 opt_call_args rbracket tOP_ASGN command_rhs
180
236
  {
181
- result = s(:op_asgn1, val[0], val[2], val[4].to_sym, val[5])
237
+ result = new_op_asgn1 val
182
238
  }
183
- | primary_value call_op tIDENTIFIER tOP_ASGN command_call
239
+ | primary_value call_op tIDENTIFIER tOP_ASGN command_rhs
184
240
  {
185
- result = s(:op_asgn, val[0], val[4], val[2].to_sym, val[3].to_sym)
241
+ prim, _, id, opasgn, rhs = val
242
+ result = s(:op_asgn, prim, rhs, id.to_sym, opasgn.to_sym)
186
243
  if val[1] == '&.'
187
244
  result.sexp_type = :safe_op_asgn
188
245
  end
189
246
  result.line = val[0].line
190
247
  }
191
- | primary_value call_op tCONSTANT tOP_ASGN command_call
248
+ | primary_value call_op tCONSTANT tOP_ASGN command_rhs
192
249
  {
193
250
  result = s(:op_asgn, val[0], val[4], val[2].to_sym, val[3].to_sym)
194
251
  if val[1] == '&.'
@@ -196,55 +253,53 @@ rule
196
253
  end
197
254
  result.line = val[0].line
198
255
  }
199
- | primary_value tCOLON2 tCONSTANT tOP_ASGN command_call
256
+ | primary_value tCOLON2 tCONSTANT tOP_ASGN command_rhs
200
257
  {
201
- result = s(:op_asgn, val[0], val[4], val[2], val[3])
202
- debug20 4, val, result
258
+ lhs1, _, lhs2, op, rhs = val
259
+
260
+ result = s(:op_asgn, lhs1, rhs, lhs2.to_sym, op.to_sym)
203
261
  }
204
- | primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_call
262
+ | primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_rhs
205
263
  {
206
- result = s(:op_asgn, val[0], val[4], val[2], val[3])
207
- debug20 5, val, result
264
+ lhs1, _, lhs2, op, rhs = val
265
+
266
+ result = s(:op_asgn, lhs1, rhs, lhs2.to_sym, op.to_sym)
208
267
  }
209
- | backref tOP_ASGN command_call
268
+ | backref tOP_ASGN command_rhs
210
269
  {
211
270
  self.backref_assign_error val[0]
212
271
  }
213
- | lhs tEQL mrhs
214
- {
215
- result = new_assign val[0], s(:svalue, val[2])
216
- }
217
- | mlhs tEQL mrhs_arg
218
- {
219
- result = new_masgn val[0], val[2]
220
- }
221
- | expr
222
272
 
223
- command_asgn: lhs tEQL command_call
224
- {
225
- result = new_assign val[0], val[2]
226
- }
227
- | lhs tEQL command_asgn
273
+ command_rhs: command_call =tOP_ASGN
228
274
  {
229
- result = new_assign val[0], val[2]
275
+ expr, = val
276
+ result = value_expr expr
230
277
  }
278
+ | command_asgn
231
279
 
232
280
  expr: command_call
233
281
  | expr kAND expr
234
282
  {
235
- result = logical_op :and, val[0], val[2]
283
+ lhs, _, rhs = val
284
+ result = logical_op :and, lhs, rhs
236
285
  }
237
286
  | expr kOR expr
238
287
  {
239
- result = logical_op :or, val[0], val[2]
288
+ lhs, _, rhs = val
289
+ result = logical_op :or, lhs, rhs
240
290
  }
241
291
  | kNOT opt_nl expr
242
292
  {
243
- result = s(:call, val[2], :"!")
293
+ (_, line), _, expr = val
294
+ result = new_call(expr, :"!").line line
295
+ # REFACTOR: call_uni_op
244
296
  }
245
297
  | tBANG command_call
246
298
  {
247
- result = s(:call, val[1], :"!")
299
+ _, cmd = val
300
+ result = new_call(cmd, :"!").line cmd.line
301
+ # TODO: fix line number to tBANG... but causes BAD shift/reduce conflict
302
+ # REFACTOR: call_uni_op -- see parse26.y
248
303
  }
249
304
  | arg
250
305
 
@@ -253,54 +308,71 @@ rule
253
308
  result = value_expr(val[0])
254
309
  }
255
310
 
311
+ expr_value_do: {
312
+ lexer.cond.push true
313
+ }
314
+ expr_value do
315
+ {
316
+ lexer.cond.pop
317
+ }
318
+ {
319
+ _, expr, _, _ = val
320
+ result = expr
321
+ }
322
+
256
323
  command_call: command
257
324
  | block_command
258
325
 
259
326
  block_command: block_call
260
- | block_call dot_or_colon operation2 command_args
327
+ | block_call call_op2 operation2 command_args
261
328
  {
262
- result = new_call val[0], val[2].to_sym, val[3]
329
+ blk, _, msg, args = val
330
+ result = new_call(blk, msg.to_sym, args).line blk.line
263
331
  }
264
332
 
265
333
  cmd_brace_block: tLBRACE_ARG
266
334
  {
267
- self.env.extend(:dynamic)
335
+ # self.env.extend(:dynamic)
268
336
  result = self.lexer.lineno
269
337
  }
270
- opt_block_param
271
- {
272
- result = nil # self.env.dynamic.keys
273
- }
274
- compstmt tRCURLY
338
+ brace_body tRCURLY
275
339
  {
276
- result = new_iter nil, val[2], val[4]
277
- result.line = val[1]
340
+ _, line, body, _ = val
278
341
 
279
- self.env.unextend
342
+ result = body
343
+ result.line = line
344
+
345
+ # self.env.unextend
280
346
  }
281
347
 
282
348
  fcall: operation
283
349
  {
284
- result = new_call nil, val[0].to_sym
350
+ msg, = val
351
+ result = new_call(nil, msg.to_sym).line lexer.lineno
285
352
  }
286
353
 
287
354
  command: fcall command_args =tLOWEST
288
355
  {
289
- result = val[0].concat val[1].sexp_body # REFACTOR pattern
356
+ call, args = val
357
+ result = call.concat args.sexp_body
290
358
  }
291
359
  | fcall command_args cmd_brace_block
292
360
  {
293
- result = val[0].concat val[1].sexp_body
294
- if val[2] then
295
- block_dup_check result, val[2]
361
+ call, args, block = val
362
+
363
+ result = call.concat args.sexp_body
364
+
365
+ if block then
366
+ block_dup_check result, block
296
367
 
297
- result, operation = val[2], result
368
+ result, operation = block, result
298
369
  result.insert 1, operation
299
370
  end
300
371
  }
301
372
  | primary_value call_op operation2 command_args =tLOWEST
302
373
  {
303
- result = new_call val[0], val[2].to_sym, val[3], val[1]
374
+ lhs, callop, op, args = val
375
+ result = new_call lhs, op.to_sym, args, callop
304
376
  }
305
377
  | primary_value call_op operation2 command_args cmd_brace_block
306
378
  {
@@ -332,17 +404,19 @@ rule
332
404
  }
333
405
  | kYIELD command_args
334
406
  {
335
- result = new_yield val[1]
407
+ (_, line), args = val
408
+ result = new_yield args
409
+ result.line line # TODO: push to new_yield
336
410
  }
337
- | kRETURN call_args
411
+ | k_return call_args
338
412
  {
339
413
  line = val[0].last
340
414
  result = s(:return, ret_args(val[1])).line(line)
341
415
  }
342
416
  | kBREAK call_args
343
417
  {
344
- line = val[0].last
345
- result = s(:break, ret_args(val[1])).line(line)
418
+ (_, line), args = val
419
+ result = s(:break, ret_args(args)).line line
346
420
  }
347
421
  | kNEXT call_args
348
422
  {
@@ -359,56 +433,79 @@ rule
359
433
  mlhs_inner: mlhs_basic
360
434
  | tLPAREN mlhs_inner rparen
361
435
  {
362
- result = s(:masgn, s(:array, val[1]))
436
+ _, arg, _ = val
437
+ l = arg.line
438
+
439
+ result = s(:masgn, s(:array, arg).line(l)).line l
363
440
  }
364
441
 
365
442
  mlhs_basic: mlhs_head
366
443
  {
367
- result = s(:masgn, val[0])
444
+ head, = val
445
+ result = s(:masgn, head).line head.line
368
446
  }
369
447
  | mlhs_head mlhs_item
370
448
  {
371
- result = s(:masgn, val[0] << val[1].compact)
449
+ lhs, rhs = val
450
+ result = s(:masgn, lhs << rhs.compact).line lhs.line
372
451
  }
373
452
  | mlhs_head tSTAR mlhs_node
374
453
  {
375
- result = s(:masgn, val[0] << s(:splat, val[2]))
454
+ head, _, tail = val
455
+ head << s(:splat, tail).line(tail.line)
456
+ result = s(:masgn, head).line head.line
376
457
  }
377
458
  | mlhs_head tSTAR mlhs_node tCOMMA mlhs_post
378
459
  {
379
460
  ary1, _, splat, _, ary2 = val
380
461
 
381
- result = list_append ary1, s(:splat, splat)
462
+ result = list_append ary1, s(:splat, splat).line(splat.line)
382
463
  result.concat ary2.sexp_body
383
- result = s(:masgn, result)
464
+ result = s(:masgn, result).line result.line
384
465
  }
385
466
  | mlhs_head tSTAR
386
467
  {
387
- result = s(:masgn, val[0] << s(:splat))
468
+ head, _ = val
469
+ l = head.line
470
+ result = s(:masgn, head << s(:splat).line(l)).line l
388
471
  }
389
472
  | mlhs_head tSTAR tCOMMA mlhs_post
390
473
  {
391
- ary = list_append val[0], s(:splat)
392
- ary.concat val[3].sexp_body
393
- result = s(:masgn, ary)
474
+ head, _, _, post = val
475
+ ary = list_append head, s(:splat).line(head.line)
476
+ ary.concat post.sexp_body
477
+ result = s(:masgn, ary).line ary.line
394
478
  }
395
479
  | tSTAR mlhs_node
396
480
  {
397
- result = s(:masgn, s(:array, s(:splat, val[1])))
481
+ _, node = val
482
+ l = node.line
483
+ splat = s(:splat, node).line l
484
+ ary = s(:array, splat).line l
485
+ result = s(:masgn, ary).line l
398
486
  }
399
487
  | tSTAR mlhs_node tCOMMA mlhs_post
400
488
  {
401
- ary = s(:array, s(:splat, val[1]))
402
- ary.concat val[3].sexp_body
403
- result = s(:masgn, ary)
489
+ _, node, _, post = val
490
+
491
+ splat = s(:splat, node).line node.line
492
+ ary = s(:array, splat).line splat.line
493
+ ary.concat post.sexp_body
494
+ result = s(:masgn, ary).line ary.line
404
495
  }
405
496
  | tSTAR
406
497
  {
407
- result = s(:masgn, s(:array, s(:splat)))
498
+ l = lexer.lineno
499
+ result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l
408
500
  }
409
501
  | tSTAR tCOMMA mlhs_post
410
502
  {
411
- result = s(:masgn, s(:array, s(:splat), *val[2].sexp_body))
503
+ _, _, post = val
504
+ l = post.line
505
+
506
+ splat = s(:splat).line l
507
+ ary = s(:array, splat, *post.sexp_body).line l
508
+ result = s(:masgn, ary).line l
412
509
  }
413
510
 
414
511
  mlhs_item: mlhs_node
@@ -419,7 +516,8 @@ rule
419
516
 
420
517
  mlhs_head: mlhs_item tCOMMA
421
518
  {
422
- result = s(:array, val[0])
519
+ lhs, _ = val
520
+ result = s(:array, lhs).line lhs.line
423
521
  }
424
522
  | mlhs_head mlhs_item tCOMMA
425
523
  {
@@ -428,7 +526,8 @@ rule
428
526
 
429
527
  mlhs_post: mlhs_item
430
528
  {
431
- result = s(:array, val[0])
529
+ item, = val
530
+ result = s(:array, item).line item.line
432
531
  }
433
532
  | mlhs_post tCOMMA mlhs_item
434
533
  {
@@ -453,7 +552,8 @@ rule
453
552
  }
454
553
  | primary_value tCOLON2 tIDENTIFIER
455
554
  {
456
- result = s(:attrasgn, val[0], :"#{val[2]}=")
555
+ recv, _, id = val
556
+ result = new_attrasgn recv, id
457
557
  }
458
558
  | primary_value call_op tCONSTANT
459
559
  {
@@ -466,7 +566,10 @@ rule
466
566
  yyerror "dynamic constant assignment"
467
567
  end
468
568
 
469
- result = s(:const, s(:colon2, val[0], val[2].to_sym), nil)
569
+ expr, _, id = val
570
+ l = expr.line
571
+
572
+ result = s(:const, s(:colon2, expr, id.to_sym).line(l), nil).line l
470
573
  }
471
574
  | tCOLON3 tCONSTANT
472
575
  {
@@ -475,7 +578,10 @@ rule
475
578
  yyerror "dynamic constant assignment"
476
579
  end
477
580
 
478
- result = s(:const, nil, s(:colon3, val[1].to_sym))
581
+ _, id = val
582
+ l = lexer.lineno
583
+
584
+ result = s(:const, nil, s(:colon3, id.to_sym).line(l)).line l
479
585
  }
480
586
  | backref
481
587
  {
@@ -484,24 +590,31 @@ rule
484
590
 
485
591
  lhs: user_variable
486
592
  {
593
+ line = lexer.lineno
487
594
  result = self.assignable val[0]
595
+ result.line = line
488
596
  }
489
597
  | keyword_variable
490
598
  {
599
+ line = lexer.lineno
491
600
  result = self.assignable val[0]
601
+ result.line = line
492
602
  debug20 9, val, result
493
603
  }
494
604
  | primary_value tLBRACK2 opt_call_args rbracket
495
605
  {
496
- result = self.aryset val[0], val[2]
606
+ lhs, _, args, _ = val
607
+ result = self.aryset lhs, args
497
608
  }
498
609
  | primary_value call_op tIDENTIFIER # REFACTOR
499
610
  {
500
- result = new_attrasgn val[0], val[2], val[1]
611
+ lhs, op, id = val
612
+ result = new_attrasgn lhs, id, op
501
613
  }
502
614
  | primary_value tCOLON2 tIDENTIFIER
503
615
  {
504
- result = s(:attrasgn, val[0], :"#{val[2]}=")
616
+ lhs, _, id = val
617
+ result = new_attrasgn lhs, id
505
618
  }
506
619
  | primary_value call_op tCONSTANT # REFACTOR?
507
620
  {
@@ -509,21 +622,27 @@ rule
509
622
  }
510
623
  | primary_value tCOLON2 tCONSTANT
511
624
  {
625
+ expr, _, id = val
626
+
512
627
  if (self.in_def || self.in_single > 0) then
513
628
  debug20 10
514
629
  yyerror "dynamic constant assignment"
515
630
  end
516
631
 
517
- result = s(:const, s(:colon2, val[0], val[2].to_sym))
632
+ l = expr.line
633
+ result = s(:const, s(:colon2, expr, id.to_sym).line(l)).line l
518
634
  }
519
635
  | tCOLON3 tCONSTANT
520
636
  {
637
+ _, id = val
638
+
521
639
  if (self.in_def || self.in_single > 0) then
522
640
  debug20 11
523
641
  yyerror "dynamic constant assignment"
524
642
  end
525
643
 
526
- result = s(:const, s(:colon3, val[1].to_sym))
644
+ l = lexer.lineno
645
+ result = s(:const, s(:colon3, id.to_sym).line(l)).line l
527
646
  }
528
647
  | backref
529
648
  {
@@ -538,7 +657,8 @@ rule
538
657
 
539
658
  cpath: tCOLON3 cname
540
659
  {
541
- result = s(:colon3, val[1].to_sym)
660
+ _, name = val
661
+ result = s(:colon3, name.to_sym).line lexer.lineno
542
662
  }
543
663
  | cname
544
664
  {
@@ -546,27 +666,32 @@ rule
546
666
  }
547
667
  | primary_value tCOLON2 cname
548
668
  {
549
- result = s(:colon2, val[0], val[2].to_sym)
669
+ pval, _, name = val
670
+
671
+ result = s(:colon2, pval, name.to_sym)
672
+ result.line pval.line
550
673
  }
551
674
 
552
675
  fname: tIDENTIFIER | tCONSTANT | tFID
553
676
  | op
554
677
  {
555
- lexer.lex_state = :expr_end
678
+ lexer.lex_state = EXPR_END
556
679
  result = val[0]
557
680
  }
558
681
 
559
682
  | reswords
560
683
  {
561
- lexer.lex_state = :expr_end
562
- result = val[0]
684
+ (sym, _line), = val
685
+ lexer.lex_state = EXPR_END
686
+ result = sym
563
687
  }
564
688
 
565
689
  fsym: fname | symbol
566
690
 
567
691
  fitem: fsym
568
692
  {
569
- result = s(:lit, val[0].to_sym)
693
+ id, = val
694
+ result = s(:lit, id.to_sym).line lexer.lineno
570
695
  }
571
696
  | dsym
572
697
 
@@ -577,7 +702,7 @@ rule
577
702
  |
578
703
  undef_list tCOMMA
579
704
  {
580
- lexer.lex_state = :expr_fname
705
+ lexer.lex_state = EXPR_FNAME
581
706
  }
582
707
  fitem
583
708
  {
@@ -589,6 +714,8 @@ rule
589
714
  | tNEQ | tLSHFT | tRSHFT | tPLUS | tMINUS | tSTAR2
590
715
  | tSTAR | tDIVIDE | tPERCENT | tPOW | tDSTAR | tBANG | tTILDE
591
716
  | tUPLUS | tUMINUS | tAREF | tASET | tBACK_REF2
717
+ # TODO: tUBANG dead?
718
+ | tUBANG
592
719
 
593
720
  reswords: k__LINE__ | k__FILE__ | k__ENCODING__ | klBEGIN | klEND
594
721
  | kALIAS | kAND | kBEGIN | kBREAK | kCASE
@@ -600,68 +727,72 @@ rule
600
727
  | kWHEN | kYIELD | kIF | kUNLESS | kWHILE
601
728
  | kUNTIL
602
729
 
603
- arg: lhs tEQL arg
730
+ arg: lhs tEQL arg_rhs
604
731
  {
605
732
  result = new_assign val[0], val[2]
606
733
  }
607
- | lhs tEQL arg kRESCUE_MOD arg
608
- {
609
- result = new_assign val[0], s(:rescue, val[2], new_resbody(s(:array), val[4]))
610
- }
611
- | var_lhs tOP_ASGN arg
734
+ | var_lhs tOP_ASGN arg_rhs
612
735
  {
613
736
  result = new_op_asgn val
614
737
  }
615
- | var_lhs tOP_ASGN arg kRESCUE_MOD arg
738
+ | primary_value tLBRACK2 opt_call_args rbracket tOP_ASGN arg_rhs
616
739
  {
617
- result = new_op_asgn val
618
- result = s(:rescue, result, new_resbody(s(:array), val[4]))
740
+ result = new_op_asgn1 val
619
741
  }
620
- | primary_value tLBRACK2 opt_call_args rbracket tOP_ASGN arg
742
+ | primary_value call_op tIDENTIFIER tOP_ASGN arg_rhs
621
743
  {
622
- val[2].sexp_type = :arglist if val[2]
623
- result = s(:op_asgn1, val[0], val[2], val[4].to_sym, val[5])
744
+ result = new_op_asgn2 val
624
745
  }
625
- | primary_value call_op tIDENTIFIER tOP_ASGN arg
746
+ | primary_value call_op tCONSTANT tOP_ASGN arg_rhs
626
747
  {
627
748
  result = new_op_asgn2 val
628
749
  }
629
- | primary_value call_op tCONSTANT tOP_ASGN arg
750
+ | primary_value tCOLON2 tIDENTIFIER tOP_ASGN arg_rhs
630
751
  {
631
- result = new_op_asgn2 val
752
+ lhs, _, id, op, rhs = val
753
+
754
+ result = s(:op_asgn, lhs, rhs, id.to_sym, op.to_sym).line lhs.line
632
755
  }
633
- | primary_value tCOLON2 tIDENTIFIER tOP_ASGN arg
756
+ | primary_value tCOLON2 tCONSTANT tOP_ASGN arg_rhs
634
757
  {
635
- result = s(:op_asgn, val[0], val[4], val[2].to_sym, val[3].to_sym)
758
+ lhs1, _, lhs2, op, rhs = val
759
+
760
+ lhs = s(:colon2, lhs1, lhs2.to_sym).line lhs1.line
761
+ result = new_const_op_asgn [lhs, op, rhs]
636
762
  }
637
- | primary_value tCOLON2 tCONSTANT tOP_ASGN arg
763
+ | tCOLON3 tCONSTANT
638
764
  {
639
- yyerror "constant re-assignment"
765
+ result = self.lexer.lineno
640
766
  }
641
- | tCOLON3 tCONSTANT tOP_ASGN arg
767
+ tOP_ASGN arg_rhs
642
768
  {
643
- yyerror "constant re-assignment"
769
+ _, lhs, line, op, rhs = val
770
+
771
+ lhs = s(:colon3, lhs.to_sym).line line
772
+ result = new_const_op_asgn [lhs, op, rhs]
644
773
  }
645
- | backref tOP_ASGN arg
774
+ | backref tOP_ASGN arg_rhs
646
775
  {
647
- self.backref_assign_error val[0]
776
+ # TODO: lhs = var_field val[0]
777
+ asgn = new_op_asgn val
778
+ result = self.backref_assign_error asgn
648
779
  }
649
780
  | arg tDOT2 arg
650
781
  {
651
782
  v1, v2 = val[0], val[2]
652
783
  if v1.node_type == :lit and v2.node_type == :lit and Integer === v1.last and Integer === v2.last then
653
- result = s(:lit, (v1.last)..(v2.last))
784
+ result = s(:lit, (v1.last)..(v2.last)).line v1.line
654
785
  else
655
- result = s(:dot2, v1, v2)
786
+ result = s(:dot2, v1, v2).line v1.line
656
787
  end
657
788
  }
658
789
  | arg tDOT3 arg
659
790
  {
660
791
  v1, v2 = val[0], val[2]
661
792
  if v1.node_type == :lit and v2.node_type == :lit and Integer === v1.last and Integer === v2.last then
662
- result = s(:lit, (v1.last)...(v2.last))
793
+ result = s(:lit, (v1.last)...(v2.last)).line v1.line
663
794
  else
664
- result = s(:dot3, v1, v2)
795
+ result = s(:dot3, v1, v2).line v1.line
665
796
  end
666
797
  }
667
798
  | arg tPLUS arg
@@ -690,7 +821,9 @@ rule
690
821
  }
691
822
  | tUMINUS_NUM simple_numeric tPOW arg
692
823
  {
693
- result = new_call(new_call(s(:lit, val[1]), :"**", argl(val[3])), :"-@")
824
+ lit = s(:lit, val[1]).line lexer.lineno
825
+ result = new_call(new_call(lit, :"**", argl(val[3])), :"-@")
826
+
694
827
  }
695
828
  | tUPLUS arg
696
829
  {
@@ -716,22 +849,7 @@ rule
716
849
  {
717
850
  result = new_call val[0], :"<=>", argl(val[2])
718
851
  }
719
- | arg tGT arg
720
- {
721
- result = new_call val[0], :">", argl(val[2])
722
- }
723
- | arg tGEQ arg
724
- {
725
- result = new_call val[0], :">=", argl(val[2])
726
- }
727
- | arg tLT arg
728
- {
729
- result = new_call val[0], :"<", argl(val[2])
730
- }
731
- | arg tLEQ arg
732
- {
733
- result = new_call val[0], :"<=", argl(val[2])
734
- }
852
+ | rel_expr =tCMP
735
853
  | arg tEQ arg
736
854
  {
737
855
  result = new_call val[0], :"==", argl(val[2])
@@ -746,15 +864,19 @@ rule
746
864
  }
747
865
  | arg tMATCH arg
748
866
  {
749
- result = new_match val[0], val[2]
867
+ lhs, _, rhs = val
868
+ result = new_match lhs, rhs
750
869
  }
751
870
  | arg tNMATCH arg
752
871
  {
753
- result = s(:not, new_match(val[0], val[2]))
872
+ lhs, _, rhs = val
873
+ result = s(:not, new_match(lhs, rhs)).line lhs.line
754
874
  }
755
875
  | tBANG arg
756
876
  {
757
- result = new_call val[1], :"!"
877
+ _, arg = val
878
+ result = new_call arg, :"!"
879
+ result.line arg.line
758
880
  }
759
881
  | tTILDE arg
760
882
  {
@@ -782,14 +904,33 @@ rule
782
904
  }
783
905
  | kDEFINED opt_nl arg
784
906
  {
785
- result = s(:defined, val[2])
907
+ (_, line), _, arg = val
908
+ result = s(:defined, arg).line line
786
909
  }
787
910
  | arg tEH arg opt_nl tCOLON arg
788
911
  {
789
- result = s(:if, val[0], val[2], val[5])
912
+ c, _, t, _, _, f = val
913
+ result = s(:if, c, t, f).line c.line
790
914
  }
791
915
  | primary
792
916
 
917
+ relop: tGT
918
+ | tLT
919
+ | tGEQ
920
+ | tLEQ
921
+
922
+ rel_expr: arg relop arg =tGT
923
+ {
924
+ lhs, op, rhs = val
925
+ result = new_call lhs, op.to_sym, argl(rhs)
926
+ }
927
+ | rel_expr relop arg =tGT
928
+ {
929
+ lhs, op, rhs = val
930
+ warn "comparison '%s' after comparison", op
931
+ result = new_call lhs, op.to_sym, argl(rhs)
932
+ }
933
+
793
934
  arg_value: arg
794
935
  {
795
936
  result = value_expr(val[0])
@@ -809,22 +950,28 @@ rule
809
950
  result = args [array_to_hash(val[0])]
810
951
  }
811
952
 
953
+ arg_rhs: arg =tOP_ASGN
954
+ | arg kRESCUE_MOD arg
955
+ {
956
+ body, (_, line), resbody = val
957
+ body = value_expr body
958
+ resbody = remove_begin resbody
959
+
960
+ ary = s(:array).line line
961
+ result = new_rescue(body, new_resbody(ary, resbody))
962
+ }
963
+
812
964
  paren_args: tLPAREN2 opt_call_args rparen
813
965
  {
814
- result = val[1]
966
+ _, args, _ = val
967
+ result = args
815
968
  }
816
969
 
817
970
  opt_paren_args: none
818
971
  | paren_args
819
972
 
820
973
  opt_call_args: none
821
- {
822
- result = val[0]
823
- }
824
974
  | call_args
825
- {
826
- result = val[0]
827
- }
828
975
  | args tCOMMA
829
976
  {
830
977
  result = args val
@@ -846,17 +993,14 @@ rule
846
993
  | args opt_block_arg
847
994
  {
848
995
  result = call_args val
849
- result = self.arg_blk_pass val[0], val[1]
850
996
  }
851
997
  | assocs opt_block_arg
852
998
  {
853
- result = call_args [array_to_hash(val[0])]
854
- result = self.arg_blk_pass result, val[1]
999
+ result = call_args [array_to_hash(val[0]), val[1]]
855
1000
  }
856
1001
  | args tCOMMA assocs opt_block_arg
857
1002
  {
858
- result = call_args [val[0], array_to_hash(val[2])]
859
- result = self.arg_blk_pass result, val[3]
1003
+ result = call_args [val[0], array_to_hash(val[2]), val[3]]
860
1004
  }
861
1005
  | block_arg
862
1006
  {
@@ -864,18 +1008,45 @@ rule
864
1008
  }
865
1009
 
866
1010
  command_args: {
867
- result = lexer.cmdarg.stack.dup # TODO: smell?
1011
+ # parse26.y line 2200
1012
+
1013
+ # If call_args starts with a open paren '(' or
1014
+ # '[', look-ahead reading of the letters calls
1015
+ # CMDARG_PUSH(0), but the push must be done
1016
+ # after CMDARG_PUSH(1). So this code makes them
1017
+ # consistent by first cancelling the premature
1018
+ # CMDARG_PUSH(0), doing CMDARG_PUSH(1), and
1019
+ # finally redoing CMDARG_PUSH(0).
1020
+
1021
+ result = yychar = self.last_token_type.first
1022
+ lookahead = [:tLPAREN, :tLPAREN_ARG, :tLPAREN2, :tLBRACK, :tLBRACK2].include?(yychar)
1023
+ lexer.cmdarg.pop if lookahead
868
1024
  lexer.cmdarg.push true
1025
+ lexer.cmdarg.push false if lookahead
869
1026
  }
870
1027
  call_args
871
1028
  {
872
- lexer.cmdarg.stack.replace val[0]
873
- result = val[1]
1029
+ yychar, args = val
1030
+
1031
+ # call_args can be followed by tLBRACE_ARG (that
1032
+ # does CMDARG_PUSH(0) in the lexer) but the push
1033
+ # must be done after CMDARG_POP() in the parser.
1034
+ # So this code does CMDARG_POP() to pop 0 pushed
1035
+ # by tLBRACE_ARG, CMDARG_POP() to pop 1 pushed
1036
+ # by command_args, and CMDARG_PUSH(0) to restore
1037
+ # back the flag set by tLBRACE_ARG.
1038
+
1039
+ lookahead = [:tLBRACE_ARG].include?(yychar)
1040
+ lexer.cmdarg.pop if lookahead
1041
+ lexer.cmdarg.pop
1042
+ lexer.cmdarg.push false if lookahead
1043
+ result = args
874
1044
  }
875
1045
 
876
1046
  block_arg: tAMPER arg_value
877
1047
  {
878
- result = s(:block_pass, val[1])
1048
+ _, arg = val
1049
+ result = s(:block_pass, arg).line arg.line
879
1050
  }
880
1051
 
881
1052
  opt_block_arg: tCOMMA block_arg
@@ -886,19 +1057,27 @@ rule
886
1057
 
887
1058
  args: arg_value
888
1059
  {
889
- result = s(:array, val[0])
1060
+ arg, = val
1061
+ lineno = arg.line || lexer.lineno # HACK
1062
+
1063
+ result = s(:array, arg).line lineno
890
1064
  }
891
1065
  | tSTAR arg_value
892
1066
  {
893
- result = s(:array, s(:splat, val[1]))
1067
+ _, arg = val
1068
+ result = s(:array, s(:splat, arg).line(arg.line)).line arg.line
894
1069
  }
895
1070
  | args tCOMMA arg_value
896
1071
  {
897
- result = self.list_append val[0], val[2]
1072
+ args, _, id = val
1073
+ result = self.list_append args, id
898
1074
  }
899
1075
  | args tCOMMA tSTAR arg_value
900
1076
  {
901
- result = self.list_append val[0], s(:splat, val[3])
1077
+ # TODO: the line number from tSTAR has been dropped
1078
+ args, _, _, id = val
1079
+ line = lexer.lineno
1080
+ result = self.list_append args, s(:splat, id).line(line)
902
1081
  }
903
1082
 
904
1083
  mrhs_arg: mrhs
@@ -916,11 +1095,14 @@ rule
916
1095
  }
917
1096
  | args tCOMMA tSTAR arg_value
918
1097
  {
919
- result = self.arg_concat val[0], val[3]
1098
+ # TODO: make all tXXXX terminals include lexer.lineno
1099
+ arg, _, _, splat = val
1100
+ result = self.arg_concat arg, splat
920
1101
  }
921
1102
  | tSTAR arg_value
922
1103
  {
923
- result = s(:splat, val[1])
1104
+ _, arg = val
1105
+ result = s(:splat, arg).line arg.line
924
1106
  }
925
1107
 
926
1108
  primary: literal
@@ -935,58 +1117,65 @@ rule
935
1117
  | backref
936
1118
  | tFID
937
1119
  {
938
- result = new_call nil, val[0].to_sym
1120
+ msg, = val
1121
+ result = new_call nil, msg.to_sym
939
1122
  }
940
- | kBEGIN
1123
+ | k_begin
941
1124
  {
1125
+ lexer.cmdarg.push false
942
1126
  result = self.lexer.lineno
943
1127
  }
944
- bodystmt kEND
1128
+ bodystmt k_end
945
1129
  {
946
- unless val[2] then
947
- result = s(:nil)
948
- else
949
- result = s(:begin, val[2])
950
- end
951
-
952
- result.line = val[1]
1130
+ lexer.cmdarg.pop
1131
+ result = new_begin val
953
1132
  }
954
- | tLPAREN_ARG rparen
1133
+ | tLPAREN_ARG
955
1134
  {
956
- debug20 13, val, result
1135
+ lexer.lex_state = EXPR_ENDARG
1136
+ result = lexer.lineno
957
1137
  }
958
- | tLPAREN_ARG
1138
+ rparen
959
1139
  {
960
- result = self.lexer.cmdarg.stack.dup
961
- lexer.cmdarg.stack.replace [false] # TODO add api for these
1140
+ _, line, _ = val
1141
+ result = s(:begin).line line
962
1142
  }
963
- expr
1143
+ | tLPAREN_ARG
1144
+ stmt
964
1145
  {
965
- lexer.lex_state = :expr_endarg
1146
+ lexer.lex_state = EXPR_ENDARG
966
1147
  }
967
1148
  rparen
968
1149
  {
969
- warning "(...) interpreted as grouped expression"
970
- lexer.cmdarg.stack.replace val[1]
971
- result = val[2]
1150
+ _, stmt, _, _, = val
1151
+ # warning "(...) interpreted as grouped expression"
1152
+ result = stmt
972
1153
  }
973
1154
  | tLPAREN compstmt tRPAREN
974
1155
  {
975
- result = val[1] || s(:nil)
1156
+ _, stmt, _ = val
1157
+ result = stmt
1158
+ result ||= s(:nil).line lexer.lineno
976
1159
  result.paren = true
977
1160
  }
978
1161
  | primary_value tCOLON2 tCONSTANT
979
1162
  {
980
- result = s(:colon2, val[0], val[2].to_sym)
1163
+ expr, _, id = val
1164
+
1165
+ result = s(:colon2, expr, id.to_sym).line expr.line
981
1166
  }
982
1167
  | tCOLON3 tCONSTANT
983
1168
  {
984
- result = s(:colon3, val[1].to_sym)
1169
+ _, id = val
1170
+
1171
+ result = s(:colon3, id.to_sym).line lexer.lineno
985
1172
  }
986
- | tLBRACK aref_args tRBRACK
1173
+ | tLBRACK { result = lexer.lineno } aref_args tRBRACK
987
1174
  {
988
- result = val[1] || s(:array)
1175
+ _, line, args, _ = val
1176
+ result = args || s(:array)
989
1177
  result.sexp_type = :array # aref_args is :args
1178
+ result.line line
990
1179
  }
991
1180
  | tLBRACE
992
1181
  {
@@ -996,9 +1185,10 @@ rule
996
1185
  {
997
1186
  result = new_hash val
998
1187
  }
999
- | kRETURN
1188
+ | k_return
1000
1189
  {
1001
- result = s(:return)
1190
+ (_, line), = val
1191
+ result = s(:return).line line
1002
1192
  }
1003
1193
  | kYIELD tLPAREN2 call_args rparen
1004
1194
  {
@@ -1014,11 +1204,14 @@ rule
1014
1204
  }
1015
1205
  | kDEFINED opt_nl tLPAREN2 expr rparen
1016
1206
  {
1017
- result = s(:defined, val[3])
1207
+ (_, line), _, _, arg, _ = val
1208
+
1209
+ result = s(:defined, arg).line line
1018
1210
  }
1019
1211
  | kNOT tLPAREN2 expr rparen
1020
1212
  {
1021
- result = s(:call, val[2], :"!")
1213
+ _, _, lhs, _ = val
1214
+ result = new_call lhs, :"!"
1022
1215
  }
1023
1216
  | kNOT tLPAREN2 rparen
1024
1217
  {
@@ -1026,11 +1219,11 @@ rule
1026
1219
  }
1027
1220
  | fcall brace_block
1028
1221
  {
1029
- oper, iter = val[0], val[1]
1030
- call = oper # FIX
1222
+ call, iter = val
1223
+
1031
1224
  iter.insert 1, call
1032
1225
  result = iter
1033
- call.line = iter.line
1226
+ # FIX: probably not: call.line = iter.line
1034
1227
  }
1035
1228
  | method_call
1036
1229
  | method_call brace_block
@@ -1044,61 +1237,42 @@ rule
1044
1237
  {
1045
1238
  result = val[1] # TODO: fix lineno
1046
1239
  }
1047
- | kIF expr_value then compstmt if_tail kEND
1048
- {
1049
- result = new_if val[1], val[3], val[4]
1050
- }
1051
- | kUNLESS expr_value then compstmt opt_else kEND
1240
+ | k_if expr_value then compstmt if_tail k_end
1052
1241
  {
1053
- result = new_if val[1], val[4], val[3]
1242
+ _, c, _, t, f, _ = val
1243
+ result = new_if c, t, f
1054
1244
  }
1055
- | kWHILE
1245
+ | k_unless expr_value then compstmt opt_else k_end
1056
1246
  {
1057
- lexer.cond.push true
1247
+ _, c, _, t, f, _ = val
1248
+ result = new_if c, f, t
1058
1249
  }
1059
- expr_value do
1250
+ | k_while expr_value_do compstmt k_end
1060
1251
  {
1061
- lexer.cond.pop
1252
+ _, cond, body, _ = val
1253
+ result = new_while body, cond, true
1062
1254
  }
1063
- compstmt kEND
1255
+ | k_until expr_value_do compstmt k_end
1064
1256
  {
1065
- result = new_while val[5], val[2], true
1257
+ _, cond, body, _ = val
1258
+ result = new_until body, cond, true
1066
1259
  }
1067
- | kUNTIL
1068
- {
1069
- lexer.cond.push true
1070
- }
1071
- expr_value do
1072
- {
1073
- lexer.cond.pop
1074
- }
1075
- compstmt kEND
1076
- {
1077
- result = new_until val[5], val[2], true
1078
- }
1079
- | kCASE expr_value opt_terms case_body kEND
1260
+ | k_case expr_value opt_terms case_body k_end
1080
1261
  {
1081
1262
  (_, line), expr, _, body, _ = val
1082
1263
  result = new_case expr, body, line
1083
1264
  }
1084
- | kCASE opt_terms case_body kEND
1265
+ | k_case opt_terms case_body k_end
1085
1266
  {
1086
1267
  (_, line), _, body, _ = val
1087
1268
  result = new_case nil, body, line
1088
1269
  }
1089
- | kFOR for_var kIN
1090
- {
1091
- lexer.cond.push true
1092
- }
1093
- expr_value do
1094
- {
1095
- lexer.cond.pop
1096
- }
1097
- compstmt kEND
1270
+ | k_for for_var kIN expr_value_do compstmt k_end
1098
1271
  {
1099
- result = new_for val[4], val[1], val[7]
1272
+ _, var, _, iter, body, _ = val
1273
+ result = new_for iter, var, body
1100
1274
  }
1101
- | kCLASS
1275
+ | k_class
1102
1276
  {
1103
1277
  result = self.lexer.lineno
1104
1278
  }
@@ -1110,13 +1284,13 @@ rule
1110
1284
  end
1111
1285
  self.env.extend
1112
1286
  }
1113
- bodystmt kEND
1287
+ bodystmt k_end
1114
1288
  {
1115
1289
  result = new_class val
1116
1290
  self.env.unextend
1117
1291
  self.lexer.comments # we don't care about comments in the body
1118
1292
  }
1119
- | kCLASS tLSHFT
1293
+ | k_class tLSHFT
1120
1294
  {
1121
1295
  result = self.lexer.lineno
1122
1296
  }
@@ -1131,13 +1305,13 @@ rule
1131
1305
  self.in_single = 0
1132
1306
  self.env.extend
1133
1307
  }
1134
- bodystmt kEND
1308
+ bodystmt k_end
1135
1309
  {
1136
1310
  result = new_sclass val
1137
1311
  self.env.unextend
1138
1312
  self.lexer.comments # we don't care about comments in the body
1139
1313
  }
1140
- | kMODULE
1314
+ | k_module
1141
1315
  {
1142
1316
  result = self.lexer.lineno
1143
1317
  }
@@ -1149,74 +1323,90 @@ rule
1149
1323
 
1150
1324
  self.env.extend
1151
1325
  }
1152
- bodystmt kEND
1326
+ bodystmt k_end
1153
1327
  {
1154
1328
  result = new_module val
1155
1329
  self.env.unextend
1156
1330
  self.lexer.comments # we don't care about comments in the body
1157
1331
  }
1158
- | kDEF fname
1332
+ | k_def fname
1159
1333
  {
1160
- result = [self.in_def, self.lexer.cmdarg.stack.dup]
1334
+ result = self.in_def
1161
1335
 
1162
- self.comments.push self.lexer.comments
1163
- self.in_def = true
1336
+ self.in_def = true # group = local_push
1164
1337
  self.env.extend
1165
- # TODO: local->cmdargs = cmdarg_stack;
1166
- # TODO: port local_push_gen and local_pop_gen
1167
- lexer.cmdarg.stack.replace [false]
1338
+ lexer.cmdarg.push false
1339
+ lexer.cond.push false
1340
+
1341
+ self.comments.push self.lexer.comments
1168
1342
  }
1169
- f_arglist bodystmt kEND
1343
+ f_arglist bodystmt { result = lexer.lineno } k_end
1170
1344
  {
1171
- in_def, cmdarg = val[2]
1345
+ in_def = val[2]
1172
1346
 
1173
1347
  result = new_defn val
1174
1348
 
1175
- lexer.cmdarg.stack.replace cmdarg
1349
+ lexer.cond.pop # group = local_pop
1350
+ lexer.cmdarg.pop
1176
1351
  self.env.unextend
1177
1352
  self.in_def = in_def
1353
+
1178
1354
  self.lexer.comments # we don't care about comments in the body
1179
1355
  }
1180
- | kDEF singleton dot_or_colon
1356
+ | k_def singleton dot_or_colon
1181
1357
  {
1182
- self.comments.push self.lexer.comments
1183
- lexer.lex_state = :expr_fname
1358
+ lexer.lex_state = EXPR_FNAME
1184
1359
  }
1185
1360
  fname
1186
1361
  {
1187
- self.in_single += 1
1362
+ result = [self.in_def, lexer.lineno]
1363
+
1364
+ self.in_single += 1 # TODO: remove?
1365
+
1366
+ self.in_def = true # local_push
1188
1367
  self.env.extend
1189
- lexer.lex_state = :expr_endfn # force for args
1190
- result = [lexer.lineno, self.lexer.cmdarg.stack.dup]
1191
- lexer.cmdarg.stack.replace [false]
1368
+ lexer.cmdarg.push false
1369
+ lexer.cond.push false
1370
+
1371
+ lexer.lex_state = EXPR_ENDFN|EXPR_LABEL
1372
+ self.comments.push self.lexer.comments
1192
1373
  }
1193
- f_arglist bodystmt kEND
1374
+ f_arglist bodystmt k_end
1194
1375
  {
1195
- line, cmdarg = val[5]
1196
- result = new_defs val
1197
- result[3].line line
1376
+ _, _recv, _, _, _name, (in_def, _lineno), _args, _body, _ = val
1198
1377
 
1199
- lexer.cmdarg.stack.replace cmdarg
1378
+ result = new_defs val
1200
1379
 
1380
+ lexer.cond.pop # group = local_pop
1381
+ lexer.cmdarg.pop
1201
1382
  self.env.unextend
1383
+ self.in_def = in_def
1384
+
1202
1385
  self.in_single -= 1
1386
+
1387
+ # TODO: restore cur_arg ? what's cur_arg?
1388
+
1203
1389
  self.lexer.comments # we don't care about comments in the body
1204
1390
  }
1205
1391
  | kBREAK
1206
1392
  {
1207
- result = s(:break)
1393
+ (_, line), = val
1394
+ result = s(:break).line line
1208
1395
  }
1209
1396
  | kNEXT
1210
1397
  {
1211
- result = s(:next)
1398
+ (_, line), = val
1399
+ result = s(:next).line line
1212
1400
  }
1213
1401
  | kREDO
1214
1402
  {
1215
- result = s(:redo)
1403
+ (_, line), = val
1404
+ result = s(:redo).line line
1216
1405
  }
1217
1406
  | kRETRY
1218
1407
  {
1219
- result = s(:retry)
1408
+ (_, line), = val
1409
+ result = s(:retry).line line
1220
1410
  }
1221
1411
 
1222
1412
  primary_value: primary
@@ -1235,7 +1425,15 @@ rule
1235
1425
  k_class: kCLASS
1236
1426
  k_module: kMODULE
1237
1427
  k_def: kDEF
1428
+ k_do: kDO
1429
+ k_do_block: kDO_BLOCK
1430
+ k_rescue: kRESCUE
1431
+ k_ensure: kENSURE
1432
+ k_when: kWHEN
1433
+ k_else: kELSE
1434
+ k_elsif: kELSIF
1238
1435
  k_end: kEND
1436
+ k_return: kRETURN
1239
1437
 
1240
1438
  then: term
1241
1439
  | kTHEN
@@ -1245,9 +1443,11 @@ rule
1245
1443
  | kDO_COND
1246
1444
 
1247
1445
  if_tail: opt_else
1248
- | kELSIF expr_value then compstmt if_tail
1446
+ | k_elsif expr_value then compstmt if_tail
1249
1447
  {
1250
- result = s(:if, val[1], val[3], val[4])
1448
+ (_, line), c, _, t, rest = val
1449
+
1450
+ result = s(:if, c, t, rest).line line
1251
1451
  }
1252
1452
 
1253
1453
  opt_else: none
@@ -1270,7 +1470,9 @@ rule
1270
1470
 
1271
1471
  f_marg_list: f_marg
1272
1472
  {
1273
- result = s(:array, val[0])
1473
+ sym, = val
1474
+
1475
+ result = s(:array, sym).line lexer.lineno
1274
1476
  }
1275
1477
  | f_marg_list tCOMMA f_marg
1276
1478
  {
@@ -1344,7 +1546,9 @@ rule
1344
1546
  }
1345
1547
  | f_block_arg
1346
1548
  {
1347
- result = call_args val
1549
+ line = lexer.lineno
1550
+ result = call_args val # TODO: push line down
1551
+ result.line line
1348
1552
  }
1349
1553
 
1350
1554
  opt_block_args_tail: tCOMMA block_args_tail
@@ -1375,7 +1579,7 @@ opt_block_args_tail: tCOMMA block_args_tail
1375
1579
  }
1376
1580
  | f_arg tCOMMA
1377
1581
  {
1378
- result = args val
1582
+ result = args(val) << nil
1379
1583
  }
1380
1584
  | f_arg tCOMMA f_rest_arg tCOMMA f_arg opt_block_args_tail
1381
1585
  {
@@ -1416,18 +1620,22 @@ opt_block_args_tail: tCOMMA block_args_tail
1416
1620
 
1417
1621
  opt_block_param: none { result = 0 }
1418
1622
  | block_param_def
1623
+ {
1624
+ self.lexer.command_start = true
1625
+ }
1419
1626
 
1420
1627
  block_param_def: tPIPE opt_bv_decl tPIPE
1421
1628
  {
1629
+ # TODO: current_arg = 0
1422
1630
  result = args val
1423
1631
  }
1424
1632
  | tOROP
1425
1633
  {
1426
- self.lexer.command_start = true
1427
- result = s(:args)
1634
+ result = s(:args).line lexer.lineno
1428
1635
  }
1429
1636
  | tPIPE block_param opt_bv_decl tPIPE
1430
1637
  {
1638
+ # TODO: current_arg = 0
1431
1639
  result = args val
1432
1640
  }
1433
1641
 
@@ -1448,26 +1656,33 @@ opt_block_args_tail: tCOMMA block_args_tail
1448
1656
 
1449
1657
  bvar: tIDENTIFIER
1450
1658
  {
1451
- result = s(:shadow, val[0].to_sym)
1659
+ id, = val
1660
+ line = lexer.lineno
1661
+ result = s(:shadow, id.to_sym).line line
1452
1662
  }
1453
1663
  | f_bad_arg
1454
1664
 
1455
1665
  lambda: {
1456
1666
  self.env.extend :dynamic
1457
- result = self.lexer.lineno
1458
-
1459
- result = lexer.lpar_beg
1667
+ result = [lexer.lineno, lexer.lpar_beg]
1460
1668
  lexer.paren_nest += 1
1461
1669
  lexer.lpar_beg = lexer.paren_nest
1462
1670
  }
1463
- f_larglist lambda_body
1671
+ f_larglist
1464
1672
  {
1465
- lpar, args, body = val
1673
+ lexer.cmdarg.push false
1674
+ }
1675
+ lambda_body
1676
+ {
1677
+ (line, lpar), args, _cmdarg, body = val
1466
1678
  lexer.lpar_beg = lpar
1467
1679
 
1468
- call = new_call nil, :lambda
1680
+ lexer.cmdarg.pop
1681
+
1682
+ call = s(:lambda).line line
1469
1683
  result = new_iter call, args, body
1470
- self.env.unextend
1684
+ result.line = line
1685
+ self.env.unextend # TODO: dynapush & dynapop
1471
1686
  }
1472
1687
 
1473
1688
  f_larglist: tLPAREN2 f_args opt_bv_decl rparen
@@ -1484,28 +1699,15 @@ opt_block_args_tail: tCOMMA block_args_tail
1484
1699
  {
1485
1700
  result = val[1]
1486
1701
  }
1487
- | kDO_LAMBDA compstmt kEND
1702
+ | kDO_LAMBDA bodystmt kEND
1488
1703
  {
1489
1704
  result = val[1]
1490
1705
  }
1491
1706
 
1492
- do_block: kDO_BLOCK
1493
- {
1494
- self.env.extend :dynamic
1495
- result = self.lexer.lineno
1496
- }
1497
- opt_block_param
1707
+ do_block: k_do_block do_body kEND
1498
1708
  {
1499
- result = nil # self.env.dynamic.keys
1500
- }
1501
- compstmt kEND
1502
- {
1503
- args = val[2]
1504
- body = val[4]
1505
- result = new_iter nil, args, body
1506
- result.line = val[1]
1507
-
1508
- self.env.unextend
1709
+ (_, line), iter, _ = val
1710
+ result = iter.line line
1509
1711
  }
1510
1712
 
1511
1713
  block_call: command do_block
@@ -1519,14 +1721,16 @@ opt_block_args_tail: tCOMMA block_args_tail
1519
1721
 
1520
1722
  val = invert_block_call val if inverted? val
1521
1723
 
1522
- result = val[1]
1523
- result.insert 1, val[0]
1724
+ cmd, blk = val
1725
+
1726
+ result = blk
1727
+ result.insert 1, cmd
1524
1728
  }
1525
- | block_call dot_or_colon operation2 opt_paren_args
1729
+ | block_call call_op2 operation2 opt_paren_args
1526
1730
  {
1527
1731
  result = new_call val[0], val[2].to_sym, val[3]
1528
1732
  }
1529
- | block_call dot_or_colon operation2 opt_paren_args brace_block
1733
+ | block_call call_op2 operation2 opt_paren_args brace_block
1530
1734
  {
1531
1735
  iter1, _, name, args, iter2 = val
1532
1736
 
@@ -1535,7 +1739,7 @@ opt_block_args_tail: tCOMMA block_args_tail
1535
1739
 
1536
1740
  result = iter2
1537
1741
  }
1538
- | block_call dot_or_colon operation2 command_args do_block
1742
+ | block_call call_op2 operation2 command_args do_block
1539
1743
  {
1540
1744
  iter1, _, name, args, iter2 = val
1541
1745
 
@@ -1551,8 +1755,10 @@ opt_block_args_tail: tCOMMA block_args_tail
1551
1755
  }
1552
1756
  paren_args
1553
1757
  {
1554
- args = self.call_args val[2..-1]
1555
- result = val[0].concat args.sexp_body
1758
+ call, lineno, args = val
1759
+
1760
+ result = call.concat args.sexp_body if args
1761
+ result.line lineno
1556
1762
  }
1557
1763
  | primary_value call_op operation2 opt_paren_args
1558
1764
  {
@@ -1580,7 +1786,7 @@ opt_block_args_tail: tCOMMA block_args_tail
1580
1786
  }
1581
1787
  | kSUPER
1582
1788
  {
1583
- result = s(:zsuper)
1789
+ result = s(:zsuper).line lexer.lineno
1584
1790
  }
1585
1791
  | primary_value tLBRACK2 opt_call_args rbracket
1586
1792
  {
@@ -1592,39 +1798,55 @@ opt_block_args_tail: tCOMMA block_args_tail
1592
1798
  self.env.extend :dynamic
1593
1799
  result = self.lexer.lineno
1594
1800
  }
1595
- opt_block_param
1596
- {
1597
- result = nil # self.env.dynamic.keys
1598
- }
1599
- compstmt tRCURLY
1801
+ brace_body tRCURLY
1600
1802
  {
1601
- _, line, args, _, body, _ = val
1803
+ _, line, body, _ = val
1602
1804
 
1603
- result = new_iter nil, args, body
1805
+ result = body
1604
1806
  result.line = line
1605
1807
 
1606
1808
  self.env.unextend
1607
1809
  }
1608
- | kDO
1810
+ | k_do
1609
1811
  {
1610
1812
  self.env.extend :dynamic
1611
1813
  result = self.lexer.lineno
1612
1814
  }
1613
- opt_block_param
1815
+ do_body kEND
1614
1816
  {
1615
- result = nil # self.env.dynamic.keys
1817
+ _, line, body, _ = val
1818
+
1819
+ result = body
1820
+ result.line = line
1821
+
1822
+ self.env.unextend
1616
1823
  }
1617
- compstmt kEND
1824
+
1825
+ brace_body: { self.env.extend :dynamic; result = self.lexer.lineno }
1826
+ { result = lexer.cmdarg.store(false) }
1827
+ opt_block_param compstmt
1618
1828
  {
1619
- _, line, args, _, body, _ = val
1829
+ line, cmdarg, param, cmpstmt = val
1620
1830
 
1621
- result = new_iter nil, args, body
1622
- result.line = line
1831
+ result = new_brace_body param, cmpstmt, line
1832
+ self.env.unextend
1833
+ lexer.cmdarg.restore cmdarg
1834
+ lexer.cmdarg.pop # because of: cmdarg_stack >> 1 ?
1835
+ }
1836
+
1837
+ do_body: { self.env.extend :dynamic; result = self.lexer.lineno }
1838
+ { lexer.cmdarg.push false }
1839
+ opt_block_param
1840
+ compstmt
1841
+ {
1842
+ line, _cmdarg, param, cmpstmt = val
1623
1843
 
1844
+ result = new_do_body param, cmpstmt, line
1845
+ lexer.cmdarg.pop
1624
1846
  self.env.unextend
1625
1847
  }
1626
1848
 
1627
- case_body: kWHEN
1849
+ case_body: k_when
1628
1850
  {
1629
1851
  result = self.lexer.lineno
1630
1852
  }
@@ -1637,12 +1859,12 @@ opt_block_args_tail: tCOMMA block_args_tail
1637
1859
 
1638
1860
  cases: opt_else | case_body
1639
1861
 
1640
- opt_rescue: kRESCUE exc_list exc_var then compstmt opt_rescue
1862
+ opt_rescue: k_rescue exc_list exc_var then compstmt opt_rescue
1641
1863
  {
1642
1864
  (_, line), klasses, var, _, body, rest = val
1643
1865
 
1644
1866
  klasses ||= s(:array)
1645
- klasses << new_assign(var, s(:gvar, :"$!")) if var
1867
+ klasses << new_assign(var, s(:gvar, :"$!").line(var.line)) if var
1646
1868
  klasses.line line
1647
1869
 
1648
1870
  result = new_resbody(klasses, body)
@@ -1655,7 +1877,8 @@ opt_block_args_tail: tCOMMA block_args_tail
1655
1877
 
1656
1878
  exc_list: arg_value
1657
1879
  {
1658
- result = s(:array, val[0])
1880
+ arg, = val
1881
+ result = s(:array, arg).line arg.line
1659
1882
  }
1660
1883
  | mrhs
1661
1884
  | none
@@ -1666,28 +1889,33 @@ opt_block_args_tail: tCOMMA block_args_tail
1666
1889
  }
1667
1890
  | none
1668
1891
 
1669
- opt_ensure: kENSURE compstmt
1892
+ opt_ensure: k_ensure compstmt
1670
1893
  {
1671
- _, body = val
1894
+ (_, line), body = val
1672
1895
 
1673
- result = body || s(:nil)
1896
+ result = body || s(:nil).line(line)
1674
1897
  }
1675
1898
  | none
1676
1899
 
1677
1900
  literal: numeric
1678
1901
  {
1902
+ line = lexer.lineno
1679
1903
  result = s(:lit, val[0])
1904
+ result.line = line
1680
1905
  }
1681
1906
  | symbol
1682
1907
  {
1908
+ line = lexer.lineno
1683
1909
  result = s(:lit, val[0])
1910
+ result.line = line
1684
1911
  }
1685
1912
  | dsym
1686
1913
 
1687
1914
  strings: string
1688
1915
  {
1689
- val[0] = s(:dstr, val[0].value) if val[0].sexp_type == :evstr
1690
- result = val[0]
1916
+ str, = val
1917
+ str = s(:dstr, str.value) if str.sexp_type == :evstr
1918
+ result = str
1691
1919
  }
1692
1920
 
1693
1921
  string: tCHAR
@@ -1702,7 +1930,11 @@ opt_block_args_tail: tCOMMA block_args_tail
1702
1930
 
1703
1931
  string1: tSTRING_BEG string_contents tSTRING_END
1704
1932
  {
1705
- result = val[1]
1933
+ _, str, (_, func) = val
1934
+
1935
+ str = dedent str if func =~ RubyLexer::STR_FUNC_ICNTNT
1936
+
1937
+ result = str
1706
1938
  }
1707
1939
  | tSTRING
1708
1940
  {
@@ -1711,7 +1943,8 @@ opt_block_args_tail: tCOMMA block_args_tail
1711
1943
 
1712
1944
  xstring: tXSTRING_BEG xstring_contents tSTRING_END
1713
1945
  {
1714
- result = new_xstring val[1]
1946
+ result = new_xstring val
1947
+ # TODO: dedent?!?! SERIOUSLY?!?
1715
1948
  }
1716
1949
 
1717
1950
  regexp: tREGEXP_BEG regexp_contents tREGEXP_END
@@ -1721,7 +1954,7 @@ opt_block_args_tail: tCOMMA block_args_tail
1721
1954
 
1722
1955
  words: tWORDS_BEG tSPACE tSTRING_END
1723
1956
  {
1724
- result = s(:array)
1957
+ result = s(:array).line lexer.lineno
1725
1958
  }
1726
1959
  | tWORDS_BEG word_list tSTRING_END
1727
1960
  {
@@ -1745,25 +1978,28 @@ opt_block_args_tail: tCOMMA block_args_tail
1745
1978
 
1746
1979
  symbols: tSYMBOLS_BEG tSPACE tSTRING_END
1747
1980
  {
1748
- result = s(:array)
1981
+ result = s(:array).line lexer.lineno
1749
1982
  }
1750
- | tSYMBOLS_BEG symbol_list tSTRING_END
1983
+ | tSYMBOLS_BEG { result = lexer.lineno } symbol_list tSTRING_END
1751
1984
  {
1752
- result = val[1]
1985
+ _, line, list, _, = val
1986
+ list.line = line
1987
+ result = list
1753
1988
  }
1754
1989
 
1755
1990
  symbol_list: none
1756
1991
  {
1757
- result = new_symbol_list
1992
+ result = new_symbol_list.line lexer.lineno
1758
1993
  }
1759
1994
  | symbol_list word tSPACE
1760
1995
  {
1761
- result = val[0].dup << new_symbol_list_entry(val)
1996
+ list, * = val
1997
+ result = list.dup << new_symbol_list_entry(val)
1762
1998
  }
1763
1999
 
1764
2000
  qwords: tQWORDS_BEG tSPACE tSTRING_END
1765
2001
  {
1766
- result = s(:array)
2002
+ result = s(:array).line lexer.lineno
1767
2003
  }
1768
2004
  | tQWORDS_BEG qword_list tSTRING_END
1769
2005
  {
@@ -1772,7 +2008,7 @@ opt_block_args_tail: tCOMMA block_args_tail
1772
2008
 
1773
2009
  qsymbols: tQSYMBOLS_BEG tSPACE tSTRING_END
1774
2010
  {
1775
- result = s(:array)
2011
+ result = s(:array).line lexer.lineno # FIX
1776
2012
  }
1777
2013
  | tQSYMBOLS_BEG qsym_list tSTRING_END
1778
2014
  {
@@ -1799,11 +2035,12 @@ opt_block_args_tail: tCOMMA block_args_tail
1799
2035
 
1800
2036
  string_contents: none
1801
2037
  {
1802
- result = s(:str, "")
2038
+ result = s(:str, "").line lexer.lineno
1803
2039
  }
1804
2040
  | string_contents string_content
1805
2041
  {
1806
- result = literal_concat(val[0], val[1])
2042
+ v1, v2 = val
2043
+ result = literal_concat v1, v2
1807
2044
  }
1808
2045
 
1809
2046
  xstring_contents: none
@@ -1812,7 +2049,8 @@ xstring_contents: none
1812
2049
  }
1813
2050
  | xstring_contents string_content
1814
2051
  {
1815
- result = literal_concat(val[0], val[1])
2052
+ v1, v2 = val
2053
+ result = literal_concat v1, v2
1816
2054
  }
1817
2055
 
1818
2056
  regexp_contents: none
@@ -1821,7 +2059,8 @@ regexp_contents: none
1821
2059
  }
1822
2060
  | regexp_contents string_content
1823
2061
  {
1824
- result = literal_concat(val[0], val[1])
2062
+ v1, v2 = val
2063
+ result = literal_concat v1, v2
1825
2064
  }
1826
2065
 
1827
2066
  string_content: tSTRING_CONTENT
@@ -1833,42 +2072,46 @@ regexp_contents: none
1833
2072
  result = lexer.lex_strterm
1834
2073
 
1835
2074
  lexer.lex_strterm = nil
1836
- lexer.lex_state = :expr_beg # TODO: expr_value ?
2075
+ lexer.lex_state = EXPR_BEG
1837
2076
  }
1838
2077
  string_dvar
1839
2078
  {
1840
- lexer.lex_strterm = val[1]
1841
- result = s(:evstr, val[2])
2079
+ _, strterm, str = val
2080
+ lexer.lex_strterm = strterm
2081
+ result = s(:evstr, str).line str.line
1842
2082
  }
1843
2083
  | tSTRING_DBEG
1844
2084
  {
1845
2085
  result = [lexer.lex_strterm,
1846
2086
  lexer.brace_nest,
1847
2087
  lexer.string_nest, # TODO: remove
1848
- lexer.cond.store,
1849
- lexer.cmdarg.store,
1850
2088
  lexer.lex_state,
2089
+ lexer.lineno,
1851
2090
  ]
1852
2091
 
2092
+ lexer.cmdarg.push false
2093
+ lexer.cond.push false
2094
+
1853
2095
  lexer.lex_strterm = nil
1854
2096
  lexer.brace_nest = 0
1855
2097
  lexer.string_nest = 0
1856
2098
 
1857
- lexer.lex_state = :expr_value
2099
+ lexer.lex_state = EXPR_BEG
1858
2100
  }
1859
- compstmt tRCURLY
2101
+ compstmt
2102
+ tSTRING_DEND
1860
2103
  {
1861
- # TODO: tRCURLY -> tSTRING_END
1862
2104
  _, memo, stmt, _ = val
1863
2105
 
1864
- lex_strterm, brace_nest, string_nest, oldcond, oldcmdarg, oldlex_state = memo
2106
+ lex_strterm, brace_nest, string_nest, oldlex_state, line = memo
2107
+ # TODO: heredoc_indent
1865
2108
 
1866
2109
  lexer.lex_strterm = lex_strterm
1867
2110
  lexer.brace_nest = brace_nest
1868
2111
  lexer.string_nest = string_nest
1869
2112
 
1870
- lexer.cond.restore oldcond
1871
- lexer.cmdarg.restore oldcmdarg
2113
+ lexer.cmdarg.pop
2114
+ lexer.cond.pop
1872
2115
 
1873
2116
  lexer.lex_state = oldlex_state
1874
2117
 
@@ -1878,24 +2121,24 @@ regexp_contents: none
1878
2121
  when :str, :dstr, :evstr then
1879
2122
  result = stmt
1880
2123
  else
1881
- result = s(:evstr, stmt)
2124
+ result = s(:evstr, stmt).line line
1882
2125
  end
1883
2126
  when nil then
1884
- result = s(:evstr)
2127
+ result = s(:evstr).line line
1885
2128
  else
1886
2129
  debug20 25
1887
2130
  raise "unknown string body: #{stmt.inspect}"
1888
2131
  end
1889
2132
  }
1890
2133
 
1891
- string_dvar: tGVAR { result = s(:gvar, val[0].to_sym) }
1892
- | tIVAR { result = s(:ivar, val[0].to_sym) }
1893
- | tCVAR { result = s(:cvar, val[0].to_sym) }
2134
+ string_dvar: tGVAR { result = s(:gvar, val[0].to_sym).line lexer.lineno }
2135
+ | tIVAR { result = s(:ivar, val[0].to_sym).line lexer.lineno }
2136
+ | tCVAR { result = s(:cvar, val[0].to_sym).line lexer.lineno }
1894
2137
  | backref
1895
2138
 
1896
2139
  symbol: tSYMBEG sym
1897
2140
  {
1898
- lexer.lex_state = :expr_end
2141
+ lexer.lex_state = EXPR_END
1899
2142
  result = val[1].to_sym
1900
2143
  }
1901
2144
  | tSYMBOL
@@ -1907,18 +2150,19 @@ regexp_contents: none
1907
2150
 
1908
2151
  dsym: tSYMBEG xstring_contents tSTRING_END
1909
2152
  {
1910
- lexer.lex_state = :expr_end
1911
- result = val[1]
2153
+ _, result, _ = val
2154
+
2155
+ lexer.lex_state = EXPR_END
1912
2156
 
1913
- result ||= s(:str, "")
2157
+ result ||= s(:str, "").line lexer.lineno
1914
2158
 
1915
2159
  case result.sexp_type
1916
2160
  when :dstr then
1917
2161
  result.sexp_type = :dsym
1918
2162
  when :str then
1919
- result = s(:lit, result.last.to_sym)
2163
+ result = s(:lit, result.last.to_sym).line result.line
1920
2164
  when :evstr then
1921
- result = s(:dsym, "", result)
2165
+ result = s(:dsym, "", result).line result.line
1922
2166
  else
1923
2167
  debug20 26, val, result
1924
2168
  end
@@ -1941,19 +2185,20 @@ regexp_contents: none
1941
2185
  | tCONSTANT
1942
2186
  | tCVAR
1943
2187
 
1944
- keyword_variable: kNIL { result = s(:nil) }
1945
- | kSELF { result = s(:self) }
1946
- | kTRUE { result = s(:true) }
1947
- | kFALSE { result = s(:false) }
1948
- | k__FILE__ { result = s(:str, self.file) }
1949
- | k__LINE__ { result = s(:lit, lexer.lineno) }
2188
+ keyword_variable: kNIL { result = s(:nil).line lexer.lineno }
2189
+ | kSELF { result = s(:self).line lexer.lineno }
2190
+ | kTRUE { result = s(:true).line lexer.lineno }
2191
+ | kFALSE { result = s(:false).line lexer.lineno }
2192
+ | k__FILE__ { result = s(:str, self.file).line lexer.lineno }
2193
+ | k__LINE__ { result = s(:lit, lexer.lineno).line lexer.lineno }
1950
2194
  | k__ENCODING__
1951
2195
  {
2196
+ l = lexer.lineno
1952
2197
  result =
1953
2198
  if defined? Encoding then
1954
- s(:colon2, s(:const, :Encoding), :UTF_8)
2199
+ s(:colon2, s(:const, :Encoding).line(l), :UTF_8).line l
1955
2200
  else
1956
- s(:str, "Unsupported!")
2201
+ s(:str, "Unsupported!").line l
1957
2202
  end
1958
2203
  }
1959
2204
 
@@ -1978,43 +2223,42 @@ keyword_variable: kNIL { result = s(:nil) }
1978
2223
  debug20 29, val, result
1979
2224
  }
1980
2225
 
1981
- backref: tNTH_REF { result = s(:nth_ref, val[0]) }
1982
- | tBACK_REF { result = s(:back_ref, val[0]) }
2226
+ backref: tNTH_REF { result = s(:nth_ref, val[0]).line lexer.lineno }
2227
+ | tBACK_REF { result = s(:back_ref, val[0]).line lexer.lineno }
1983
2228
 
1984
- superclass: term
1985
- {
1986
- result = nil
1987
- }
1988
- | tLT
2229
+ superclass: tLT
1989
2230
  {
1990
- lexer.lex_state = :expr_beg
2231
+ lexer.lex_state = EXPR_BEG
2232
+ lexer.command_start = true
1991
2233
  }
1992
2234
  expr_value term
1993
2235
  {
1994
2236
  result = val[2]
1995
2237
  }
1996
- | error term
2238
+ | none
1997
2239
  {
1998
- yyerrok
1999
2240
  result = nil
2000
- debug20 30, val, result
2001
2241
  }
2002
2242
 
2003
2243
  f_arglist: tLPAREN2 f_args rparen
2004
2244
  {
2005
2245
  result = val[1]
2006
- self.lexer.lex_state = :expr_beg
2246
+ self.lexer.lex_state = EXPR_BEG
2007
2247
  self.lexer.command_start = true
2008
- # TODO:
2009
- # $<num>$ = parser->parser_in_kwarg;
2010
- # parser->parser_in_kwarg = 1;
2011
2248
  }
2012
- | f_args term
2249
+ | {
2250
+ result = self.in_kwarg
2251
+ self.in_kwarg = true
2252
+ self.lexer.lex_state |= EXPR_LABEL
2253
+ }
2254
+ f_args term
2013
2255
  {
2014
- # TODO: parser->parser_in_kwarg = $<num>1;
2015
- result = val[0]
2016
- self.lexer.lex_state = :expr_beg
2017
- self.lexer.command_start = true
2256
+ kwarg, args, _ = val
2257
+
2258
+ self.in_kwarg = kwarg
2259
+ result = args
2260
+ lexer.lex_state = EXPR_BEG
2261
+ lexer.command_start = true
2018
2262
  }
2019
2263
 
2020
2264
  args_tail: f_kwarg tCOMMA f_kwrest opt_f_block_arg
@@ -2137,12 +2381,13 @@ keyword_variable: kNIL { result = s(:nil) }
2137
2381
 
2138
2382
  f_arg: f_arg_item
2139
2383
  {
2140
- case val[0]
2384
+ arg, = val
2385
+
2386
+ case arg
2141
2387
  when Symbol then
2142
- result = s(:args)
2143
- result << val[0]
2388
+ result = s(:args, arg).line lexer.lineno
2144
2389
  when Sexp then
2145
- result = val[0]
2390
+ result = arg
2146
2391
  else
2147
2392
  debug20 32
2148
2393
  raise "Unknown f_arg type: #{val.inspect}"
@@ -2155,7 +2400,7 @@ keyword_variable: kNIL { result = s(:nil) }
2155
2400
  if list.sexp_type == :args then
2156
2401
  result = list
2157
2402
  else
2158
- result = s(:args, list)
2403
+ result = s(:args, list).line list.line
2159
2404
  end
2160
2405
 
2161
2406
  result << item
@@ -2165,38 +2410,42 @@ keyword_variable: kNIL { result = s(:nil) }
2165
2410
 
2166
2411
  f_kw: f_label arg_value
2167
2412
  {
2168
- # TODO: call_args
2169
- label, _ = val[0] # TODO: fix lineno?
2413
+ # TODO: new_kw_arg
2414
+ (label, line), arg = val
2415
+
2170
2416
  identifier = label.to_sym
2171
2417
  self.env[identifier] = :lvar
2172
2418
 
2173
- result = s(:array, s(:kwarg, identifier, val[1]))
2419
+ kwarg = s(:kwarg, identifier, arg).line line
2420
+ result = s(:array, kwarg).line line
2174
2421
  }
2175
2422
  | f_label
2176
2423
  {
2177
- label, _ = val[0] # TODO: fix lineno?
2178
- identifier = label.to_sym
2179
- self.env[identifier] = :lvar
2424
+ (label, line), = val
2425
+
2426
+ id = label.to_sym
2427
+ self.env[id] = :lvar
2180
2428
 
2181
- result = s(:array, s(:kwarg, identifier))
2429
+ result = s(:array, s(:kwarg, id).line(line)).line line
2182
2430
  }
2183
2431
 
2184
2432
  f_block_kw: f_label primary_value
2185
2433
  {
2186
- # TODO: call_args
2187
- label, _ = val[0] # TODO: fix lineno?
2188
- identifier = label.to_sym
2189
- self.env[identifier] = :lvar
2434
+ # TODO: new_kw_arg
2435
+ (label, line), expr = val
2436
+ id = label.to_sym
2437
+ self.env[id] = :lvar
2190
2438
 
2191
- result = s(:array, s(:kwarg, identifier, val[1]))
2439
+ result = s(:array, s(:kwarg, id, expr).line(line)).line line
2192
2440
  }
2193
2441
  | f_label
2194
2442
  {
2195
- label, _ = val[0] # TODO: fix lineno?
2196
- identifier = label.to_sym
2197
- self.env[identifier] = :lvar
2443
+ # TODO: new_kw_arg
2444
+ (label, line), = val
2445
+ id = label.to_sym
2446
+ self.env[id] = :lvar
2198
2447
 
2199
- result = s(:array, s(:kwarg, identifier))
2448
+ result = s(:array, s(:kwarg, id).line(line)).line line
2200
2449
  }
2201
2450
 
2202
2451
  f_block_kwarg: f_block_kw
@@ -2217,7 +2466,9 @@ keyword_variable: kNIL { result = s(:nil) }
2217
2466
 
2218
2467
  f_kwrest: kwrest_mark tIDENTIFIER
2219
2468
  {
2220
- result = :"**#{val[1]}"
2469
+ name = val[1].to_sym
2470
+ self.assignable name
2471
+ result = :"**#{name}"
2221
2472
  }
2222
2473
  | kwrest_mark
2223
2474
  {
@@ -2237,17 +2488,20 @@ keyword_variable: kNIL { result = s(:nil) }
2237
2488
 
2238
2489
  f_block_optarg: f_block_opt
2239
2490
  {
2240
- result = s(:block, val[0])
2491
+ optblk, = val
2492
+ result = s(:block, optblk).line optblk.line
2241
2493
  }
2242
2494
  | f_block_optarg tCOMMA f_block_opt
2243
2495
  {
2244
- result = val[0]
2245
- result << val[2]
2496
+ optarg, _, optblk = val
2497
+ result = optarg
2498
+ result << optblk
2246
2499
  }
2247
2500
 
2248
2501
  f_optarg: f_opt
2249
2502
  {
2250
- result = s(:block, val[0])
2503
+ opt, = val
2504
+ result = s(:block, opt).line opt.line
2251
2505
  }
2252
2506
  | f_optarg tCOMMA f_opt
2253
2507
  {
@@ -2292,7 +2546,7 @@ keyword_variable: kNIL { result = s(:nil) }
2292
2546
  singleton: var_ref
2293
2547
  | tLPAREN2
2294
2548
  {
2295
- lexer.lex_state = :expr_beg
2549
+ lexer.lex_state = EXPR_BEG
2296
2550
  }
2297
2551
  expr rparen
2298
2552
  {
@@ -2301,14 +2555,11 @@ keyword_variable: kNIL { result = s(:nil) }
2301
2555
  result.sexp_type == :lit
2302
2556
  }
2303
2557
 
2304
- assoc_list: none # [!nil]
2558
+ assoc_list: none
2305
2559
  {
2306
- result = s(:array)
2307
- }
2308
- | assocs trailer # [!nil]
2309
- {
2310
- result = val[0]
2560
+ result = s(:array).line lexer.lineno
2311
2561
  }
2562
+ | assocs trailer
2312
2563
 
2313
2564
  assocs: assoc
2314
2565
  | assocs tCOMMA assoc
@@ -2322,26 +2573,27 @@ keyword_variable: kNIL { result = s(:nil) }
2322
2573
 
2323
2574
  assoc: arg_value tASSOC arg_value
2324
2575
  {
2325
- result = s(:array, val[0], val[2])
2576
+ v1, _, v2 = val
2577
+ result = s(:array, v1, v2).line v1.line
2326
2578
  }
2327
- | tLABEL opt_nl arg_value
2579
+ | tLABEL arg_value
2328
2580
  {
2329
- result = s(:array, s(:lit, val[0][0].to_sym), val.last)
2581
+ (label, line), arg = val
2582
+
2583
+ lit = s(:lit, label.to_sym).line line
2584
+ result = s(:array, lit, arg).line line
2330
2585
  }
2331
2586
  | tSTRING_BEG string_contents tLABEL_END arg_value
2332
2587
  {
2333
2588
  _, sym, _, value = val
2334
2589
  sym.sexp_type = :dsym
2335
- result = s(:array, sym, value)
2336
- }
2337
- | tSYMBOL arg_value
2338
- {
2339
- raise "not yet: #{val.inspect}"
2340
- # result = s(:array, s(:lit, val[1].to_sym), val[1])
2590
+ result = s(:array, sym, value).line sym.line
2341
2591
  }
2342
2592
  | tDSTAR arg_value
2343
2593
  {
2344
- result = s(:array, s(:kwsplat, val[1]))
2594
+ _, arg = val
2595
+ line = arg.line
2596
+ result = s(:array, s(:kwsplat, arg).line(line)).line line
2345
2597
  }
2346
2598
 
2347
2599
  operation: tIDENTIFIER | tCONSTANT | tFID
@@ -2349,6 +2601,10 @@ keyword_variable: kNIL { result = s(:nil) }
2349
2601
  operation3: tIDENTIFIER | tFID | op
2350
2602
  dot_or_colon: tDOT | tCOLON2
2351
2603
  call_op: tDOT
2604
+
2605
+ call_op2: call_op
2606
+ | tCOLON2
2607
+
2352
2608
  opt_terms: | terms
2353
2609
  opt_nl: | tNL
2354
2610
  rparen: opt_nl tRPAREN
@@ -2368,6 +2624,7 @@ end
2368
2624
 
2369
2625
  require "ruby_lexer"
2370
2626
  require "ruby_parser_extras"
2627
+ include RubyLexer::State::Values
2371
2628
 
2372
2629
  # :stopdoc:
2373
2630