|
8ecef306
|
2021-12-02T10:52:00
|
|
Python: Made `comment` greedy (#3249)
|
|
3c61c8f7
|
2021-10-14T14:01:11
|
|
ESLint: Added `regexp/no-useless-flag` rule (#3150)
|
|
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)
|
|
e2630d89
|
2021-09-26T11:52:18
|
|
ESLint: Added `regexp/sort-alternatives` rule (#3093)
|
|
6f5d68f7
|
2021-08-16T18:28:36
|
|
Python: Support for underscores in numbers (#3039)
|
|
e8d3b503
|
2021-06-27T14:56:07
|
|
ESLint: Added `regexp/strict` rule (#2944)
|
|
79d22182
|
2021-06-08T13:50:35
|
|
FIxed some cases of quadratic worst-case runtime (#2922)
|
|
e644178b
|
2020-12-28T18:19:11
|
|
Added test for polynomial backtracking (#2597)
|
|
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.
|
|
3e00bb9c
|
2019-03-07T15:22:30
|
|
Rebuilt Prism (#1794)
This is a rebuilt of Prism to update minified files.
|
|
0c8f6504
|
2018-12-03T04:37:20
|
|
Add file extensions support for major languages (#1478)
This adds aliases for file extensions of some major languages.
- `coffee` -> `coffeescript`
- `md` -> `markdown`
- `py` -> `python`
- `rb` -> `ruby`
- `yml` -> `yaml`
|
|
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.
|
|
12c0b20a
|
2018-03-08T22:19:01
|
|
Decouple minus sign from number pattern in most languages. Close #1110
|
|
f09f9f58
|
2017-10-22T15:17:05
|
|
Python: Make triple-quoted strings greedy + regexp optimisation and simplification
|
|
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
|
|
530f5f00
|
2015-08-30T13:15:16
|
|
Python: Simplified regexps + don't capture where unneeded + fixed operators
|
|
f618948c
|
2015-08-19T20:30:40
|
|
Run gulp task
|
|
8f8eb626
|
2015-08-17T17:30:43
|
|
Update to minified python
|
|
3ded4f2c
|
2015-08-06T18:37:13
|
|
python: Add async/await and @ operator (introduced in 3.5)
|
|
2f2ac778
|
2015-06-19T12:18:28
|
|
updated python min file
|
|
969cda6f
|
2015-04-26T12:05:19
|
|
Fix typo in Python keywords: "elf" => "elif". Fix #573
|
|
b1fd5bdc
|
2015-03-10T08:27:53
|
|
Removed unused global flag in all grammars
|
|
32093955
|
2015-01-16T07:34:36
|
|
Fixed operators in Python again
|
|
34421287
|
2015-01-14T21:56:42
|
|
Fixed operators in Python
|
|
6ff01b60
|
2015-01-14T21:55:11
|
|
Remove encoded entities in Python and NSIS grammars (see #467)
|
|
f842975d
|
2014-12-22T22:38:24
|
|
Run gulp
|
|
081e6026
|
2014-12-22T21:28:11
|
|
Add support for single quoted multi-line strings in Python
|
|
97a87448
|
2014-05-22T17:38:54
|
|
Fixed #247
|
|
36471491
|
2014-04-21T13:36:32
|
|
Updated minified files
|
|
86ab8b7d
|
2013-02-08T02:09:30
|
|
add SQL syntax highlighters, update code.js, cut 2 bytes from python.min.js
|
|
813f27c8
|
2013-02-02T02:51:30
|
|
Update code.js, small improvements to prism-python.js & prism-python.min.js, revert prism.js to original
|
|
a514c8d9
|
2013-02-02T01:27:47
|
|
Add Python syntax highlighters
|