scanner: remove LeftDoubleChevron and single-quote strings
This commit is contained in:
parent
93e7d9db7b
commit
b14a32a104
2 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -25,7 +25,6 @@ pub const TokenType = enum {
|
|||
|
||||
// one-two char tokens
|
||||
DotEqual,
|
||||
LeftDoubleChevron, // AKA "<<"
|
||||
PlusPlus,
|
||||
PlusEqual,
|
||||
MinusEqual,
|
||||
|
|
Loading…
Reference in a new issue