Skip to content

Commit

Permalink
grammar: remove shim again
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hoffmann <[email protected]>
  • Loading branch information
MichaHoffmann committed Jul 25, 2023
1 parent becebeb commit 636dbe7
Show file tree
Hide file tree
Showing 12 changed files with 17,184 additions and 17,339 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Changelog

## 1.1.0 - not yet released
## 1.1.0 - 2023-07-25

feature
* add dialects so we can have different queries in `nvim-treesitter`
* fix structure of comments in block bodies

fix:
* fix ci acceptance workflow
Expand Down
64 changes: 15 additions & 49 deletions dialects/terraform/src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,8 @@
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "body"
},
{
"type": "SYMBOL",
"name": "object"
}
]
"type": "SYMBOL",
"name": "body"
},
{
"type": "BLANK"
Expand All @@ -26,41 +17,20 @@
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_shim"
},
{
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_shim"
},
{
"type": "BLANK"
}
]
},
{
"type": "REPEAT1",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "attribute"
},
{
"type": "SYMBOL",
"name": "block"
}
]
"type": "REPEAT1",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "attribute"
},
{
"type": "SYMBOL",
"name": "block"
}
}
]
]
}
}
]
},
Expand Down Expand Up @@ -1805,10 +1775,6 @@
{
"type": "SYMBOL",
"name": "heredoc_identifier"
},
{
"type": "SYMBOL",
"name": "_shim"
}
],
"inline": [],
Expand Down
6 changes: 1 addition & 5 deletions dialects/terraform/src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"fields": {},
"children": {
"multiple": true,
"required": false,
"required": true,
"types": [
{
"type": "attribute",
Expand Down Expand Up @@ -202,10 +202,6 @@
{
"type": "body",
"named": true
},
{
"type": "object",
"named": true
}
]
}
Expand Down
Loading

0 comments on commit 636dbe7

Please sign in to comment.