+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

feat: 🎸 finish codemirror formatter ir #3009

Merged
merged 4 commits into from
Aug 6, 2022

Conversation

IWANABETHATGUY
Copy link
Contributor

@IWANABETHATGUY IWANABETHATGUY commented Aug 4, 2022

Summary

  1. codemirror grammar formatter ir

Test Plan

  1. Testing locally or see my preview video.

</button>
<pre className="h-screen overflow-scroll">{formatter_ir}</pre>
<CodeMirror
value={formatter_ir}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the same grammar work for prettiers ir too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If our IR is the same as prettier's, then it should work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier's IR uses a very similar structure: ( and ) for an element, [] for a sequence of children.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will replace in next pr

@IWANABETHATGUY
Copy link
Contributor Author

2022-08-05.2.56.16.mov

@IWANABETHATGUY
Copy link
Contributor Author

Source code is here https://github.com/IWANABETHATGUY/codemirror-rome-formatter-ir, feel free to review it.

@IWANABETHATGUY IWANABETHATGUY marked this pull request as ready for review August 5, 2022 07:02
@IWANABETHATGUY IWANABETHATGUY requested review from a team and MichaReiser August 5, 2022 07:02
@IWANABETHATGUY IWANABETHATGUY force-pushed the feat/lang-formatter-ir branch from 92f4404 to 151112a Compare August 5, 2022 07:32
@MichaReiser
Copy link
Contributor

Neat, I love it!

@MichaReiser MichaReiser merged commit 01a59f0 into rome:main Aug 6, 2022
@IWANABETHATGUY IWANABETHATGUY deleted the feat/lang-formatter-ir branch August 6, 2022 12:15
IWANABETHATGUY added a commit to IWANABETHATGUY/tools that referenced this pull request Aug 10, 2022
IWANABETHATGUY added a commit to IWANABETHATGUY/tools that referenced this pull request Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载