We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3ab95 commit 836d758Copy full SHA for 836d758
src/purescript.coffee
@@ -403,14 +403,19 @@ purescriptGrammar =
403
patterns: [
404
include: '#comments'
405
,
406
- include: '#type_name'
+ include: '#data_ctor'
407
408
name: 'constant.numeric'
409
match: /\d+/
410
411
match: /({operator})/
412
captures:
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'
419
420
match: /\b(as|type)\b/
421
test/Main.purs
@@ -106,6 +106,9 @@ infixl 6 type Sum as :+: -- comment
106
infixl 7 type Product as :*:
107
108
109
+-- Ctor operators
110
+infixl 2 Inl as $%
111
+infixr 2 Inr as %$
112
113
-- type class signatures
114
0 commit comments