Changeset ac2c8dbc9cf9d22089842649c5bd77572a510071
- Timestamp:
- 02/27/2008 01:48:12 PM (10 months ago)
- git-parent:
[2a533e62d2b0ab7038dee51d5a642a45efe0de79], [814bbd214306afc451cac2e2aea7189ae8fea0c3]
- Files:
-
- ext/ohcount_native/generator.rb (modified) (2 diffs)
- lib/ohcount/detector.rb (modified) (1 diff)
- lib/ohcount/sloc_info.rb (modified) (1 diff)
- test/expected_dir/smalltalk1.st/smalltalk/blanks (added)
- test/expected_dir/smalltalk1.st/smalltalk/code (added)
- test/expected_dir/smalltalk1.st/smalltalk/comment (added)
- test/src_dir/smalltalk1.st (added)
- test/unit/detector_test.rb (modified) (1 diff)
- test/unit/smalltalk_test.rb (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ext/ohcount_native/generator.rb
r2a533e6 rac2c8db 50 50 scheme = LineCommentMonoglot.new("scheme", ";") 51 51 shell = CMonoglot.new("shell", '#', nil, false, false) 52 smalltalk = CMonoglot.new("smalltalk", nil, [e('"'), e('"')], false, true, options = {:no_escape_squote => true}) 52 53 sql = CMonoglot.new("sql", ['--','//'], [['{','}'], [e('/*'), e('*/')]], true, true) 53 54 tcl = CMonoglot.new("tcl", '#', nil, true, false) … … 96 97 scheme , 97 98 shell , 99 smalltalk , 98 100 sql , 99 101 tcl , lib/ohcount/detector.rb
r2a533e6 rac2c8db 168 168 '.sh' => "shell", 169 169 '.sql' => "sql", 170 '.st' => "smalltalk", 170 171 '.tcl' => "tcl", 171 172 '.tpl' => "html", lib/ohcount/sloc_info.rb
r2a533e6 rac2c8db 70 70 'scheme' => {:nice_name => 'Scheme' , :category => 0}, 71 71 'shell' => {:nice_name => 'shell script' , :category => 0}, 72 'smalltalk' => {:nice_name => 'Smalltalk' , :category => 0}, 72 73 'sql' => {:nice_name => 'SQL' , :category => 0}, 73 74 'tcl' => {:nice_name => 'Tcl' , :category => 0}, test/unit/detector_test.rb
r2a533e6 rac2c8db 44 44 assert_equal "objective_c", do_detect("foo_objective_c.h", ["foo_objective_c.h, different_than_foo.m"]) 45 45 assert_equal "php", do_detect("upper_case_php") 46 assert_equal "smalltalk", do_detect("example.st") 46 47 assert_equal "vala", do_detect("foo.vala") 47 48 assert_equal "tex", do_detect("foo.tex")