<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Does anybody know of a wdiff-like tool (<a href="http://www.gnu.org/software/wdiff/">http://www.gnu.org/software/wdiff/</a>) which is aware of python syntax and can show token changes instead of word changes.  Wdiff is can turn<div><br></div><div><div>-    if not <a href="http://metar.is">metar.is</a>_in_temp_range_f(situation.weather.low_temperature, situation.weather.high_temperature):</div><div>+    if not <a href="http://info.is">info.is</a>_in_temp_range_f(situation.weather.low_temperature, situation.weather.high_temperature):</div><div><br></div><div>into</div><div><br></div><div><div>    if not [-metar.is_in_temp_range_f(situation.weather.low_temperature,-] {+info.is_in_temp_range_f(situation.weather.low_temperature,+} situation.weather.high_temperature):</div></div><div><br></div><div>but what I really want is:</div><div><br></div><div><div>    if not [-metar-]{+info+}.is_in_temp_range_f(situation.weather.low_temperature, situation.weather.high_temperature):</div></div><div><br></div><div>which makes it more obvious that the change is just the one token.  Does such a tool exist?</div><div><br></div><div><div apple-content-edited="true"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>---</div><div>Roy Smith</div><div><a href="mailto:roy@panix.com">roy@panix.com</a></div><div><br></div></div></div></div><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>