Skip to content

Commit

Permalink
Fix parsing precedence for negative numbers
Browse files Browse the repository at this point in the history
# wrong x-1 parsing precedence, whitespace perl11#75
  • Loading branch information
robotii committed Oct 29, 2015
1 parent 22fcc11 commit e68db72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/syntax.y
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ true = "true" !utfw
false = "false" !utfw
hexl = [0-9A-Fa-f]
hex = '0x' < hexl+ >
# wrong x-1 parsing precedence, whitespace #75
dec = < ('0' | '-'? [1-9][0-9]*) { $$ = YY_TINT; }

dec = < ('0' | [1-9][0-9]*) { $$ = YY_TINT; }
('.' [0-9]+ { $$ = YY_TDBL; })?
('e' [-+] [0-9]+ { $$ = YY_TDBL })? >

Expand Down

0 comments on commit e68db72

Please sign in to comment.