Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Core Grammars:
- enh(json) add json5 support [Kerry Shetline][]
- fix(css) `unicode-range` parsing, issue #4253 [Kerry Shetline][]
- fix(csharp) Support digit separators [te-ing][]
- enh(python) correctly highlight `lazy import` syntax from PEP 810 [Peter Bierma][]

Documentation:

Expand Down Expand Up @@ -55,6 +56,7 @@ CONTRIBUTORS
[te-ing]: https://github.com/te-ing
[Anthony Martin]: https://github.com/anthony-c-martin
[NriotHrreion]: https://github.com/NriotHrreion
[Peter Bierma]: https://github.com/ZeroIntensity


## Version 11.11.1
Expand Down
1 change: 1 addition & 0 deletions src/languages/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function(hljs) {
'in',
'is',
'lambda',
'lazy',
'match',
'nonlocal|10',
'not',
Expand Down
2 changes: 2 additions & 0 deletions test/markup/python/lazy-import.expect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<span class="hljs-keyword">lazy</span> <span class="hljs-keyword">import</span> foo
<span class="hljs-keyword">lazy</span> <span class="hljs-keyword">from</span> foo <span class="hljs-keyword">import</span> bar
2 changes: 2 additions & 0 deletions test/markup/python/lazy-import.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lazy import foo
lazy from foo import bar