File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,7 @@ module.exports = grammar({
254254 choice ( '=' , '+=' ) ,
255255 optional ( 'private' ) ,
256256 $ . _type ,
257+ optional ( seq ( '=' , $ . _type ) ) ,
257258 repeat ( alias ( $ . _type_declaration_and , $ . type_declaration ) ) ,
258259 ) ) ,
259260 ) ,
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ type t = {
7979 opt?: string
8080}
8181
82+ type t = Mod.t = {a: int}
83+
8284---
8385
8486(source_file
@@ -98,7 +100,15 @@ type t = {
98100 (record_type_field
99101 (property_identifier) (type_annotation (type_identifier)))
100102 (record_type_field
101- (property_identifier) (type_annotation (type_identifier))))))
103+ (property_identifier) (type_annotation (type_identifier)))))
104+ (type_declaration
105+ (type_identifier)
106+ (type_identifier_path
107+ (module_identifier) (type_identifier))
108+ (record_type
109+ (record_type_field
110+ (property_identifier)
111+ (type_annotation (type_identifier))))))
102112
103113===========================================
104114Extensible Variant
You can’t perform that action at this time.
0 commit comments