diff --git a/README.md b/README.md index 9ed36ed..9240a61 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ tree-sitter grammar for the [HCL](https://github.com/hashicorp/hcl/blob/main/hcl Highlighting `example/example.hcl`: -![Highlighting Example](https://i.imgur.com/JdfxHvE.jpeg) +![Highlighting Example](https://i.imgur.com/TEWlCwT.png) ## 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: ```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. diff --git a/example/example.hcl b/example/example.hcl index f617438..8c02578 100644 --- a/example/example.hcl +++ b/example/example.hcl @@ -26,7 +26,7 @@ resource_1 "strlit1" "strlit2" { esc1 = "\" \t \UFF11FF22 \uFFFF \n" esc2 = "$${} %%{}" tpl1 = "prefix-${var.bar}" - tpl2 = "prefix-${func(\"bar\"}" + tpl2 = "prefix-${func(\"bar\")}" nested_resource_1 { attr1 = 2