Skip to content

Commit

Permalink
use MichaHoffmann/tree-sitter-hcl instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnicolas committed Oct 6, 2023
1 parent 0d0a9f7 commit 6d5d8b1
Show file tree
Hide file tree
Showing 6 changed files with 30,235 additions and 11,862 deletions.
6 changes: 3 additions & 3 deletions _automation/grammars.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@
},
{
"language": "hcl",
"url": "https://github.com/mitchellh/tree-sitter-hcl",
"url": "https://github.com/MichaHoffmann/tree-sitter-hcl",
"files": [
"parser.c",
"scanner.cc"
"scanner.c"
],
"reference": "main",
"revision": "a8bd2568d37065a3b451cfd91745607fac4aac84"
"revision": "b5539065432c08e4118eb3ee7c94902fdda85708"
},
{
"language": "html",
Expand Down
2 changes: 1 addition & 1 deletion hcl/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestGrammar(t *testing.T) {
n, err := sitter.ParseCtx(context.Background(), []byte(`image_id = "abc123"`), hcl.GetLanguage())
assert.NoError(err)
assert.Equal(
"(source_file (body (attribute (identifier) (expression (expr_term (template_expr (quoted_template)))) (MISSING \"\n\"))))",
"(config_file (body (attribute (identifier) (expression (literal_value (string_lit (quoted_template_start) (template_literal) (quoted_template_end)))))))",
n.String(),
)
}
Loading

0 comments on commit 6d5d8b1

Please sign in to comment.