Skip to content

Commit 9d3eed8

Browse files
author
MattDMo
committed
fixed #52 (again)
1 parent 16b4d50 commit 9d3eed8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

PythonImproved.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@
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>
@@ -2101,7 +2101,7 @@
21012101
</dict>
21022102
</dict>
21032103
<key>match</key>
2104-
<string>(?&lt;!\.)\b(self|cls)(?:\.|\()?</string>
2104+
<string>(?&lt;!\.)\b(self|cls)\b(?:\.|\()?</string>
21052105
</dict>
21062106
<key>line_continuation</key>
21072107
<dict>

0 commit comments

Comments
 (0)