Enable double slash single line comments
This commit is contained in:
parent
4c8d5213dc
commit
4951aa61f6
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ func (s *scanner) scan() (tok Token, lit string, val interface{}) {
|
|||
case '/':
|
||||
chn := s.next()
|
||||
switch {
|
||||
case chn == '/':
|
||||
return s.scanCommentSingle(ch)
|
||||
case chn == '*':
|
||||
return s.scanCommentMultiple(ch)
|
||||
case chn == ' ':
|
||||
|
|
Loading…
Reference in a new issue