Added config so "/usr/bin/env ruby" works (#344)

This commit is contained in:
Korny Sietsma 2019-06-25 12:29:54 +01:00 committed by XAMPPRocky
parent 354948df02
commit afcaf0418f
2 changed files with 14 additions and 0 deletions

View File

@ -1388,6 +1388,9 @@
["\\\"", "\\\""],
["'", "'"]
],
"env":[
"ruby"
],
"extensions":[
"rb"
]

11
tests/data/ruby_env Normal file
View 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