mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 00:20:00 +08:00
fix syntax of the key expression (#4586)
This commit is contained in:
@@ -444,16 +444,6 @@ func (s *Scanner) scanIdent() token.Token {
|
||||
}
|
||||
|
||||
ident := string(s.data[position:s.position])
|
||||
|
||||
if s.ch == ':' {
|
||||
s.readRune()
|
||||
return token.Token{
|
||||
Type: token.KEY,
|
||||
Text: string(s.data[position:s.position]),
|
||||
Position: s.newPosition(position),
|
||||
}
|
||||
}
|
||||
|
||||
if ident == "interface" && s.ch == '{' && s.peekRune() == '}' {
|
||||
s.readRune()
|
||||
s.readRune()
|
||||
|
||||
Reference in New Issue
Block a user