Skip to content

Commit

Permalink
fixed integer grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Nov 19, 2018
1 parent 770f06d commit 7e06dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/src/grammar.pest
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ repeat_max = { opening_brace ~ comma ~ number ~ closing_brace }
repeat_min_max = { opening_brace ~ number ~ comma ~ number ~ closing_brace }

number = @{ '0'..'9'+ }
integer = @{ number | "-"? ~ '1'..'9' ~ number? }
integer = @{ number | "-" ~ "0"* ~ '1'..'9' ~ number? }

comma = { "," }

Expand Down

0 comments on commit 7e06dca

Please sign in to comment.