mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-10-02 14:03:31 +00:00
Added config so "/usr/bin/env ruby" works (#344)
This commit is contained in:
parent
354948df02
commit
afcaf0418f
|
@ -1388,6 +1388,9 @@
|
||||||
["\\\"", "\\\""],
|
["\\\"", "\\\""],
|
||||||
["'", "'"]
|
["'", "'"]
|
||||||
],
|
],
|
||||||
|
"env":[
|
||||||
|
"ruby"
|
||||||
|
],
|
||||||
"extensions":[
|
"extensions":[
|
||||||
"rb"
|
"rb"
|
||||||
]
|
]
|
||||||
|
|
11
tests/data/ruby_env
Normal file
11
tests/data/ruby_env
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
# 11 lines 3 code 6 comments 2 blanks
|
||||||
|
|
||||||
|
=begin
|
||||||
|
Comment that only counts if detected as ruby
|
||||||
|
Comments
|
||||||
|
=end
|
||||||
|
|
||||||
|
while x > 2 and x < 10
|
||||||
|
x += 1
|
||||||
|
end
|
Loading…
Reference in a new issue