fix example

This commit is contained in:
mhoffm
2021-06-15 11:40:32 +02:00
parent a4621181ca
commit aed7efd28f
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ tree-sitter grammar for the [HCL](https://github.com/hashicorp/hcl/blob/main/hcl
Highlighting `example/example.hcl`: Highlighting `example/example.hcl`:
![Highlighting Example](https://i.imgur.com/JdfxHvE.jpeg) ![Highlighting Example](https://i.imgur.com/TEWlCwT.png)
## Developing ## Developing
@@ -21,7 +21,7 @@ To run tests simply run `nix-shell --run 'tree-sitter test'`.
In principle it is allowed to contain arbitary expressions in quoted template interpolations. Consider for example: In principle it is allowed to contain arbitary expressions in quoted template interpolations. Consider for example:
```hcl ```hcl
foo = "prefix-${func(\"bar\"}" foo = "prefix-${func(\"bar\")}"
``` ```
To make parsing a little easier, this parser only checks for valid escape sequences and template chars. To make parsing a little easier, this parser only checks for valid escape sequences and template chars.

View File

@@ -26,7 +26,7 @@ resource_1 "strlit1" "strlit2" {
esc1 = "\" \t \UFF11FF22 \uFFFF \n" esc1 = "\" \t \UFF11FF22 \uFFFF \n"
esc2 = "$${} %%{}" esc2 = "$${} %%{}"
tpl1 = "prefix-${var.bar}" tpl1 = "prefix-${var.bar}"
tpl2 = "prefix-${func(\"bar\"}" tpl2 = "prefix-${func(\"bar\")}"
nested_resource_1 { nested_resource_1 {
attr1 = 2 attr1 = 2