ditto_code 0.3.1 → 0.3.2
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 +2 -2
- 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: dafc04f0611997b8844763ca8524b8802e4c12a8
|
4
|
+
data.tar.gz: 46d3139a7066d56bc4c5336b1a80868741face4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f18baf55edc8ec1325f74dd3eca750121f0df839646340a14f9d7e143aa87ec61e301ee205eb3099779fb9e55871211180b8b1d179c4bcbbfbb02af72054c8e8
|
7
|
+
data.tar.gz: d7c3439bed824d682b13f258a5f1a5b8ef26e195e3f52118d6fac215373a3e6af4f0620d55135680de2636f92522425d4dda4733f46e50c64dc8a80837aa59db
|
data/lib/dittocode/parse.rb
CHANGED
@@ -232,8 +232,8 @@ module DittoCode
|
|
232
232
|
|
233
233
|
# Get the initializers and the ends of the blocks
|
234
234
|
if @isView
|
235
|
-
initializers = line.scan(/<%[\s]*(case|unless|if|do|
|
236
|
-
initializers += line.scan(/<%[@=;\s\w\d\.\:]{2,}(case|unless|if|do)[\s]+/).size
|
235
|
+
initializers = line.scan(/<%[\s]*(case|unless|if|do|begin)[\s]+/).size
|
236
|
+
initializers += line.scan(/<%[@=;\s\w\d\.\:]{2,}[\s]+(case|unless|if|do)[\s]+/).size
|
237
237
|
|
238
238
|
finals = line.scan(/[\s]+(end)[\s]*%>/).size
|
239
239
|
else
|