Skip to content

Commit

Permalink
Add underline in active parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
predrag-codetribe authored and tomv564 committed May 27, 2019
1 parent de7b09d commit ce8d99f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/signature_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def parameter(self, content: str, emphasize: bool = False) -> str:

def _wrap_with_scope_style(self, content: str, scope: str, emphasize: bool = False, escape: bool = True) -> str:
color = self._scope_styles[scope]["color"]
weight_style = ';font-weight: bold' if emphasize else ''
additional_styles = 'font-weight: bold; text-decoration: underline;' if emphasize else ''
content = html.escape(content, quote=False) if escape else content
return '<span style="color: {}{}">{}</span>'.format(color, weight_style, content)
return '<span style="color: {};{}">{}</span>'.format(color, additional_styles, content)


class SignatureHelpListener(sublime_plugin.ViewEventListener):
Expand Down

0 comments on commit ce8d99f

Please sign in to comment.