Skip to content

Commit 1b4f2dd

Browse files
committed
Add lambda expressions
1 parent d07c70a commit 1b4f2dd

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Pluto.tmbundle/Syntaxes/Pluto.tmLanguage

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,48 @@
170170
<key>name</key>
171171
<string>meta.function.incomplete.pluto</string>
172172
</dict>
173+
<dict>
174+
<key>begin</key>
175+
<string>\|(?=[a-zA-Z0-9_,\s]*\|\s*-&gt;)</string>
176+
<key>beginCaptures</key>
177+
<dict>
178+
<key>0</key>
179+
<dict>
180+
<key>name</key>
181+
<string>punctuation.section.group.begin.pluto</string>
182+
</dict>
183+
</dict>
184+
<key>end</key>
185+
<string>(\|)\s*(-&gt;)</string>
186+
<key>endCaptures</key>
187+
<dict>
188+
<key>1</key>
189+
<dict>
190+
<key>name</key>
191+
<string>punctuation.section.group.end.pluto</string>
192+
</dict>
193+
<key>2</key>
194+
<dict>
195+
<key>name</key>
196+
<string>storage.type.function.arrow.pluto</string>
197+
</dict>
198+
</dict>
199+
<key>patterns</key>
200+
<array>
201+
<dict>
202+
<key>match</key>
203+
<string>[a-zA-Z_][a-zA-Z0-9_]*</string>
204+
<key>name</key>
205+
<string>variable.parameter.function.pluto</string>
206+
</dict>
207+
<dict>
208+
<key>match</key>
209+
<string>,</string>
210+
<key>name</key>
211+
<string>punctuation.separator.comma.pluto</string>
212+
</dict>
213+
</array>
214+
</dict>
173215
<dict>
174216
<key>include</key>
175217
<string>#simpleexp</string>

0 commit comments

Comments
 (0)