Skip to content

Commit 635b76a

Browse files
author
MattDMo
committed
Trying to fix problem with async highlighting
1 parent 6cc777b commit 635b76a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PythonImproved.YAML-tmLanguage

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ patterns:
157157
- include: '#entity_name_function'
158158

159159
- name: meta.function.python
160-
begin: \s*((?:async\s+)?def)\s+(?=[[:alpha:]_][[:alnum:]_]*\s*\()
160+
begin: \s*(?:(async)\s+)?(def)\s+(?=[[:alpha:]_][[:alnum:]_]*\s*\()
161161
beginCaptures:
162-
'1': {name: storage.type.function.python}
162+
'1': {name: storage.modifier.async.python}
163+
'2': {name: storage.type.function.python}
163164
end: (\:)
164165
endCaptures:
165166
'1': {name: punctuation.section.function.begin.python}

0 commit comments

Comments
 (0)