For this particular metric, I usually run the two versions through a
beautifier with standard settings, then diff the output of that.
On Feb 18, 2008, at 10:17 AM, Rick Genter wrote:
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Ted Stern
But that regexp handles only C++ comments. I don't know of a way to
recognize /* ... [text containing newlines] ... */. Possibly another
diff utility has that options (xxdiff, tkdiff?).
You could write an awk or perl script to filter the multiline comments
out, save the output to a file, then diff those files. I, however,
consider comments to be equally (or even more) important to non-
comments
in source code, and don't understand the use case.