Title: Formatter: Retain information on Bracket Expressions · Issue #156 · ZenCodeLang/ZenCode · GitHub
Open Graph Title: Formatter: Retain information on Bracket Expressions · Issue #156 · ZenCodeLang/ZenCode
X Title: Formatter: Retain information on Bracket Expressions · Issue #156 · ZenCodeLang/ZenCode
Description: Currently, Bracket Expression Parsers can return any ParsedExpression and the information about the bracket expression is lost during the parsing. Therefore, when using the code-formatter, the Bracket Expressions are replaced by their Pa...
Open Graph Description: Currently, Bracket Expression Parsers can return any ParsedExpression and the information about the bracket expression is lost during the parsing. Therefore, when using the code-formatter, the Brac...
X Description: Currently, Bracket Expression Parsers can return any ParsedExpression and the information about the bracket expression is lost during the parsing. Therefore, when using the code-formatter, the Brac...
Opengraph URL: https://github.com/ZenCodeLang/ZenCode/issues/156
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Formatter: Retain information on Bracket Expressions","articleBody":"Currently, Bracket Expression Parsers can return any ParsedExpression and the information about the bracket expression is lost during the parsing.\n\nTherefore, when using the code-formatter, the Bracket Expressions are replaced by their Parsed-Expression equivalent, which is not optimal for formatting scripts.\n\nExample:\n```zs\nprintln(\u003citem:minecraft:bedrock\u003e.commandString);\n\n// becomes after a re-format\nprintln(BracketHandlers.getItem(\"minecraft:bedrock\").commandString);\n```\n\n\nPossible Fixes/Ideas:\n- Optionally attach a custom Tag to Parsed expressions which will be used in the code-formatter if present. \n `return expression.hasTag(FormattingInfo.class) ? expression.getTag(FormattingInfo.class).format() : expression.accept(formatterVisitor);`","author":{"url":"https://github.com/kindlich","@type":"Person","name":"kindlich"},"datePublished":"2024-06-09T19:07:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/156/ZenCode/issues/156"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:756f6258-bf04-a92c-a2a6-1c080d89763d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA20:20AB1:1259A8:179E72:6990AA06 |
| html-safe-nonce | 8a1a728dfe3b06903e28e9102cec3bcedf11b266b24a2e7bcfa4f23b4cb62093 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTIwOjIwQUIxOjEyNTlBODoxNzlFNzI6Njk5MEFBMDYiLCJ2aXNpdG9yX2lkIjoiNjk5MjkyOTMyMzQ4MjEzMDk1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df42b3066b80dae9b9854105a65db8f40761cbb4ca2f22921c573c8f0f4a6602 |
| hovercard-subject-tag | issue:2342438899 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ZenCodeLang/ZenCode/156/issue_layout |
| twitter:image | https://opengraph.githubassets.com/102c8772d4bee4b047cb6243e4809518bf47abdf5c109872b835fec2ee8a2032/ZenCodeLang/ZenCode/issues/156 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/102c8772d4bee4b047cb6243e4809518bf47abdf5c109872b835fec2ee8a2032/ZenCodeLang/ZenCode/issues/156 |
| og:image:alt | Currently, Bracket Expression Parsers can return any ParsedExpression and the information about the bracket expression is lost during the parsing. Therefore, when using the code-formatter, the Brac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kindlich |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/ZenCodeLang/ZenCode git https://github.com/ZenCodeLang/ZenCode.git |
| octolytics-dimension-user_id | 68248418 |
| octolytics-dimension-user_login | ZenCodeLang |
| octolytics-dimension-repository_id | 309683985 |
| octolytics-dimension-repository_nwo | ZenCodeLang/ZenCode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 309683985 |
| octolytics-dimension-repository_network_root_nwo | ZenCodeLang/ZenCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width