Skip to content

Commit ec6f97a

Browse files
memreflectisaacs
authored andcommitted
range.bnf: Fix invalid bracket expression
`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.
1 parent 906b664 commit ec6f97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

range.bnf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ simple ::= primitive | partial | tilde | caret
66
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
77
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
88
xr ::= 'x' | 'X' | '*' | nr
9-
nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
9+
nr ::= '0' | [1-9] ( [0-9] ) *
1010
tilde ::= '~' partial
1111
caret ::= '^' partial
1212
qualifier ::= ( '-' pre )? ( '+' build )?

0 commit comments

Comments
 (0)