mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Pass along end line
This commit is contained in:
parent
67b4c0589b
commit
65799fdd3b
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ module Spectator::DSL
|
||||||
|
|
||||||
::Spectator::DSL::Builder.start_group(
|
::Spectator::DSL::Builder.start_group(
|
||||||
_spectator_group_name(\{{what}}),
|
_spectator_group_name(\{{what}}),
|
||||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}),
|
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}, \{{block.end_line_number}}),
|
||||||
metadata
|
metadata
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ module Spectator::DSL
|
||||||
\%collection,
|
\%collection,
|
||||||
\{{collection.stringify}},
|
\{{collection.stringify}},
|
||||||
\{{block.args.empty? ? :nil.id : block.args.first.stringify}},
|
\{{block.args.empty? ? :nil.id : block.args.first.stringify}},
|
||||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}),
|
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}, \{{block.end_line_number}}),
|
||||||
metadata
|
metadata
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Spectator::DSL
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
::Spectator::DSL::Builder.{{type.id}}(
|
::Spectator::DSL::Builder.{{type.id}}(
|
||||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}})
|
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}, \{{block.end_line_number}})
|
||||||
) do
|
) do
|
||||||
{% if block %}
|
{% if block %}
|
||||||
%wrapper do |*args|
|
%wrapper do |*args|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue