Browse Source

Merge pull request #5 from songzhi/master

bugfix: Punctuator::Dec used correctly
pull/7/head
Jason Williams 6 years ago committed by GitHub
parent
commit
9e1b5a80a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/lib/syntax/lexer.rs

2
src/lib/syntax/lexer.rs

@ -391,7 +391,7 @@ impl<'a> Lexer<'a> {
'+' => Punctuator::Inc '+' => Punctuator::Inc
}), }),
'-' => op!(self, Punctuator::AssignSub, Punctuator::AssignSub, { '-' => op!(self, Punctuator::AssignSub, Punctuator::AssignSub, {
'+' => Punctuator::Inc '-' => Punctuator::Dec
}), }),
'%' => op!(self, Punctuator::AssignMod, Punctuator::Mod), '%' => op!(self, Punctuator::AssignMod, Punctuator::Mod),
'|' => op!(self, Punctuator::AssignOr, Punctuator::Or, { '|' => op!(self, Punctuator::AssignOr, Punctuator::Or, {

Loading…
Cancel
Save