Skip to content

Commit

Permalink
pgx2dot: added support for fanlang unit grammar module files. thanks …
Browse files Browse the repository at this point in the history
…Yuansheng Wang for the feature request.
  • Loading branch information
agentzh committed Mar 15, 2017
1 parent 8f298b4 commit 8895d3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pgx2dot.pl
Expand Up @@ -54,6 +54,11 @@
next;
}

if (/^ \s* unit \s+ grammar \s+ \w[-\w]* (?: :: \w[-\w]*)* \s* ; \s* $/xsmi) {
# ignore the unit grammar declaration in fanlang grammar module files.
next;
}

die "unexpected line: $_";
}

Expand Down

0 comments on commit 8895d3f

Please sign in to comment.