fix example
This commit is contained in:
@@ -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`:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user