pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/MagicStack/MagicPython/commit/9dbd299ef37fb67830b926ff4d229c03e167101f

" /> Stop parsing "," as part of lambda definition. · MagicStack/MagicPython@9dbd299 · GitHub
Skip to content

Commit 9dbd299

Browse files
committed
Stop parsing "," as part of lambda definition.
1 parent c9a3e41 commit 9dbd299

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

grammars/MagicPython.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ repository:
11341134
name: "keyword.control.flow.python"
11351135
}
11361136
{
1137-
match: "\\b(lambda)\\s*?([,\\n]|$)"
1137+
match: "\\b(lambda)\\s*?(?=[,\\n]|$)"
11381138
captures:
11391139
"1":
11401140
name: "storage.type.function.lambda.python"

grammars/MagicPython.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@
17551755
</dict>
17561756
<dict>
17571757
<key>match</key>
1758-
<string>\b(lambda)\s*?([,\n]|$)</string>
1758+
<string>\b(lambda)\s*?(?=[,\n]|$)</string>
17591759
<key>captures</key>
17601760
<dict>
17611761
<key>1</key>

grammars/src/MagicPython.syntax.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ repository:
897897
- match: ((?<=\.)lambda|lambda(?=\s*[\.=]))
898898
captures:
899899
'1': {name: keyword.control.flow.python}
900-
- match: \b(lambda)\s*?([,\n]|$)
900+
- match: \b(lambda)\s*?(?=[,\n]|$)
901901
captures:
902902
'1': {name: storage.type.function.lambda.python}
903903
- name: meta.lambda-function.python

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy