You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
2.3 KiB

Index: cloc
--- cloc.orig 2010-05-02 15:44:48.000000000 +0200
+++ cloc 2010-05-02 15:50:58.000000000 +0200
@@ -1239,6 +1239,7 @@
)?
$}x) {
if ($report_type eq "by language") {
+ no warnings 'deprecated';
next unless defined %{$rhaa_Filters_by_Language->{$1}};
# above test necessary to avoid trying to sum reports
# of reports (which have no language breakdown).
@@ -3095,6 +3096,7 @@
'sbl' => 'Softbridge Basic' ,
'SBL' => 'Softbridge Basic' ,
'sc' => 'Lisp' ,
+ 'scala' => 'Scala' ,
'scm' => 'Lisp' ,
'sed' => 'sed' ,
'ses' => 'Patran Command Language' ,
@@ -3378,6 +3380,11 @@
'Teamcenter def' => [ [ 'remove_matches' , '^\s*#' ], ],
'Teamcenter met' => [ [ 'call_regexp_common' , 'C' ], ],
'Teamcenter mth' => [ [ 'remove_matches' , '^\s*#' ], ],
+ 'Scala' => [
+ [ 'remove_matches' , '^\s*//' ],
+ [ 'call_regexp_common' , 'C' ],
+ [ 'remove_inline' , '//.*$' ],
+ ],
'Softbridge Basic' => [ [ 'remove_above' , '^\s*Attribute\s+VB_Name\s+=' ],
[ 'remove_matches' , '^\s*Attribute\s+'],
[ 'remove_matches' , '^\s*\47'], ], # \47 = '
@@ -3941,6 +3948,7 @@
'rpg ii' => 1.63,
'rpg iii' => 1.63,
'rtexpert 1.4' => 1.38,
+ 'Scala' => 1.36,
'sabretalk' => 0.90,
'sail' => 0.75,
'sapiens' => 5.00,
@@ -4431,7 +4439,7 @@
from_to => [['<?_c', '_c?>']],
},
- {languages => [qw /C++/, 'C#', qw /Cg ECMAScript FPL Java JavaScript/],
+ {languages => [qw /C++/, 'C#', qw /Cg ECMAScript FPL Java Javascript/],
to_eol => ['//'],
from_to => [[qw {/* */}]]},