]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/go/scanner/scanner.go
[dev.typeparams] all: merge master (37f9a8f) into dev.typeparams
[gostls13.git] / src / go / scanner / scanner.go
index f08e28cdd6b72b35da5b669a0592b88c6e012c53..ca4b5264cfedf6414189ed26003c77e25951e539 100644 (file)
@@ -969,6 +969,8 @@ scanAgain:
                        }
                case '|':
                        tok = s.switch3(token.OR, token.OR_ASSIGN, '|', token.LOR)
+               case '~':
+                       tok = token.TILDE
                default:
                        // next reports unexpected BOMs - don't repeat
                        if ch != bom {