@@ -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,7 +57,6 @@
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" /> -->
6160 <include syntax="self" collection="GADT-definition" />
6261 <include syntax="self" collection="instance" />
6362 <include syntax="self" collection="typeclass" />
@@ -66,7 +65,6 @@
6665
6766 <template-scopes>
6867 <include syntax="self" collection="Quote" />
69− <include syntax="self" collection="comments" />
7068 </template-scopes>
7169
7270 <collections>
@@ -79,51 +77,27 @@
7977 </collection>
8078
8179 <collection name="expressions">
82− <include syntax="self" collection="do-bind" />
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" />
8390 <include syntax="self" collection="literal" />
8491 <include syntax="self" collection="operators" />
92+ <include syntax="self" collection="record-match" />
8593 <include syntax="self" collection="list" />
94+ <include syntax="self" collection="view-pattern" />
8695 <include syntax="self" collection="lambda-case" />
8796 <include syntax="self" collection="lambda-head" />
88− <include syntax="self" collection="type-applications" />
89− <include syntax="self" collection="outer-case-expression" />
97+ <include syntax="self" collection="case-expression" />
98+ <include syntax="self" collection="qconid" />
9099 <include syntax="self" collection="qvarid" />
91100 <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>
127101 </collection>
128102
129103 <collection name="Quote">
@@ -162,8 +136,8 @@
162136 <capture number="1" name="haskell.pattern.record.bracket" />
163137 </ends-with>
164138 <subscopes>
165− <include syntax="self" collection="pattern-match" />
166− <include syntax="self" collection="varid" />
139+ <include syntax="self" collection="comments" />
140+ <include syntax="self" collection="expressions" />
167141 <scope name="record-sep">
168142 <expression>=</expression>
169143 </scope>
@@ -185,6 +159,7 @@
185159 <capture number="1" name="haskell.pattern.record.bracket" />
186160 </ends-with>
187161 <subscopes>
162+ <include syntax="self" collection="comments" />
188163 <scope name="haskell.pattern.record.wildcard">
189164 <expression>\.\.</expression>
190165 </scope>
@@ -211,29 +186,12 @@
211186 <capture number="1" name="haskell.list.bracket" />
212187 </ends-with>
213188 <subscopes>
189+ <include syntax="self" collection="comments" />
214190 <include syntax="self" collection="expressions" />
215191 </subscopes>
216192 </scope>
217193 </collection>
218194
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−
237195 <collection name="view-pattern">
238196 <scope name="haskell.pattern.view">
239197 <symbol type="expression" />
@@ -250,24 +208,7 @@
250208 <scope name="haskell.pattern.view.operator.arrow">
251209 <expression>-></expression>
252210 </scope>
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" />
211+ <include syntax="self" collection="expressions" />
271212 </subscopes>
272213 </scope>
273214 </collection>
@@ -283,53 +224,11 @@
283224 <capture number="1" name="haskell.case.keyword.condition" />
284225 </ends-with>
285226 <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" />
315227 <include syntax="self" collection="expressions" />
316228 </subscopes>
317229 </scope>
318230 </collection>
319231
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−
333232 <collection name="tuple">
334233 <symbol type="expression" />
335234 <scope name="haskell.tuple">
@@ -342,60 +241,73 @@
342241 <capture number="1" name="haskell.tuple.bracket" />
343242 </ends-with>
344243 <subscopes>
244+ <include syntax="self" collection="comments" />
345245 <include syntax="self" collection="expressions" />
346246 </subscopes>
347247 </scope>
348248 </collection>
349249
350250 <collection name="typeclass">
351− <symbol type="interface" />
352− <scope name="haskell.definition.class">
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>
353255 <starts-with>
354256 <expression>^(\h*)(class)($|\h)</expression>
355257 <capture number="2" name="haskell.keyword.construct.class" />
356258 </starts-with>
357− <ends-with>
358− <template>^(?!\s+\1\S)(?!\s*$)</template>
359− </ends-with>
360− <subscopes>
361− <scope name="haskell.keyword.construct.where">
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">
362274 <expression>where</expression>
363275 </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" />
368276 </subscopes>
369277 </scope>
370278 </collection>
371279
372280 <collection name="instance">
373281 <scope name="haskell.instance">
374− <symbol type="category" />
282+ <symbol type="category" name-selector="haskell.keyword.construct.instance.name">
283+ <context behavior="whitespace" foldable="true" />
284+ </symbol>
375285 <starts-with>
376286 <expression>^(\h*)(instance)($|\h)</expression>
377287 <capture number="2" name="haskell.keyword.construct.instance" />
378288 </starts-with>
379− <ends-with>
380− <template>^(?!\s+\1\S)(?!\s*$)</template>
381− </ends-with>
382− <subscopes>
383− <scope name="haskell.keyword.construct.where">
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">
384303 <expression>where</expression>
385304 </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" />
390305 </subscopes>
391306 </scope>
392307 </collection>
393308
394309 <collection name="type-family-definition">
395310 <scope name="haskell.definition.type-family.type">
396− <symbol type="type">
397− <context behavior="subtree" foldable="false" />
398− </symbol>
399311 <starts-with>
400312 <expression>^(\h*)(type\h+family)</expression>
401313 <capture number="2" name="haskell.keyword.construct.type-family" />
@@ -434,6 +346,7 @@
434346 <template>^(?!\s+\1\S)(?!\s*$)</template>
435347 </ends-with>
436348 <subscopes>
349+ <include syntax="self" collection="comments" />
437350 <include syntax="self" collection="type" optional="true" repeat="true" />
438351 <scope>
439352 <expression>=</expression>
@@ -446,65 +359,26 @@
446359 <collection name="definition">
447360 <scope name="haskell.definition.type.function">
448361 <symbol type="function">
449− <display-name>
450− <component selector="haskell.definition.type.function" />
451− </display-name>
452−
362+ <context behavior="whitespace" foldable="true" />
453363 </symbol>
454364 <starts-with>
455365 <expression>^(?=(\h*)(default\h+)?`?(\w(\w|')*)`?($|\h))</expression>
456366 <capture number="2" name="haskell.keyword.construct.default" />
457− <capture number="3" name="haskell.identifier.function" />
367+ <capture number="3" name="haskell.identifier.function.name" />
458368 </starts-with>
459369 <ends-with>
460370 <template>^(?!\1\3\s)(?!\s+\1\S)(?!\s*$)</template>
461371 </ends-with>
462372 <subscopes>
373+ <include syntax="self" collection="comments" />
463374 <include syntax="self" collection="type-annotation" />
464375 <include syntax="self" collection="implementation" />
465376 </subscopes>
466377 </scope>
467378 </collection>
468379
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−
505380 <collection name="implementation">
506− <scope name="haskell.definition.type.function">
507− <local scope="within-construct" />
381+ <scope name="haskell.definition.type.function.implementation">
508382 <starts-with>
509383 <expression>^(\h*)(default\h+)?`?(\w(\w|')*)`?($|\h)</expression>
510384 <capture number="2" name="haskell.keyword.construct.default" />
@@ -514,14 +388,20 @@
514388 <template>^(?!\1\3\s)(?!\s+\1\S)(?!\s*$)</template>
515389 </ends-with>
516390 <subscopes>
517− <include syntax="self" collection="where-clause" />
518− <include syntax="self" collection="expressions" />
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" />
519399 </subscopes>
520400 </scope>
521401 </collection>
522402
523403 <collection name="type-annotation">
524− <scope name="haskell.definition.type.function">
404+ <scope name="haskell.definition.type.function.type-signature">
525405 <starts-with>
526406 <expression>^(\h*)`?(\w(\w|')*)`?\h*::($|\h)</expression>
527407 <capture number="2" name="haskell.identifier.function" />
@@ -530,6 +410,7 @@
530410 <template>^(?!\s+\1\S)(?!\s*$)</template>
531411 </ends-with>
532412 <subscopes>
413+ <include syntax="self" collection="comments" />
533414 <include syntax="self" collection="type" />
534415 </subscopes>
535416 </scope>
@@ -537,15 +418,19 @@
537418
538419 <collection name="type-definition">
539420 <scope name="haskell.definition.type">
421+ <symbol type="type" scope="global">
422+ <context behavior="whitespace" foldable="true" />
423+ </symbol>
540424 <starts-with>
541425 <expression>^(\h*)(type)\h+(\w(\w|')*)</expression>
542426 <capture number="2" name="haskell.keyword.construct.type" />
543− <capture number="3" name="haskell.identifier.type" />
427+ <capture number="3" name="haskell.identifier.type.name" />
544428 </starts-with>
545429 <ends-with>
546430 <template>^(?!\s+\1\S)(?!\s*$)</template>
547431 </ends-with>
548432 <subscopes>
433+ <include syntax="self" collection="comments" />
549434 <include syntax="self" collection="type" />
550435 </subscopes>
551436 </scope>
@@ -553,7 +438,7 @@
553438
554439 <collection name="GADT-definition">
555440 <scope name="haskell.definition.struct.GADT">
556− <symbol type="struct">
441+ <symbol type="struct" scope="global">
557442 <context behavior="subtree" foldable="false" />
558443 </symbol>
559444 <starts-with>
@@ -565,6 +450,7 @@
565450 <template>^(?!\s+\1\S)(?!\s*$)</template>
566451 </ends-with>
567452 <subscopes>
453+ <include syntax="self" collection="comments" />
568454 <scope name="haskell.keyword.construct.where">
569455 <expression>where</expression>
570456 </scope>
@@ -580,21 +466,26 @@
580466 <collection name="gadt-constructor">
581467 <scope name="haskell.identifier.type.struct.data.constructor">
582468 <symbol type="constructor">
583− <context behavior="whitespace" />
469+ <context behavior="subtree" foldable="true" />
584470 </symbol>
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" />
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>
592479 </scope>
593480 </collection>
594481
595482 <collection name="deriving-clause">
596483 <scope name="haskell.record.construct.deriving.keyword">
597− <expression>deriving\h+(newtype|stock|anyclass)</expression>
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>
598489 </scope>
599490 </collection>
600491
@@ -612,6 +503,7 @@
612503 <capture number="1" name="haskell.record.bracket" />
613504 </ends-with>
614505 <subscopes>
506+ <include syntax="self" collection="comments" />
615507 <include syntax="self" collection="record-definition-field-name" />
616508 <include syntax="self" collection="type" />
617509 </subscopes>
@@ -628,6 +520,13 @@
628520 </collection>
629521
630522 <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" />
631530 <scope name="haskell.type.construct.tuple">
632531 <starts-with>
633532 <expression>\(</expression>
@@ -636,6 +535,7 @@
636535 <expression>\)</expression>
637536 </ends-with>
638537 <subscopes>
538+ <include syntax="self" collection="comments" />
639539 <scope name="haskell.construct.type.typle.comma">
640540 <expression>\,</expression>
641541 </scope>
@@ -650,6 +550,7 @@
650550 <expression>\]</expression>
651551 </ends-with>
652552 <subscopes>
553+ <include syntax="self" collection="comments" />
653554 <include syntax="self" collection="type" />
654555 </subscopes>
655556 </scope>
@@ -661,7 +562,7 @@
661562 </scope>
662563 <include syntax="self" collection="type-list" />
663564 <scope>
664− <expression>(([A-Z](\w|')*\.)*)'*([A-Z](\w|')*)</expression>
565+ <expression>(([A-Z](\w|')*\.)*)'*\!?([A-Z](\w|')*)</expression>
665566 <capture number="1" name="haskell.identifier.package.module" />
666567 <capture number="4" name="haskell.identifier.type" />
667568 </scope>
@@ -669,13 +570,7 @@
669570 <expression>forall</expression>
670571 </scope>
671572 <scope name="haskell.identifier.type.variable">
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>
573+ <expression>(?!where)(?!=)((?!(\(|\)|\,|\!))\S)((?!(\(|\)|\,))\w)*</expression>
679574 </scope>
680575 </collection>
681576
@@ -690,6 +585,7 @@
690585 <template>^(?!\s+\1\S)(?!\s*$)</template>
691586 </ends-with>
692587 <subscopes>
588+ <include syntax="self" collection="comments" />
693589 <scope name="haskell.keyword.construct.where">
694590 <expression>where</expression>
695591 </scope>
@@ -709,6 +605,7 @@
709605 <capture number="1" name="haskell.type-list.bracket" />
710606 </ends-with>
711607 <subscopes>
608+ <include syntax="self" collection="comments" />
712609 <include syntax="self" collection="type" />
713610 </subscopes>
714611 </scope>
@@ -725,6 +622,7 @@
725622 <capture number="1" name="haskell.keyword.construct.lambda" />
726623 </ends-with>
727624 <subscopes>
625+ <include syntax="self" collection="comments" />
728626 <include syntax="self" collection="pattern-match" />
729627 </subscopes>
730628 </scope>
@@ -738,7 +636,6 @@
738636
739637 <collection name="where-clause">
740638 <scope name="haskell.construct.where">
741− <local scope="within-parent" />
742639 <starts-with>
743640 <expression>^(\h*)(where)</expression>
744641 <capture number="2" name="haskell.construct.keyword.where" />
@@ -747,6 +644,7 @@
747644 <template>^(?!\1\s*\S)(?!s*$)</template>
748645 </ends-with>
749646 <subscopes>
647+ <include syntax="self" collection="comments" />
750648 <include syntax="self" collection="definition" />
751649 </subscopes>
752650 </scope>
@@ -786,12 +684,12 @@
786684
787685
788686 <collection name="strings">
789− <scope name="haskell.string.double-quoted">
687+ <scope name="haskell.string.double-quoted" spell-check="true">
790688 <starts-with>
791− <expression>"</expression>
689+ <expression>"</expression>
792690 </starts-with>
793691 <ends-with>
794− <expression>"</expression>
692+ <expression>"</expression>
795693 </ends-with>
796694 <subscopes>
797695 <scope name="haskell.string.escape-sequences">
@@ -828,6 +726,7 @@
828726 </ends-with>
829727 <subscopes>
830728 <scope name="identifier.haskell.type">
729+ <symbol type="expression" />
831730 <symbol type="expression" />
832731 <expression>([A-Z](\w|')*)\h*(\(\h*\.\.\h*\))?</expression>
833732 <capture number="1" name="identifier.type" />
@@ -852,6 +751,7 @@
852751 </ends-with>
853752 <subscopes>
854753 <scope name="haskell.construct.qualified">
754+ <symbol type="expression" />
855755 <expression>qualified</expression>
856756 <capture number="0" name="haskell.construct.keyword.qualified" />
857757 </scope>
@@ -869,6 +769,7 @@
869769 </ends-with>
870770 <subscopes anchored="true">
871771 <include syntax="self" collection="import-list" />
772+ <symbol type="expression" />
872773 </subscopes>
873774 </scope>
874775
@@ -902,6 +803,7 @@
902803 </ends-with>
903804 <subscopes>
904805 <scope name="haskell.identifier.struct">
806+ <symbol type="expression" />
905807 <symbol type="reference" scope="local" />
906808 <expression>([A-Z](\w|')*)\h*(\(\h*\.\.\h*\))?</expression>
907809 <capture number="1" name="haskell.import-list.identifier.type.name" />
@@ -915,13 +817,6 @@
915817 </scope>
916818 </collection>
917819
918− <!-- <collection name="special">
919− <scope>
920− <expression>(;|,)</expression>
921− </scope>
922− </collection> -->
923−
924−
925820 <collection name="reservedop">
926821 <scope name="keyword.operator">
927822 <expression>(\.\.|:|::|=|\\|\||<-|->|@|~|=>)</expression>
@@ -929,10 +824,11 @@
929824 </collection>
930825
931826 <collection name="keywords">
932− <scope name="haskell.keyword.modifier">
827+ <scope name="haskell.keyword.self">
933828 <symbol type="keyword" />
934829 <strings>
935830 <string>do</string>
831+ <string>mdo</string>
936832 <string>in</string>
937833 <string>infix</string>
938834 <string>infixl</string>
@@ -970,20 +866,18 @@
970866 <strings>
971867 <string>undefined</string>
972868 <string>_</string>
869+ <string>@</string>
973870 </strings>
974871 </scope>
975872 </collection>
976873
977874 <collection name="comments">
978875 <scope name="haskell.comment.single" spell-check="true">
979− <starts-with>
980− <expression>--</expression>
981− </starts-with>
982− <ends-with>
983− <expression>$</expression>
984− </ends-with>
876+ <symbol type="comment" />
877+ <expression> --.*$</expression>
985878 </scope>
986879 <scope name="haskell.comment.block" spell-check="true">
880+ <symbol type="comment" />
987881 <starts-with>
988882 <expression>{-</expression>
989883 </starts-with>
@@ -995,4 +889,4 @@
995889
996890
997891 </collections>
998−</syntax>
892+</syntax>