Skip to content

Commit eabba01

Browse files
committed
Highlight __qualname__
1 parent c8021d7 commit eabba01

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

grammars/MagicPython.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ repository:
16281628
(\\.)?\\b(
16291629
__(?:
16301630
all | bases | class | debug | dict | doc | file | members
1631-
| metaclass | methods | module | mro | name | slots
1631+
| metaclass | methods | module | mro | name | qualname | slots
16321632
| subclasses | version | weakref
16331633
)__
16341634
)\\b

grammars/MagicPython.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2562,7 +2562,7 @@ indirectly through syntactic constructs
25622562
(\.)?\b(
25632563
__(?:
25642564
all | bases | class | debug | dict | doc | file | members
2565-
| metaclass | methods | module | mro | name | slots
2565+
| metaclass | methods | module | mro | name | qualname | slots
25662566
| subclasses | version | weakref
25672567
)__
25682568
)\b

grammars/src/MagicPython.syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ repository:
11081108
(\.)?\b(
11091109
__(?:
11101110
all | bases | class | debug | dict | doc | file | members
1111-
| metaclass | methods | module | mro | name | slots
1111+
| metaclass | methods | module | mro | name | qualname | slots
11121112
| subclasses | version | weakref
11131113
)__
11141114
)\b

test/builtins/builtins3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
some.__subclasses__
1616
some.__version__
1717
some.__weakref__
18+
some.__qualname__
1819
some.__notspecial__
1920

2021

@@ -83,5 +84,8 @@
8384
__weakref__ : source.python, support.variable.magic.python
8485
some : source.python
8586
. : source.python
87+
__qualname__ : source.python, support.variable.magic.python
88+
some : source.python
89+
. : source.python
8690
__notspecial__ : source.python
8791
: source.python

0 commit comments

Comments
 (0)