components/prism-python.js

Branch


Log

Author Commit Date CI Message
Michael Schmidt 8ecef306 2021-12-02T10:52:00 Python: Made `comment` greedy (#3249)
Michael Schmidt 3c61c8f7 2021-10-14T14:01:11 ESLint: Added `regexp/no-useless-flag` rule (#3150)
Wei Ting 3f24dc72 2021-10-08T01:27:12 Python: Add `match` and `case` (soft) keywords (#3142)
Wei Ting 18bd101c 2021-10-05T23:53:12 Python: Recognise walrus operator (#3126)
Michael Schmidt 2c63efa6 2021-10-05T11:50:03 Python: Fixed numbers ending with a dot (#3106)
Michael Schmidt e2630d89 2021-09-26T11:52:18 ESLint: Added `regexp/sort-alternatives` rule (#3093)
Marvin 6f5d68f7 2021-08-16T18:28:36 Python: Support for underscores in numbers (#3039)
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.
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 f92b3f57 2017-10-15T13:19:02 Python: Add highlighting to functions with space between name and parentheses
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
Joe Gibson a288368e 2015-08-19T13:58:35 Just adding 'class-name' to list, not using insert method
Joe Gibson 9ccb6cb6 2015-08-17T17:28:11 , it appears, is not actually a keyword in Python
Joe Gibson d1845471 2015-08-17T14:59:31 Added 'self' as keyword and added 'class-name' matching
Yury Selivanov 3ded4f2c 2015-08-06T18:37:13 python: Add async/await and @ operator (introduced in 3.5)
aviaryan 7af9c9bf 2015-06-19T12:12:27 fixed bug with hexa numbers highlighting in python
aviaryan f1b2e87a 2015-06-19T11:55:24 added function highlighting in python
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 d2a960c8 2014-12-22T22:35:58 Fix numbers in Python (octal, binary, imaginary)
Golmote 4166b2fd 2014-12-22T21:27:03 Add support for single quoted multi-line strings in Python
Lea Verou 97a87448 2014-05-22T17:38:54 Fixed #247
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