File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1124,7 +1124,7 @@ repository:
11241124 '''
11251125 captures :
11261126 " 1" :
1127- name : " entity.other.inherited- class.python variable.parameter. class.python"
1127+ name : " variable.parameter. class.python entity.other.inherited- class.python"
11281128 " 2" :
11291129 name : " keyword.operator.assignment.python"
11301130 " inheritance-identifier" :
Original file line number Diff line number Diff line change 17331733 <key >1 </key >
17341734 <dict >
17351735 <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 >
17371737 </dict >
17381738 <key >2 </key >
17391739 <dict >
Original file line number Diff line number Diff line change @@ -895,8 +895,11 @@ repository:
895895 (?x)
896896 \b ([[:alpha:]_]\w*) \s*(=)(?!=)
897897 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}
900903 ' 2 ' : {name: keyword.operator.assignment.python}
901904
902905 inheritance-identifier :
You can’t perform that action at this time.
0 commit comments