Skip to content

Commit

Permalink
support for descitems
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Jun 5, 2017
1 parent 43729ef commit 35a961f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/jssm-dot.peg
Expand Up @@ -50,7 +50,7 @@ DescValue
= label:Label

DescItem
= text:Label ":" value:DescValue ";"
= text:Label ":" value:DescValue ";" { return {text:text, value:value}; }

DescItems
= DescItem+
Expand All @@ -64,7 +64,7 @@ Subexp
Whitespace rdesc:ArrowDesc?
Whitespace label:Label
Whitespace tail:Subexp? {
return {kind: arrow, to: label, se:(tail === [])? undefined: tail};
return {kind: arrow, ldesc: ldesc, to: label, rdesc: rdesc, se:(tail === [])? undefined: tail};
}

Exp
Expand Down

0 comments on commit 35a961f

Please sign in to comment.