added with operator to object literal language doc

pull/281/head
Scott Anderson 2019-06-24 13:05:45 -06:00
parent 789fa32b4a
commit ad66b1344c
2 changed files with 22 additions and 5 deletions

View File

@ -40,10 +40,20 @@ Literal = int_lit
Object literals construct a value with the object type.
```js
ObjectLiteral = "{" PropertyList "}" .
PropertyList = [ Property { "," Property } ] .
Property = identifier [ ":" Expression ]
| string_lit ":" Expression .
ObjectLiteral = "{" ObjectBody "}" .
ObjectBody = WithProperties | PropertyList .
WithProperties = identifier "with" PropertyList .
PropertyList = [ Property { "," Property } ] .
Property = identifier [ ":" Expression ]
| string_lit ":" Expression .
```
**Examples**
```js
{a: 1, b: 2, c: 3}
{a, b, c}
{o with x: 5, y: 5}
{o with a, b}
```
### Array literals

View File

@ -9,11 +9,18 @@ menu:
---
{{% note %}}
_The latest release of InfluxDB v2.0 alpha includes **Flux v0.33.0**.
_The latest release of InfluxDB v2.0 alpha includes **Flux v0.33.1**.
Though newer versions of Flux may be available, they will not be included with
InfluxDB until the next InfluxDB v2.0 release._
{{% /note %}}
## v0.33.1 [2019-06-20]
### Bug fixes
- Copy table will report if it is empty correctly.
---
## v0.33.0 [2019-06-18]
### Breaking changes