Skip to content

Commit

Permalink
Check also for macro tag
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Aug 28, 2023
1 parent 67cdaaa commit ca59429
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/galaxyls/services/xml/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
convert_document_offsets_to_range,
)

MACRO_RELATED_TAGS = ["import", "token", "expand", "xml"]
MACRO_RELATED_TAGS = ["import", "token", "macro", "xml", "expand"]


class XmlDocument(XmlSyntaxNode):
Expand Down
1 change: 1 addition & 0 deletions server/galaxyls/tests/unit/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def test_get_element_content_range_of_element_returns_expected(self, source: str
("<tool><token/></tool>", True),
("<tool><import/></tool>", True),
("<tool><xml/></tool>", True),
("<tool><macro/></tool>", True),
],
)
def test_uses_macros_returns_expected(self, source: str, expected: bool) -> None:
Expand Down

0 comments on commit ca59429

Please sign in to comment.