Ticket #224: 0001-Added-support-for-Eiffel-.e-files-to-address-ticke.patch
| File 0001-Added-support-for-Eiffel-.e-files-to-address-ticke.patch, 4.7 kB (added by f_k, 8 months ago) |
|---|
-
a/ext/ohcount_native/generator.rb
old new 37 37 dcl = DclMonoglot.new("dcl") 38 38 dylan = CMonoglot.new("dylan", '//', nil, true, false) 39 39 ebuild = CMonoglot.new("ebuild", '#', nil, false, false) 40 eiffel = CMonoglot.new("eiffel", '--', nil, true, false) 40 41 erlang = CMonoglot.new("erlang", '%%', nil, true, true) 41 42 exheres = CMonoglot.new("exheres", '#', nil, false, false) 42 43 java = CMonoglot.new("java", '//', [e('/*'), e('*/')], true, false) … … 105 106 dcl, 106 107 dylan , 107 108 ebuild , 109 eiffel , 108 110 erlang , 109 111 exheres , 110 112 groovy , -
a/lib/ohcount/detector.rb
old new 126 126 # '.cob' => "cobol", 127 127 '.cs' => :disambiguate_cs, 128 128 '.dylan'=> "dylan", 129 '.e' => "eiffel", 129 130 '.ebuild'=> "ebuild", 130 131 '.eclass'=> "ebuild", 131 132 '.kdebuild-1'=> "ebuild", -
a/lib/ohcount/sloc_info.rb
old new 56 56 'dcl' => {:nice_name => 'DCL' , :category => 0}, 57 57 'dylan' => {:nice_name => 'Dylan' , :category => 0}, 58 58 'ebuild' => {:nice_name => 'Ebuild' , :category => 0}, 59 'eiffel' => {:nice_name => 'Eiffel' , :category => 0}, 59 60 'emacslisp' => {:nice_name => 'Emacs Lisp' , :category => 0}, 60 61 'erlang' => {:nice_name => 'Erlang' , :category => 0}, 61 62 'exheres' => {:nice_name => 'Exheres' , :category => 0}, -
/dev/null
old new -
/dev/null
old new 1 class 2 HELLO_WORLD 3 create 4 make 5 feature 6 make 7 do 8 print ("Hello, world!%N") 9 end 10 end -
/dev/null
old new -
/dev/null
old new 1 class 2 HELLO_WORLD 3 create 4 make 5 feature 6 make 7 do 8 -- prints "Hello world!" and starts new line 9 print ("Hello, world!%N") 10 end 11 end -
/dev/null
old new 1 require File.dirname(__FILE__) + '/../test_helper' 2 3 class Ohcount::EiffelTest < Ohcount::Test 4 def test_comment 5 lb = [Ohcount::LanguageBreakdown.new("eiffel", "", "--comment", 0)] 6 assert_equal lb, Ohcount::parse(" --comment", "eiffel") 7 end 8 9 def test_comprehensive 10 verify_parse("eiffel.e") 11 end 12 end