Skip to content

Commit

Permalink
removed number sign as comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jkblume committed Nov 30, 2018
1 parent 1ac3a1a commit 9a426c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (s *Scanner) scanValString() string {
end := offs
inQuote := false
loop:
for inQuote || s.ch >= 0 && s.ch != '\n' && s.ch != ';' && s.ch != '#' {
for inQuote || s.ch >= 0 && s.ch != '\n' && s.ch != ';' {
ch := s.ch
s.next()
switch {
Expand Down Expand Up @@ -320,7 +320,7 @@ scanAgain:
tok = token.LBRACK
case ']':
tok = token.RBRACK
case ';', '#':
case ';':
// comment
lit = s.scanComment()
if s.mode&ScanComments == 0 {
Expand Down

0 comments on commit 9a426c0

Please sign in to comment.