File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1325,7 +1325,7 @@ module.exports = grammar({
13251325 polyvar_identifier : $ => seq (
13261326 '#' ,
13271327 choice (
1328- / [ a - z A - Z 0 - 9 _ ] + / ,
1328+ / [ a - z A - Z 0 - 9 _ ' ] + / ,
13291329 seq (
13301330 optional ( '\\' ) ,
13311331 alias ( $ . string , $ . polyvar_string ) ,
@@ -1334,7 +1334,7 @@ module.exports = grammar({
13341334 ) ,
13351335
13361336 type_identifier : $ => choice (
1337- / [ a - z _ ' ] [ a - z A - Z 0 - 9 _ ] * / ,
1337+ / [ a - z _ ' ] [ a - z A - Z 0 - 9 _ ' ] * / ,
13381338 $ . _escape_identifier ,
13391339 ) ,
13401340
Original file line number Diff line number Diff line change 33===========================================
44
55type t
6+ type t'
67type \"type"
78
89---
910
1011(source_file
12+ (type_declaration (type_identifier))
1113 (type_declaration (type_identifier))
1214 (type_declaration (type_identifier)))
1315
@@ -212,6 +214,7 @@ Polyvar
212214
213215type t = [>
214216 | #AAA
217+ | #AAA'
215218 | #bbb(anotherType)
216219 | #"cc-cc"
217220 | #\"cc-cc"
@@ -230,6 +233,7 @@ type t<'w> = [M.t<'w>]
230233 (type_declaration
231234 (type_identifier)
232235 (polyvar_type
236+ (polyvar_declaration (polyvar_identifier))
233237 (polyvar_declaration (polyvar_identifier))
234238 (polyvar_declaration
235239 (polyvar_identifier) (polyvar_parameters (type_identifier)))
You can’t perform that action at this time.
0 commit comments