Skip to content

Commit

Permalink
Added keywords as valid text token, fix for issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Dec 3, 2014
1 parent 7b09a6d commit 0539b8a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
7 changes: 5 additions & 2 deletions src/parser/flow.jison
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,12 @@ textToken: ALPHA
{$$ = $1;}
| MINUS
{$$ = $1;}
| DIR
| keywords
{$$ = $1;}
;
keywords
: STYLE | LINKSTYLE | CLASSDEF | CLASS | CLICK | GRAPH | DIR;


textNoTags: textNoTagsToken
{$$=$1;}
Expand Down Expand Up @@ -296,7 +299,7 @@ textNoTagsToken: ALPHA
{$$ = $1;}
| MINUS
{$$ = $1;}
| DIR
| keywords
{$$ = $1;}
;

Expand Down
44 changes: 22 additions & 22 deletions src/parser/flow.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0539b8a

Please sign in to comment.