ditto_code 0.3.2 → 0.3.3
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 +3 -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: b1d0c322e38663309a6c47bf1af6c9a923be3da9
|
4
|
+
data.tar.gz: 9d775d7085a66dfb31e1714b648bed4df068cda5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01b9634b4b72113da0c4cd1d4fd9c28cd569293f6254123ab30a6bdc040078e37d06d33c42c6c4de73dfc8314b98406967443617d87ed4898d920b4214ec6f53
|
7
|
+
data.tar.gz: c53aa2fe1930c7681141b1f4709a37c2a7d6474f87af84a62d101c08f8ef17c6deee36ea67fbb18d37cb7d3451f73520166f22920381b0b57a59cd89953d1438
|
data/lib/dittocode/parse.rb
CHANGED
@@ -232,8 +232,9 @@ module DittoCode
|
|
232
232
|
|
233
233
|
# Get the initializers and the ends of the blocks
|
234
234
|
if @isView
|
235
|
-
initializers = line.scan(/<%[
|
236
|
-
initializers += line.scan(/<%[@=;\s\w\d\.\:]{
|
235
|
+
initializers = line.scan(/<%[=\s]*(case|unless|if|do|begin)[\s]+/).size
|
236
|
+
initializers += line.scan(/<%[@=;\s\w\d\.\:]{3,}[\s]+(case|do)[\s]+/).size
|
237
|
+
initializers += line.scan(/<%[@=;\d\w\s\.\:]{3,}(if|unless)[\s]+[@=;\d\w\s\.\:]+(?:then){1}/).size
|
237
238
|
|
238
239
|
finals = line.scan(/[\s]+(end)[\s]*%>/).size
|
239
240
|
else
|