Changeset ac2c8dbc9cf9d22089842649c5bd77572a510071

Show
Ignore:
Timestamp:
02/27/2008 01:48:12 PM (10 months ago)
Author:
Robin Luckey <robin@Tangier.local>
git-committer:
Robin Luckey <robin@Tangier.local> 1204148892 -0800
git-parent:

[2a533e62d2b0ab7038dee51d5a642a45efe0de79], [814bbd214306afc451cac2e2aea7189ae8fea0c3]

git-author:
Robin Luckey <robin@Tangier.local> 1204148892 -0800
Message:

Merge branch 'smalltalk'

Conflicts:

ext/ohcount_native/glots/c_monoglot.rb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ext/ohcount_native/generator.rb

    r2a533e6 rac2c8db  
    5050      scheme = LineCommentMonoglot.new("scheme", ";") 
    5151      shell = CMonoglot.new("shell",             '#',              nil,                false, false) 
     52      smalltalk = CMonoglot.new("smalltalk",            nil,             [e('"'), e('"')], false,  true, options = {:no_escape_squote => true}) 
    5253      sql = CMonoglot.new("sql",                 ['--','//'],      [['{','}'], [e('/*'), e('*/')]], true, true) 
    5354      tcl = CMonoglot.new("tcl",                 '#',              nil,                true,  false) 
     
    9697        scheme , 
    9798        shell , 
     99        smalltalk , 
    98100        sql , 
    99101        tcl , 
  • lib/ohcount/detector.rb

    r2a533e6 rac2c8db  
    168168    '.sh'   => "shell", 
    169169    '.sql'  => "sql", 
     170    '.st'   => "smalltalk", 
    170171    '.tcl'  => "tcl", 
    171172    '.tpl'  => "html", 
  • lib/ohcount/sloc_info.rb

    r2a533e6 rac2c8db  
    7070      'scheme'        => {:nice_name => 'Scheme'           , :category => 0}, 
    7171      'shell'         => {:nice_name => 'shell script'     , :category => 0}, 
     72      'smalltalk'     => {:nice_name => 'Smalltalk'        , :category => 0}, 
    7273      'sql'           => {:nice_name => 'SQL'              , :category => 0}, 
    7374      'tcl'           => {:nice_name => 'Tcl'              , :category => 0}, 
  • test/unit/detector_test.rb

    r2a533e6 rac2c8db  
    4444    assert_equal "objective_c", do_detect("foo_objective_c.h", ["foo_objective_c.h, different_than_foo.m"]) 
    4545    assert_equal "php", do_detect("upper_case_php") 
     46    assert_equal "smalltalk", do_detect("example.st") 
    4647    assert_equal "vala", do_detect("foo.vala") 
    4748    assert_equal "tex", do_detect("foo.tex")