ditto_code 0.2.8 → 0.2.9
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 -1
- 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: 57242b0b22a000c87d100040967deb8128952d08
|
4
|
+
data.tar.gz: 23ef4ad72c31ff908dce59909c813e4b05e8b545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c07cb1c093e0f01e28af709505ee7c758c750fae9d1dccd815803cec89c47d5e7ae20993812b84b872f129943dd5159f1a05f20dab2b3136bee5d0e870ca1e90
|
7
|
+
data.tar.gz: f6f3b367453431e3672602844d5c8784a3704041732795dc79f69acf66ce17e5bddf09809fedf13f0c32acf86ab10378afef293b346dad62a69194242505e9c0
|
data/lib/dittocode/parse.rb
CHANGED
@@ -233,7 +233,7 @@ module DittoCode
|
|
233
233
|
# Get the initializers and the ends of the blocks
|
234
234
|
if @isView
|
235
235
|
initializers = line.scan(/<%[\s]*(case|unless|if|do|def|begin)[\s]+/).size
|
236
|
-
initializers += line.scan(/<%[@=;\s\w\d\.]
|
236
|
+
initializers += line.scan(/<%[@=;\s\w\d\.]{2,}(case|unless|if|do)[\s]+/).size
|
237
237
|
|
238
238
|
finals = line.scan(/[\s]+(end)[\s]*%>/).size
|
239
239
|
else
|