Skip to content

Commit

Permalink
[CSS] Fix <0x01> in completion labels (#2454)
Browse files Browse the repository at this point in the history
Looks like python requires a raw string to perform proper regexp
replacement. The intention here is to replace `${1:param}` by `param` so
the completion list displays named function arguments.
  • Loading branch information
deathaxe committed Aug 18, 2020
1 parent 1b039db commit 7b279e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CSS/css_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def complete_property_value(self, view, prefix, pt):

for value in values:
if isinstance(value, str):
desc = self.re_trigger.sub("\1", value)
desc = self.re_trigger.sub(r"\1", value)
snippet = value
else:
desc, snippet = value
Expand Down

0 comments on commit 7b279e8

Please sign in to comment.