Skip to content

Commit

Permalink
Update hover.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ruppde committed Oct 9, 2023
1 parent ea95fad commit ee24627
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions yls/hover.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ async def hover(self, params: lsp_types.TextDocumentPositionParams) -> lsp_types
)

log.debug(f'[HOVER] Hover request with token "{token}" and type "{token.type}"')
if (
token.type in (yaramod.TokenType.StringId, yaramod.TokenType.StringIdAfterNewline)
):
if token.type in (yaramod.TokenType.StringId, yaramod.TokenType.StringIdAfterNewline):
return await self.hover_string(token, document, position)
elif token.type == yaramod.TokenType.Id:
yara_file = utils.yaramod_parse_file(document.path)
Expand Down

0 comments on commit ee24627

Please sign in to comment.