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.
2 parents 41f0b28 + 3524ab0 commit 8c83accCopy full SHA for 8c83acc
grammar.js
@@ -373,7 +373,7 @@ module.exports = grammar({
373
374
record_type: $ => seq(
375
'{',
376
- commaSep1t($.record_type_field),
+ commaSept($.record_type_field),
377
'}',
378
),
379
test/corpus/type_declarations.txt
@@ -81,6 +81,8 @@ type t = {
81
82
type t = Mod.t = {a: int}
83
84
+type t = {}
85
+
86
---
87
88
(source_file
@@ -108,7 +110,10 @@ type t = Mod.t = {a: int}
108
110
(record_type
109
111
(record_type_field
112
(property_identifier)
- (type_annotation (type_identifier))))))
113
+ (type_annotation (type_identifier)))))
114
+ (type_declaration
115
+ (type_identifier)
116
+ (record_type)))
117
118
===========================================
119
Extensible Variant
0 commit comments