From 52360b103d0b293c54e83a188d7f2f1b9a7dc5d8 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 9 Jul 2020 12:07:57 -0700 Subject: [PATCH] tags: Fix comment position --- tags/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tags/src/lib.rs b/tags/src/lib.rs index 790b866a..41b4557a 100644 --- a/tags/src/lib.rs +++ b/tags/src/lib.rs @@ -423,8 +423,6 @@ where } } - // Only create one tag per node. The tag queue is sorted by node position - // to allow for fast lookup. let range = tag_node.byte_range(); let span = name_node.start_position()..name_node.end_position(); let utf16_column_range = @@ -441,6 +439,9 @@ where is_definition, syntax_type_id, }; + + // Only create one tag per node. The tag queue is sorted by node position + // to allow for fast lookup. match self.tag_queue.binary_search_by_key( &(tag.name_range.end, tag.name_range.start), |(tag, _)| (tag.name_range.end, tag.name_range.start),