Skip to content

Commit

Permalink
range.bnf: Fix invalid bracket expression
Browse files Browse the repository at this point in the history
`nr` uses `['1'-'9']` and `['0'-'9']`, which are equivalent to `['19]`
and `['09]` respectively.  This is modified to `[1-9]` and `[0-9]` to
match the syntax used in the `part` rule, fixing the productions.
  • Loading branch information
memreflect authored and isaacs committed Jul 26, 2017
1 parent 906b664 commit ec6f97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion range.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ simple ::= primitive | partial | tilde | caret
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
xr ::= 'x' | 'X' | '*' | nr
nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
nr ::= '0' | [1-9] ( [0-9] ) *
tilde ::= '~' partial
caret ::= '^' partial
qualifier ::= ( '-' pre )? ( '+' build )?
Expand Down

0 comments on commit ec6f97a

Please sign in to comment.