liquidscript 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57668156cbed92dc8694537e87be8befb53b04ec
|
4
|
+
data.tar.gz: 53b033136d7808ce56d70de4528ad4a6426f989f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f161d8b85ce48ac8437565a835d815232ba647a6fb61dc674ac67b4f09ae88e201240243c974852fd57816686e6e6ffa011b8d6ddf8be9f59359cafa81fee1e1
|
7
|
+
data.tar.gz: 93c142ef0d3c677dc54c334c0c312565bea1be8a9a121a7f3e2ffe43625e52bb0f28be249a601acdeb744f7c8fbcadc09e776a1d90d93ca2c4029cc1eb36be3c
|
@@ -112,7 +112,7 @@ module Liquidscript
|
|
112
112
|
on(:unops) { |m| emit :unop, m }
|
113
113
|
on(%r{<<([A-Z]+)}, :heredoc)
|
114
114
|
on(%r{<<-([A-Z]+)}, :iheredoc)
|
115
|
-
on(%r{r/(
|
115
|
+
on(%r{r/((?:.|\/)*)/([gimy]*)}, :regex)
|
116
116
|
on(%r{"} => :istring)
|
117
117
|
on("///" => :block_regex)
|
118
118
|
on("->") { emit :arrow }
|
data/lib/liquidscript/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
data: |
|
2
2
|
object = { hello: "world" }
|
3
3
|
test = [1, 2]
|
4
|
-
regex = r
|
4
|
+
regex = r/^\/test/
|
5
5
|
block = ///
|
6
6
|
^test # comment
|
7
7
|
///
|
@@ -11,6 +11,6 @@ compiled: |
|
|
11
11
|
var object, test, regex, block;
|
12
12
|
object = { "hello": "world" };
|
13
13
|
test = [1, 2];
|
14
|
-
regex =
|
14
|
+
regex = /^\/test/;
|
15
15
|
block = /^test/;
|
16
16
|
regex === block;
|