Skip to content

Commit

Permalink
[python] remove -> from illegal patterns (#3741)
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Ezra-M committed Mar 21, 2023
1 parent 0b87d60 commit acc804f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Grammars:
- fix(haskell) Added support for characters [CrystalSplitter][]
- enh(dart) Add `base`, `interface`, `sealed`, and `when` keywords [Sam Rawlins][]
- enh(php) detect newer more flexible NOWdoc syntax (#3679) [Timur Kamaev][]
- enh(python) improve autodetection of code with type hinting any function's return type (making the `->` operator legal) [Keyacom][]

Parser:

Expand All @@ -39,6 +40,7 @@ Parser:
[rvanasa]: https://github.com/rvanasa
[CrystalSplitter]: https://github.com/CrystalSplitter
[Sam Rawlins]: https://github.com/srawlins
[Keyacom]: https://github.com/Keyacom


## Version 11.7.0
Expand Down
2 changes: 1 addition & 1 deletion src/languages/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default function(hljs) {
],
unicodeRegex: true,
keywords: KEYWORDS,
illegal: /(<\/|->|\?)|=>/,
illegal: /(<\/|\?)|=>/,
contains: [
PROMPT,
NUMBER,
Expand Down

0 comments on commit acc804f

Please sign in to comment.