Commit Graph
3 Commits
Author SHA1 Message Date
Mikhail Golubev 94369babf1 PY-20776 PY-20775 PY-20773 Do not highlight empty ranges inside f-strings
Such errors are difficult to spot because most of the time the
corresponding markers are displayed only in the right gutter, not in
the editor (though, sometimes a single character is highlighted for
some reason).

For an empty expression fragment the whole its content range is
highlighted (from "{" to either "!", ":" or "}").

For the first unclosed expression fragment the range from "{" to the
end of the containing string node is highlighted.

In case of a missing conversion character the character "!" itself is
highlighted.
2016-10-05 16:11:37 +03:00
Mikhail Golubev 5564532c70 PY-20773 Do not warn about '#' inside string literals embedded in expression fragments
Also the annotator highlights the whole expression fragment after '#'
not individual hash signs and warns about line comments instead of
prohibited characters.
2016-10-05 16:11:37 +03:00
Mikhail Golubev 654ac30429 PY-20844 PY-20773 Warn about '#' signs and backslashes inside f-strings 2016-09-26 09:09:23 +03:00