Skip to content

Commit c590b86

Browse files
committed
lambda can be parameterless
Fix 'str' highlighting for this code exemple def f(k=lamda: 'str'): pass
1 parent b2ed6fa commit c590b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonImproved.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@
576576
</dict>
577577
<dict>
578578
<key>begin</key>
579-
<string>(lambda)(?=\s+)</string>
579+
<string>(lambda)(?=\s+|:)</string>
580580
<key>beginCaptures</key>
581581
<dict>
582582
<key>1</key>

0 commit comments

Comments
 (0)