File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1124,7 +1124,7 @@ repository:
1124
1124
'''
1125
1125
captures :
1126
1126
" 1" :
1127
- name : " entity.other.inherited- class.python variable.parameter. class.python"
1127
+ name : " variable.parameter. class.python entity.other.inherited- class.python"
1128
1128
" 2" :
1129
1129
name : " keyword.operator.assignment.python"
1130
1130
" inheritance-identifier" :
Original file line number Diff line number Diff line change 1733
1733
<key >1 </key >
1734
1734
<dict >
1735
1735
<key >name </key >
1736
- <string >entity.other.inherited- class.python variable.parameter. class.python </string >
1736
+ <string >variable.parameter. class.python entity.other.inherited- class.python </string >
1737
1737
</dict >
1738
1738
<key >2 </key >
1739
1739
<dict >
Original file line number Diff line number Diff line change @@ -895,8 +895,11 @@ repository:
895
895
(?x)
896
896
\b ([[:alpha:]_]\w*) \s*(=)(?!=)
897
897
captures :
898
- ' 1 ' : {name: entity.other.inherited-class.python
899
- variable.parameter.class.python}
898
+ # "variable.parameter.class.python" scope is more important
899
+ # and hence we specify it first to highlight class parameters
900
+ # as kwargs in Atom/VSCode/GH.
901
+ ' 1 ' : {name: variable.parameter.class.python
902
+ entity.other.inherited-class.python}
900
903
' 2 ' : {name: keyword.operator.assignment.python}
901
904
902
905
inheritance-identifier :
You can’t perform that action at this time.
0 commit comments