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

Implement fstring literal tokenizer to break string into text/interpolated regions #222

Closed
jakebailey opened this issue Oct 10, 2018 · 0 comments
Assignees

Comments

@jakebailey
Copy link
Member

jakebailey commented Oct 10, 2018

For example, turning f'My name is {name:r}: {{hi}}' into:

[
    FStringText("f'My name is "),
    FStringInterpolation("name", "r"),
    FStringText(": {{hi}}",
]

Or similar. This precedes actually tokenizing/parsing the interpolations themselves.

Epic #6.

@jakebailey jakebailey self-assigned this Oct 10, 2018
@qubitron qubitron removed the enhancement New feature or request label Oct 10, 2018
brianbok added a commit that referenced this issue Mar 18, 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.
jakebailey pushed a commit to jakebailey/python-language-server that referenced this issue 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.
Projects
None yet
Development

No branches or pull requests

2 participants