scanner: remove LeftDoubleChevron and single-quote strings

This commit is contained in:
Luna 2019-09-18 15:07:08 -03:00
parent 93e7d9db7b
commit b14a32a104
2 changed files with 2 additions and 3 deletions

View file

@ -310,8 +310,8 @@ pub const Scanner = struct {
'!' => self.makeMatchToken('=', .BangEqual, .Bang),
'=' => self.makeMatchToken('=', .EqualEqual, .Equal),
'>' => self.makeMatchToken('=', .GreaterEqual, .Greater),
'<' => self.makeMatchToken('=', .LessEqual, .Less),
'+' => self.makeTripleMatchToken('+', .PlusPlus, '=', .PlusEqual, .Plus),
'<' => self.makeTripleMatchToken('=', .LessEqual, '<', .LeftDoubleChevron, .Less),
'/' => blk: {
var next = self.peekNext();
@ -344,7 +344,7 @@ pub const Scanner = struct {
}
},
'\'' => try self.doString('\''),
// '\'' => try self.doString('\''),
'"' => try self.doString('"'),
' ', '\r', '\t' => null,

View file

@ -25,7 +25,6 @@ pub const TokenType = enum {
// one-two char tokens
DotEqual,
LeftDoubleChevron, // AKA "<<"
PlusPlus,
PlusEqual,
MinusEqual,