Skip to content

Commit

Permalink
Added a work around to a whitespace issue until it can be fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
daKuleMune committed Oct 5, 2011
1 parent 8a1cd3c commit 9aa0915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bnf.bnf.js
Expand Up @@ -49,7 +49,7 @@ i.WriteRule( "syntax", i.Or( r.rule, i.And( r.rule, r.lineEnd, r.syntax ) ) );
i.WriteRule( "lineEnd", i.Or( i.And( "\r", "\n" ), "\n" ) );
i.WriteRule( "rule", i.And( r.optWhitespace, "<", r.ruleName, ">", r.optWhitespace, "::=", r.optWhitespace, r.expression ) );
i.WriteRule( "optWhitespace", i.Or( i.Blank(), i.And( r.whitespace, r.optWhitespace ) ) );
i.WriteRule( "whitespace", i.Or( " ", "\t", "\n" ) );
i.WriteRule( "whitespace", i.Or( " ", "\t" ) );
i.WriteRule( "ruleName", r.text );
i.WriteRule( "expression", i.Or( r.list, i.And( r.list, r.optWhitespace, r.orlist, r.optWhitespace, r.expression ) ) );
i.WriteRule( "orlist", "|" );
Expand Down

0 comments on commit 9aa0915

Please sign in to comment.