Skip to content

Commit

Permalink
Fix for issue #53
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Dec 27, 2014
1 parent 385e823 commit 26d0908
Show file tree
Hide file tree
Showing 3 changed files with 285 additions and 157 deletions.
11 changes: 9 additions & 2 deletions src/diagrams/flowchart/parser/flow.jison
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
"." return 'DOT';
"<" return 'TAGSTART';
">" return 'TAGEND';
"^" return 'UP'
"v" return 'DOWN'
"^" return 'UP';
"v" return 'DOWN';
\-\-[x] return 'ARROW_CROSS';
\-\-\> return 'ARROW_POINT';
\-\-[o] return 'ARROW_CIRCLE';
\-\-\- return 'ARROW_OPEN';
\-\- return '--';
\- return 'MINUS';
\+ return 'PLUS';
\% return 'PCT';
Expand Down Expand Up @@ -235,6 +236,12 @@ link: linkStatement arrowText
{$$ = $1;}
| linkStatement SPACE
{$$ = $1;}
| '--' SPACE text SPACE linkStatement
{$5.text = $3;$$ = $5;}
| '--' SPACE text SPACE linkStatement SPACE
{$5.text = $3;$$ = $5;}
| '--' text linkStatement SPACE
{$5.text = $3;$$ = $5;}
;

linkStatement: ARROW_POINT
Expand Down
Loading

0 comments on commit 26d0908

Please sign in to comment.