components/prism-python.min.js


Log

Author Commit Date CI Message
Michael Schmidt e8d3b503 2021-06-27T14:56:07 ESLint: Added `regexp/strict` rule (#2944)
Michael Schmidt 79d22182 2021-06-08T13:50:35 FIxed some cases of quadratic worst-case runtime (#2922)
Michael Schmidt e644178b 2020-12-28T18:19:11 Added test for polynomial backtracking (#2597)
Michael Schmidt c9324476 2020-04-29T21:54:31 Python: Fixed empty multiline strings (#2344)
Michael Schmidt 5b8a16d9 2019-08-29T16:15:05 Python: Fixed decorators (#2018) This adds a missing multiline flag to support more than one decorator.
Michael Schmidt 3e00bb9c 2019-03-07T15:22:30 Rebuilt Prism (#1794) This is a rebuilt of Prism to update minified files.
Masafumi Koba 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`
Michael Schmidt 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"{'}'}"`.
Michael Schmidt 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.
Michael Schmidt 1d1fb800 2018-11-29T13:43:22 Python: Operator keywords are now keywords (#1617) Change `and`, `not`, and `or` to keywords.
Golmote 12c0b20a 2018-03-08T22:19:01 Decouple minus sign from number pattern in most languages. Close #1110
Golmote f09f9f58 2017-10-22T15:17:05 Python: Make triple-quoted strings greedy + regexp optimisation and simplification
Golmote 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
Erin Wild 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
Erin Wild 317f6908 2017-10-20T12:29:15 Update function test for Python and run gulp
Andreas Rohner 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.
Golmote 90fbf0be 2015-10-26T08:08:13 Python: Highlight triple-quoted strings before comments. Fix #815
Golmote 530f5f00 2015-08-30T13:15:16 Python: Simplified regexps + don't capture where unneeded + fixed operators
Golmote f618948c 2015-08-19T20:30:40 Run gulp task
Joe Gibson 8f8eb626 2015-08-17T17:30:43 Update to minified python
Yury Selivanov 3ded4f2c 2015-08-06T18:37:13 python: Add async/await and @ operator (introduced in 3.5)
aviaryan 2f2ac778 2015-06-19T12:18:28 updated python min file
Golmote 969cda6f 2015-04-26T12:05:19 Fix typo in Python keywords: "elf" => "elif". Fix #573
Golmote b1fd5bdc 2015-03-10T08:27:53 Removed unused global flag in all grammars
Golmote 32093955 2015-01-16T07:34:36 Fixed operators in Python again
Golmote 34421287 2015-01-14T21:56:42 Fixed operators in Python
Golmote 6ff01b60 2015-01-14T21:55:11 Remove encoded entities in Python and NSIS grammars (see #467)
Golmote f842975d 2014-12-22T22:38:24 Run gulp
Golmote 081e6026 2014-12-22T21:28:11 Add support for single quoted multi-line strings in Python
Lea Verou 97a87448 2014-05-22T17:38:54 Fixed #247
Lea Verou 36471491 2014-04-21T13:36:32 Updated minified files
Petros Kyladitis 86ab8b7d 2013-02-08T02:09:30 add SQL syntax highlighters, update code.js, cut 2 bytes from python.min.js
Petros Kyladitis 813f27c8 2013-02-02T02:51:30 Update code.js, small improvements to prism-python.js & prism-python.min.js, revert prism.js to original
Petros Kyladitis a514c8d9 2013-02-02T01:27:47 Add Python syntax highlighters