nilac 0.0.4.2.8 → 0.0.4.2.9
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.
- data/bin/nilac +2 -2
- data/lib/nilac/version.rb +1 -1
- data/shark/test_files/correct_times.js +0 -6
- data/src/nilac.rb +2 -2
- metadata +1 -1
data/bin/nilac
CHANGED
@@ -3373,7 +3373,7 @@ def compile(input_file_path, *output_file_name)
|
|
3373
3373
|
|
3374
3374
|
def extract_blocks(file_contents)
|
3375
3375
|
|
3376
|
-
javascript_regexp = /(if |while |
|
3376
|
+
javascript_regexp = /(if |while |for |function\(|((=|:)\s+\{))/
|
3377
3377
|
|
3378
3378
|
block_starting_lines = file_contents.dup.reject { |element| element.index(javascript_regexp).nil? }[1..-1]
|
3379
3379
|
|
@@ -3989,7 +3989,7 @@ def find_file_path(input_path, file_extension)
|
|
3989
3989
|
|
3990
3990
|
end
|
3991
3991
|
|
3992
|
-
nilac_version = "0.0.4.2.
|
3992
|
+
nilac_version = "0.0.4.2.9"
|
3993
3993
|
|
3994
3994
|
opts = Slop.parse do
|
3995
3995
|
on :c, :compile=, 'Compile Nila File', as:Array, delimiter:":"
|
data/lib/nilac/version.rb
CHANGED
@@ -5,19 +5,13 @@
|
|
5
5
|
a = 5;
|
6
6
|
|
7
7
|
for (_i = 0, _j = 10; _i < _j; _i += 1) {
|
8
|
-
|
9
8
|
(function(n) {
|
10
|
-
|
11
9
|
console.log("The number is " + (a+n) + "");
|
12
|
-
|
13
10
|
}(_i));
|
14
|
-
|
15
11
|
}
|
16
12
|
|
17
13
|
for (_i = 0, _j = 10; _i < _j; _i += 1) {
|
18
|
-
|
19
14
|
console.log("Hello");
|
20
|
-
|
21
15
|
}
|
22
16
|
|
23
17
|
}).call(this);
|
data/src/nilac.rb
CHANGED
@@ -3371,7 +3371,7 @@ def compile(input_file_path, *output_file_name)
|
|
3371
3371
|
|
3372
3372
|
def extract_blocks(file_contents)
|
3373
3373
|
|
3374
|
-
javascript_regexp = /(if |while |
|
3374
|
+
javascript_regexp = /(if |while |for |function\(|((=|:)\s+\{))/
|
3375
3375
|
|
3376
3376
|
block_starting_lines = file_contents.dup.reject { |element| element.index(javascript_regexp).nil? }[1..-1]
|
3377
3377
|
|
@@ -3987,7 +3987,7 @@ def find_file_path(input_path, file_extension)
|
|
3987
3987
|
|
3988
3988
|
end
|
3989
3989
|
|
3990
|
-
nilac_version = "0.0.4.2.
|
3990
|
+
nilac_version = "0.0.4.2.9"
|
3991
3991
|
|
3992
3992
|
opts = Slop.parse do
|
3993
3993
|
on :c, :compile=, 'Compile Nila File', as:Array, delimiter:":"
|