<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">Iā€™m investigating this bug:&nbsp;<a href="https://bugs.swift.org/browse/SR-186" class="">https://bugs.swift.org/browse/SR-186</a></div><div class=""><br class=""></div><div class="">Which appears to be a result of the fact that the logic that determines if an operator is prefix/postfix/binary does not treat comments as whitespace. So, for example:</div><div class=""><br class=""></div><div class=""><font face="Andale Mono" class="">/* comment */!foo</font></div><div class=""><br class=""></div><div class="">does not lex as expected because the ā€œ!" thinks it has an something on both sides and so is treated as a binary operator.&nbsp;</div><div class=""><br class=""></div><div class="">Fixing this (by treating comments as whitespace here) will break existing code which relies on the current behavior, such as:</div><div class=""><br class=""></div><div class=""><font face="Andale Mono" class="">foo/* comment */!</font></div><div class=""><br class=""></div><div class="">which currently treats the ā€œ!ā€ as a postfix operator but will change to binary. I expect these cases would be rare (maybe in some generated code?), but the results might be pretty confusing.&nbsp;</div><div class=""><br class=""></div><div class="">Any objections to fixing this or other thoughts?&nbsp;</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Jesse</div></body></html>