Basic Fortran support.
authorJason Riedy <ejr@cs.berkeley.edu>
Sun, 24 Feb 2008 00:32:39 +0000 (16:32 -0800)
committerRobin Luckey <robin@Tangier.local>
Wed, 27 Feb 2008 21:41:34 +0000 (13:41 -0800)
commit2a533e62d2b0ab7038dee51d5a642a45efe0de79
tree72c6397872a69e1c59e21ccf81a1e103d95192ef
parentd56b0367c9131ae789197c75a708cd61e2fc860d
Basic Fortran support.

The detection heuristics prefer free format over fixed.  The only
possible mismatch I can see is if a free-format code leave the
first six columns blank but uses free-format line continuation.
Then comment-only lines will be missed.  I've never seen code like
that.
16 files changed:
ext/ohcount_native/generator.rb
ext/ohcount_native/glots/c_monoglot.rb
lib/ohcount/detector.rb
lib/ohcount/sloc_info.rb
test/detect_files/fortranfixed.f [new file with mode: 0644]
test/detect_files/fortranfree.f [new file with mode: 0644]
test/expected_dir/fortranfixed.f/fortranfixed/blanks [new file with mode: 0644]
test/expected_dir/fortranfixed.f/fortranfixed/code [new file with mode: 0644]
test/expected_dir/fortranfixed.f/fortranfixed/comment [new file with mode: 0644]
test/expected_dir/fortranfree.f/fortranfree/blanks [new file with mode: 0644]
test/expected_dir/fortranfree.f/fortranfree/code [new file with mode: 0644]
test/expected_dir/fortranfree.f/fortranfree/comment [new file with mode: 0644]
test/src_dir/fortranfixed.f [new file with mode: 0644]
test/src_dir/fortranfree.f [new file with mode: 0644]
test/unit/detector_test.rb
test/unit/fortran_test.rb [new file with mode: 0644]