Skip to content

Commit f76ec6f

Browse files
committed
Highlight __signature__
1 parent fc6ea7a commit f76ec6f

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

grammars/MagicPython.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,8 +1628,8 @@ repository:
16281628
(\\.)?\\b(
16291629
__(?:
16301630
all | bases | class | code | debug | dict | doc | file | members
1631-
| metaclass | methods | module | mro | name | qualname | slots
1632-
| subclasses | version | weakref | wrapped
1631+
| metaclass | methods | module | mro | name | qualname | signature
1632+
| slots | subclasses | version | weakref | wrapped
16331633
)__
16341634
)\\b
16351635

grammars/MagicPython.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,8 +2562,8 @@ indirectly through syntactic constructs
25622562
(\.)?\b(
25632563
__(?:
25642564
all | bases | class | code | debug | dict | doc | file | members
2565-
| metaclass | methods | module | mro | name | qualname | slots
2566-
| subclasses | version | weakref | wrapped
2565+
| metaclass | methods | module | mro | name | qualname | signature
2566+
| slots | subclasses | version | weakref | wrapped
25672567
)__
25682568
)\b
25692569
</string>

grammars/src/MagicPython.syntax.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,8 @@ repository:
11081108
(\.)?\b(
11091109
__(?:
11101110
all | bases | class | code | debug | dict | doc | file | members
1111-
| metaclass | methods | module | mro | name | qualname | slots
1112-
| subclasses | version | weakref | wrapped
1111+
| metaclass | methods | module | mro | name | qualname | signature
1112+
| slots | subclasses | version | weakref | wrapped
11131113
)__
11141114
)\b
11151115
captures:

test/builtins/builtins3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
some.__qualname__
1919
some.__code__
2020
some.__wrapped__
21+
some.__signature__
2122
some.__notspecial__
2223

2324

@@ -95,5 +96,8 @@
9596
__wrapped__ : source.python, support.variable.magic.python
9697
some : source.python
9798
. : source.python
99+
__signature__ : source.python, support.variable.magic.python
100+
some : source.python
101+
. : source.python
98102
__notspecial__ : source.python
99103
: source.python

0 commit comments

Comments
 (0)