@@ -1,9 +1,9 @@
11<?xml version="1.0" encoding="UTF-8"?>
22<syntax name="haskell">
33 <meta>
4− <name>Haskell</name>
5− <type>compiled</type>
6− <preferred-file-extension>hs</preferred-file-extension>
4+ <name>Haskell</name>
5+ <type>compiled</type>
6+ <preferred-file-extension>hs</preferred-file-extension>
77 </meta>
88
99 <detectors>
@@ -57,6 +57,7 @@
5757 <include syntax="self" collection="type-family-definition" />
5858 <include syntax="self" collection="pattern-definition" />
5959 <include syntax="self" collection="type-definition" />
60+ <!-- <include syntax="self" collection="type-annotation" /> -->
6061 <include syntax="self" collection="GADT-definition" />
6162 <include syntax="self" collection="instance" />
6263 <include syntax="self" collection="typeclass" />
@@ -65,6 +66,7 @@
6566
6667 <template-scopes>
6768 <include syntax="self" collection="Quote" />
69+ <include syntax="self" collection="comments" />
6870 </template-scopes>
6971
7072 <collections>
@@ -77,27 +79,51 @@
7779 </collection>
7880
7981 <collection name="expressions">
80− <scope name="haskell.construct.keyword.at">
81− <expression>@</expression>
82− </scope>
83− <scope name="haskell.construct.keyword.case-arrow">
84− <expression>-></expression>
85− </scope>
86− <scope name="haskell.construct.keyword.bind-arrow">
87− <expression><-</expression>
88− </scope>
89− <include syntax="self" collection="keywords" />
82+ <include syntax="self" collection="do-bind" />
9083 <include syntax="self" collection="literal" />
9184 <include syntax="self" collection="operators" />
92− <include syntax="self" collection="record-match" />
9385 <include syntax="self" collection="list" />
94− <include syntax="self" collection="view-pattern" />
9586 <include syntax="self" collection="lambda-case" />
9687 <include syntax="self" collection="lambda-head" />
97− <include syntax="self" collection="case-expression" />
98− <include syntax="self" collection="qconid" />
88+ <include syntax="self" collection="type-applications" />
89+ <include syntax="self" collection="outer-case-expression" />
9990 <include syntax="self" collection="qvarid" />
10091 <include syntax="self" collection="tuple" />
92+
93+
94+ <!-- Needed for do binds -->
95+ <!-- <include syntax="self" collection="pattern-match" /> -->
96+ </collection>
97+
98+ <collection name="pattern-match">
99+ <include syntax="self" collection="literal" />
100+ <include syntax="self" collection="tuple-match" />
101+ <!-- <include syntax="self" collection="at-pattern" /> -->
102+ <include syntax="self" collection="varid" />
103+ <include syntax="self" collection="qconid" />
104+ <include syntax="self" collection="record-match" />
105+ <include syntax="self" collection="list-pattern" />
106+ <include syntax="self" collection="view-pattern" />
107+ </collection>
108+
109+ <collection name="type-applications">
110+ <scope name="type-applications">
111+ <starts-with>
112+ <expression>(\s@)\(</expression>
113+ <capture number="1" name="haskell.keyword.operator.typeapplication" />
114+ </starts-with>
115+ <ends-with>
116+ <expression>)</expression>
117+ </ends-with>
118+ <subscopes>
119+ <include syntax="self" collection="type" />
120+ </subscopes>
121+ </scope>
122+ <scope name="type-applications-single">
123+ <expression>(@)(\w+)</expression>
124+ <capture number="1" name="haskell.keyword.operator.typeapplication" />
125+ <capture number="2" name="haskell.identifier.type" />
126+ </scope>
101127 </collection>
102128
103129 <collection name="Quote">
@@ -136,8 +162,8 @@
136162 <capture number="1" name="haskell.pattern.record.bracket" />
137163 </ends-with>
138164 <subscopes>
139− <include syntax="self" collection="comments" />
140− <include syntax="self" collection="expressions" />
165+ <include syntax="self" collection="pattern-match" />
166+ <include syntax="self" collection="varid" />
141167 <scope name="record-sep">
142168 <expression>=</expression>
143169 </scope>
@@ -159,7 +185,6 @@
159185 <capture number="1" name="haskell.pattern.record.bracket" />
160186 </ends-with>
161187 <subscopes>
162− <include syntax="self" collection="comments" />
163188 <scope name="haskell.pattern.record.wildcard">
164189 <expression>\.\.</expression>
165190 </scope>
@@ -186,12 +211,29 @@
186211 <capture number="1" name="haskell.list.bracket" />
187212 </ends-with>
188213 <subscopes>
189− <include syntax="self" collection="comments" />
190214 <include syntax="self" collection="expressions" />
191215 </subscopes>
192216 </scope>
193217 </collection>
194218
219+ <collection name="list-pattern">
220+ <symbol type="expression" />
221+ <scope name="haskell.pattern.list">
222+ <starts-with>
223+ <expression>(\[)</expression>
224+ <capture number="1" name="haskell.pattern.list.bracket" />
225+ </starts-with>
226+ <ends-with>
227+ <expression>(\])</expression>
228+ <capture number="1" name="haskell.pattern.list.bracket" />
229+ </ends-with>
230+ <subscopes>
231+ <include syntax="self" collection="pattern-match" />
232+ </subscopes>
233+ </scope>
234+ </collection>
235+
236+
195237 <collection name="view-pattern">
196238 <scope name="haskell.pattern.view">
197239 <symbol type="expression" />
@@ -208,7 +250,24 @@
208250 <scope name="haskell.pattern.view.operator.arrow">
209251 <expression>-></expression>
210252 </scope>
211− <include syntax="self" collection="expressions" />
253+ <include syntax="self" collection="pattern-match" />
254+ </subscopes>
255+ </scope>
256+ </collection>
257+
258+ <collection name="tuple-match">
259+ <symbol type="expression" />
260+ <scope name="haskell.pattern.tuple">
261+ <starts-with>
262+ <expression>(\()</expression>
263+ <capture number="1" name="haskell.pattern.tuple.bracket" />
264+ </starts-with>
265+ <ends-with>
266+ <expression>(\))</expression>
267+ <capture number="1" name="haskell.pattern.tuple.bracket" />
268+ </ends-with>
269+ <subscopes>
270+ <include syntax="self" collection="pattern-match" />
212271 </subscopes>
213272 </scope>
214273 </collection>
@@ -224,11 +283,53 @@
224283 <capture number="1" name="haskell.case.keyword.condition" />
225284 </ends-with>
226285 <subscopes anchored="true">
286+ <include syntax="self" collection="pattern-match" />
287+ </subscopes>
288+ </scope>
289+ </collection>
290+
291+ <collection name="case-match">
292+ <scope name="case-match">
293+ <starts-with>
294+ <expression>(?=((\h*)\S.*->($|\h)))</expression>
295+ </starts-with>
296+ <ends-with>
297+ <expression>-></expression>
298+ </ends-with>
299+ <subscopes anchored="true">
300+ <include syntax="self" collection="pattern-match" />
301+ </subscopes>
302+ </scope>
303+ </collection>
304+
305+ <collection name="inner-case-expressions">
306+ <scope name="inner-case-expressions">
307+ <starts-with>
308+ <expression>(?=((\h*)\S.*->($|\h)))</expression>
309+ </starts-with>
310+ <ends-with>
311+ <template>^(?!\1)(?!\2\h)(?!\s*$)</template>
312+ </ends-with>
313+ <subscopes>
314+ <include syntax="self" collection="case-match" />
227315 <include syntax="self" collection="expressions" />
228316 </subscopes>
229317 </scope>
230318 </collection>
231319
320+ <collection name="outer-case-expression">
321+ <scope name="outer-case-expression">
322+ <starts-with>
323+ <expression>(?=case)</expression>
324+ </starts-with>
325+ <ends-with />
326+ <subscopes anchored="true" skip-whitespace="false">
327+ <include syntax="self" collection="case-expression" />
328+ <include syntax="self" collection="inner-case-expressions" repeat="true" />
329+ </subscopes>
330+ </scope>
331+ </collection>
332+
232333 <collection name="tuple">
233334 <symbol type="expression" />
234335 <scope name="haskell.tuple">
@@ -241,73 +342,60 @@
241342 <capture number="1" name="haskell.tuple.bracket" />
242343 </ends-with>
243344 <subscopes>
244− <include syntax="self" collection="comments" />
245345 <include syntax="self" collection="expressions" />
246346 </subscopes>
247347 </scope>
248348 </collection>
249349
250350 <collection name="typeclass">
251− <scope name="haskell.definition.class.head">
252− <symbol type="class" scope="global" name-selector="haskell.keyword.construct.class.name">
253− <context behavior="whitespace" foldable="true" />
254− </symbol>
351+ <symbol type="interface" />
352+ <scope name="haskell.definition.class">
255353 <starts-with>
256354 <expression>^(\h*)(class)($|\h)</expression>
257355 <capture number="2" name="haskell.keyword.construct.class" />
258356 </starts-with>
259− <ends-with />
260− <subscopes anchored="true">
261− <scope name="haskell.keyword.construct.class.name">
262− <starts-with>
263− <expression></expression>
264− </starts-with>
265− <ends-with>
266− <expression>(?=(where|^\s*$))</expression>
267− </ends-with>
268− <subscopes>
269− <include syntax="self" collection="comments" />
270− <include syntax="self" collection="type" />
271− </subscopes>
272− </scope>
273− <scope name="haskell.keyword.construct.where" optional="true">
357+ <ends-with>
358+ <template>^(?!\s+\1\S)(?!\s*$)</template>
359+ </ends-with>
360+ <subscopes>
361+ <scope name="haskell.keyword.construct.where">
274362 <expression>where</expression>
275363 </scope>
364+ <include syntax="self" collection="type" />
365+ <include syntax="self" collection="type-definition" />
366+ <!-- <include syntax="self" collection="type-annotation" /> -->
367+ <include syntax="self" collection="definition" />
276368 </subscopes>
277369 </scope>
278370 </collection>
279371
280372 <collection name="instance">
281373 <scope name="haskell.instance">
282− <symbol type="category" name-selector="haskell.keyword.construct.instance.name">
283− <context behavior="whitespace" foldable="true" />
284− </symbol>
374+ <symbol type="category" />
285375 <starts-with>
286376 <expression>^(\h*)(instance)($|\h)</expression>
287377 <capture number="2" name="haskell.keyword.construct.instance" />
288378 </starts-with>
289− <ends-with />
290− <subscopes anchored="true">
291− <scope name="haskell.keyword.construct.instance.name">
292− <starts-with>
293− <expression></expression>
294− </starts-with>
295− <ends-with>
296− <expression>(?=(where|^\s*$))</expression>
297− </ends-with>
298− <subscopes>
299− <include syntax="self" collection="type" />
300− </subscopes>
301− </scope>
302− <scope name="haskell.keyword.construct.where" optional="true">
379+ <ends-with>
380+ <template>^(?!\s+\1\S)(?!\s*$)</template>
381+ </ends-with>
382+ <subscopes>
383+ <scope name="haskell.keyword.construct.where">
303384 <expression>where</expression>
304385 </scope>
386+ <include syntax="self" collection="type" />
387+ <include syntax="self" collection="type-definition" />
388+ <include syntax="self" collection="type-annotation" />
389+ <include syntax="self" collection="definition" />
305390 </subscopes>
306391 </scope>
307392 </collection>
308393
309394 <collection name="type-family-definition">
310395 <scope name="haskell.definition.type-family.type">
396+ <symbol type="type">
397+ <context behavior="subtree" foldable="false" />
398+ </symbol>
311399 <starts-with>
312400 <expression>^(\h*)(type\h+family)</expression>
313401 <capture number="2" name="haskell.keyword.construct.type-family" />
@@ -346,7 +434,6 @@
346434 <template>^(?!\s+\1\S)(?!\s*$)</template>
347435 </ends-with>
348436 <subscopes>
349− <include syntax="self" collection="comments" />
350437 <include syntax="self" collection="type" optional="true" repeat="true" />
351438 <scope>
352439 <expression>=</expression>
@@ -359,26 +446,65 @@
359446 <collection name="definition">
360447 <scope name="haskell.definition.type.function">
361448 <symbol type="function">
362− <context behavior="whitespace" foldable="true" />
449+ <display-name>
450+ <component selector="haskell.definition.type.function" />
451+ </display-name>
452+
363453 </symbol>
364454 <starts-with>
365455 <expression>^(?=(\h*)(default\h+)?`?(\w(\w|')*)`?($|\h))</expression>
366456 <capture number="2" name="haskell.keyword.construct.default" />
367− <capture number="3" name="haskell.identifier.function.name" />
457+ <capture number="3" name="haskell.identifier.function" />
368458 </starts-with>
369459 <ends-with>
370460 <template>^(?!\1\3\s)(?!\s+\1\S)(?!\s*$)</template>
371461 </ends-with>
372462 <subscopes>
373− <include syntax="self" collection="comments" />
374463 <include syntax="self" collection="type-annotation" />
375464 <include syntax="self" collection="implementation" />
376465 </subscopes>
377466 </scope>
378467 </collection>
379468
469+ <collection name="do-bind">
470+ <scope name="do-bind">
471+ <starts-with>
472+ <expression>^(?=((\h*)\S.+<-($|\h)))</expression>
473+ </starts-with>
474+ <ends-with>
475+ <template>^(?!\1)(?!\2\h)(?!\s*$)</template>
476+ </ends-with>
477+ <subscopes>
478+ <include syntax="self" collection="do-pattern" />
479+ <include syntax="self" collection="expressions" />
480+ <!-- <scope name="bind-arrow">
481+ <expression><-</expression>
482+ </scope> -->
483+ </subscopes>
484+ </scope>
485+ </collection>
486+
487+ <collection name="do-pattern">
488+ <scope name="do-pattern">
489+ <starts-with>
490+ <expression>^(?=((\h*)\S.+<-($|\h)))</expression>
491+ </starts-with>
492+ <ends-with>
493+ <expression><-</expression>
494+ </ends-with>
495+ <subscopes>
496+ <include syntax="self" collection="pattern-match" />
497+ <!-- <scope name="bind-arrow">
498+ <expression><-</expression>
499+ </scope>
500+ <include syntax="self" collection="expressions" repeat="true" /> -->
501+ </subscopes>
502+ </scope>
503+ </collection>
504+
380505 <collection name="implementation">
381− <scope name="haskell.definition.type.function.implementation">
506+ <scope name="haskell.definition.type.function">
507+ <local scope="within-construct" />
382508 <starts-with>
383509 <expression>^(\h*)(default\h+)?`?(\w(\w|')*)`?($|\h)</expression>
384510 <capture number="2" name="haskell.keyword.construct.default" />
@@ -388,20 +514,14 @@
388514 <template>^(?!\1\3\s)(?!\s+\1\S)(?!\s*$)</template>
389515 </ends-with>
390516 <subscopes>
391− <include syntax="self" collection="comments" />
392− <include syntax="self" collection="pattern-match" optional="true" repeat="true" />
393− <scope>
394− <expression>=</expression>
395− <capture number="0" name="haskell.construct.function.keyword.eq" />
396− </scope>
397− <include syntax="self" collection="expressions" optional="true" repeat="true" />
398− <include syntax="self" collection="where-clause" optional="true" />
517+ <include syntax="self" collection="where-clause" />
518+ <include syntax="self" collection="expressions" />
399519 </subscopes>
400520 </scope>
401521 </collection>
402522
403523 <collection name="type-annotation">
404− <scope name="haskell.definition.type.function.type-signature">
524+ <scope name="haskell.definition.type.function">
405525 <starts-with>
406526 <expression>^(\h*)`?(\w(\w|')*)`?\h*::($|\h)</expression>
407527 <capture number="2" name="haskell.identifier.function" />
@@ -410,7 +530,6 @@
410530 <template>^(?!\s+\1\S)(?!\s*$)</template>
411531 </ends-with>
412532 <subscopes>
413− <include syntax="self" collection="comments" />
414533 <include syntax="self" collection="type" />
415534 </subscopes>
416535 </scope>
@@ -418,19 +537,15 @@
418537
419538 <collection name="type-definition">
420539 <scope name="haskell.definition.type">
421− <symbol type="type" scope="global">
422− <context behavior="whitespace" foldable="true" />
423− </symbol>
424540 <starts-with>
425541 <expression>^(\h*)(type)\h+(\w(\w|')*)</expression>
426542 <capture number="2" name="haskell.keyword.construct.type" />
427− <capture number="3" name="haskell.identifier.type.name" />
543+ <capture number="3" name="haskell.identifier.type" />
428544 </starts-with>
429545 <ends-with>
430546 <template>^(?!\s+\1\S)(?!\s*$)</template>
431547 </ends-with>
432548 <subscopes>
433− <include syntax="self" collection="comments" />
434549 <include syntax="self" collection="type" />
435550 </subscopes>
436551 </scope>
@@ -438,7 +553,7 @@
438553
439554 <collection name="GADT-definition">
440555 <scope name="haskell.definition.struct.GADT">
441− <symbol type="struct" scope="global">
556+ <symbol type="struct">
442557 <context behavior="subtree" foldable="false" />
443558 </symbol>
444559 <starts-with>
@@ -450,7 +565,6 @@
450565 <template>^(?!\s+\1\S)(?!\s*$)</template>
451566 </ends-with>
452567 <subscopes>
453− <include syntax="self" collection="comments" />
454568 <scope name="haskell.keyword.construct.where">
455569 <expression>where</expression>
456570 </scope>
@@ -466,26 +580,21 @@
466580 <collection name="gadt-constructor">
467581 <scope name="haskell.identifier.type.struct.data.constructor">
468582 <symbol type="constructor">
469− <context behavior="subtree" foldable="true" />
583+ <context behavior="whitespace" />
470584 </symbol>
471− <starts-with>
472− <expression>(^|=|\||^)\h+([A-Z](\w|')*)</expression>
473− <capture number="2" name="haskell.identifier.data.name" />
474− </starts-with>
475− <ends-with />
476− <subscopes anchored="true">
477− <include syntax="self" collection="record-definition" />
478− </subscopes>
585+ <expression>(^|=|\|)\h+([A-Z](\w|')*)</expression>
586+ <capture number="2" name="haskell.identifier.data.name" />
587+ </scope>
588+ <scope name="identifier.type.struct.GADT.constructor">
589+ <symbol type="constructor"></symbol>
590+ <expression>^\h+([A-Z](\w|')*)</expression>
591+ <capture number="1" name="haskell.identifier.data.name" />
479592 </scope>
480593 </collection>
481594
482595 <collection name="deriving-clause">
483596 <scope name="haskell.record.construct.deriving.keyword">
484− <expression>deriving(\h+(newtype|stock|anyclass))?</expression>
485− </scope>
486− <scope name="haskell.record.construct.deriving.keyword">
487− <include syntax="self" collection="comments" />
488− <expression>via</expression>
597+ <expression>deriving\h+(newtype|stock|anyclass)</expression>
489598 </scope>
490599 </collection>
491600
@@ -503,7 +612,6 @@
503612 <capture number="1" name="haskell.record.bracket" />
504613 </ends-with>
505614 <subscopes>
506− <include syntax="self" collection="comments" />
507615 <include syntax="self" collection="record-definition-field-name" />
508616 <include syntax="self" collection="type" />
509617 </subscopes>
@@ -520,13 +628,6 @@
520628 </collection>
521629
522630 <collection name="type">
523− <scope name="haskell.keyword.construct.function-arrow">
524− <expression>-></expression>
525− </scope>
526− <scope name="haskell.keyword.construct.fat-arrow">
527− <expression>=></expression>
528− </scope>
529− <include syntax="self" collection="strings" />
530631 <scope name="haskell.type.construct.tuple">
531632 <starts-with>
532633 <expression>\(</expression>
@@ -535,7 +636,6 @@
535636 <expression>\)</expression>
536637 </ends-with>
537638 <subscopes>
538− <include syntax="self" collection="comments" />
539639 <scope name="haskell.construct.type.typle.comma">
540640 <expression>\,</expression>
541641 </scope>
@@ -550,7 +650,6 @@
550650 <expression>\]</expression>
551651 </ends-with>
552652 <subscopes>
553− <include syntax="self" collection="comments" />
554653 <include syntax="self" collection="type" />
555654 </subscopes>
556655 </scope>
@@ -562,7 +661,7 @@
562661 </scope>
563662 <include syntax="self" collection="type-list" />
564663 <scope>
565− <expression>(([A-Z](\w|')*\.)*)'*\!?([A-Z](\w|')*)</expression>
664+ <expression>(([A-Z](\w|')*\.)*)'*([A-Z](\w|')*)</expression>
566665 <capture number="1" name="haskell.identifier.package.module" />
567666 <capture number="4" name="haskell.identifier.type" />
568667 </scope>
@@ -570,7 +669,13 @@
570669 <expression>forall</expression>
571670 </scope>
572671 <scope name="haskell.identifier.type.variable">
573− <expression>(?!where)(?!=)((?!(\(|\)|\,|\!))\S)((?!(\(|\)|\,))\w)*</expression>
672+ <expression>(?!=)((?!(\(|\)|\,))\S)((?!(\(|\)|\,))\S)*</expression>
673+ </scope>
674+ <scope name="haskell.keyword.construct.function-arrow">
675+ <expression>-></expression>
676+ </scope>
677+ <scope name="haskell.keyword.construct.fat-arrow">
678+ <expression>=></expression>
574679 </scope>
575680 </collection>
576681
@@ -585,7 +690,6 @@
585690 <template>^(?!\s+\1\S)(?!\s*$)</template>
586691 </ends-with>
587692 <subscopes>
588− <include syntax="self" collection="comments" />
589693 <scope name="haskell.keyword.construct.where">
590694 <expression>where</expression>
591695 </scope>
@@ -605,7 +709,6 @@
605709 <capture number="1" name="haskell.type-list.bracket" />
606710 </ends-with>
607711 <subscopes>
608− <include syntax="self" collection="comments" />
609712 <include syntax="self" collection="type" />
610713 </subscopes>
611714 </scope>
@@ -622,7 +725,6 @@
622725 <capture number="1" name="haskell.keyword.construct.lambda" />
623726 </ends-with>
624727 <subscopes>
625− <include syntax="self" collection="comments" />
626728 <include syntax="self" collection="pattern-match" />
627729 </subscopes>
628730 </scope>
@@ -636,6 +738,7 @@
636738
637739 <collection name="where-clause">
638740 <scope name="haskell.construct.where">
741+ <local scope="within-parent" />
639742 <starts-with>
640743 <expression>^(\h*)(where)</expression>
641744 <capture number="2" name="haskell.construct.keyword.where" />
@@ -644,7 +747,6 @@
644747 <template>^(?!\1\s*\S)(?!s*$)</template>
645748 </ends-with>
646749 <subscopes>
647− <include syntax="self" collection="comments" />
648750 <include syntax="self" collection="definition" />
649751 </subscopes>
650752 </scope>
@@ -684,12 +786,12 @@
684786
685787
686788 <collection name="strings">
687− <scope name="haskell.string.double-quoted" spell-check="true">
789+ <scope name="haskell.string.double-quoted">
688790 <starts-with>
689− <expression>"</expression>
791+ <expression>"</expression>
690792 </starts-with>
691793 <ends-with>
692− <expression>"</expression>
794+ <expression>"</expression>
693795 </ends-with>
694796 <subscopes>
695797 <scope name="haskell.string.escape-sequences">
@@ -726,7 +828,6 @@
726828 </ends-with>
727829 <subscopes>
728830 <scope name="identifier.haskell.type">
729− <symbol type="expression" />
730831 <symbol type="expression" />
731832 <expression>([A-Z](\w|')*)\h*(\(\h*\.\.\h*\))?</expression>
732833 <capture number="1" name="identifier.type" />
@@ -751,7 +852,6 @@
751852 </ends-with>
752853 <subscopes>
753854 <scope name="haskell.construct.qualified">
754− <symbol type="expression" />
755855 <expression>qualified</expression>
756856 <capture number="0" name="haskell.construct.keyword.qualified" />
757857 </scope>
@@ -769,7 +869,6 @@
769869 </ends-with>
770870 <subscopes anchored="true">
771871 <include syntax="self" collection="import-list" />
772− <symbol type="expression" />
773872 </subscopes>
774873 </scope>
775874
@@ -803,7 +902,6 @@
803902 </ends-with>
804903 <subscopes>
805904 <scope name="haskell.identifier.struct">
806− <symbol type="expression" />
807905 <symbol type="reference" scope="local" />
808906 <expression>([A-Z](\w|')*)\h*(\(\h*\.\.\h*\))?</expression>
809907 <capture number="1" name="haskell.import-list.identifier.type.name" />
@@ -817,6 +915,13 @@
817915 </scope>
818916 </collection>
819917
918+ <!-- <collection name="special">
919+ <scope>
920+ <expression>(;|,)</expression>
921+ </scope>
922+ </collection> -->
923+
924+
820925 <collection name="reservedop">
821926 <scope name="keyword.operator">
822927 <expression>(\.\.|:|::|=|\\|\||<-|->|@|~|=>)</expression>
@@ -824,11 +929,10 @@
824929 </collection>
825930
826931 <collection name="keywords">
827− <scope name="haskell.keyword.self">
932+ <scope name="haskell.keyword.modifier">
828933 <symbol type="keyword" />
829934 <strings>
830935 <string>do</string>
831− <string>mdo</string>
832936 <string>in</string>
833937 <string>infix</string>
834938 <string>infixl</string>
@@ -866,18 +970,20 @@
866970 <strings>
867971 <string>undefined</string>
868972 <string>_</string>
869− <string>@</string>
870973 </strings>
871974 </scope>
872975 </collection>
873976
874977 <collection name="comments">
875978 <scope name="haskell.comment.single" spell-check="true">
876− <symbol type="comment" />
877− <expression> --.*$</expression>
979+ <starts-with>
980+ <expression>--</expression>
981+ </starts-with>
982+ <ends-with>
983+ <expression>$</expression>
984+ </ends-with>
878985 </scope>
879986 <scope name="haskell.comment.block" spell-check="true">
880− <symbol type="comment" />
881987 <starts-with>
882988 <expression>{-</expression>
883989 </starts-with>
@@ -889,4 +995,4 @@
889995
890996
891997 </collections>
892−</syntax>
998+</syntax>