ditto_code 0.2.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 10e4eddf2d61e2e08b1cdf1b78eb032416812ba5
|
4
|
+
data.tar.gz: 670b3c8eda2509b809e00042dba51020da085705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87ea6266db43d0cfe387092e6f6452770428d49b934ed279e2d3fd6d2bb1d70001292acc02f92ff30189f0a2636440127c6fa402fc2200339d6f81ea5700e8b5
|
7
|
+
data.tar.gz: 4a389cbd10ad6158196274f33110c1a1d7393b8d8fc69de386a73655759ac8ca5891f909fb84d434edbf6092e5366807c116d9821b83195eaa57ca50f0add8ba
|
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
|
@@ -242,7 +242,7 @@ module DittoCode
|
|
242
242
|
initializers += line.scan(/^[\s\t]*(begin)[\s]*/).size # If, def, unless... of a start line
|
243
243
|
initializers += line.scan(/[\s\t]+(case|do)[\s]+[|]+/).size # Case or do inside a line
|
244
244
|
initializers += line.scan(/[\s\t]+(do)[\s]*$/).size # Finals do
|
245
|
-
initializers += line.scan(/[\s\t]+(if|unless)[\s]+[
|
245
|
+
initializers += line.scan(/[\s\t]+(if|unless)[\s]+[@=;\d\w\s\.\:]+(?:then){1}/).size # Only if|unless + then, this line disable error by: unless|if var
|
246
246
|
|
247
247
|
finals = line.scan(/[\s\t]*(end)[\s]*$/).size
|
248
248
|
end
|