File tree Expand file tree Collapse file tree 3 files changed +32
-15
lines changed Expand file tree Collapse file tree 3 files changed +32
-15
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ repository:
61
61
comments :
62
62
patterns : [
63
63
{
64
- name : " comment.line.number-sign.python meta.typehint.comment.python"
64
+ name : " comment.line.number-sign.python"
65
+ contentName : " meta.typehint.comment.python"
65
66
begin : '''
66
67
(?x)
67
68
(?:
@@ -75,6 +76,8 @@ repository:
75
76
'''
76
77
end : " (?:$|(?=\\ #))"
77
78
beginCaptures :
79
+ " 0" :
80
+ name : " meta.typehint.comment.python"
78
81
" 1" :
79
82
name : " comment.typehint.directive.notation.python"
80
83
patterns : [
@@ -1241,15 +1244,17 @@ repository:
1241
1244
" parameter-special" :
1242
1245
match : '''
1243
1246
(?x)
1244
- (?: \\ b (self)|(cls) \\ b) \\ s*(?:(,)|(?=\\ )))
1247
+ \\ b (( self)|(cls)) \\ b \\ s*(?:(,)|(?=\\ )))
1245
1248
1246
1249
'''
1247
1250
captures :
1248
1251
" 1" :
1249
- name : " variable.parameter.function.language.python variable.parameter.function.language.special.self.python "
1252
+ name : " variable.parameter.function.language.python"
1250
1253
" 2" :
1251
- name : " variable.parameter.function.language.python variable.parameter.function.language. special.cls .python"
1254
+ name : " variable.parameter.function.language.special.self .python"
1252
1255
" 3" :
1256
+ name : " variable.parameter.function.language.special.cls.python"
1257
+ " 4" :
1253
1258
name : " punctuation.separator.parameters.python"
1254
1259
" parameter-with-default" :
1255
1260
begin : '''
Original file line number Diff line number Diff line change 94
94
<array >
95
95
<dict >
96
96
<key >name </key >
97
- <string >comment.line.number-sign.python meta.typehint.comment.python </string >
97
+ <string >comment.line.number-sign.python </string >
98
+ <key >contentName </key >
99
+ <string >meta.typehint.comment.python </string >
98
100
<key >begin </key >
99
101
<string >(?x)
100
102
(?:
109
111
<string >(?:$|(?=\#)) </string >
110
112
<key >beginCaptures </key >
111
113
<dict >
114
+ <key >0 </key >
115
+ <dict >
116
+ <key >name </key >
117
+ <string >meta.typehint.comment.python </string >
118
+ </dict >
112
119
<key >1 </key >
113
120
<dict >
114
121
<key >name </key >
@@ -1992,21 +1999,26 @@ it's not tokenized as ellipsis.
1992
1999
<dict >
1993
2000
<key >match </key >
1994
2001
<string >(?x)
1995
- (?: \b (self)|(cls) \b) \s*(?:(,)|(?=\)))
2002
+ \b (( self)|(cls)) \b \s*(?:(,)|(?=\)))
1996
2003
</string >
1997
2004
<key >captures </key >
1998
2005
<dict >
1999
2006
<key >1 </key >
2000
2007
<dict >
2001
2008
<key >name </key >
2002
- <string >variable.parameter.function.language.python variable.parameter.function.language.special.self.python </string >
2009
+ <string >variable.parameter.function.language.python </string >
2003
2010
</dict >
2004
2011
<key >2 </key >
2005
2012
<dict >
2006
2013
<key >name </key >
2007
- <string >variable.parameter.function.language.python variable.parameter.function.language. special.cls .python </string >
2014
+ <string >variable.parameter.function.language.special.self .python </string >
2008
2015
</dict >
2009
2016
<key >3 </key >
2017
+ <dict >
2018
+ <key >name </key >
2019
+ <string >variable.parameter.function.language.special.cls.python </string >
2020
+ </dict >
2021
+ <key >4 </key >
2010
2022
<dict >
2011
2023
<key >name </key >
2012
2024
<string >punctuation.separator.parameters.python </string >
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ repository:
89
89
comments :
90
90
patterns :
91
91
- name : comment.line.number-sign.python
92
- meta.typehint.comment.python
92
+ contentName : meta.typehint.comment.python
93
93
94
94
begin : |
95
95
(?x)
@@ -103,6 +103,7 @@ repository:
103
103
104
104
end : (?:$|(?=\#))
105
105
beginCaptures :
106
+ ' 0 ' : {name: meta.typehint.comment.python}
106
107
' 1 ' : {name: comment.typehint.directive.notation.python}
107
108
108
109
patterns :
@@ -841,13 +842,12 @@ repository:
841
842
parameter-special :
842
843
match : |
843
844
(?x)
844
- (?: \b (self)|(cls) \b) \s*(?:(,)|(?=\)))
845
+ \b (( self)|(cls)) \b \s*(?:(,)|(?=\)))
845
846
captures :
846
- ' 1 ' : {name: variable.parameter.function.language.python
847
- variable.parameter.function.language.special.self.python}
848
- ' 2 ' : {name: variable.parameter.function.language.python
849
- variable.parameter.function.language.special.cls.python}
850
- ' 3 ' : {name: punctuation.separator.parameters.python}
847
+ ' 1 ' : {name: variable.parameter.function.language.python}
848
+ ' 2 ' : {name: variable.parameter.function.language.special.self.python}
849
+ ' 3 ' : {name: variable.parameter.function.language.special.cls.python}
850
+ ' 4 ' : {name: punctuation.separator.parameters.python}
851
851
852
852
parameter-with-default :
853
853
begin : |
You can’t perform that action at this time.
0 commit comments