@@ -64,6 +64,7 @@ pub enum Lang {
64
64
Css ,
65
65
CUDA ,
66
66
CUDAHeader ,
67
+ Cython ,
67
68
D ,
68
69
Dart ,
69
70
DeviceTree ,
@@ -184,6 +185,7 @@ impl Lang {
184
185
Css => "CSS" ,
185
186
CUDA => "CUDA" ,
186
187
CUDAHeader => "CUDA Header" ,
188
+ Cython => "Cython" ,
187
189
D => "D" ,
188
190
Dart => "Dart" ,
189
191
DeviceTree => "DeviceTree" ,
@@ -398,6 +400,7 @@ pub fn lang_from_ext(filepath: &str) -> Lang {
398
400
"purs" => PureScript ,
399
401
"arr" => Pyret ,
400
402
"py" => Python ,
403
+ "pxi" | "pxd" | "pyx" => Cython ,
401
404
"r" => R ,
402
405
"rake" | "rb" => Ruby ,
403
406
"rhtml" | "erb" => RubyHtml ,
@@ -468,9 +471,9 @@ pub fn counter_config_for_lang<'a>(lang: Lang) -> (SmallVec<[&'a str; 3]>, Small
468
471
Perl => ( smallvec ! [ "#" ] , smallvec ! [ ( "=pod" , "=cut" ) ] ) ,
469
472
Puppet => ( smallvec ! [ "#" ] , smallvec ! [ ] ) ,
470
473
Pyret => ( smallvec ! [ "#" ] , smallvec ! [ ( "#|" , "|#" ) ] ) ,
471
- Python => ( smallvec ! [ "#" ] , smallvec ! [ ( "'''" , "'''" ) ] ) ,
472
474
Ruby => ( smallvec ! [ "#" ] , smallvec ! [ ( "=begin" , "=end" ) ] ) ,
473
475
Sql => ( smallvec ! [ "--" ] , smallvec ! [ ( "/*" , "*/" ) ] ) ,
476
+ Python | Cython => ( smallvec ! [ "#" ] , smallvec ! [ ( "'''" , "'''" ) ] ) ,
474
477
475
478
Haskell | Idris | Agda | PureScript | Elm => ( smallvec ! [ "--" ] , smallvec ! [ ( "{-" , "-}" ) ] ) ,
476
479
0 commit comments