ditto_code 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dittocode/parse.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7693efce39ccf6d5f4d45b6a4c4819296f93f6b
|
4
|
+
data.tar.gz: 803b0ec425e2dc30bba1ebc9578240644681b70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9f8aeb62bca43e937d224bbe9df4d0f9fd780137f7c795db6d8781951beb5100bda31557bd85c80fe4b9d802e85307fd6836fdda8be54dc22540f64446c25f4
|
7
|
+
data.tar.gz: 334dbd191b394199d1b659757ffa7d2925ef32d574502b6f6dd2624c06e4a734edb91e940819161eaa8d0925027a33aa3592451756db0ddc83eea1f5384773af
|
data/lib/dittocode/parse.rb
CHANGED
@@ -238,6 +238,7 @@ module DittoCode
|
|
238
238
|
finals = line.scan(/[\s]+(end)[\s]*%>/).size
|
239
239
|
else
|
240
240
|
initializers = line.scan(/^[\s\t]*(case|unless|if|def|do)[\s]+/).size
|
241
|
+
initializers += line.scan(/ =[\s\t]*(case|unless|if)[\s]+/).size
|
241
242
|
initializers += line.scan(/^[\s\t]*(begin)[\s]*/).size # If, def, unless... of a start line
|
242
243
|
initializers += line.scan(/[\s\t]+(case|do)[\s]+[|]+/).size # Case or do inside a line
|
243
244
|
initializers += line.scan(/[\s\t]+(do)[\s]*$/).size # Finals do
|