Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Parsing f-strings #685

Merged
merged 121 commits into from
Mar 18, 2019
Merged

Parsing f-strings #685

merged 121 commits into from
Mar 18, 2019

Conversation

brianbok
Copy link
Contributor

@brianbok brianbok commented Mar 1, 2019

f-strings were treated as normal strings before. Now we parse their content, including f-string expressions inside.
We provide completion and hovering for sub-expressions.
Closes #221.
Closes #222.
Closes #223.
Closes #224.
Closes #6.

@brianbok brianbok requested a review from MikhailArkhipov March 1, 2019 18:17
@jakebailey
Copy link
Member

You're also going to need a fix similar to #752 to prevent completion from happening in the literal part of the fstring, i.e., not have this:

image

@brianbok brianbok changed the title [WIP] F-String parsing F-String parsing Mar 18, 2019
@brianbok brianbok changed the title F-String parsing parsing f-strings Mar 18, 2019
@brianbok brianbok changed the title parsing f-strings Parsing f-strings Mar 18, 2019
Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

🎉

@brianbok brianbok merged commit 9c585e4 into microsoft:master Mar 18, 2019
@brianbok brianbok deleted the fstrings branch April 2, 2019 17:24
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
f-strings were treated as normal strings before. Now we parse their content, including f-string expressions inside.
We provide completion and hovering for sub-expressions.
Closes microsoft#221.
Closes microsoft#222.
Closes microsoft#223.
Closes microsoft#224.
Closes microsoft#6.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants