|
3f24dc72
|
2021-10-08T01:27:12
|
|
Python: Add `match` and `case` (soft) keywords (#3142)
|
|
18bd101c
|
2021-10-05T23:53:12
|
|
Python: Recognise walrus operator (#3126)
|
|
2c63efa6
|
2021-10-05T11:50:03
|
|
Python: Fixed numbers ending with a dot (#3106)
|
|
6f5d68f7
|
2021-08-16T18:28:36
|
|
Python: Support for underscores in numbers (#3039)
|
|
c9324476
|
2020-04-29T21:54:31
|
|
Python: Fixed empty multiline strings (#2344)
|
|
5b8a16d9
|
2019-08-29T16:15:05
|
|
Python: Fixed decorators (#2018)
This adds a missing multiline flag to support more than one decorator.
|
|
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"{'}'}"`.
|
|
2577b6e6
|
2018-12-02T00:07:24
|
|
Add decorator support to Python (#1639)
Add support for Python decorators, implementing #1635
using the solution proposed by @spectras.
Also add 2 aliases: `annotation` to be like Java and `punctuation`
to change the actual color (like Java).
This resolves #1635.
|
|
1d1fb800
|
2018-11-29T13:43:22
|
|
Python: Operator keywords are now keywords (#1617)
Change `and`, `not`, and `or` to keywords.
|
|
294efaae
|
2018-03-26T20:48:26
|
|
Core: Greedy patterns should always be matched against the full string. Fix #1355
|
|
3badd8a6
|
2017-10-21T10:10:32
|
|
Merge branch 'py-functions' of https://github.com/erinwild/prism into erinwild-py-functions
# Conflicts:
# components/prism-python.js
# components/prism-python.min.js
|
|
2169c995
|
2017-10-21T04:06:35
|
|
Add Python builtin function highlighting (#1205)
* Add Python builtin function highlighting
* Add builtin functions from Python 3.6
* Python: Add 'nonlocal' and 'None' keywords
* Update tests for Python
* Python: Remove duplicated builtins that are already keywords
* Run gulp
|
|
317f6908
|
2017-10-20T12:29:15
|
|
Update function test for Python and run gulp
|
|
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
|