Skip to content

Commit 1b1b7d4

Browse files
committed
Fix table kind
1 parent 6e236d2 commit 1b1b7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syntax/src/literals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub fn kind(input: ParseString) -> ParseResult<Kind> {
285285
// kind-table := "|" , list1(",", (identifier, kind)), "|", ":", list0(",", literal) ;
286286
pub fn kind_table(input: ParseString) -> ParseResult<Kind> {
287287
let (input, _) = bar(input)?;
288-
let (input, elements) = separated_list1(list_separator, nom_tuple((identifier, kind_annotation)))(input)?;
288+
let (input, elements) = separated_list1(alt((null(list_separator),null(many1(space_tab)))), nom_tuple((identifier, kind_annotation)))(input)?;
289289
let (input, _) = bar(input)?;
290290
let (input, _) = opt(colon)(input)?;
291291
let (input, size) = literal(input)?;

0 commit comments

Comments
 (0)