Skip to content

Commit

Permalink
feat(debugger): Enable debug hovers in strings section (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruppde committed Oct 23, 2023
1 parent 8afe641 commit a0348ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yls/hover.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +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 == yaramod.TokenType.StringId:
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 a0348ce

Please sign in to comment.