liquidscript 0.10.3 → 0.10.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 807022c4ded4e5b09cc881aa23814c524a8762e3
4
- data.tar.gz: f798b85fe050801808dca1dcd75876dbcb1a6a75
3
+ metadata.gz: 0c2c527652bdb7ece680508921dffafff168c7cb
4
+ data.tar.gz: 9d0c2a6c28d59681080a62cca518ff53f55d00aa
5
5
  SHA512:
6
- metadata.gz: f9d7c9c7d1c98c9c291a69aa6ef59f0429dd06e72bb89357d2d1e3afdf039ad52f8260c449485a1a9281c9a062969365d2808ddcf30881aa7a7fa35d3d9a7574
7
- data.tar.gz: ff62531459d871bdeabb0bf95b94f55ed96e0fdccdfda145cda0662cf7e9c17933fdf7c8dfc1811ae9fd3afe9111d609ba712eaff5b81ea7ee5b3cf3b3b10b2c
6
+ metadata.gz: 2f3e290757fcfb60f4c021d0f0613f0eddbbcf4df8e1b3d81b6d8d8fb6390b2c153be261692ede6961273218f1fdef63581548bc3324798ca7a3a505cf8e5347
7
+ data.tar.gz: 970b9501c509db02bcfcebf9fcb93ed11a5603ca7f71bfb5cb3a19357e49bf6fe0f726d7c9ef03421c15188e658ade3d90e612277f070bb66d249de6a389a6ef
data/DOCS.md CHANGED
@@ -36,7 +36,7 @@ Note that there are also no semicolons (they don't exist in the language), and n
36
36
 
37
37
  #### String
38
38
 
39
- Liquidscript has a very finite set of string literals - the only two options (so far) are double quotes and single quotes. There are plans to introduce heredocs. Double quotes are multiline, whereas **single quotes are limited to the same characters that identifiers are limited to**. This is so that keys for objects (in the `object[key]` syntax feels more natural (i.e., `object['key]`). Some examples:
39
+ Liquidscript has a very finite set of string literals - the only two options (so far) are double quotes and single quotes. There are plans to introduce heredocs. Double quotes are multiline, whereas **single quotes are limited to the same characters that identifiers are limited to**. This is so that keys for objects (such that the `object[key]` syntax feels more natural (i.e., `object['key]`)). Some examples:
40
40
 
41
41
  string = "hello
42
42
 
@@ -106,7 +106,9 @@ module Liquidscript
106
106
  if peek?(:comma, :rparen)
107
107
  _compile_lparen_method_final(ident)
108
108
  else
109
- value_expect(ident)
109
+ out = value_expect(ref(ident))
110
+ shift :rparen
111
+ code :expression, out
110
112
  end
111
113
  end
112
114
 
@@ -1,5 +1,5 @@
1
1
  module Liquidscript
2
2
 
3
3
  # The current version of liquidscript.
4
- VERSION = "0.10.3".freeze
4
+ VERSION = "0.10.4".freeze
5
5
  end
@@ -1,7 +1,10 @@
1
1
  data: |
2
2
  (2)
3
3
  #! allow Math
4
- Math.round(5 / (10 / 100) * 100)
4
+ a = 1
5
+ b = 2
6
+ x = 3
7
+ x = Math.round(5 / (x + a + b) * 100)
5
8
 
6
9
 
7
- compiled: "(2); Math.round(5 / (10 / 100) * 100);"
10
+ compiled: "var a,b,x; (2); a = 1; b = 2; x = 3; x = Math.round(5 / (x + a + b) * 100);"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquidscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi