-
Notifications
You must be signed in to change notification settings - Fork 653
feat: 🎸 finish codemirror formatter ir #3009
Conversation
</button> | ||
<pre className="h-screen overflow-scroll">{formatter_ir}</pre> | ||
<CodeMirror | ||
value={formatter_ir} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
2022-08-05.2.56.16.mov |
Source code is here https://github.com/IWANABETHATGUY/codemirror-rome-formatter-ir, feel free to review it. |
92f4404
to
151112a
Compare
Neat, I love it! |
Summary
Test Plan