Skip to content

Commit

Permalink
Introduce => as new operator
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Mar 25, 2024
1 parent f8cf71c commit fc02705
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ repository:
name: keyword.operator.hcl
- match: "\\:"
name: keyword.operator.hcl
- match: \=\>
name: keyword.operator.hcl
brackets:
begin: \[
beginCaptures:
Expand Down
4 changes: 4 additions & 0 deletions syntaxes/hcl.tmGrammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions syntaxes/terraform.tmGrammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/snapshot/hcl/issue114.hcl.snap
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
> ) => rule
#^^^^ source.hcl meta.block.hcl meta.function-call.hcl
# ^ source.hcl meta.block.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
# ^^ source.hcl meta.block.hcl
# ^ source.hcl meta.block.hcl keyword.operator.hcl
# ^ source.hcl meta.block.hcl
# ^^ source.hcl meta.block.hcl keyword.operator.hcl
# ^^^^^^ source.hcl meta.block.hcl
> } : {}
#^^ source.hcl meta.block.hcl
Expand Down

0 comments on commit fc02705

Please sign in to comment.