File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -403,14 +403,19 @@ purescriptGrammar =
403
403
patterns : [
404
404
include : ' #comments'
405
405
,
406
- include : ' #type_name '
406
+ include : ' #data_ctor '
407
407
,
408
408
name : ' constant.numeric'
409
409
match : / \d + /
410
410
,
411
411
match : / ({operator})/
412
412
captures :
413
413
1 : name : ' keyword.other'
414
+ ,
415
+ match : / \b (type)\s + ({className})\b /
416
+ captures :
417
+ 1 : name : ' keyword.other'
418
+ 2 : name : ' entity.name.type'
414
419
,
415
420
match : / \b (as| type)\b /
416
421
captures :
Original file line number Diff line number Diff line change @@ -106,6 +106,9 @@ infixl 6 type Sum as :+: -- comment
106
106
infixl 7 type Product as :*:
107
107
108
108
109
+ -- Ctor operators
110
+ infixl 2 Inl as $%
111
+ infixr 2 Inr as %$
109
112
110
113
-- type class signatures
111
114
You can’t perform that action at this time.
0 commit comments