Browse Source

bugfix: Punctuator::Dec used correctly

pull/5/head
李冬冬 6 years ago committed by GitHub
parent
commit
8a55a822b1
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
}),
'-' => op!(self, Punctuator::AssignSub, Punctuator::AssignSub, {
'+' => Punctuator::Inc
'-' => Punctuator::Dec
}),
'%' => op!(self, Punctuator::AssignMod, Punctuator::Mod),
'|' => op!(self, Punctuator::AssignOr, Punctuator::Or, {

Loading…
Cancel
Save