Skip to content

Commit 7f562b2

Browse files
committed
add support for pep 585 generics
1 parent 7d0f2b2 commit 7f562b2

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

grammars/MagicPython.cson

+3
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,9 @@ repository:
15541554
{
15551555
include: "#builtin-functions"
15561556
}
1557+
{
1558+
include: "#builtin-types"
1559+
}
15571560
{
15581561
include: "#special-names"
15591562
}

grammars/MagicPython.tmLanguage

+4
Original file line numberDiff line numberDiff line change
@@ -2438,6 +2438,10 @@ correctly identify the "in" as a control flow keyword.
24382438
<key>include</key>
24392439
<string>#builtin-functions</string>
24402440
</dict>
2441+
<dict>
2442+
<key>include</key>
2443+
<string>#builtin-types</string>
2444+
</dict>
24412445
<dict>
24422446
<key>include</key>
24432447
<string>#special-names</string>

grammars/src/MagicPython.syntax.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ repository:
11121112
patterns:
11131113
- include: '#special-variables'
11141114
- include: '#builtin-functions'
1115+
- include: '#builtin-types'
11151116
- include: '#special-names'
11161117
- name: meta.indexed-name.python
11171118
match: |

0 commit comments

Comments
 (0)