Visitar URL original
add support for pep 585 generics by asottile · Pull Request #271 · MagicStack/MagicPython · GitHub
Skip to content
Draft
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
add support for pep 585 generics
  • Loading branch information
asottile committed Mar 12, 2025
commit 7f562b2b51f41744ee83362a5b87301fdc7e0f55
3 changes: 3 additions & 0 deletions grammars/MagicPython.cson
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,9 @@ repository:
{
include: "#builtin-functions"
}
{
include: "#builtin-types"
}
{
include: "#special-names"
}
Expand Down
4 changes: 4 additions & 0 deletions grammars/MagicPython.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2438,6 +2438,10 @@ correctly identify the "in" as a control flow keyword.
<key>include</key>
<string>#builtin-functions</string>
</dict>
<dict>
<key>include</key>
<string>#builtin-types</string>
</dict>
<dict>
<key>include</key>
<string>#special-names</string>
Expand Down
1 change: 1 addition & 0 deletions grammars/src/MagicPython.syntax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ repository:
patterns:
- include: '#special-variables'
- include: '#builtin-functions'
- include: '#builtin-types'
- include: '#special-names'
- name: meta.indexed-name.python
match: |
Expand Down