File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ patterns:
307307- include : ' #magic_variable_names'
308308
309309- name : meta.function-call.python
310- begin : (self|cls)\s*(?=(\())
310+ begin : \b (self|cls)\b \s*(?=(\())
311311 beginCaptures :
312312 ' 1 ' : {name: variable.language.python}
313313 ' 2 ' : {name: punctuation.definition.arguments.begin.python}
@@ -774,7 +774,7 @@ repository:
774774 - include : $self
775775
776776 language_variables :
777- match : (?<!\.)\b(self|cls)(?:\.|\()?
777+ match : (?<!\.)\b(self|cls)\b (?:\.|\()?
778778 captures :
779779 " 1 " : {name: variable.language.python}
780780
Original file line number Diff line number Diff line change 847847 </dict >
848848 <dict >
849849 <key >begin </key >
850- <string >(self|cls)\s*(?=(\()) </string >
850+ <string >\b (self|cls)\b \s*(?=(\()) </string >
851851 <key >beginCaptures </key >
852852 <dict >
853853 <key >1 </key >
21012101 </dict >
21022102 </dict >
21032103 <key >match </key >
2104- <string >(?< !\.)\b(self|cls)(?:\.|\()? </string >
2104+ <string >(?< !\.)\b(self|cls)\b (?:\.|\()? </string >
21052105 </dict >
21062106 <key >line_continuation </key >
21072107 <dict >
You can’t perform that action at this time.
0 commit comments