Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSS] Fix <0x01> in completion labels #2454

Merged

Conversation

deathaxe
Copy link
Collaborator

Looks like python 3.8? 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.

grafik

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.
Copy link
Collaborator

@FichteFoll FichteFoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this behavior should have changed in 3.8. It does't seem to from my tests, but this is the correct solution regardless.


~ $ python3.8
Python 3.8.5 (default, Jul 27 2020, 08:42:51)
[GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> "\1"
'\x01'
>>>

~ Ξ python3.3
Python 3.3.7 (default, Oct  5 2017, 02:25:52)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> "\1"
'\x01'
>>> import re
>>> re.sub(r".", "\1", "1235")
'\x01\x01\x01\x01'
>>>

@wbond
Copy link
Member

wbond commented Aug 18, 2020

Most likely it is just that we draw these now?

@wbond wbond merged commit 7b279e8 into sublimehq:master Aug 18, 2020
@deathaxe deathaxe deleted the css/fix-completion-item-description branch August 19, 2020 20:31
charlievieth pushed a commit to charlievieth/Packages that referenced this pull request Aug 25, 2020
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.
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants