Skip to content

Commit

Permalink
revert: grit range pointing at pattern definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian8j2 committed Jan 4, 2025
1 parent 1807c3c commit 570ff55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/gritmodule/src/dot_grit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ pub fn get_patterns_from_grit(
};
let range = Range::new(
Position::new(
pattern_definition.node.start_position().row() + 1,
pattern_definition.node.start_position().column() + 1,
name_node.node.start_position().row() + 1,
name_node.node.start_position().column() + 1,
),
Position::new(
pattern_definition.node.end_position().row() + 1,
pattern_definition.node.end_position().column() + 1,
name_node.node.end_position().row() + 1,
name_node.node.end_position().column() + 1,
),
pattern_definition.node.start_byte(),
pattern_definition.node.end_byte(),
name_node.node.start_byte(),
name_node.node.end_byte(),
);

let module_grit_pattern = ModuleGritPattern {
Expand Down

0 comments on commit 570ff55

Please sign in to comment.