|
a69c2b62
|
2018-12-02T16:48:53
|
|
Improvements to Python F-strings and string prefixes (#1642)
This PR adds support for [string interpolation](https://www.python.org/dev/peps/pep-0498/) (aka. f-strings) and makes the [string prefixes](https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals) part of the string.
Resolves #1636.
### Known issues
Assumes that strings inside the interpolation expression are 'nice'. So strings
with unfortunate numbers of curley braces will cause incorrect highlighting: E.g.: `f"{'}'}"`.
|
|
964450e1
|
2016-04-30T13:35:01
|
|
Apply the new greedy flag to a few languages
This patch applies the new greedy flag to a few languages and
adds the corresponding test cases.
|
|
90fbf0be
|
2015-10-26T08:08:13
|
|
Python: Highlight triple-quoted strings before comments. Fix #815
|
|
7849c95e
|
2015-08-30T13:15:50
|
|
Add tests for Python
|