Skip to content

Commit

Permalink
Merge branch 'issue_1299' into 'master'
Browse files Browse the repository at this point in the history
Unparsing: add config for PragmaNode and PragmaNodeList

Closes #1299

See merge request eng/libadalang/libadalang!1563
  • Loading branch information
joaopsazevedo committed Mar 1, 2024
2 parents b7fde2d + 0b0c9ba commit a259ad8
Show file tree
Hide file tree
Showing 18 changed files with 1,757 additions and 78 deletions.
96 changes: 96 additions & 0 deletions extensions/default_unparsing_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@
}
}
},
"BaseAssocList": {
"sep": [
"recurse",
"line"
]
},
"BinOp": {
"node": {
"kind": "group",
Expand Down Expand Up @@ -1418,6 +1424,96 @@
}
}
},
"PragmaArgumentAssoc": {
"node": {
"kind": "group",
"document": {
"kind": "align",
"width": 2,
"contents": [
{
"kind": "recurse_field",
"field": "f_name"
},
{
"kind": "recurse_field",
"field": "f_expr"
}
]
}
},
"fields": {
"f_name": [
"recurse",
"whitespace",
{
"kind": "text",
"text": "=>"
},
"line"
]
}
},
"PragmaNode": {
"node": {
"kind": "group",
"document": {
"kind": "align",
"width": 2,
"contents": [
{
"kind": "text",
"text": "pragma"
},
"line",
{
"kind": "group",
"document": {
"kind": "align",
"width": 2,
"contents": [
{
"kind": "recurse_field",
"field": "f_id"
},
{
"kind": "recurse_field",
"field": "f_args"
}
]
}
},
{
"kind": "text",
"text": ";"
}
]
}
},
"fields": {
"f_args": [
"line",
{
"kind": "group",
"document": [
{
"kind": "text",
"text": "("
},
{
"kind": "align",
"width": 1,
"contents": "recurse"
},
{
"kind": "text",
"text": ")"
}
]
}
]
}
},
"PragmaNodeList": {
"sep": [
"recurse",
Expand Down
Loading

0 comments on commit a259ad8

Please sign in to comment.